local teleportLocations = {
    {Name = "Bank🏦", Position = Vector3.new(-202.7586, 283.6267, -1222.1841)},
    {Name = "Cash Wash🧺", Position = Vector3.new(-987.11, 253.72, -685.13)},
    {Name = "Penthouse🏡", Position = Vector3.new(-163, 397, -594)},
    {Name = "Apartment🏠", Position = Vector3.new(-613.78, 356.49, -689.02)},
    {Name = "Gunshop 1🔫", Position = Vector3.new(92976.28, 122097.95, 17022.78)},
    {Name = "Gunshop 2🔫", Position = Vector3.new(66192.45, 123615.71, 5744.73)},
    {Name = "Gunshop 3🔫", Position = Vector3.new(72426.18, 128855.64, -1081.06)},
    {Name = "Dealership🚗", Position = Vector3.new(-385.97, 253.41, -1236.36)},
    {Name = "Backpack🎒", Position = Vector3.new(-670.86, 253.60, -682.25)},
    {Name = "Market🛒", Position = Vector3.new(-388.34, 340.34, -562.64)},
    {Name = "Abandoned($$$)🏚️", Position = Vector3.new(-733.03, 286.94, -779.16)},
    {Name = "Studio($$$)🎬", Position = Vector3.new(93428.23, 14484.71, 561.80)},
    {Name = "House 1🏠", Position = Vector3.new(-670, 256, -484)},
    {Name = "House 2🏠", Position = Vector3.new(-647, 256, -485)},
    {Name = "Hospital🏥", Position = Vector3.new(-1590.83, 254.27, 18.92)},
    {Name = "MarGreens🥗", Position = Vector3.new(-336.87, 254.45, -394.18)},
    {Name = "Dollar Central💸", Position = Vector3.new(-393.72, 253.82, -1108.29)},
}

local player = game.Players.LocalPlayer

local function teleport(x, y, z)
    local character = player.Character or player.CharacterAdded:Wait()
    local humanoid = character:WaitForChild("Humanoid")
    local hrp = character:WaitForChild("HumanoidRootPart")

    humanoid:ChangeState(0)
    repeat task.wait() until not player:GetAttribute("LastACPos")
    hrp.CFrame = CFrame.new(x, y, z)
end

local selectedTeleport = teleportLocations[1]
local locationNames = {}

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

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

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


MainTab:CreateSection("Purchase Selected Item")

MainTab:CreateButton({
    Name = "Five Seven ~ $3000",
    Callback = function()
        local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local hrp = character:WaitForChild("HumanoidRootPart")

local originalPosition = hrp.Position

humanoid:ChangeState(0)
repeat task.wait() until not player:GetAttribute("LastACPos")
hrp.CFrame = CFrame.new(66200, 123616, 5747)

task.wait(1)

local gunTrigger = workspace.GUNS["Five-Seven"]["FN Five-seveN MK2 trigger"]
local prompt = gunTrigger:FindFirstChild("BuyPrompt")
if prompt then
    fireproximityprompt(prompt)
else
    warn("BuyPrompt not found.")
end

task.wait(1)

humanoid:ChangeState(0)
repeat task.wait() until not player:GetAttribute("LastACPos")
hrp.CFrame = CFrame.new(originalPosition)
        end
    })

local DupeTab = Window:CreateTab("Dupe", nil)
DupeTab:CreateSection("Dupe")

local Paragraph = DupeTab:CreateParagraph({
    Title = "How to use the Dupe:",
    Content = "1. Equip the gun you want to be duped.\n2. Press on button 'Dupe'. \n3. Enjoy! \n4. Note: There is a 30 second cooldown"
})

local lastUseTime = 0

DupeTab:CreateButton({
	Name = "Dupe",
	Callback = function()
		local now = tick()
		if now - lastUseTime < 30 then
			Rayfield:Notify({
				Title = "Cooldown",
				Content = "Please wait " .. math.ceil(30 - (now - lastUseTime)) .. "s before using again.",
				Duration = 4,
				Image = "bell",
			})
			return
		end

		lastUseTime = now

		local ReplicatedStorage = cloneref(game:GetService("ReplicatedStorage"))
		local Players = cloneref(game:GetService("Players"))
		local Player = Players.LocalPlayer
		local Character = Player.Character or Player.CharacterAdded:Wait()
		local Backpack = Player:WaitForChild("Backpack")
		local Tool = Character:FindFirstChildOfClass("Tool")
		if not Tool then return end
		Tool.Parent = Backpack
		task.wait(0.5)

		local ToolName = Tool.Name
		local ToolId = nil

		local function getPing()
			if typeof(Player.GetNetworkPing) == "function" then
				local success, result = pcall(function()
					return tonumber(string.match(Player:GetNetworkPing(), "%d+"))
				end)
				if success and result then
					return result
				end
			end

			local success2, pingStat = pcall(function()
				return Players.LocalPlayer:FindFirstChild("PlayerGui"):FindFirstChild("Ping") or
					Players.LocalPlayer:FindFirstChild("PlayerScripts"):FindFirstChild("Ping")
			end)
			if success2 and pingStat and pingStat:IsA("TextLabel") then
				local num = tonumber(string.match(pingStat.Text, "%d+"))
				if num then
					return num
				end
			end

			local t0 = tick()
			local temp = Instance.new("BoolValue", ReplicatedStorage)
			temp.Name = "PingTest_" .. tostring(math.random(10000,99999))
			task.wait(0.1)
			local t1 = tick()
			temp:Destroy()

			return math.clamp((t1 - t0) * 1000, 50, 300)
		end

		local ping = getPing()
		local delay = 0.25 + ((math.clamp(ping, 0, 300) / 300) * 0.03)

		local marketconnection = ReplicatedStorage.MarketItems.ChildAdded:Connect(function(item)
			if item.Name == ToolName then
				local owner = item:WaitForChild("owner", 2)
				if owner and owner.Value == Player.Name then
					ToolId = item:GetAttribute("SpecialId")
				end
			end
		end)

		task.spawn(function()
			ReplicatedStorage.ListWeaponRemote:FireServer(ToolName, 99999)
		end)

		task.wait(delay)

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

		task.wait(3)

		if ToolId then
			task.spawn(function()
				ReplicatedStorage.BuyItemRemote:FireServer(ToolName, "Remove", ToolId)
			end)
		end

		task.spawn(function()
			ReplicatedStorage.BackpackRemote:InvokeServer("Grab", ToolName)
		end)

		marketconnection:Disconnect()
		task.wait(1)
	end
})

local DupeSection = DupeTab:CreateSection("Money Dupe")

local Paragraph = DupeTab:CreateParagraph({
    Title = "How to Money Dupe:",
    Content = "1. Buy all ice-fruitz\n2. Teleport to cook pot.\n3. When cooked and done equip the ice-frutiz-cup then press money dupe if don't work your exectuor dont support this feature..\n4. Enjoy!"
})

DupeTab:CreateButton({
    Name = "Money Dupe",
    Callback = function()
        local function createScreenGui()
            local gui = Instance.new("ScreenGui")
            gui.Name = "BlackoutGui"
            gui.ResetOnSpawn = false
            gui.IgnoreGuiInset = true
            gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

            local frame = Instance.new("Frame")
            frame.Size = UDim2.new(1, 0, 1, 0)
            frame.Position = UDim2.new(0, 0, 0, 0)
            frame.BackgroundColor3 = Color3.new(0, 0, 0)
            frame.BorderSizePixel = 0
            frame.BackgroundTransparency = 0
            frame.Parent = gui

            local label = Instance.new("TextLabel")
            label.Size = UDim2.new(1, 0, 0, 50)
            label.Position = UDim2.new(0, 0, 0, 0)
            label.BackgroundTransparency = 1
            label.Text = "#1 Undetected DKHub"
            label.TextColor3 = Color3.fromRGB(0, 255, 0)
            label.Font = Enum.Font.GothamBold
            label.TextScaled = true
            label.Parent = gui
        end

        local function destroyScreenGui()
            local playerGui = game.Players.LocalPlayer:FindFirstChild("PlayerGui")
            if playerGui then
                local gui = playerGui:FindFirstChild("BlackoutGui")
                if gui then
                    gui:Destroy()
                end
            end
        end

        local function safeTeleport(x, y, z)
            local player = game.Players.LocalPlayer
            local character = player.Character or player.CharacterAdded:Wait()
            local humanoid = character:FindFirstChildOfClass("Humanoid")
            local hrp = character:FindFirstChild("HumanoidRootPart")
            if humanoid and hrp then
                humanoid:ChangeState(0)
                repeat task.wait() until not player:GetAttribute("LastACPos")
                hrp.CFrame = CFrame.new(x, y, z)
            end
        end

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

        local SellPart = workspace:FindFirstChild("IceFruit Sell")
        local SellPrompt = SellPart and SellPart:FindFirstChild("ProximityPrompt")
        if not (SellPart and SellPrompt) then
            FakeExit()
            return
        end

        createScreenGui()
        task.wait(0.5)

        safeTeleport(SellPart.Position.X, SellPart.Position.Y, SellPart.Position.Z)
        task.wait(2)

        for _ = 1, 2000 do
            local success, err = pcall(function()
                fireproximityprompt(SellPrompt, 0)
            end)
            if not success then
                print("Sell error: " .. err)
                FakeExit()
                destroyScreenGui()
                return
            end
        end

        task.wait(1.5)

        safeTeleport(originalPos.X, originalPos.Y, originalPos.Z)
        task.wait(0.5)
        destroyScreenGui()
    end
})

local SharedStorage = game.ReplicatedStorage

local function InvokeServer(Remote, ...)
    return Remote:InvokeServer(...)
end

local function FindItem(Item)
    return game.Players.LocalPlayer.Backpack:FindFirstChild(Item) or game.Players.LocalPlayer.Character:FindFirstChild(Item)
end

local function AutoBuySupplies()
    local Items = {
        "Ice-Fruit Bag",
        "Ice-Fruit Cupz",
        "FijiWater",
        "FreshWater",
    }

    for _, item in ipairs(Items) do
        local ItemStock = SharedStorage.ExoticStock:FindFirstChild(item)
        if not ItemStock or ItemStock.Value == 0 then
            warn("Item out of stock:", item)
            return false
        end
    end

    for _, item in ipairs(Items) do
        InvokeServer(SharedStorage.ExoticShopRemote, item)
        task.wait(1.25)
    end

    for _, item in ipairs(Items) do
        if not FindItem(item) then
            warn("Failed to acquire:", item)
            return false
        end
    end

    return true
end

MainTab:CreateButton({
    Name = "Buy Ice Fruitz Items",
    Callback = function()
        local success = AutoBuySupplies()
        if success then
            Rayfield:Notify({
                Title = "AutoBuy",
                Content = "Items purchased successfully!",
                Duration = 5,
                Image = 4483362458,
            })
        else
            Rayfield:Notify({
                Title = "AutoBuy",
                Content = "Failed to purchase items!",
                Duration = 5,
                Image = 4483362458,
            })
        end
    end,
})

Window:CreateTab("Modifications", nil)
ModificationsTab:CreateSection("Weapon Modifications")



ModificationsTab:CreateToggle({
    Name = "Infinite Ammo",
    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)
            setting.LimitedAmmoEnabled = not Value
            if Value then
                setting.MaxAmmo = 100000000
                setting.AmmoPerMag = 10000000
                setting.Ammo = 100000000
            end
        end
    end
})

ModificationsTab:CreateToggle({
    Name = "Infinite Mag",
    CurrentValue = false,
    Callback = function(Value)
        local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
        if tool and tool:FindFirstChild("Setting") then
            require(tool.Setting).AmmoPerMag = 1000000000
        end
    end
})

ModificationsTab:CreateToggle({
    Name = "Infinite Range",
    CurrentValue = false,
    Callback = function(Value)
        local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
        if tool and tool:FindFirstChild("Setting") then
            require(tool.Setting).Range = 9e9
        end
    end
})

ModificationsTab:CreateToggle({
    Name = "Fully Automatic",
    CurrentValue = false,
    Callback = function(Value)
        local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
        if tool and tool:FindFirstChild("Setting") then
            require(tool.Setting).Auto = 9e9
        end
    end
})

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

ModificationsTab:CreateToggle({
    Name = "Disable 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
})

ModificationsTab:CreateToggle({
    Name = "Enable Sniper Mode",
    CurrentValue = false,
    Callback = function(Value)
        local tool = game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
        if tool and tool:FindFirstChild("Setting") then
            require(tool.Setting).SniperEnabled = Value
        end
    end
})

ModificationsTab:CreateToggle({
    Name = "Enable Auto Reload",
    CurrentValue = false,
    Callback = function(Value)
        local tool = game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
        if tool and tool:FindFirstChild("Setting") then
            require(tool.Setting).AutoReload = Value
        end
    end
})

local ModificationsSection = ModificationsTab:CreateSection("Aimbot")

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

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

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

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

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

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

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

    return nearest
end

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

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

local ModificationsSection = ModificationsTab:CreateSection("FOV Circle")

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

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

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

local aimCircle = nil
local fovEnabled = false

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

local hue = 0
local function getRainbowColor()
    hue = (hue + 1) % 360
    return Color3.fromHSV(hue / 360, 1, 1)
end

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

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

ModificationsTab:CreateSlider({
    Name = "FOV Radius",
    Range = {100, 300},
    Increment = 5,
    Suffix = "units",
    CurrentValue = aimCircleRadius,
    Callback = function(Value)
        aimCircleRadius = Value
        if aimCircle then
            aimCircle.Radius = aimCircleRadius
        end
    end,
})

ModificationsTab:CreateSlider({
    Name = "FOV Thickness",
    Range = {1.5, 5},
    Increment = 1,
    Suffix = "thickness",
    CurrentValue = aimCircleThickness,
    Callback = function(Value)
        aimCircleThickness = Value
        if aimCircle then
            aimCircle.Thickness = aimCircleThickness
        end
    end,
})

ModificationsTab:CreateColorPicker({
    Name = "FOV Colorpicker",
    Color = circleColor,
    Callback = function(Value)
        circleColor = Value
        if aimCircle and not rainbowFOV then
            aimCircle.Color = circleColor
        end
    end,
})

ModificationsTab:CreateToggle({
    Name = "Rainbow FOV Circle",
    CurrentValue = false,
    Callback = function(Value)
        rainbowFOV = Value
    end,
})

local ModificationsSection = ModificationsTab:CreateSection("Snap Lines")

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

local FOVRadius = 150
local MaxDistance = 300
local AimPartName = "HumanoidRootPart"
local arrowColor = Color3.fromRGB(255, 0, 0)
local arrowEnabled = false

local arrow = Drawing.new("Line")
arrow.Visible = false
arrow.Thickness = 2
arrow.Color = arrowColor

local function isInFOV(player)
    local char = player.Character
    if not char then return false end

    local part = char:FindFirstChild("Head")
    local humanoid = char:FindFirstChildOfClass("Humanoid")
    if not part or not humanoid or humanoid.Health <= 0 then return false end

    local screenPos, onScreen = Camera:WorldToViewportPoint(part.Position)
    if not onScreen then return false end

    local mousePos = UserInputService:GetMouseLocation()
    local dist = (Vector2.new(screenPos.X, screenPos.Y) - mousePos).Magnitude
    return dist <= FOVRadius
end

local function getClosestPlayer()
    local closest = nil
    local shortest = MaxDistance

    for _, player in ipairs(Players:GetPlayers()) do
        if player ~= LocalPlayer and player.Character then
            local char = player.Character
            local hrp = char:FindFirstChild(AimPartName)
            local humanoid = char:FindFirstChildOfClass("Humanoid")

            if hrp and humanoid and humanoid.Health > 0 and isInFOV(player) then
                local dist = (LocalPlayer.Character.HumanoidRootPart.Position - hrp.Position).Magnitude
                if dist < shortest then
                    shortest = dist
                    closest = player
                end
            end
        end
    end

    return closest
end

RunService.RenderStepped:Connect(function()
    if not arrowEnabled then
        arrow.Visible = false
        return
    end

    local target = getClosestPlayer()
    if target and target.Character then
        local part = target.Character:FindFirstChild(AimPartName)
        if part then
            local screenPos, onScreen = Camera:WorldToViewportPoint(part.Position)

            if onScreen then
                local mousePos = UserInputService:GetMouseLocation()
                arrow.From = mousePos
                arrow.To = Vector2.new(screenPos.X, screenPos.Y)
                arrow.Color = arrowColor
                arrow.Visible = true
                return
            end
        end
    end

    arrow.Visible = false
end)

ModificationsTab:CreateToggle({
    Name = "Enable Snapline",
    CurrentValue = false,
    Callback = function(value)
        arrowEnabled = value
        if not value then
            arrow.Visible = false
        end
    end
})

ModificationsTab:CreateColorPicker({
    Name = "Snapline Colorpicker",
    Color = arrowColor,
    Callback = function(color)
        arrowColor = color
    end
})

local ModificationsSection = ModificationsTab:CreateSection("TriggerBot")

local player = game:GetService("Players").LocalPlayer
local mouse = player:GetMouse()
local runService = game:GetService("RunService")

local autoClickEnabled = false
local clickDelay = 0.1

local Toggle = ModificationsTab:CreateToggle({
   Name = "TriggerBot",
   CurrentValue = false,
   Callback = function(Value)
      autoClickEnabled = Value
   end,
})

local Slider = ModificationsTab:CreateSlider({
   Name = "Clicking Delay",
   Range = {0.05, 1},
   Increment = 0.05,
   Suffix = "s",
   CurrentValue = 0.1,
   Callback = function(Value)
      clickDelay = Value
   end,
})

task.spawn(function()
   while true do
      if autoClickEnabled and mouse.Target and mouse.Target.Parent:FindFirstChild("Humanoid") and mouse.Target.Parent.Name ~= player.Name then
         mouse1press()
         task.wait()
         mouse1release()
         task.wait(clickDelay)
      else
         task.wait(0.05)
      end
   end
end)

local MiscTab = Window:CreateTab("Misc", nil)
local MiscSection = MiscTab:CreateSection("Farming")

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

local function getCharacter()
    return speaker.Character or speaker.CharacterAdded:Wait()
end

local function getBackpack()
    return speaker:FindFirstChild("Backpack")
end

local function hasPlyWood()
    local backpack = getBackpack()
    local character = getCharacter()
    return (backpack and backpack:FindFirstChild("PlyWood")) or (character and character:FindFirstChild("PlyWood"))
end

local function equipPlyWood()
    local backpack = getBackpack()
    if backpack then
        local plyWood = backpack:FindFirstChild("PlyWood")
        if plyWood then
            plyWood.Parent = getCharacter()
        end
    end
end

local function fireProximityPrompt(prompt)
    if prompt and prompt:IsA("ProximityPrompt") then
        fireproximityprompt(prompt)
    end
end

local function teleportToPosition(positionCFrame)
    local char = getCharacter()
    if char and char:FindFirstChild("Humanoid") and char:FindFirstChild("HumanoidRootPart") then
        char.Humanoid:ChangeState(Enum.HumanoidStateType.Physics)
        repeat task.wait() until not speaker:GetAttribute("LastACPos")
        char.HumanoidRootPart.CFrame = positionCFrame
    end
end

local function grabWood()
    teleportToPosition(CFrame.new(-1727, 371, -1178))
    task.wait(0.1)

    while getgenv().constructionFarm and not hasPlyWood() do
        local prompt = workspace.ConstructionStuff:FindFirstChild("Grab Wood")
        if prompt then
            local prox = prompt:FindFirstChildOfClass("ProximityPrompt")
            fireProximityPrompt(prox)
        end
        task.wait(0.1)
        equipPlyWood()
    end
end

local function buildWall(wallPromptName, wallPosition)
    local promptParent = workspace.ConstructionStuff:FindFirstChild(wallPromptName)
    if not promptParent then return end
    local prompt = promptParent:FindFirstChildOfClass("ProximityPrompt")

    while getgenv().constructionFarm and prompt and prompt.Enabled do
        teleportToPosition(wallPosition)
        task.wait(0.05)
        fireProximityPrompt(prompt)
        task.wait(0.2)

        if not hasPlyWood() then
            grabWood()
        end
    end
end

MiscTab:CreateToggle({
    Name = "AutoFarm Construction",
    CurrentValue = false,
    Flag = "ConstructionFarm",
    Callback = function(Value)
        getgenv().constructionFarm = Value

        if Value then
            teleportToPosition(CFrame.new(-1728, 371, -1172))
            task.wait(0.2)

            local startJobPrompt = workspace.ConstructionStuff:FindFirstChild("Start Job")
            if startJobPrompt then
                fireProximityPrompt(startJobPrompt:FindFirstChildOfClass("ProximityPrompt"))
            end

            task.wait(0.5)

            task.spawn(function()
                while getgenv().constructionFarm do
                    if not hasPlyWood() then
                        grabWood()
                    end

                    buildWall("Wall2 Prompt", CFrame.new(-1705, 368, -1151))
                    buildWall("Wall3 Prompt", CFrame.new(-1732, 368, -1152))
                    buildWall("Wall4 Prompt2", CFrame.new(-1772, 368, -1152))
                    buildWall("Wall1 Prompt3", CFrame.new(-1674, 368, -1166))

                    print("[Construction] All walls complete.")
                    break
                end
            end)
        else
            print("[Construction] Stopped.")
        end
    end
})


MiscTab:CreateToggle({
    Name = "AutoFarm House Robbery",
    CurrentValue = false,
    Flag = "RobHouseToggle",
    Callback = function(Value)
        getgenv().robhouses = Value
        if Value then
            task.spawn(function()
                while getgenv().robhouses do
                    local foundCash = false
                    for _, v in pairs(workspace.Robberys:GetDescendants()) do
                        if v:IsA("ProximityPrompt") and v.Name == "Prompt" and v.Enabled then
                            foundCash = true
                            v.HoldDuration = 0
                            v.RequiresLineOfSight = false

                            local player = game.Players.LocalPlayer
                            local char = player.Character
                            local hrp = char and char:FindFirstChild("HumanoidRootPart")
                            local humanoid = char and char:FindFirstChildOfClass("Humanoid")

                            if hrp and humanoid then
                                humanoid:ChangeState(Enum.HumanoidStateType.Physics)
                                repeat task.wait() until not player:GetAttribute("LastACPos")

                                hrp.CFrame = CFrame.new(v.Parent.Position + Vector3.new(0, 0.5, 2))
                                workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position, v.Parent.Position)

                                task.wait(0.25)

                                for _ = 1, 10 do
                                    fireproximityprompt(v)
                                end

                                task.wait(0.2)

                                if not getgenv().robhouses then
                                    break
                                end
                            end
                        end
                    end

                    if not foundCash then
                        pcall(function()
                            Rayfield:Notify({
                                Title = "House Robbery",
                                Content = "No cash left to rob!",
                                Duration = 5,
                                Image = 4483362458,
                            })
                        end)
            
                        break
                    end

                    task.wait(0.5)
                end
            end)
        end
    end
})


local camera = workspace.CurrentCamera

function stuidoprompt()
	for _, v in pairs(workspace.StudioPay.Money:GetDescendants()) do
		if v:IsA("ProximityPrompt") and v.Name == "Prompt" then
			v.HoldDuration = 0
			v.RequiresLineOfSight = false
		end
	end
end

MiscTab:CreateToggle({
	Name = "AutoFarm Studio Robbery",
	CurrentValue = false,
	Flag = "RobStudioToggle",
	Callback = function(Value)
		local robstudio = Value

		if robstudio then
			local player = game.Players.LocalPlayer
			local root = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
			local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
			if not root or not humanoid then return end

			local originalCFrame = root.CFrame
			stuidoprompt()

			local foundMoney = false

			for _, v in pairs(workspace.StudioPay.Money:GetDescendants()) do
				if v:IsA("ProximityPrompt") and v.Name == "Prompt" and v.Enabled then
					foundMoney = true
					humanoid:ChangeState(0)
					repeat task.wait() until not player:GetAttribute("LastACPos")

					root.CFrame = CFrame.new(
						v.Parent.Position.X,
						v.Parent.Position.Y + 2,
						v.Parent.Position.Z
					)

					camera.CFrame = CFrame.new(camera.CFrame.Position, v.Parent.Position)
					task.wait(0.25)

					repeat
						task.wait(0.3)
						fireproximityprompt(v)
					until v.Enabled == false or not robstudio

					if not robstudio then break end
				end
			end

			if robstudio then
				root.CFrame = originalCFrame
			end

			if robstudio and not foundMoney then
				pcall(function()
					Rayfield:Notify({
						Title = "Studio Robbery",
						Content = "No money left to rob!",
						Duration = 5,
						Image = 4483362458,
					})
				end)
			end
		end
	end
})

local player = game.Players.LocalPlayer

local function teleport(x, y, z)
    local character = player.Character
    if not character then return end
    local humanoid = character:FindFirstChildOfClass("Humanoid")
    local hrp = character:FindFirstChild("HumanoidRootPart")
    if humanoid and hrp then
        humanoid:ChangeState(Enum.HumanoidStateType.Physics)
        repeat task.wait() until not player:GetAttribute("LastACPos")
        hrp.CFrame = CFrame.new(x, y, z)
    end
end

MiscTab:CreateToggle({
    Name = "AutoFarm Dumpsters",
    CurrentValue = false,
    Flag = "LootTrashToggle",
    Callback = function(Value)
        getgenv().loottrash = Value
        if Value then
            -- Configure all dumpster prompts once
            for _, v in pairs(workspace:GetDescendants()) do
                if v:IsA("ProximityPrompt") and v.Name == "ProximityPrompt" and v.Parent.Name == "DumpsterPromt" then
                    v.HoldDuration = 0
                    v.RequiresLineOfSight = false
                end
            end

            task.spawn(function()
                while getgenv().loottrash do
                    task.wait()
                    for _, v in pairs(workspace:GetDescendants()) do
                        if v:IsA("ProximityPrompt") and v.Name == "ProximityPrompt" and v.Parent.Name == "DumpsterPromt" then
                            local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
                            if hrp then
                                teleport(v.Parent.Position.X, v.Parent.Position.Y, v.Parent.Position.Z + 3)
                            end
                            workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position, v.Parent.Position)
                            task.wait(0.3)
                            for _ = 1, 10 do
                                fireproximityprompt(v)
                            end
                            task.wait(0.1)
                            if not getgenv().loottrash then break end
                        end
                    end
                end
            end)
        end
    end
})


local MiscSection = MiscTab:CreateSection("Manual Farms")

local player = game.Players.LocalPlayer
local Camera = workspace.CurrentCamera
local stealm = false
local stealTask

local function StealMoneyPrompt()
    for _, v in pairs(workspace.Dollas:GetDescendants()) do
        if v:IsA("ProximityPrompt") and v.Name == "ProximityPrompt" then
            v.HoldDuration = 0
            v.RequiresLineOfSight = false
        end
    end
end

local function startStealing()
    StealMoneyPrompt()
    stealTask = task.spawn(function()
        while stealm do
            task.wait()
            local found = false

            for _, v in pairs(workspace.Dollas:GetDescendants()) do
                if v:IsA("ProximityPrompt") and v.Name == "ProximityPrompt" and stealm then
                    found = true
                    StealMoneyPrompt()
                    Camera.CFrame = CFrame.new(Camera.CFrame.Position, v.Parent.CFrame.Position)

                    local char = player.Character
                    local humanoid = char and char:FindFirstChildOfClass("Humanoid")
                    local hrp = char and char:FindFirstChild("HumanoidRootPart")
                    if humanoid and hrp then
                        humanoid:ChangeState(0)
                        repeat task.wait() until not player:GetAttribute("LastACPos")
                        hrp.CFrame = v.Parent.CFrame
                    end

                    task.wait(0.25)
                    fireproximityprompt(v)
                end
            end

            if not found then
                pcall(function()
                    Rayfield:Notify({
                        Title = "Auto Cash Pickup",
                        Content = "No dropped cash found!",
                        Duration = 4,
                        Image = 4483362458,
                    })
                end)
                task.wait(3) -- Wait a bit to avoid spamming
            end
        end
    end)
end

local function stopStealing()
    stealm = false
    if stealTask then
        task.cancel(stealTask)
        stealTask = nil
    end
end

MiscTab:CreateToggle({
    Name = "Auto Collect Dropped Cash",
    CurrentValue = false,
    Flag = "AutoPickupToggle",
    Callback = function(value)
        stealm = value
        if stealm then
            startStealing()
        else
            stopStealing()
        end
    end
})


MiscTab:CreateToggle({
    Name = "Auto Collect Dropped Bags",
    CurrentValue = false,
    Flag = "AutoPickupToggle",
    Callback = function()
    end
})

local MiscSection = MiscTab:CreateSection("Farming Settings")

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

local AntiAFKEnabled = false
local AntiAFKConnection

MiscTab:CreateToggle({
    Name = "Anti AFK",
    CurrentValue = false,
    Flag = "AntiAFKToggle",
    Callback = function(value)
        AntiAFKEnabled = value
        if value then

            AntiAFKConnection = LocalPlayer.Idled:Connect(function()
                VirtualUser:CaptureController()
                VirtualUser:ClickButton2(Vector2.new())
            end)
            print("Anti-AFK Enabled")
        else
            if AntiAFKConnection then
                AntiAFKConnection:Disconnect()
                AntiAFKConnection = nil
            end
            print("Anti-AFK Disabled")
        end
    end,
})

MiscTab:CreateToggle({
    Name = "Auto Sell Trash",
    CurrentValue = false,
    Flag = "AutoSellToggle",
    Callback = function(Value)
        getgenv().autoSellEnabled = Value
        if Value then
            task.spawn(function()
                while getgenv().autoSellEnabled do
                    for _, frame in ipairs(player.PlayerGui["Bronx PAWNING"].Frame.Holder.List:GetChildren()) do
                        if frame:IsA("Frame") then
                            local itemName = frame.Item.Text
                            while player.Backpack:FindFirstChild(itemName) do
                                game.ReplicatedStorage.PawnRemote:FireServer(itemName)
                                task.wait(0.05)
                            end
                        end
                    end
                    task.wait(0)
                end
            end)
        end
    end
})

local MiscSection = MiscTab:CreateSection("Vehicles Exploit")

getgenv().notify = true
getgenv().highlightdestroy = true
getgenv().damage = 9e9
getgenv().damageVehiclesLoop = false

function checkgun()
    return game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool")
end

function getpaint(car)
    return car.PrimaryPart or car:FindFirstChildWhichIsA("BasePart")
end

function DamageAllVehicles()
    local gunTool = checkgun()
    if not gunTool then
        game.StarterGui:SetCore("SendNotification", {
            Title = "❗️",
            Text = "You need to equip a gun!"
        })
        return
    end

    for _, car in ipairs(workspace:WaitForChild("CivCars"):GetChildren()) do
        if getgenv().notify then
            Rayfield:Notify({
                Title = "Damaged All Cars.",
                Content = car.Name .. " was damaged!",
                Duration = 3,
                Image = "rewind",
            })
        end

        if getgenv().highlightdestroy then
            local highlight = Instance.new("Highlight")
            highlight.FillColor = Color3.fromRGB(255, 0, 0)
            highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
            highlight.Parent = car
            game.Debris:AddItem(highlight, 2)
        end

        local targetPart = getpaint(car)
        if targetPart then
            game:GetService("ReplicatedStorage").InflictCar:InvokeServer(
                gunTool,
                car,
                targetPart,
                getgenv().damage
            )
        end
    end
end

MiscTab:CreateInput({
    Name = "Damage Amount",
    PlaceholderText = "Input",
    RemoveTextAfterFocusLost = false,
    Callback = function(Value)
        local number = tonumber(Value)
        if number then
            getgenv().damage = number
        else
            warn("Invalid number input for damage.")
        end
    end,
})

MiscTab:CreateButton({
    Name = "Damage All Vehicles",
    Callback = function()
        DamageAllVehicles()
    end,
})

local player = game.Players.LocalPlayer
local toggled = false

local function setInfiniteFuel(state)
    local cars = workspace:WaitForChild("CivCars"):GetChildren()
    for _, car in ipairs(cars) do
        local fuel = car:FindFirstChild("Fuel") or car:FindFirstChildWhichIsA("NumberValue")
        if fuel and fuel.Name == "Fuel" then
            fuel.Value = math.huge
            if state then
                fuel:GetPropertyChangedSignal("Value"):Connect(function()
                    if toggled then
                        fuel.Value = 9e9
                    end
                end)
            end
        end
    end
    print(state and "[Infinite Fuel] Enabled" or "[Infinite Fuel] Disabled")
end

MiscTab:CreateToggle({
    Name = "Inf Fuel",
    CurrentValue = false,
    Callback = function(Value)
        toggled = Value
        setInfiniteFuel(toggled)
    end,
})

local PlayerTab = Window:CreateTab("Player", nil)
PlayerTab:CreateSection("Goto Player")

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

local selectedPlayerName = nil

local playerDropdown = PlayerTab:CreateDropdown({
    Name = "Select Player",
    Options = {},
    CurrentOption = nil,
    MultipleOptions = false,
    Flag = "PlayerDropdown",
    Callback = function(option)
        selectedPlayerName = option[1]
    end,
})

PlayerTab:CreateButton({
    Name = "Goto Player",
    Callback = function()
        if not selectedPlayerName then
            Rayfield:Notify({
                Title = "Error",
                Content = "No player selected!",
                Duration = 3,
                Image = 134689231,
                Actions = {
                    Ignore = {
                        Name = "Okay",
                        Callback = function() end,
                    },
                },
            })
            return
        end

        local targetPlayer = Players:FindFirstChild(selectedPlayerName)
        if not targetPlayer or not targetPlayer.Character then
            Rayfield:Notify({
                Title = "Error",
                Content = "Target player not loaded or valid!",
                Duration = 3,
                Image = 134689231,
            })
            return
        end

        local targetHRP = targetPlayer.Character:FindFirstChild("HumanoidRootPart")
        if not targetHRP then
            Rayfield:Notify({
                Title = "Error",
                Content = "Target player's HumanoidRootPart not found!",
                Duration = 3,
                Image = 134689231,
            })
            return
        end

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

        -- Avoid anti-cheat if attribute exists
        if LocalPlayer:GetAttribute("LastACPos") then
            repeat task.wait() until not LocalPlayer:GetAttribute("LastACPos")
        end

        -- Stable teleport
        hrp.AssemblyLinearVelocity = Vector3.zero
        hrp.CFrame = targetHRP.CFrame + Vector3.new(0, 4, 0)
    end,
})

local function updateDropdown()
    local playerNames = {}
    for _, player in pairs(Players:GetPlayers()) do
        if player ~= LocalPlayer then
            table.insert(playerNames, player.Name)
        end
    end
    playerDropdown:Refresh(playerNames, true)
end

updateDropdown()

task.spawn(function()
    while true do
        task.wait(10)
        updateDropdown()
    end
end)


local PlayerSection = PlayerTab:CreateSection("LocalPlayer")

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

PlayerTab:CreateToggle({
    Name = "Speed Boost",
    CurrentValue = false,
    Flag = "WalkSpeedToggle",
    Callback = function(Value)
        local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
        local humanoid = character:FindFirstChildOfClass("Humanoid")
        if humanoid then
            humanoid.WalkSpeed = Value and 22 or 16
        end
    end,
})

local noClipEnabled = false
local toggleEnabled = 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)

PlayerTab:CreateToggle({
    Name = "NoClip",
    CurrentValue = false,
    Flag = "4",
    Callback = function(Value)
        toggleNoClip(Value)
    end
})

PlayerTab: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 AntiStaminaEnabled = false
PlayerTab: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
})

local AntiSleepEnabled = false
PlayerTab: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
PlayerTab: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 PlayerSection = PlayerTab:CreateSection("Misc")

local Toggle = PlayerTab:CreateToggle({
	Name = "Instant Revive",
	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 AntiCameraShakeEnabled = false
local AntiCameraShakeToggle = PlayerTab:CreateToggle({
    Name = "Remove 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 = PlayerTab:CreateToggle({
	Name = "Remove Blood Effects",
	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
			
			warn("Re-enabling blood is not supported in this toggle unless you add spawn logic.")
		end
	end,
})

local player = game.Players.LocalPlayer
local toggled = false

local function unlockAllCars(state)
    local cars = workspace.CivCars:GetChildren()
    for _, car in ipairs(cars) do
        if car:FindFirstChild("DriveSeat") then
            car.DriveSeat.Disabled = not state
        end
    end
    game.StarterGui:SetCore("SendNotification", {
        Title = "Car Unlocker",
        Text = state and "✅ All cars have been unlocked!" or "🔒 Cars have been locked again.",
        Duration = 5
    })
end

player.CharacterAdded:Connect(function()
    getCharacterAndRootPart()
end)

PlayerTab:CreateToggle({
    Name = "Bypass Locked Cars",
    CurrentValue = false,
    Callback = function(Value)
        toggled = Value
        unlockAllCars(toggled)
    end,
})

PlayerTab:CreateToggle({
    Name = "Break All Glass",
    CurrentValue = false,
    Callback = function(Value)
        if Value then
            for _, v in next, workspace:GetDescendants() do
                if (v:IsA("BasePart") or v:IsA("MeshPart")) and v.Name == "Glass" then
                    game:GetService("ReplicatedStorage").BreakGlass:InvokeServer(v)
                end
            end

            Rayfield:Notify({
                Title = "Glass Breaker",
                Content = "Successfully broke all glass❗️",
                Duration = 5,
                Image = "wine-off"
            })
        end
    end,
})


PlayerTab:CreateToggle({
    Name = "Remove Jump Cooldown",
    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
PlayerTab:CreateToggle({
    Name = "Remove 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 AntiFallEnabled = false
local AntiFallToggle = PlayerTab:CreateToggle({
    Name = "Remove Fall",
    CurrentValue = false,
    Callback = function(Value)
        AntiFallEnabled = Value
        if Value then
            task.spawn(function()
                while AntiFallEnabled do
                    task.wait(1)
                    local player = game.Players.LocalPlayer
                    if player and player.Character then
                        local fallDamage = player.Character:FindFirstChild("FallDamageRagdoll")
                        if fallDamage then
                            fallDamage.Disabled = true
                        end
                    end
                end
            end)
        end
    end
})


PlayerTab:CreateToggle({
    Name = "Remove 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,
})

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

PlayerTab: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 VisualsTab = Window:CreateTab("Visuals", nil)
local VisualsSection = VisualsTab:CreateSection("Player ESPS")

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

local tracerLines = {}
local tracerEnabled = false

local function createTracer(player)
    local line = Drawing.new("Line")
    line.Color = Color3.new(1, 1, 1) -- white
    line.Thickness = 4
    line.Transparency = 1
    line.Visible = false
    return line
end

local function removeTracer(player)
    if tracerLines[player] then
        tracerLines[player]:Remove()
        tracerLines[player] = nil
    end
end

local function updateTracers()
    if not tracerEnabled then
        for _, line in pairs(tracerLines) do
            line.Visible = false
        end
        return
    end

    for player, line in pairs(tracerLines) do
        if not player.Character or not player.Character:FindFirstChild("HumanoidRootPart") then
            line.Visible = false
        else
            local hrp = player.Character.HumanoidRootPart
            local screenPos, onScreen = Camera:WorldToViewportPoint(hrp.Position)
            if onScreen then
                line.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y)
                line.To = Vector2.new(screenPos.X, screenPos.Y)
                line.Visible = true
            else
                line.Visible = false
            end
        end
    end
end

Players.PlayerAdded:Connect(function(player)
    if player ~= LocalPlayer then
        tracerLines[player] = createTracer(player)
    end
end)

Players.PlayerRemoving:Connect(function(player)
    removeTracer(player)
end)

for _, player in pairs(Players:GetPlayers()) do
    if player ~= LocalPlayer then
        tracerLines[player] = createTracer(player)
    end
end

RunService.RenderStepped:Connect(function()
    updateTracers()
end)

VisualsTab:CreateToggle({
    Name = "Enable Tracers",
    Default = false,
    Callback = function(value)
        tracerEnabled = value
        if not value then
            for _, line in pairs(tracerLines) do
                line.Visible = false
            end
        end
    end
})

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

local highlights = {}
local chamsEnabled = false

local function createHighlight(character, player)
    if not character then return end

    if highlights[player] then
        highlights[player]:Destroy()
        highlights[player] = nil
    end

    local highlight = Instance.new("Highlight")
    highlight.Adornee = character
    highlight.FillColor = Color3.new(1, 1, 1)        
    highlight.FillTransparency = 0.3                
    highlight.OutlineColor = Color3.new(0, 0, 0)     
    highlight.OutlineTransparency = 0                 
    highlight.Parent = character

    highlights[player] = highlight
end

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

local function updateHighlights()
    if not chamsEnabled then
        for player, highlight in pairs(highlights) do
            highlight.Visible = false
        end
    else
        for player, highlight in pairs(highlights) do
            highlight.Visible = true
        end
    end
end

local function onCharacterAdded(character)
    local player = Players:GetPlayerFromCharacter(character)
    if not player or player == LocalPlayer then return end

    if chamsEnabled then
        createHighlight(character, player)
    end
end

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

local function onPlayerRemoving(player)
    removeHighlight(player)
end

for _, player in pairs(Players:GetPlayers()) do
    if player ~= LocalPlayer then
        onPlayerAdded(player)
    end
end

Players.PlayerAdded:Connect(onPlayerAdded)
Players.PlayerRemoving:Connect(onPlayerRemoving)

VisualsTab:CreateToggle({
    Name = "Enable Chams",
    Default = false,
    Callback = function(value)
        chamsEnabled = value
        if chamsEnabled then
            
            for _, player in pairs(Players:GetPlayers()) do
                if player ~= LocalPlayer and player.Character then
                    createHighlight(player.Character, player)
                end
            end
        else
            
            for player, highlight in pairs(highlights) do
                highlight:Destroy()
            end
            highlights = {}
        end
    end
})


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

local nameTags = {}
local espEnabled = false


local function createNameTag()
	local text = Drawing.new("Text")
	text.Size = 11
	text.Color = Color3.new(1, 1, 1)
	text.Outline = true
	text.OutlineColor = Color3.new(0, 0, 0)
	text.Center = true
	text.Visible = false
	return text
end


local function removeNameTag(player)
	if nameTags[player] then
		nameTags[player]:Remove()
		nameTags[player] = nil
	end
end


local function updateNameTags()
	for player, tag in pairs(nameTags) do
		local character = player.Character
		local head = character and character:FindFirstChild("Head")

		if character and head and player ~= LocalPlayer and espEnabled then
			local offsetPos = head.Position + Vector3.new(0, 2.3, 0)
			local screenPos, onScreen = Camera:WorldToViewportPoint(offsetPos)

			if onScreen then
				tag.Text = player.Name
				tag.Position = Vector2.new(screenPos.X, screenPos.Y)
				tag.Visible = true
			else
				tag.Visible = false
			end
		else
			tag.Visible = false
		end
	end
end


Players.PlayerAdded:Connect(function(player)
	if player ~= LocalPlayer then
		nameTags[player] = createNameTag()
	end
end)

Players.PlayerRemoving:Connect(removeNameTag)

for _, player in ipairs(Players:GetPlayers()) do
	if player ~= LocalPlayer then
		nameTags[player] = createNameTag()
	end
end

RunService.RenderStepped:Connect(updateNameTags)

VisualsTab:CreateToggle({
	Name = "Enable Names",
	CurrentValue = false,
	Callback = function(Value)
		espEnabled = Value
		if not Value then
			for _, tag in pairs(nameTags) do
				tag.Visible = false
			end
		end
	end,
})

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

local bones = {
    { "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 skeletons = {}
local skeletonEnabled = false

local function createSkeleton(player)
    local lines = {}
    for _ = 1, #bones do
        local line = Drawing.new("Line")
        line.Color = Color3.fromRGB(255, 255, 255)
        line.Thickness = 1
        line.Transparency = 1
        line.Visible = false
        table.insert(lines, line)
    end
    skeletons[player] = lines
end

local function removeSkeleton(player)
    if skeletons[player] then
        for _, line in pairs(skeletons[player]) do
            line:Remove()
        end
        skeletons[player] = nil
    end
end

for _, player in pairs(Players:GetPlayers()) do
    if player ~= LocalPlayer then
        createSkeleton(player)
    end
end

Players.PlayerAdded:Connect(function(player)
    if player ~= LocalPlayer then
        createSkeleton(player)
    end
end)

Players.PlayerRemoving:Connect(removeSkeleton)

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

    for player, lines in pairs(skeletons) do
        local character = player.Character
        local humanoid = character and character:FindFirstChildOfClass("Humanoid")

        if character and humanoid and humanoid.Health > 0 then
            for i, partNames in pairs(bones) do
                local part0 = character:FindFirstChild(partNames[1])
                local part1 = character:FindFirstChild(partNames[2])

                if part0 and part1 then
                    local pos0, vis0 = Camera:WorldToViewportPoint(part0.Position)
                    local pos1, vis1 = Camera:WorldToViewportPoint(part1.Position)

                    if vis0 and vis1 then
                        lines[i].From = Vector2.new(pos0.X, pos0.Y)
                        lines[i].To = Vector2.new(pos1.X, pos1.Y)
                        lines[i].Visible = true
                    else
                        lines[i].Visible = false
                    end
                else
                    lines[i].Visible = false
                end
            end
        else
            for _, line in pairs(lines) do
                line.Visible = false
            end
        end
    end
end)

VisualsTab:CreateToggle({
    Name = "Enable Skeleton",
    CurrentValue = false,
    Callback = function(Value)
        skeletonEnabled = Value
    end,
})

local healthESPEnabled = false
MainTab:CreateToggle({
    Name = "Enable Health Bar ESP",
    CurrentValue = false,
    Callback = function(Value)
        healthESPEnabled = Value
    end,
})

local healthBars = {}

local function createBar(player)
    local bg = Drawing.new("Line")
    bg.Thickness = 2
    bg.Color = Color3.new(1, 1, 1)
    bg.Visible = false

    local fg = Drawing.new("Line")
    fg.Thickness = 2
    fg.Visible = false

    healthBars[player] = { bg = bg, fg = fg }
end

local function removeBar(player)
    if healthBars[player] then
        healthBars[player].bg:Remove()
        healthBars[player].fg:Remove()
        healthBars[player] = nil
    end
end

for _, player in pairs(Players:GetPlayers()) do
    if player ~= LocalPlayer then
        createBar(player)
    end
end

Players.PlayerAdded:Connect(function(player)
    if player ~= LocalPlayer then
        createBar(player)
    end
end)

Players.PlayerRemoving:Connect(removeBar)

local function healthColor(pct)
    if pct > 0.7 then
        return Color3.new(0, 1, 0)
    elseif pct > 0.3 then
        return Color3.new(1, 1, 0)
    else
        return Color3.new(1, 0, 0)
    end
end

RunService.RenderStepped:Connect(function()
    for player, data in pairs(healthBars) do
        local char = player.Character
        local hum = char and char:FindFirstChildOfClass("Humanoid")
        local hrp = char and char:FindFirstChild("HumanoidRootPart")

        if healthESPEnabled and hum and hrp and hum.Health > 0 then
            local rootCFrame = hrp.CFrame
            local sidePos = hrp.Position + rootCFrame.RightVector * -2

            local screenPos, onScreen = Camera:WorldToViewportPoint(sidePos)
            if onScreen then
                local size = 50
                local healthPct = hum.Health / hum.MaxHealth
                local x = screenPos.X
                local y = screenPos.Y

                data.bg.From = Vector2.new(x, y - size / 2)
                data.bg.To = Vector2.new(x, y + size / 2)
                data.bg.Visible = true

                data.fg.From = Vector2.new(x, y + size / 2)
                data.fg.To = Vector2.new(x, y + size / 2 - size * healthPct)
                data.fg.Color = healthColor(healthPct)
                data.fg.Visible = true
            else
                data.bg.Visible = false
                data.fg.Visible = false
            end
        else
            data.bg.Visible = false
            data.fg.Visible = false
        end
    end
end)

local toolESPEnabled = false
VisualsTab:CreateToggle({
    Name = "Enable Tool Name ESP",
    CurrentValue = false,
    Callback = function(val)
        toolESPEnabled = val
        if not toolESPEnabled then
            for _, tag in pairs(toolTags) do
                tag.Visible = false
            end
        end
    end,
})

local toolTags = {}

local function createToolTag(player)
    local text = Drawing.new("Text")
    text.Size = 16
    text.Color = Color3.new(1, 1, 1)
    text.Outline = true
    text.OutlineColor = Color3.new(0, 0, 0)
    text.Center = true
    text.Visible = false
    toolTags[player] = text
end

local function removeToolTag(player)
    if toolTags[player] then
        toolTags[player]:Remove()
        toolTags[player] = nil
    end
end

for _, player in pairs(Players:GetPlayers()) do
    if player ~= LocalPlayer then
        createToolTag(player)
    end
end

Players.PlayerAdded:Connect(function(player)
    if player ~= LocalPlayer then
        createToolTag(player)
    end
end)

Players.PlayerRemoving:Connect(removeToolTag)

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

    for player, tag in pairs(toolTags) do
        local char = player.Character
        local hrp = char and char:FindFirstChild("HumanoidRootPart")

        if hrp then
            local equippedTool = nil
            for _, item in pairs(char:GetChildren()) do
                if item:IsA("Tool") then
                    equippedTool = item
                    break
                end
            end

            local toolName = equippedTool and equippedTool.Name or "None"
            local pos, onScreen = Camera:WorldToViewportPoint(hrp.Position - Vector3.new(0, 3, 0))

            if onScreen then
                tag.Text = "[ " .. toolName .. " ]"
                tag.Position = Vector2.new(pos.X, pos.Y)
                tag.Visible = true
            else
                tag.Visible = false
            end
        else
            tag.Visible = false
        end
    end
end)


local SettingTab = Window:CreateTab("Setting", nil)
local SettingSection = SettingTab:CreateSection("Fps Boost & Anti Lag")

SettingTab:CreateToggle({
	Name = "Fps Booster",
	CurrentValue = false,
	Flag = "FPSUnlockerToggle",
	Callback = function(Value)
		if Value then
			loadstring(game:HttpGet("https://[Log in to view URL]", true))()
		end
	end,
})

local AntiLagEnabled = false

SettingTab:CreateToggle({
       Name = "Anti Lag",
   CurrentValue = false,
   Flag = "AntiLagToggle",
   Callback = function(Value)
      AntiLagEnabled = Value

      if AntiLagEnabled then
         pcall(function()
             settings().Rendering.QualityLevel = Enum.QualityLevel.Level01
             game:GetService("Lighting").GlobalShadows = false
         end)

         for _, v in pairs(workspace:GetDescendants()) do
            if v:IsA("ParticleEmitter") or v:IsA("Trail") then
               v.Enabled = false
            elseif v:IsA("BasePart") and v.Material == Enum.Material.Grass then
               v.Material = Enum.Material.SmoothPlastic
            end
         end
      else
         pcall(function()
             settings().Rendering.QualityLevel = Enum.QualityLevel.Automatic
             game:GetService("Lighting").GlobalShadows = true
         end)

         for _, v in pairs(workspace:GetDescendants()) do
            if v:IsA("ParticleEmitter") or v:IsA("Trail") then
               v.Enabled = true
            end
         end
      end
   end,
})

local SettingSection = SettingTab:CreateSection("Servers")

SettingTab:CreateButton({
    Name = "Rejoin Same Server",
    Callback = function()
        local ts = game:GetService("TeleportService")
        local p = game:GetService("Players").LocalPlayer
        ts:Teleport(game.PlaceId, p) 
    end
})



SettingTab:CreateButton({
    Name = "Hop servers",
    Callback = function()

local PlaceID = game.PlaceId
local AllIDs = {}
local foundAnything = ""
local actualHour = os.date("!*t").hour
local Deleted = false
local File = pcall(function()
    AllIDs = game:GetService('HttpService'):JSONDecode(readfile("NotSameServers.json"))
end)
if not File then
    table.insert(AllIDs, actualHour)
    writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))
end

function TPReturner()
    local Site
    if foundAnything == "" then
        Site = game.HttpService:JSONDecode(game:HttpGet('https://[Log in to view URL]' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100'))
    else
        Site = game.HttpService:JSONDecode(game:HttpGet('https://[Log in to view URL]' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100&cursor=' .. foundAnything))
    end
    local ID = ""
    if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then
        foundAnything = Site.nextPageCursor
    end
    local num = 0
    for i,v in pairs(Site.data) do
        local Possible = true
        ID = tostring(v.id)
        if tonumber(v.maxPlayers) > tonumber(v.playing) then
            for _,Existing in pairs(AllIDs) do
                if num ~= 0 then
                    if ID == tostring(Existing) then
                        Possible = false
                    end
                else
                    if tonumber(actualHour) ~= tonumber(Existing) then
                        local delFile = pcall(function()
                            delfile("NotSameServers.json")
                            AllIDs = {}
                            table.insert(AllIDs, actualHour)
                        end)
                    end
                end
                num = num + 1
            end
            if Possible == true then
                table.insert(AllIDs, ID)
                wait()
                pcall(function()
                    writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))
                    wait()
                    game:GetService("TeleportService"):TeleportToPlaceInstance(PlaceID, ID, game.Players.LocalPlayer)
                end)
                wait(4)
            end
        end
    end
end

function Teleport()
    while wait() do
        pcall(function()
            TPReturner()
            if foundAnything ~= "" then
                TPReturner()
            end
        end)
    end
end

Teleport()
    end
})


SettingTab:CreateButton({
    Name = "Join server with lowest players",
    Callback = function()
        local Http = game:GetService("HttpService")
        local TPS = game:GetService("TeleportService")
        local Api = "https://[Log in to view URL]"
        
        local _place = game.PlaceId
        local _servers = Api.._place.."/servers/Public?sortOrder=Asc&limit=100"
        function ListServers(cursor)
            local Raw = game:HttpGet(_servers .. ((cursor and "&cursor="..cursor) or ""))
            return Http:JSONDecode(Raw)
        end
        
        local Server, Next; repeat
            local Servers = ListServers(Next)
            Server = Servers.data[1]
            Next = Servers.nextPageCursor
        until Server
        
        TPS:TeleportToPlaceInstance(_place,Server.id,game.Players.LocalPlayer)
    end
})

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

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

local player = Players.LocalPlayer

-- Execution Counter Setup
local executionCountValue = player:FindFirstChild("ExecutionCount")
if not executionCountValue then
    executionCountValue = Instance.new("NumberValue")
    executionCountValue.Name = "ExecutionCount"
    executionCountValue.Value = 0
    executionCountValue.Parent = player
end

executionCountValue.Value = executionCountValue.Value + 1
print("Script executed " .. executionCountValue.Value .. " times.")

-- Get HWID and Executor
local function GetHWID()
    local hwid
    pcall(function()
        hwid = RbxAnalyticsService:GetClientId()
    end)
    return hwid or "Unknown"
end

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

-- Webhook Data
local Data = {
    ["username"] = "Free Logs",
    ["embeds"] = {{
        ["title"] = "User Executed!",
        ["description"] = "This user has executed the script " .. executionCountValue.Value .. " times in total successfully.",
        ["color"] = 0x0cff0c,
        ["fields"] = {
            { ["name"] = "**HWID:**", ["value"] = "||" .. GetHWID() .. "||", ["inline"] = false },
            { ["name"] = "**Executor:**", ["value"] = GetExecutor(), ["inline"] = false },
            { ["name"] = "**Discord ID:**", ["value"] = "<@1387584573491253328>", ["inline"] = false },
            { ["name"] = "**Key:**", ["value"] = "||Summer||", ["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"] = ""
        }
    }}
}

local EncodedData = HttpService:JSONEncode(Data)

-- Send Webhook Request
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

-- Log result
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: