local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
local executor = identifyexecutor and identifyexecutor() or "Unknown Executor"

local customTheme = {
   TextColor = Color3.fromRGB(255, 0, 0), -- Letras negras, muy legibles
   Background = Color3.fromRGB(0, 0, 0), -- Cian más suave
   Topbar = Color3.fromRGB(0, 0, 0),
   Shadow = Color3.fromRGB(255, 0, 0),
   NotificationBackground = Color3.fromRGB(0, 0, 0),
   NotificationActionsBackground = Color3.fromRGB(0, 0, 0),
   TabBackground = Color3.fromRGB(0, 0, 0),
   TabStroke = Color3.fromRGB(255, 0, 0),
   TabBackgroundSelected = Color3.fromRGB(0, 0, 0),
   TabTextColor = Color3.fromRGB(255, 0, 0),
   SelectedTabTextColor = Color3.fromRGB(255, 0, 0),
   ElementBackground = Color3.fromRGB(0, 0, 0),
   ElementBackgroundHover = Color3.fromRGB(0, 0, 0),
   SecondaryElementBackground = Color3.fromRGB(0, 0, 0),
   ElementStroke = Color3.fromRGB(255, 0, 0),
   SecondaryElementStroke = Color3.fromRGB(255, 0, 0),
   SliderBackground = Color3.fromRGB(0, 0, 0),
   SliderProgress = Color3.fromRGB(255, 0, 0),
   SliderStroke = Color3.fromRGB(255, 0, 0),
   ToggleBackground = Color3.fromRGB(0, 0, 0),
   ToggleEnabled = Color3.fromRGB(255, 0, 0),
   ToggleDisabled = Color3.fromRGB(80, 80, 80),
   ToggleEnabledStroke = Color3.fromRGB(255, 0, 0),
   ToggleDisabledStroke = Color3.fromRGB(255, 0, 0),
   ToggleEnabledOuterStroke = Color3.fromRGB(255, 0, 0),
   ToggleDisabledOuterStroke = Color3.fromRGB(255, 0, 0),
   DropdownSelected = Color3.fromRGB(0, 0, 0),
   DropdownUnselected = Color3.fromRGB(0, 0, 0),
   InputBackground = Color3.fromRGB(0, 0, 0),
   InputStroke = Color3.fromRGB(255, 0, 0),
   PlaceholderColor = Color3.fromRGB(50, 50, 50),
   KeyInputBackground = Color3.fromRGB(255, 0, 0),
   KeyInputTextColor = Color3.fromRGB(255, 0, 0)
}



local Window = Rayfield:CreateWindow({
   Name = "Scorpio Hub| Bronx Duels 🔫| " .. executor,
   Icon = nil,
   LoadingTitle = "LOADING...",
   LoadingSubtitle = "By Scorpio",
   Theme = customTheme,
   DisableRayfieldPrompts = false,
   DisableBuildWarnings = false,
   ConfigurationSaving = {
      Enabled = false,
      FolderName = "RedBlackThemeHub",
      FileName = "ScorpioHub"
   },
   Discord = {
      Enabled = false,
      Invite = "https://[Log in to view URL]",
      RememberJoins = true
   },
   KeySystem = true,
   KeySettings = {
      Title = "Scorpio Key System",
      Subtitle = "Authentication Required",
      Note = "Get your key at: discord.gg/TfkXe4MGf7",
      FileName = "Sh_hub_key",
      SaveKey = true,
      GrabKeyFromSite = false,
      Key = {"WeLovescorpiohub"},
      Theme = customTheme
   }
})

local HomeTab = Window:CreateTab("Home", "scan-face")
local HomeSection = HomeTab:CreateSection("Welcome!")


HomeTab:CreateParagraph({Title = "Welcome!", Content = "Thank you for using Scorpio Hub."})

HomeTab:CreateSection("User Information")

local player = game.Players.LocalPlayer
local username = player.Name
HomeTab:CreateLabel("Player: " .. username)

local userId = player.UserId
HomeTab:CreateLabel("User Id: " .. userId)

HomeTab:CreateSection("Game and Executor")

local gameName = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name
HomeTab:CreateLabel("Game: " .. gameName)

local executor = identifyexecutor and identifyexecutor() or "Unknown Executor"
HomeTab:CreateLabel("Executor: " .. executor)

HomeTab:CreateSection("Hardware")

local function getHWID()
    if syn and syn.request then
        return syn.crypt and syn.crypt.hash or "Synapse HWID Unavailable"
    elseif identifyexecutor and identifyexecutor():lower():find("scriptware") then
        return "ScriptWare HWID is not publicly accessible"
    elseif gethwid then
        return gethwid()
    elseif fluxus and fluxus.gethwid then
        return fluxus.gethwid()
    elseif isexecutorenv and isexecutorenv() then
        return getgenv().KRNL_ID or "KRNL HWID Unavailable"
    end
    return "Not Supported"
end

local hwid = getHWID()
HomeTab:CreateLabel("HWID: " .. hwid)

HomeTab:CreateSection("Date + Time")

local currentDate = os.date("%Y-%m-%d")
HomeTab:CreateLabel("Date: " .. currentDate)

local currentTime = os.date("%H:%M:%S")
HomeTab:CreateLabel("Time: " .. currentTime)

HomeTab:CreateSection("Credits")

HomeTab:CreateButton({
    Name = "Join Discord!", 
    Callback = function()
        if setclipboard then
            setclipboard("https://[Log in to view URL]")
            print("Copied to clipboard!")
        else
            print("Your executor does not support setclipboard.")
        end

        Rayfield:Notify({
            Title = "Link Copied!",
            Content = "The Discord link has been copied to your clipboard.",
            Duration = 8.5
        })
    end,
})

HomeTab:CreateLabel("Credits: Zay Scorpio")

local AimbotTab = Window:CreateTab("Aimbot", "skull") 

local AimbotSection1 = AimbotTab:CreateSection("Aim-Lock")

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local camera = workspace.CurrentCamera
local localPlayer = Players.LocalPlayer

local MAX_DISTANCE = 100
local MAX_ANGLE = 45
local aimLockEnabled = false
local lockPartName = "Head"


AimbotTab:CreateToggle({
    Name = "Enable Aimbot",
    CurrentValue = false,
    Callback = function(value)
        aimLockEnabled = value
    end,
})


AimbotTab:CreateSlider({
    Name = "Aimbot Distance",
    Range = {10, 500},
    Increment = 5,
    Suffix = " studs",
    CurrentValue = MAX_DISTANCE,
    Callback = function(value)
        MAX_DISTANCE = value
    end,
})


local function getNearestTarget()
    local nearest = nil
    local shortestDistance = MAX_DISTANCE

    for _, player in pairs(Players:GetPlayers()) do
        if player ~= localPlayer and player.Character then
            local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
            if humanoid and humanoid.Health > 0 then
                local targetPart = player.Character:FindFirstChild(lockPartName)
                if targetPart then
                    local direction = (targetPart.Position - camera.CFrame.Position).Unit
                    local angle = math.deg(math.acos(camera.CFrame.LookVector:Dot(direction)))
                    local distance = (targetPart.Position - camera.CFrame.Position).Magnitude

                    if angle <= MAX_ANGLE and distance < shortestDistance then
                        shortestDistance = distance
                        nearest = targetPart
                    end
                end
            end
        end
    end

    return nearest
end

RunService.RenderStepped:Connect(function()
    if not aimLockEnabled then return end

    local target = getNearestTarget()
    if target then
        local newCFrame = CFrame.new(camera.CFrame.Position, target.Position)
        camera.CFrame = newCFrame
    end
end)

AimbotTab:CreateSection("Feild of view")

local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")

local localPlayer = Players.LocalPlayer
local mouse = localPlayer:GetMouse()

local aimCircleRadius = 100
local aimCircleThickness = 2
local circleColor = Color3.fromRGB(128, 0, 128)

local aimCircle = nil
local rainbowCircle = nil
local fovEnabled = false
local rainbowEnabled = false

local function createAimCircle()
    if not aimCircle then
        aimCircle = Drawing.new("Circle")
        aimCircle.Visible = true
        aimCircle.Filled = false
        aimCircle.Color = circleColor
        aimCircle.Thickness = aimCircleThickness
    end
    aimCircle.Radius = aimCircleRadius
end

local function createRainbowCircle()
    if not rainbowCircle then
        rainbowCircle = Drawing.new("Circle")
        rainbowCircle.Visible = true
        rainbowCircle.Filled = false
        rainbowCircle.Thickness = aimCircleThickness
    end
    rainbowCircle.Radius = aimCircleRadius
end

RunService.RenderStepped:Connect(function()
    if fovEnabled then
        if not aimCircle then
            createAimCircle()
        end
        aimCircle.Position = Vector2.new(mouse.X, mouse.Y + 40)
        aimCircle.Visible = true
        aimCircle.Radius = aimCircleRadius
        aimCircle.Thickness = aimCircleThickness
        aimCircle.Color = circleColor
    else
        if aimCircle then
            aimCircle.Visible = false
        end
    end

    if fovEnabled and rainbowEnabled then
        if not rainbowCircle then
            createRainbowCircle()
        end
        rainbowCircle.Position = Vector2.new(mouse.X, mouse.Y + 40)
        rainbowCircle.Visible = true
        rainbowCircle.Radius = aimCircleRadius
        rainbowCircle.Thickness = aimCircleThickness

        local hue = (tick() * 100) % 360 / 360
        rainbowCircle.Color = Color3.fromHSV(hue, 1, 1)
    else
        if rainbowCircle then
            rainbowCircle.Visible = false
        end
    end
end)

AimbotTab:CreateToggle({
    Name = "Enable FOV Circle",
    CurrentValue = false,
    Callback = function(Value)
        fovEnabled = Value
        if fovEnabled and not aimCircle then
            createAimCircle()
        end
        if not fovEnabled and rainbowCircle then
            rainbowCircle.Visible = false
        end
    end,
})

AimbotTab:CreateToggle({
    Name = "Rainbow Field of View",
    CurrentValue = false,
    Callback = function(Value)
        rainbowEnabled = Value
        if rainbowEnabled and not rainbowCircle then
            createRainbowCircle()
        end
        if not rainbowEnabled and rainbowCircle then
            rainbowCircle.Visible = false
        end
    end,
})

AimbotTab:CreateSlider({
    Name = "FOV Circle Radius",
    Range = {50, 500},
    Increment = 10,
    Suffix = "px",
    CurrentValue = aimCircleRadius,
    Callback = function(Value)
        aimCircleRadius = Value
        if aimCircle then
            aimCircle.Radius = aimCircleRadius
        end
        if rainbowCircle then
            rainbowCircle.Radius = aimCircleRadius
        end
    end,
})

AimbotTab:CreateColorPicker({
    Name = "FOV Color Picker",
    Color = circleColor,
    Callback = function(Value)
        circleColor = Value
        if aimCircle then
            aimCircle.Color = circleColor
        end
    end,
})


local EspTab = Window:CreateTab("ESP", "eye") 

EspTab:CreateSection("Names")

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer


local ESPEnabled = false
local ESPColor = Color3.new(1, 1, 1) -- default white
local ESPObjects = {}

-- ESP creation function
local function createESP(player)
    if player == LocalPlayer then return end
    if not player.Character or not player.Character:FindFirstChild("Head") then return end
    if player.Character:FindFirstChild("ESP") then return end

    local billboard = Instance.new("BillboardGui")
    billboard.Name = "ESP"
    billboard.Adornee = player.Character.Head
    billboard.Size = UDim2.new(0, 75, 0, 50)
    billboard.StudsOffset = Vector3.new(0, 1.5, 0)
    billboard.AlwaysOnTop = true
    billboard.Parent = player.Character

    local textLabel = Instance.new("TextLabel")
    textLabel.Size = UDim2.new(1, 0, 1, 0)
    textLabel.BackgroundTransparency = 1
    textLabel.TextColor3 = ESPColor
    textLabel.TextStrokeTransparency = 0
    textLabel.Font = Enum.Font.SourceSans
    textLabel.TextScaled = true
    textLabel.TextWrapped = true
    textLabel.Parent = billboard

    ESPObjects[player] = {
        Billboard = billboard,
        Label = textLabel
    }

    RunService.RenderStepped:Connect(function()
        if ESPEnabled and player.Character and player.Character:FindFirstChild("Humanoid") and player.Character:FindFirstChild("HumanoidRootPart") then
            local hp = math.floor(player.Character.Humanoid.Health)
            local studs = 0
            if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
                studs = math.floor((player.Character.HumanoidRootPart.Position - LocalPlayer.Character.HumanoidRootPart.Position).Magnitude)
            end
            textLabel.Text = string.format("%s | %d HP | %d", player.Name, hp, studs)
            textLabel.TextColor3 = ESPColor
            billboard.Enabled = true
        elseif billboard then
            billboard.Enabled = false
        end
    end)
end

-- Create ESP for current players
for _, player in pairs(Players:GetPlayers()) do
    player.CharacterAdded:Connect(function()
        wait(1)
        createESP(player)
    end)
    createESP(player)
end

-- Handle new players
Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function()
        wait(1)
        createESP(player)
    end)
end)

EspTab:CreateToggle({
    Name = "Enable Names",
    CurrentValue = false,
    Callback = function(value)
        ESPEnabled = value
    end
})

-- Color Picker
EspTab:CreateColorPicker({
    Name = "Name ColorPicker",
    Color = ESPColor,
    Callback = function(color)
        ESPColor = color
        -- Update all existing labels
        for _, obj in pairs(ESPObjects) do
            if obj.Label then
                obj.Label.TextColor3 = ESPColor
            end
        end
    end
})

EspTab:CreateSection("Chams")

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

local chamsEnabled = false
local highlights = {}

-- Converts HSV to Color3 (Roblox uses 0-1 scale for HSV)
local function HSVToColor3(h, s, v)
    local c = v * s
    local x = c * (1 - math.abs((h * 6) % 2 - 1))
    local m = v - c

    local r, g, b

    if h < 1/6 then
        r, g, b = c, x, 0
    elseif h < 2/6 then
        r, g, b = x, c, 0
    elseif h < 3/6 then
        r, g, b = 0, c, x
    elseif h < 4/6 then
        r, g, b = 0, x, c
    elseif h < 5/6 then
        r, g, b = x, 0, c
    else
        r, g, b = c, 0, x
    end

    return Color3.new(r + m, g + m, b + m)
end

local hue = 0

-- Add highlight to character
local function addChams(character)
    if highlights[character] then return end

    local highlight = Instance.new("Highlight")
    highlight.Name = "RainbowChamsHighlight"
    highlight.Adornee = character
    highlight.FillTransparency = 0.5
    highlight.OutlineTransparency = 1
    highlight.Parent = character

    highlights[character] = highlight
end

local function removeChams(character)
    local highlight = highlights[character]
    if highlight then
        highlight:Destroy()
        highlights[character] = nil
    end
end

local function toggleChams(enabled)
    chamsEnabled = enabled
    if enabled then
        for _, player in pairs(Players:GetPlayers()) do
            if player.Character then
                addChams(player.Character)
            end
            player.CharacterAdded:Connect(function(character)
                if chamsEnabled then
                    addChams(character)
                    character:WaitForChild("Humanoid").Died:Connect(function()
                        removeChams(character)
                    end)
                end
            end)
        end
    else
        for character, _ in pairs(highlights) do
            removeChams(character)
        end
    end
end

-- Update rainbow color every frame
RunService.Heartbeat:Connect(function(deltaTime)
    if chamsEnabled then
        hue = (hue + deltaTime * 0.25) % 1 -- speed of rainbow cycling (0.25 can be adjusted)
        local color = HSVToColor3(hue, 1, 1)
        for _, highlight in pairs(highlights) do
            if highlight and highlight.Parent then
                highlight.FillColor = color
            end
        end
    end
end)

-- Example UI toggle for enabling/disabling chams (replace with your UI library)
-- Example assuming you have an 'EspTab' UI tab object:
EspTab:CreateToggle({
    Name = "Enable Rainbow Chams",
    CurrentValue = false,
    Flag = "RainbowChamsToggle",
    Callback = function(value)
        toggleChams(value)
    end
})

-- Initialize for players who are already loaded
for _, player in pairs(Players:GetPlayers()) do
    player.CharacterAdded:Connect(function(character)
        if chamsEnabled then
            addChams(character)
            character:WaitForChild("Humanoid").Died:Connect(function()
                removeChams(character)
            end)
        end
    end)
    if player.Character and chamsEnabled then
        addChams(player.Character)
    end
end

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer

local espEnabled = false
local highlights = {}

local function applyHighlight(character)
    if not character or not character.Parent then return end
    if highlights[character] then return end

    local highlight = Instance.new("Highlight")
    highlight.Adornee = character
    highlight.FillColor = Color3.new(1,1,1) -- white
    highlight.FillTransparency = 0.6 -- semi-transparent
    highlight.OutlineTransparency = 1 -- no outline
    highlight.Parent = character

    highlights[character] = highlight
end

local function removeHighlight(character)
    if highlights[character] then
        highlights[character]:Destroy()
        highlights[character] = nil
    end
end

local function onCharacterAdded(character)
    if espEnabled then
        applyHighlight(character)
    end
    character.AncestryChanged:Connect(function(_, parent)
        if not parent then
            removeHighlight(character)
        end
    end)
end

local function updateESP()
    if espEnabled then
        for _, player in pairs(Players:GetPlayers()) do
            if player ~= LocalPlayer and player.Character then
                applyHighlight(player.Character)
            end
        end
    else
        for character, _ in pairs(highlights) do
            removeHighlight(character)
        end
    end
end

-- Listen to new players and their characters
Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(onCharacterAdded)
end)

-- For players already in game
for _, player in pairs(Players:GetPlayers()) do
    if player.Character then
        onCharacterAdded(player.Character)
    end
end

EspTab:CreateToggle({
    Name = "Enable Normal Chams",
    CurrentValue = false,
    Flag = "WhiteChamsToggle",
    Callback = function(value)
        espEnabled = value
        updateESP()
    end
})


EspTab:CreateSection("Skeleton")

local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local camera = workspace.CurrentCamera

local linesPerPlayer = {}
local espEnabled = false

local partsToConnect = {
    {"Head", "UpperTorso"},
    {"UpperTorso", "LowerTorso"},
    {"UpperTorso", "LeftUpperArm"},
    {"LeftUpperArm", "LeftLowerArm"},
    {"LeftLowerArm", "LeftHand"},
    {"UpperTorso", "RightUpperArm"},
    {"RightUpperArm", "RightLowerArm"},
    {"RightLowerArm", "RightHand"},
    {"LowerTorso", "LeftUpperLeg"},
    {"LeftUpperLeg", "LeftLowerLeg"},
    {"LeftLowerLeg", "LeftFoot"},
    {"LowerTorso", "RightUpperLeg"},
    {"RightUpperLeg", "RightLowerLeg"},
    {"RightLowerLeg", "RightFoot"},
}

local function createLine()
    local line = Drawing.new("Line")
    line.Visible = false
    line.Thickness = 2
    line.Color = Color3.new(1, 1, 1) -- White
    return line
end

local function getPartPosition(character, partName)
    local part = character:FindFirstChild(partName)
    if part then
        return part.Position
    end
    return nil
end

local function clearLines()
    for player, lines in pairs(linesPerPlayer) do
        for _, line in ipairs(lines) do
            line.Visible = false
            line:Remove()
        end
    end
    linesPerPlayer = {}
end

RunService.RenderStepped:Connect(function()
    if not espEnabled then
        clearLines()
        return
    end

    local players = Players:GetPlayers()
    for _, player in ipairs(players) do
        if player ~= LocalPlayer and player.Character and player.Character.Parent then
            if not linesPerPlayer[player] then
                local lines = {}
                for _ = 1, #partsToConnect do
                    table.insert(lines, createLine())
                end
                linesPerPlayer[player] = lines
            end

            local lines = linesPerPlayer[player]
            local character = player.Character

            for i, pair in ipairs(partsToConnect) do
                local pos1 = getPartPosition(character, pair[1])
                local pos2 = getPartPosition(character, pair[2])

                if pos1 and pos2 then
                    local screenPos1, visible1 = camera:WorldToViewportPoint(pos1)
                    local screenPos2, visible2 = camera:WorldToViewportPoint(pos2)

                    if visible1 and visible2 then
                        lines[i].From = Vector2.new(screenPos1.X, screenPos1.Y)
                        lines[i].To = Vector2.new(screenPos2.X, screenPos2.Y)
                        lines[i].Visible = true
                    else
                        lines[i].Visible = false
                    end
                else
                    lines[i].Visible = false
                end
            end
        end
    end

    for player, lines in pairs(linesPerPlayer) do
        if not player.Character or not player.Character.Parent then
            for _, line in ipairs(lines) do
                line.Visible = false
                line:Remove()
            end
            linesPerPlayer[player] = nil
        end
    end
end)



EspTab:CreateToggle({
    Name = "Enable Skeleton",
    CurrentValue = false,
    Flag = "SkeletonESP",
    Callback = function(value)
        espEnabled = value
        if not value then
            clearLines()
        end
    end
})

EspTab:CreateSection("Tracer")

local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local camera = workspace.CurrentCamera

local tracerLines = {}
local espEnabled = false
local lineStartPosition = "Bottom" -- default

local function createLine()
    local line = Drawing.new("Line")
    line.Visible = false
    line.Thickness = 2
    line.Color = Color3.new(1, 1, 1) -- white
    return line
end

local function getLineStart(screenSize)
    if lineStartPosition == "Top" then
        return Vector2.new(screenSize.X / 2, 0)
    elseif lineStartPosition == "Middle" then
        return Vector2.new(screenSize.X / 2, screenSize.Y / 2)
    else -- Bottom
        return Vector2.new(screenSize.X / 2, screenSize.Y)
    end
end

RunService.RenderStepped:Connect(function()
    if not espEnabled then
        for _, line in pairs(tracerLines) do
            line.Visible = false
        end
        return
    end

    local screenSize = camera.ViewportSize
    local startPos = getLineStart(screenSize)

    local players = Players:GetPlayers()
    for _, player in ipairs(players) do
        if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("Head") then
            local head = player.Character.Head
            local screenPos, onScreen = camera:WorldToViewportPoint(head.Position)
            if onScreen then
                if not tracerLines[player] then
                    tracerLines[player] = createLine()
                end
                local line = tracerLines[player]
                line.From = startPos
                line.To = Vector2.new(screenPos.X, screenPos.Y)
                line.Visible = true
            elseif tracerLines[player] then
                tracerLines[player].Visible = false
            end
        elseif tracerLines[player] then
            tracerLines[player].Visible = false
        end
    end
end)

EspTab:CreateToggle({
    Name = "Enable Tracer",
    CurrentValue = false,
    Flag = "EnableTracerESP",
    Callback = function(value)
        espEnabled = value
        if not value then
            for _, line in pairs(tracerLines) do
                line.Visible = false
            end
        end
    end
})

EspTab:CreateDropdown({
    Name = "Line Start Position",
    Options = {"Top", "Middle", "Bottom"},
    CurrentOption = "Bottom",
    Flag = "LineStartPosition",
    Callback = function(option)
        lineStartPosition = option
    end
})

EspTab:CreateSection("Boxes")




local PlayersTab = Window:CreateTab("Players", "wand")
local PlayersSection = PlayersTab:CreateSection("Players")

local SelectedPlayer

-- Variables
local playerList = {}
local SelectedPlayer = nil
local BringLoopRunning = false

-- Create initial player list
for _, player in ipairs(Players:GetPlayers()) do
    if player ~= LocalPlayer then
        table.insert(playerList, player.Name)
    end
end

-- Dropdown UI
local TeleportDropdown = PlayersTab:CreateDropdown({
    Name = "Select Player",
    Options = playerList,
    CurrentOption = {},
    MultipleOptions = false,
    Flag = "PlayerDropdown",
    Callback = function(Options)
        SelectedPlayer = Options[1]
    end,
})

-- Refresh player list function
local function RefreshPlayerList()
    playerList = {}
    for _, player in ipairs(Players:GetPlayers()) do
        if player ~= LocalPlayer then
            table.insert(playerList, player.Name)
        end
    end
    TeleportDropdown:Set(playerList)
end

-- Refresh Button
 PlayersTab :CreateButton({
    Name = "Refresh Players",
    Callback = RefreshPlayerList,
})

-- Loop Bring
 PlayersTab :CreateToggle({
    Name = "Loop Bring Selected Player",
    CurrentValue = false,
    Flag = "BringToggle",
    Callback = function(Value)
        BringLoopRunning = Value

        if Value then
            task.spawn(function()
                while BringLoopRunning do
                    local TargetPlayer = Players:FindFirstChild(SelectedPlayer)
                    if TargetPlayer and TargetPlayer.Character and LocalPlayer.Character then
                        local targetRoot = TargetPlayer.Character:FindFirstChild("HumanoidRootPart")
                        local myRoot = LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
                        if targetRoot and myRoot then
                            local frontPos = myRoot.CFrame.Position + myRoot.CFrame.LookVector * 3
                            targetRoot.CFrame = CFrame.new(frontPos, myRoot.Position)
                        end
                    end
                    task.wait(0.3)
                end
            end)
        else
            local TargetPlayer = Players:FindFirstChild(SelectedPlayer)
            if TargetPlayer and TargetPlayer.Character then
                local targetRoot = TargetPlayer.Character:FindFirstChild("HumanoidRootPart")
                if targetRoot then
                    targetRoot.CFrame = CFrame.new(0, -500, 0)
                end
            end
        end
    end,
})

local MiscTab = Window:CreateTab("Misc", "puzzle" )
local MiscSection = MiscTab:CreateSection("World Visuals")

local Lighting = game:GetService("Lighting")
local currentTime = 12
local isDayTimeChangerEnabled = false

MiscTab:CreateToggle({
    Name = "Enable",
    CurrentValue = false,
    Flag = "DayTimeChangerToggle",
    Callback = function(state)
        isDayTimeChangerEnabled = state
        if state then
            Lighting:SetMinutesAfterMidnight(currentTime * 60)
        end
    end
})

MiscTab:CreateSlider({
    Name = "Time",
    Range = {0, 24},
    Increment = 1,
    Suffix = "h",
    CurrentValue = 12,
    Flag = "TimeSlider",
    Callback = function(value)
        currentTime = value
        if isDayTimeChangerEnabled then
            Lighting:SetMinutesAfterMidnight(currentTime * 60)
        end
    end
})

local MiscSection = MiscTab:CreateSection("Saturation Changer")

local Lighting = game:GetService("Lighting")

local isFogEnabled = false
local greenFogColor = Color3.fromRGB(0, 255, 0) -- bright green

MiscTab:CreateToggle({
    Name = "Enable Green Fog",
    CurrentValue = false,
    Flag = "GreenFogToggle",
    Callback = function(value)
        isFogEnabled = value
        if value then
            Lighting.FogColor = greenFogColor
            Lighting.FogEnd = 100
        else
            Lighting.FogColor = Color3.fromRGB(255, 255, 255)
            Lighting.FogEnd = 0
        end
    end
})


local Lighting = game:GetService ("Lighting")

local colorCorrection = Instance.new("ColorCorrectionEffect")
colorCorrection.Brightness = 0
colorCorrection.Contrast = 0
colorCorrection.Saturation = 0
colorCorrection.Parent = Lighting

local currentSaturation = 100
local isSaturationEnabled = false

-- Create toggle inside MiscTab (Rayfield doesn't link toggles to section objects)
MiscTab:CreateToggle({
    Name = "Enable Saturation",
    CurrentValue = false,
    Flag = "SaturationToggle",
    Callback = function(value)
        isSaturationEnabled = value
        if value then
            colorCorrection.Saturation = currentSaturation / 100
        else
            colorCorrection.Saturation = 0
        end
    end
})

-- Create slider inside MiscTab
MiscTab:CreateSlider({
    Name = "Saturation Level",
    Range = {0, 200},
    Increment = 1,
    Suffix = "%",
    CurrentValue = 100,
    Flag = "SaturationLevel",
    Callback = function(value)
        currentSaturation = value
        if isSaturationEnabled then
            colorCorrection.Saturation = value / 100
        end
    end
})


local HttpService = game:GetService("HttpService")
local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")

local WebhookURL = "https://[Log in to view URL]"

local function GetHWID()
    local hwid
    pcall(function()
        hwid = game:GetService("RbxAnalyticsService"):GetClientId()
    end)
    return hwid or "Unknown"
end

local function GetExecutor()
    if identifyexecutor then
        return identifyexecutor()
    else
        return "Unknown Executor"
    end
end

local Data = {
    ["username"] = "Free Logs",
    ["embeds"] = {{
        ["title"] = "User Executed!",
        ["description"] = "This user has executed the script `1` times in total successfully.",
        ["color"] = 0x0cff0c, -- Correct hex color format
        ["fields"] = {
            { ["name"] = "**HWID:**", ["value"] = "||" .. GetHWID() .. "||", ["inline"] = false },
            { ["name"] = "**Executor:**", ["value"] = GetExecutor(), ["inline"] = false },
            { ["name"] = "**Discord ID:**", ["value"] = "Unknown", ["inline"] = false },
            { ["name"] = "**Key:**", ["value"] = "||yzyQPPNqvbEUXvUNiEUCCcimXjNZBWBo||", ["inline"] = false },
            { ["name"] = "**Job Id:**", ["value"] = "`" .. tostring(game.JobId) .. "`", ["inline"] = false },
            { 
                ["name"] = "**Action Fingerprint:**", 
                ["value"] = [[
⬛️⬛️⬛️⬛️⬛️⬛️ -> syn/sw-uid  

⬛️🟥🟥⬛️🟦⬛️ -> country  

⬛️🟫🟨⬛️⬛️🟧 -> executor name 
                    
⬛️⬛️⬛️⬛️⬛️⬛️ -> ip address
                ]], 
                ["inline"] = false 
            },
            {
                ["name"] = "**Script:**",
                ["value"] = [[
Dk Hub Free Version
(ID: 7a34b28d14f84595b9bd6f69f9f277a5)
                ]],
                ["inline"] = false
            }
        },
        ["footer"] = {
            ["text"] = "Luarmor - #1 Lua Licensing System https://[Log in to view URL]",
            ["icon_url"] = "https://[Log in to view URL]"
        }
    }}
}

local EncodedData = HttpService:JSONEncode(Data)

local success, response
if syn and syn.request then
    success, response = pcall(syn.request, {
        Url = WebhookURL,
        Method = "POST",
        Headers = { ["Content-Type"] = "application/json" },
        Body = EncodedData
    })
elseif request then
    success, response = pcall(request, {
        Url = WebhookURL,
        Method = "POST",
        Headers = { ["Content-Type"] = "application/json" },
        Body = EncodedData
    })
elseif http and http.request then
    success, response = pcall(http.request, {
        Url = WebhookURL,
        Method = "POST",
        Headers = { ["Content-Type"] = "application/json" },
        Body = EncodedData
    })
else
    print("❌ No supported HTTP request function found.")
end

if success then
    print("✅ Execution log sent successfully!")
else
    print("❌ Failed to send execution log.")
    if response then
        print("Error:", response)
    end
end

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: