if getgenv().loaded then 
    return
end 

getgenv().loaded = true 

local StarterGui = game:GetService("StarterGui")

StarterGui:SetCore("SendNotification", {
    Title = "Scorpio loadin dis mf..",
    Text = "wait 8 seconds for dis bih",
    Duration = 8, -- seconds the notification stays on screen
})

if LPH_OBFUSCATED == nil then
    local assert = assert
    local type = type
    local setfenv = setfenv
    LPH_ENCNUM = function(toEncrypt, ...)
        assert(type(toEncrypt) == "number" and #{...} == 0, "LPH_ENCNUM only accepts a single constant double or integer as an argument.")
        return toEncrypt
    end
    LPH_NUMENC = LPH_ENCNUM
    LPH_ENCSTR = function(toEncrypt, ...)
        assert(type(toEncrypt) == "string" and #{...} == 0, "LPH_ENCSTR only accepts a single constant string as an argument.")
        return toEncrypt
    end
    LPH_STRENC = LPH_ENCSTR
    LPH_ENCFUNC = function(toEncrypt, encKey, decKey, ...)
        
        assert(type(toEncrypt) == "function" and type(encKey) == "string" and #{...} == 0, "LPH_ENCFUNC accepts a constant function, constant string, and string variable as arguments.")
        return toEncrypt
    end
    LPH_FUNCENC = LPH_ENCFUNC
    LPH_JIT = function(f, ...)
        assert(type(f) == "function" and #{...} == 0, "LPH_JIT only accepts a single constant function as an argument.")
        return f
    end
    LPH_JIT_MAX = LPH_JIT
    LPH_NO_VIRTUALIZE = function(f, ...)
        assert(type(f) == "function" and #{...} == 0, "LPH_NO_VIRTUALIZE only accepts a single constant function as an argument.")
        return f
    end
    LPH_NO_UPVALUES = function(f, ...)
        assert(type(setfenv) == "function", "LPH_NO_UPVALUES can only be used on Lua versions with getfenv & setfenv")
        assert(type(f) == "function" and #{...} == 0, "LPH_NO_UPVALUES only accepts a single constant function as an argument.")
        local env = getrenv()
        return setfenv(
            LPH_NO_VIRTUALIZE(function(...)
                return func(...)
            end),
            setmetatable(
                {
                    func = f
                },
                {
                    __index = env,
                    __newindex = env
                }
            )
        )
    end
    LPH_CRASH = function(...)
        assert(#{...} == 0, "LPH_CRASH does not accept any arguments.")
        game:Shutdown()
        while true do end
    end
    LRM_IsUserPremium = false
    LRM_LinkedDiscordID = "0"
    LRM_ScriptName = "Scorpio Hub"
    LRM_TotalExecutions = 0
    LRM_SecondsLeft = math.huge
    LRM_UserNote = "Developer";
end;

local Game_Name = (game.PlaceId == 4991214437 and "Town") or (game.PlaceId == 18642421777 and "The Bronx") or (game.PlaceId == 16472538603 and "The Bronx") or (game.PlaceId == 13643807539 and "South Bronx") or (game.PlaceId == 93612682780562 and "South Bronx") or (game.PlaceId == 14413475235 and "South Bronx") or (game.PlaceId == 104715542330896 and "BlockSpin") or (game.PlaceId == 71600459831333 and "Street Life") or "Universal" or game.PlaceId == 13643807539

if not getexecutorname then
    getexecutorname = identifyexecutor
end

local Solara = string.match(getexecutorname(), "Solara") == "Solara" or string.match(getexecutorname(), "Xeno") == "Xeno" or getexecutorname() == string.match(getexecutorname(), "Zorara") == "Zorara";

local cloneref = cloneref or function(...) return ... end

local Services = setmetatable({}, {
    __index = LPH_NO_VIRTUALIZE(function(self, service, key)
        if Solara and (service == "VirtualInputManager") and (Game_Name == "The Bronx") then
            return {SendKeyEvent = function() end}
        end
        return cloneref(game:GetService(service))
    end)
})

local script_key;

if LPH_OBFUSCATED then
    script_key = getfenv().script_key
end

if script_key then
    writefile("BronxLol_Key.txt", script_key)
end

if (Game_Name ~= "The Bronx" and Game_Name ~= "Street Life") then
spawn(function()
    local getgc = getgc or debug.getgc
    local hookfunction = hookfunction
    local getrenv = getrenv
    local debugInfo = (getrenv and getrenv().debug and getrenv().debug.info) or debug.info
    local newcclosure = newcclosure or function(f) return f end

    if not (getgc and hookfunction and getrenv and debugInfo) then
        return
    end

    local ECSHookComponent = {}
    ECSHookComponent.__index = ECSHookComponent

    function ECSHookComponent.new(methodTable)
        return setmetatable({ methodTable = methodTable }, ECSHookComponent)
    end

    function ECSHookComponent:Hook(methodName, fn)
        local target = self.methodTable[methodName]
        if typeof(target) == "function" then
            hookfunction(target, newcclosure(fn))
        end
    end

    local AdonisDetectorSystem = {}
    AdonisDetectorSystem.__index = AdonisDetectorSystem

    function AdonisDetectorSystem.new()
        return setmetatable({
            detected = nil,
            kill = nil,
            debugMode = false
        }, AdonisDetectorSystem)
    end

    function AdonisDetectorSystem:Scan()
        for _, v in getgc(true) do
            if typeof(v) == "table" then
                local hasDetected = typeof(rawget(v, "Detected")) == "function"
                local hasKill = typeof(rawget(v, "Kill")) == "function"
                local hasVars = rawget(v, "Variables") ~= nil
                local hasProcess = rawget(v, "Process") ~= nil

                if hasDetected and not self.detected then
                    self.detected = rawget(v, "Detected")
                end

                if hasKill and hasVars and hasProcess and not self.kill then
                    self.kill = rawget(v, "Kill")
                end
            end
        end
    end

    function AdonisDetectorSystem:Bypass()
        if self.detected then
            local comp = ECSHookComponent.new({ Detected = self.detected })
            comp:Hook("Detected", function(name, func)
                if name ~= "_" and self.debugMode then
                end
                return true
            end)
        end

        if self.kill then
            local comp = ECSHookComponent.new({ Kill = self.kill })
            comp:Hook("Kill", function(func)
                if self.debugMode then
                end
            end)
        end
    end

    function AdonisDetectorSystem:BypassDebugInfo()
        if debugInfo and self.detected then
            local original; original = hookfunction(debugInfo, newcclosure(function(...)
                if (...) == self.detected then
                    if self.debugMode then
                    end
                    return coroutine.yield(coroutine.running())
                end
                return original(...)
            end))
        end
    end

    local adonis = AdonisDetectorSystem.new()
    adonis:Scan()

    if adonis.detected or adonis.kill then
        adonis:Bypass()
        adonis:BypassDebugInfo()
    else
    end
end)
end

if Game_Name == "Street Life" then
    spawn(function()
        local getgc = getgc or debug.getgc
        local hookfunction = hookfunction
        local getrenv = getrenv
        local debugInfo = (getrenv and getrenv().debug and getrenv().debug.info) or debug.info
        local newcclosure = newcclosure or function(f) return f end

        if not (getgc and hookfunction and getrenv and debugInfo) then
            return
        end

        local ECSHookComponent = {}
        ECSHookComponent.__index = ECSHookComponent

        function ECSHookComponent.new(methodTable)
            return setmetatable({ methodTable = methodTable }, ECSHookComponent)
        end

        function ECSHookComponent:Hook(methodName, fn)
            local target = self.methodTable[methodName]
            if typeof(target) == "function" then
                hookfunction(target, newcclosure(fn))
            end
        end

        local AdonisDetectorSystem = {}
        AdonisDetectorSystem.__index = AdonisDetectorSystem

        function AdonisDetectorSystem.new()
            return setmetatable({
                detected = nil,
                kill = nil,
                debugMode = false
            }, AdonisDetectorSystem)
        end

        function AdonisDetectorSystem:Scan()
            for _, v in getgc(true) do
                if typeof(v) == "table" then
                    local hasDetected = typeof(rawget(v, "Detected")) == "function"
                    local hasKill = typeof(rawget(v, "Kill")) == "function"
                    local hasVars = rawget(v, "Variables") ~= nil
                    local hasProcess = rawget(v, "Process") ~= nil

                    if hasDetected and not self.detected then
                        self.detected = rawget(v, "Detected")
                    end

                    if hasKill and hasVars and hasProcess and not self.kill then
                        self.kill = rawget(v, "Kill")
                    end
                end
            end
        end

        function AdonisDetectorSystem:Bypass()
            if self.detected then
                local comp = ECSHookComponent.new({ Detected = self.detected })
                comp:Hook("Detected", function(name, func)
                    if name ~= "_" and self.debugMode then
                    end
                    return true
                end)
            end

            if self.kill then
                local comp = ECSHookComponent.new({ Kill = self.kill })
                comp:Hook("Kill", function(func)
                    if self.debugMode then
                    end
                end)
            end
        end

        function AdonisDetectorSystem:BypassDebugInfo()
            if debugInfo and self.detected then
                local original; original = hookfunction(debugInfo, newcclosure(function(...)
                    if (...) == self.detected then
                        if self.debugMode then
                        end
                        return coroutine.yield(coroutine.running())
                    end
                    return original(...)
                end))
            end
        end

        local adonis = AdonisDetectorSystem.new()
        adonis:Scan()

        if adonis.detected or adonis.kill then
            adonis:Bypass()
            adonis:BypassDebugInfo()
        else
        end
    end)
end

do 
    Players = Services.Players;
    ReplicatedStorage = Services.ReplicatedStorage;
    UserInputService = Services.UserInputService;
    Workspace = Services.Workspace;
    RunService = Services.RunService;
    ProximityPromptService = Services.ProximityPromptService;
    MarketplaceService = Services.MarketplaceService;
    StarterGui = Services.StarterGui
    VirtualInputManager = Services.VirtualInputManager;
    Lighting = Services.Lighting
    mathrandom = math.random;
    mathabs = math.abs;
    Mobile = UserInputService.TouchEnabled

    Cars = {}

    Camera = Workspace.CurrentCamera

    LocalPlayer = Players.LocalPlayer
    Mouse = LocalPlayer:GetMouse()

    Move_Mouse_Function = mousemoverel
end;

local FireServer, InvokeServer, UnreliableFireServer = Instance.new("RemoteEvent").FireServer, Instance.new("RemoteFunction").InvokeServer, Instance.new("UnreliableRemoteEvent").FireServer

if isfunctionhooked then
    if isfunctionhooked(FireServer) or isfunctionhooked(UnreliableFireServer) or isfunctionhooked(InvokeServer) and LPH_OBFUSCATED then
        return Services.LocalPlayer:Kick("Scorpio// | Rejoin")
    end
end

local SafePosition = CFrame.new(-437, 33, 6653)

local Config = {
    ["TheBronx"] = {
        ["Selected_Item"] = "...";

        ["TeleportationList"] = {
            ["Deli Market 🥪"] = CFrame.new(-927.72607421875, 253.73307800293, -691.36871337891);
            ["Capital One Bank 🏦"] = CFrame.new(-224.070892, 283.80954, -1200.51355, 0.898020029, -8.45030157e-10, -0.439954549, 1.71171859e-08, 1, 3.30182885e-08, 0.439954549, -3.718187e-08, 0.898020029);
            ["Ice Box 🧊"] = CFrame.new(-211.92926, 284.031494, -1170.44751, -0.211394921, -4.74827537e-08, -0.97740072, 4.93989027e-08, 1, -5.92647709e-08, 0.97740072, -6.08107911e-08, -0.211394921);
            ["🏘 section 8 house"] = CFrame.new(-741.548218, 262.955658, -956.177856, -0.999924719, -3.33829719e-09, 0.0122713735, -3.3374834e-09, 1, 8.67962299e-11, -0.0122713735, 4.58341871e-11, -0.999924719);
            ["Hotel 🏨"] = CFrame.new(-1012, 266, -933);
            ["Drip Store 👓"] = CFrame.new(67462.6953125, 10489.0322265625, 546.6762084960938);
            ["Gun Shop 🔫"] = CFrame.new(-1003.56274, 253.814941, -802.115479, -0.980083287, 1.00547819e-08, 0.198586762, 7.72241027e-09, 1, -1.25193429e-08, -0.198586762, -1.07364304e-08, -0.980083287);
            ["Car Dealer 🚗"] = CFrame.new(-410.52230834961, 253.25646972656, -1245.5539550781);
            ["💲clean money💵"] = CFrame.new(-979.4635620117188, 253.65318298339844, -689.3339233398438);
            ["Studio 🎙"] = CFrame.new(93408.453125, 14484.7158203125, 570.139404296875);
            ["Basketball Court 🏀"] = CFrame.new(-928.66687, 253.970642, -411.840332, 0.459722698, -4.89149912e-08, -0.888062537, 1.72902119e-08, 1, -4.61299585e-08, 0.888062537, 5.85219917e-09, 0.459722698);
            ["Robbable Ice Box 🧊"] = CFrame.new(-209.68360900878906, 283.4959411621094, -1265.5286865234375);
            ["Exotic Dealer / Grass House 🍃"] = CFrame.new(-1521.943115234375, 272.5462646484375, -984.3020629882812);
            ["Safe 🔒"] = CFrame.new(-410.395508, 257.2146, -268.762207, -0.99397856, -3.30172973e-08, -0.109574534, -2.67952363e-08, 1, -5.82563118e-08, 0.109574534, -5.49694477e-08, -0.99397856);
            ["Roof Top / Bank Tools 🛠"] = CFrame.new(-405.766541, 334.314209, -559.063049, 0.990661561, -9.09075197e-08, 0.13634412, 1.00807341e-07, 1, -6.57046044e-08, -0.13634412, 7.88355123e-08, 0.990661561);
            ["Gun Shop 2 🔫"] = CFrame.new(66202, 123615.7109375, 5749.81591796875);
            ["Construction Job 🔨"] = CFrame.new(-1731.8306884766, 370.81228637695, -1176.8387451172);
            ["👨🏾‍🍳 popeyes"] = CFrame.new(-86.8043365, 283.632904, -767.680481, 0.0349430069, 3.07534176e-09, 0.999389291, -8.80638069e-08, 1, 1.87372795e-12, -0.999389291, -8.8010097e-08, 0.0349430069), 
            ["🏡 trailer park"] = CFrame.new(-1521.95935, 253.342743, 2264.8584, 0.0229746699, -4.32685623e-11, -0.999736071, -4.64380934e-09, 1, -1.49998139e-10, 0.999736071, 4.64602978e-09, 0.0229746699),
            ["👨 yard sale"] = CFrame.new(-1379.59961, 254.075073, 2768.17456, -0.161961749, -7.58592744e-09, -0.986797035, -3.6793375e-09, 1, -7.08353953e-09, 0.986797035, 2.48349696e-09, -0.161961749),
            ["👨🏾‍🍳 Mcdonald's "] = CFrame.new(-1007.24548, 253.933685, -1146.15686, 0.995521545, -1.63593512e-08, 0.0945348442, 1.6432951e-08, 1, -6.33233361e-14, -0.0945348442, 1.55354951e-09, 0.995521545),
            ["👑 trap house"] = CFrame.new(-792.78064, 256.794495, 1414.72986, 1, 3.85794046e-08, 1.98475264e-12, -3.85794046e-08, 1, 1.80319546e-08, -1.98405702e-12, -1.80319546e-08, 1),
            ["🥤 fruit"] = CFrame.new(-70.5023575, 287.06366, -320.634094, 0.999999821, -4.35785275e-09, -0.000581864733, 4.40470993e-09, 1, 8.05283591e-08, 0.000581864733, -8.05309028e-08, 0.999999821),
            ["👮🏾‍♂️police landout"] = CFrame.new(-1440.86902, 255.12619, -3141.50269, 1, 2.93179286e-10, -1.22108007e-14, -2.93179286e-10, 1, -5.42506351e-09, 1.220921e-14, 5.42506351e-09, 1),
            ["👮🏾‍♂️ police talking room"] = CFrame.new(-1369.65198, 257.850769, -3193.54297, 0.999995232, 3.48691671e-08, 0.00309534976, -3.50066287e-08, 1, 4.43553745e-08, -0.00309534976, -4.44635191e-08, 0.999995232),
            ["👮🏾‍♂️police meeting"] = CFrame.new(-1366.70178, 256.821899, -3152.30518, 1, 5.55209141e-08, 1.72658505e-13, -5.55209141e-08, 1, 7.07464309e-08, -1.68730603e-13, -7.07464309e-08, 1),
            ["🚪kicking doors"] = CFrame.new(-607.173645, 253.886749, -679.163391, -0.0964333862, -2.14529798e-08, 0.995339453, -3.46045361e-08, 1, 1.82007724e-08, -0.995339453, -3.26880993e-08, -0.0964333862),
            ["🔫Gunshop 3"] = CFrame.new(-1010.32635, 317.889374, -907.931946, -0.719649017, -6.88095314e-09, 0.694338024, -3.86566157e-08, 1, -3.01556895e-08, -0.694338024, -4.85422724e-08, -0.719649017),
            ["🩹Margreens"] = CFrame.new(-384.37, 254.45, -373.76),
            ["🍗 Chicken Wings"] = CFrame.new(-957.91418457031, 253.53065490723, -815.94421386719),
            ["🏥 Hospital"] = CFrame.new(-1590.33069, 254.272217, 19.9477577, -0.148689881, -1.89369107e-08, -0.988883853, -1.55521995e-08, 1, -1.68113328e-08, 0.988883853, 1.2879644e-08, -0.148689881),
            ["🔥 Pawn Shop"] = CFrame.new(-1049.6430664063, 253.53065490723, -814.26971435547),
            ["🏠 Penthouse"] = CFrame.new(-195.424164, 397.138306, -573.941162, 1, 1.33502738e-08, 1.90762137e-14, -1.33502738e-08, 1, 2.10393516e-08, -1.87953325e-14, -2.10393516e-08, 1),
            ["👮🏾‍♂️ prison"] = CFrame.new(-1123.79626, 257.877808, -3336.99561, 0.991099596, -6.00827263e-08, -0.133122638, 7.45554232e-08, 1, 1.0373234e-07, 0.133122638, -1.12734092e-07, 0.991099596),
            ["🥤 soda drink"] = CFrame.new(-1291.38245, 253.300858, -2998.16333, -0.928815365, -7.42738671e-09, -0.370542884, -8.67058336e-09, 1, 1.68937098e-09, 0.370542884, 4.78193662e-09, -0.928815365),
            ["🛍 DOLLAR CENTRAL"] = CFrame.new(-388.171509, 253.820496, -1065.17139, -0.966062784, 7.08192331e-08, -0.258307457, 7.32862731e-08, 1, 7.77916898e-11, 0.258307457, -1.88552391e-08, -0.966062784),
            ["🔫 Studio Guns🔫"] = CFrame.new(-612.873413, 253.373779, -1146.95239, -0.999343038, 8.73653434e-08, -0.0362425484, 8.42543528e-08, 1, 8.73653434e-08, 0.0362425484, 8.42543528e-08, -0.999343038),
            ["⚗factory🧪 "] = CFrame.new(-171.367737, 284.625214, -262.169586, 0.926331043, 1.02568464e-07, -0.376710504, -8.25912139e-08, 1, 6.91821924e-08, 0.376710504, -3.29726326e-08, 0.926331043),
            ["💻bronx laundromat💳 "] = CFrame.new(-616.240662, 253.715866, -1221.80261, -0.68032074, 1.08248898e-07, -0.732914507, 6.7664196e-08, 1, 8.48878514e-08, 0.732914507, 8.15889312e-09, -0.68032074),
            ["🏫River park🚸"] = CFrame.new(-1488.58362, 253.860413, -528.957153, -0.219471648, 1.05735602e-07, -0.975618899, -1.44289221e-08, 1, 1.11623855e-07, 0.975618899, 3.85754007e-08, -0.219471648),
            ["🏠Penthouse 2🏠"] = CFrame.new(-618.133972, 356.534882, -688.35498, 0.419588119, -4.88266352e-08, 0.907714605, 3.28240795e-08, 1, 3.86179124e-08, -0.907714605, 1.35912792e-08, 0.419588119),
        };

        ["Modifications"] = newproxy(true);
    
        ["_Modifications"] = {
            ["DisableJamming"] = false;
            ["ModifySpreadValue"] = false;
            ["ModifyRecoilValue"] = false;
            ["Automatic"] = false;
            ["ModifyFireRate"] = false;
            ["ModifyReloadSpeed"] = false;
            ["ModifyEquipSpeed"] = false;
            ["InfiniteAmmo"] = false;
            ["InfiniteClips"] = false;
            ["InfiniteDamage"] = false;

            ["FireRateSpeed"] = 50;
            ["SpreadPercentage"] = 50;
            ["RecoilPercentage"] = 50;
            ["ReloadSpeed"] = 50;
            ["EquipSpeed"] = 50;
        };

        ["PlayerModifications"] = {
            ["InfiniteSleep"] = false;
            ["InfiniteStamina"] = false;
            ["InfiniteHunger"] = false;
            ["InstantInteract"] = false;
            ["InstantRevive"] = false;
            ["AutoPickupCash"] = false;
            ["AutoPickupBags"] = false;
            ["DisableCameraBobbing"] = false;
            ["DisableCameras"] = false;
            ["BypassLockedCars"] = false;
            ["DisableBloodEffects"] = false;
            ["NoJumpCooldown"] = false;
            ["NoRentPay"] = false;
            ["NoFallDamage"] = false;
            ["NoKnockback"] = false;
            ["InfiniteHealth"] = false;
            ["RespawnWhereYouDied"] = false;
        };

        ["InfiniteHealth"] = false;

        ["StoreDupedItem"] = false;
        ["Selected_Location"] = "...";
        ["ClickTeleportActive"] = false;

        ["PlayerUtilities"] = {
            ["SelectedPlayer"] = "...";
            ["BringingPlayer"] = false;
            ["SpectatePlayer"] = false;
            ["AutoKill"] = false;
            ["AutoRagdoll"] = false;
            ["BugPlayer"] = false;
        };

        ["VehicleModifications"] = {
            ["SpeedEnabled"] = false;
            ["SpeedValue"] = 10/1000;
            ["BreakEnabled"] = false;
            ["BreakValue"] = 50/1000;
            ["InstantStop"] = false;
            ["InstantStopBind"] = Enum.KeyCode.V;
        };

        ["Farms"] = {
            ["CollectDroppedMoney"] = false;

            ["CollectDroppedLoot"] = false;
            ["OnlyCollectGuns"] = false;

            ["AFKCheck"] = false;
            ["FarmConstructionJob"] = false;
            ["FarmBank"] = false;
            ["FarmHouses"] = false;
            ["FarmStudio"] = false;
            ["FarmTrash"] = false;
            ["AutoSellTrash"] = false;
        };

        ["KillAura"] = false;
        ["KillAuraRange"] = 300;
        ["KillAuraWhitelist"] = {};

        ["AutoDrop"] = false;
        ["MoneyAmount"] = false;

        ["Fly"] = {
            ["Enabled"] = false;
            ["Type"] = "CFrame";
            ["Speed"] = 50;
        };
    };

    ["BlockSpin"] = {
        ["LocalPlayer"] = {
            ["InfiniteStamina"] = false;
        };

        ["AutoFarming"] = {
            ["FarmMops"] = false;
            ["MopType"] = "Default";
        };
    };

    ["Road_To_Riches"] = {
        ["_Modifications"] = {
            ["ExplosiveBullets"] = false;
            ["InfiniteAmmo"] = false;
            ["InfiniteDamage"] = false;
            ["InstantReload"] = false;
            ["InstantEquip"] = false;
            ["Automatic"] = false;
            ["RapidFire"] = false;
            ["NoSpread"] = false;
            ["NoRecoil"] = false;
        };

        ["Locations"] = {
            ["ATM 🏧"] = CFrame.new(360, 2563, 1946);
            ["Gun Dealer 🔫"] = CFrame.new(231, 2545, 1065);
            ["Gold Shop 🪙"] = CFrame.new(-78.1158218383789, 2563.1123046875, 944.74365234375);
            ["Barber 💈"] = CFrame.new(1217.6531982421875, 2557.93896484375, 981.182861328125);
            ["Monderella 🍕"] = CFrame.new(428.89581298828125, 2563.31005859375, 1275.4918212890625);
            ["Deli 🥪"] = CFrame.new(-70.2744369506836, 2562.807861328125, 719.9676513671875);
            ["Library 📖"] = CFrame.new(53.477169036865234, 2562.908203125, 1960.6444091796875);
            ["Laboratory 🔬"] = CFrame.new(564, 2563, 1957);
            ["Hot Dog Stand 🌭"] = CFrame.new(295.57403564453125, 2562.7646484375, 1996.2435302734375);
            ["Gym 💪" ] = CFrame.new(-37.920719146728516, 2563.05029296875, 442.32647705078125);
            ["Banks Burgers 🍔"] = CFrame.new(794.2547607421875, 2562.93701171875, 311.8097229003906);
            ["Laundromat 💷"] = CFrame.new(402.6617126464844, 2562.892822265625, 1503.2645263671875);
            ["Cocaine Factory 🏭"] = CFrame.new(1227, 2529, 1987);
            ["Cooking Pots 🧪"] = CFrame.new(131, 2540, 1004);
            ["Scrap Metal ⚒️"] = CFrame.new(1049, 2563, 1052);
        };

        ["PackFarm"] = {
            ["Enabled"] = false;
            ["AllowedPacks"] = {};
            ["AllowedJunkies"] = {};
        };

        ["InfiniteClips"] = false;
        ["InfiniteStamina"] = false;
        ["InfiniteEnergy"] = false;

        ["Modifications"] = newproxy(true);

        ["InstantInteract"] = false;

        ["ESP"] = {
            ["Pots"] = false;
            ["AllowedPots"] = {}
        };
    };

    ["South_Bronx"] = {
        ["LocalPlayer_Config"] = {
            ["InstantInteract"] = false;
            ["DeleteOnKey"] = false;
            ["DeleteKey"] = nil;
            ["NoClip"] = false;
            ["HideName"] = false;
            ["InfiniteStamina"] = false;
            ["Speed"] = false;
            ["SpeedValue"] = 0.75;
        };

        ["TeleportMethod"] = "Damage";

        ["FarmingUtilities"] = {
            ["CardFarm"] = false;
            ["BoxFarm"] = false;
            ["ChipFarm"] = false;
            ["MarshmallowFarm"] = false;
            ["MarshmallowIncrement"] = 5;
        };

        ["OwnedBike"] = "Unknown";

        ["Guns"] = {};

        ["Selected_Item"] = "...";
        ["Item_Amount"] = 1;

        ["Locations"] = {
            ["Main Gun Store 🔫"] = CFrame.new(219, 6, -158);
            ["Black Market 💹"] = CFrame.new(671, 6, 251);
            ["DealerShip 🚗"] = CFrame.new(738, 6, 439);
            ["DealerShip Apartments 🌇"] = CFrame.new(717, 5, 548);
            ["Clothes Store 👕"] = CFrame.new(-197, 6, -74);
            ["Box Job Apartments 📦"] = CFrame.new(-527, 6, 142);
            ["Bank 💳"] = CFrame.new(-47, 6, -340);
            ["Fake ID Seller 🎫"] = CFrame.new(219, 6, -331);
            ["DOA Turf 🔴"] = CFrame.new(-335, 6, -415);
            ["OGZ Turf 🟣"] = CFrame.new(125, 6, -466);
            ["YGZ Turf 🟢"] = CFrame.new(3, 6, 223);
            ["Studio 🎙"] = CFrame.new(522, 6, -26);
            ["Shoe Store 👟"] = CFrame.new(525, 7, -184);
            ["Second Gun Store 🔫"] = CFrame.new(-459, 6, 328);
            ["Exclusive Gun Store 🔫"] = CFrame.new(1131, 4, 173);
        };
        
        ["Selected_Location"] = "...";

        ["Modifications"] = newproxy(true);

        ["_Modifications"] = {
            ["DisableJamming"] = false;
            ["ModifySpreadValue"] = false;
            ["ModifyRecoilValue"] = false;
            ["Automatic"] = false;
            ["ModifyFireRate"] = false;
            ["InstantKill"] = false;
            ["ModifyReloadSpeed"] = false;
            ["ModifyEquipSpeed"] = false;
            ["InfiniteAmmo"] = false;
            ["InfiniteClips"] = false;

            ["FireRateSpeed"] = 50;
            ["SpreadPercentage"] = 50;
            ["RecoilPercentage"] = 50;
            ["ReloadSpeed"] = 50;
            ["EquipSpeed"] = 50;
        };

        ["PlayerUtilities"] = {
            ["SelectedPlayer"] = "...";
            ["BringingPlayer"] = false;
            ["SpectatePlayer"] = false;
        };

        ["VehicleModifications"] = {
            ["SpeedEnabled"] = false;
            ["SpeedValue"] = 10/1000;
            ["BreakEnabled"] = false;
            ["BreakValue"] = 50/1000;
            ["InstantStop"] = false;
            ["InstantStopBind"] = Enum.KeyCode.V;
        };

        ["KillAura"] = false;
        ["KillAuraRange"] = 100;
        ["KillAuraWhitelist"] = {};
    };

    ["Game"] = {
        ["Ray_Systems"] = (Game_Name == "Road To Riches" and {"Raycast"} or Game_Name == "BlockSpin" and {"Raycast"} or Game_Name == "Town" and {"Raycast"} or Game_Name == "Universal" and {"Raycast","FindPartOnRay","FindPartOnRayWithWhitelist"} or Game_Name == "The Bronx" and {"FindPartOnRay"}  or Game_Name == "South Bronx" and {"Raycast"} or Game_Name == "Street Life" and {"Raycast"} or Game_Name == "Criminality" and {"Raycast"}) or {};
        ["Wall_Bang_Possible"] = ((Game_Name == "Universal" or Game_Name == "Criminality" or Game_Name == "South Bronx" or Game_Name == "The Bronx" or Game_Name == "Street Life"));
    };

    ["Aimlock"] = {
        ["Enabled"] = false;
        ["Aiming"] = false;
        ["TargetPart"] = "Head";
        ["MaxDistance"] = 300;
        ["Mode"] = "Toggle"; 
        ["Type"] = "Mouse"; 
        ["Keybind"] = nil;
        ["WallCheck"] = false;
        ["Priority"] = {};
        ["Whitelisted"] = {};
        ["DrawFieldOfView"] = false;
        ["UseFieldOfView"] = false;
        ["Radius"] = 100;
        ["FieldOfViewColor"] = Color3.new(1,1,1);
        ["FieldOfViewTransparency"] = 0.25;
        ["Sides"] = 100;
        ["Smoothness"] = 1;
        ["Snapline"] = false;
        ["SnaplineColor"] = Color3.new(1,1,1);
        ["SnaplineThickness"] = 1;
    };

    ["Silent"] = {
        ["Enabled"] = false;
        ["Targetting"] = false;
        ["TargetPart"] = {"Head"};
        ["Mode"] = "nil";
        ["MaxDistance"] = 300;
        ["Keybind"] = nil;
        ["WallCheck"] = false;
        ["WallBang"] = false;
        ["Priority"] = {};
        ["Whitelisted"] = {};
        ["DrawFieldOfView"] = false;
        ["UseFieldOfView"] = false;
        ["Radius"] = 100;
        ["FieldOfViewColor"] = Color3.new(1,1,1);
        ["FieldOfViewTransparency"] = 0.25;
        ["Sides"] = 100;
        ["HitChance"] = 100;
        ["Snapline"] = false;
        ["SnaplineColor"] = Color3.new(1,1,1);
        ["Damage"] = 100;
        ["SnaplineThickness"] = 1;
    };

    ["WorldVisuals"] = {
        ["SaturationEnabled"] = false;
        ["Saturation_Value"] = 1;

        ["FogColorEnabled"] = false;
        ["FogColor"] = Color3.new(1,1,1);

        ["AmbientEnabled"] = false;
        ["AmbientColor"] = Color3.new(1,1,1);

        ["FieldOfViewEnabled"] = false;
        ["FieldOfViewValue"] = 70;

        ["Fullbright"] = false;
    };

    ["MiscSettings"] = {
        ["Hitbox_Expander"] = {
            ["Enabled"] = false;
            ["Multiplier"] = 15;
            ["Color"] = Color3.new(1,1,1);
            ["Transparency"] = 0;
            ["Type"] = "Block";
            ["Material"] = "ForceField";
            ["Whitelist"] = {};
            ["Part"] = "HumanoidRootPart";
        };

        ["ModifySpeed"] = {
            ["Enabled"] = false;
            ["Value"] = 16;
        };

        ["ModifyJump"] = {
            ["Enabled"] = false;
            ["Infinity"] = false;
            ["Value"] = 50;
        };

        ["Fly"] = {
            ["Enabled"] = false;
            ["Type"] = "CFrame";
            ["Speed"] = 50;
        };

        ["SpinBot"] = {
            ["Enabled"] = false;
            ["Speed"] = 35;
        };

        ["No-Clip"] = false;
    };

    ["Guns"] = {};

    ESP = {
        Enabled = false,
        TeamCheck = false,
        MaxDistance = 500,
        FontSize = 12,
        Font = Enum.Font.Code,
        FadeOut = {
            OnDistance = false,
            OnDeath = true,
            OnLeave = false,
        },
        Options = { 
            Teamcheck = true, TeamcheckRGB = Color3.fromRGB(0, 255, 0),
            Friendcheck = true, FriendcheckRGB = Color3.fromRGB(0, 255, 0),
            Highlight = false, HighlightRGB = Color3.fromRGB(255, 0, 0),
        },
        Drawing = {
            Chams = {
                Enabled  = false,
                Thermal = true,
                FillRGB = Color3.fromRGB(119, 120, 255),
                Fill_Transparency = 80,
                OutlineRGB = Color3.fromRGB(0,0,0),
                Outline_Transparency = 80,
                VisibleCheck = false,
            },
            Names = {
                Enabled = false,
                Transparency = 0,
                RGB = Color3.fromRGB(255, 255, 255),
            },
            Flags = {
                Enabled = false,
            },
            Distances = {
                Enabled = false, 
                Position = "Bottom",
                Transparency = 0,
                RGB = Color3.fromRGB(255, 255, 255),
            },
            Weapons = {
                Enabled = false, WeaponTextRGB = Color3.fromRGB(119, 120, 255),
                Outlined = false,
                Gradient = false,
                Transparency = 0,
                GradientRGB1 = Color3.fromRGB(255, 255, 255), GradientRGB2 = Color3.fromRGB(119, 120, 255),
            },
            Inventory = {
                Enabled = false, RGB = Color3.fromRGB(255, 255, 255),
                Transparency = 0,
            },
            Healthbar = {
                Enabled = false,  
                HealthText = false, Lerp = true, HealthTextRGB = Color3.fromRGB(0, 255, 0),
                Width = 2.5,
                Transparency = 0,
                HealthTextTransparency = 0,
                Gradient = true, GradientRGB1 = Color3.fromRGB(255, 0, 0), GradientRGB2 = Color3.fromRGB(0,255,0)
            },
            Boxes = {
                Animate = true,
                RotationSpeed = 300,
                Gradient = false, GradientRGB1 = Color3.fromRGB(119, 120, 255), GradientRGB2 = Color3.fromRGB(0, 0, 0), 
                GradientFill = true, GradientFillRGB1 = Color3.fromRGB(119, 120, 255), GradientFillRGB2 = Color3.fromRGB(0, 0, 0), 
                Filled = {
                    Enabled = false,
                    Transparency = 0.75,
                    RGB = Color3.fromRGB(0, 0, 0),
                },
                Full = {
                    Enabled = true,
                    Transparency = 0,
                    RGB = Color3.fromRGB(255, 255, 255),
                },
                Bounding = {
                    Enabled = false,
                    Transparency = 0,
                    RGB = Color3.fromRGB(255, 255, 255),
                },
                Corner = {
                    Enabled = false,
                    Transparency = 0,
                    RGB = Color3.fromRGB(255, 255, 255),
                },
            };
        };
        Connections = {
            RunService = Services.RunService;
        };
        Fonts = {};
    };
};

--[[if not Solara and Game_Name == "The Bronx" then
    local DTC;

    repeat task.wait(.25) LPH_NO_VIRTUALIZE(function()
        for Index, Value in next, getgc(true) do
            if type(Value) == "table" then
                local Detected = rawget(Value, "Detected");
                if type(Detected) == "function" then
                    DTC = Detected
                end;
            end;
        end;
    end)()

    until DTC ~= nil
end]]

getgenv().library = {
    directory = "Scorpio",
    folders = {
        "/fonts",
        "/configs",
        "/assets"
    },
    priority = {},
    whitelist = {},
    flags = {},
    config_flags = {},
    connections = {},   
    notifications = {notifs = {}},
    current_open; 
}

local Images = {"ESP.png", "World.png", "Wrench.png", "Settings.png", "Node.png", "cursor.png", "Bullet.png", "Snapline.png", "Pistol.png", "folder.png", "UZI.png", "FieldOfView2.png", "Lock.png", "Aimlock.png", "Cash.png", "Wheatt.png", "Pickkaxe.png", "unlocked.png"}

for _, path in next, library.folders do 
    makefolder(library.directory .. path)
end

for Index, Value in Images do
    local Location = library.directory.."/assets/"..Value
    if not isfile(Location) then
        local ImageDiddyAhhBlud = game:HttpGet("https://[Log in to view URL]"..Value)
        repeat wait() until ImageDiddyAhhBlud ~= nil
        writefile(Location, ImageDiddyAhhBlud)
    end
end

GetImage = LPH_NO_VIRTUALIZE(function(Name)
    local Location = library.directory.."/assets/"..Name
    if isfile(Location) then
        return getcustomasset(Location)
    end
end)

local Collide_Data = {}

local DefaultPlayerSettings = {}

if not Services.Players.LocalPlayer.Character then
    Services.Players.LocalPlayer.CharacterAdded:Wait()
    task.wait(1)
end

for Index, Value in Services.Players.LocalPlayer.Character:GetDescendants() do
    pcall(LPH_NO_VIRTUALIZE(function()
        if Value.CanCollide == true then
            Collide_Data[Value.Name] = true
        end
    end))
end

if not Solara then
    if Game_Name == "BlockSpin" then
        LPH_JIT_MAX(function()
            local Repr = loadstring(game:HttpGet("https://[Log in to view URL]"))()

		local Required = {
			"hookfunction",
			"getthreadcontext",
			"getconnections",
			"setthreadcontext",
			"isexecutorclosure",
			"hookmetamethod",
			"getrenv",
		}

		for _, v in next, Required do
			if not getgenv()[v] then
				game:GetService("Players").LocalPlayer:Kick(`Your executor does not support [{v}], which is REQUIRED to use the BlockSpin script.`)
			end
		end

		local OldDebugTraceback, OldDebugInfo, OldFenv = debug.traceback, debug.info, getfenv

		local BlacklistedRemoteArgumentNeedles = {
			"invalid_entry",
			"replicate_bil",
		}

		local BlacklistedCallerNeedles = {
			"Obfuscated",
		}

		if not shared.Hooking then
			shared.Hooking = {}
		end

		if not shared.Hooking.IncludeInStackFunctions then
			shared.Hooking.IncludeInStackFunctions = {}
		end

		shared.SafeHook = function(Original, Replacement)
			shared.Hooking.IncludeInStackFunctions[Original] = true
			return hookfunction(Original, Replacement)
		end

		local CoreGui = game:GetService("CoreGui")
		local RobloxGuis = {
			"RobloxGui",
			"TeleportGui",
			"RobloxPromptGui",
			"RobloxLoadingGui",
			"PlayerList",
			"RobloxNetworkPauseNotification",
			"PurchasePrompt",
			"HeadsetDisconnectedDialog",
			"ThemeProvider",
			"DevConsoleMaster",
		}

		local BlacklistedAssets = {}
		local ContentProvider = game:GetService("ContentProvider")

		local function logDebugMessage(...)
			local Strings = {}

			for _, v in next, { ... } do
				table.insert(Strings, tostring(v))
			end

			local Message = table.concat(Strings, ", ")
			warn(`{Message}\n`)
		end

		local function ValidTraceback(s)
			local dotPos = string.find(s, "%.")
			local colonPos = string.find(s, ":")

			if not dotPos then
				return false
			end

			if not colonPos then
				return true
			end

			return dotPos < colonPos
		end

		local function TracebackLines(str)
			local pos = 1
			return function()
				if not pos then
					return nil
				end
				local p1, p2 = string.find(str, "\r?\n", pos)
				local line
				if p1 then
					line = str:sub(pos, p1 - 1)
					pos = p2 + 1
				else
					line = str:sub(pos)
					pos = nil
				end
				return line
			end
		end

		OldDebugTraceback = shared.SafeHook(getrenv().debug.traceback, function()
			if checkcaller() then
				return OldDebugTraceback()
			end

			local Traceback = OldDebugTraceback()
			local NewTraceback = {}

			for Line in TracebackLines(Traceback) do
				if not ValidTraceback(Line) then
					continue
				end

				table.insert(NewTraceback, Line)
			end

			return table.concat(NewTraceback, "\n")
		end)

		OldDebugInfo = shared.SafeHook(getrenv().debug.info, function(...)
			local ToInspect, LevelOrInfo, _ThreadInfo = ...

			if
				checkcaller()
				or typeof(ToInspect) == "function"
				or typeof(ToInspect) == "thread"
				or not pcall(function(LevelOrInfo) -- Validate arguments
					OldDebugInfo(function() end, LevelOrInfo)
				end, LevelOrInfo)
			then
				return OldDebugInfo(...)
			end

			local ReconstructedConstructedStack = {}
			for Level = 2, 19997 do
				local Function, Source, Line, Name, NumberOfArgs, Varargs = OldDebugInfo(Level, "fslna")

				if not Function or not Source or not Line or not Name then
					break
				end

				if isexecutorclosure(Function) and not shared.Hooking.IncludeInStackFunctions[Function] then
					continue
				end

				table.insert(ReconstructedConstructedStack, {
					f = Function,
					s = Source,
					l = Line,
					n = Name,
					a = { NumberOfArgs, Varargs },
				})
			end

			local InfoLevel = ReconstructedConstructedStack[ToInspect]

			if not InfoLevel then
				-- Max level is 19997 so this guarantees that it will return nothing
				return OldDebugInfo(3e4, LevelOrInfo)
			end

			local ReturnResult = {}
			for idx, info in string.split(LevelOrInfo, "") do
				local Value = InfoLevel[info]

				if typeof(Value) == "table" then
					for _, v in Value do
						table.insert(ReturnResult, v)
					end

					continue
				end

				table.insert(ReturnResult, Value)
			end

			return table.unpack(ReturnResult, 1, #ReturnResult)
		end)

		OldFenv = shared.SafeHook(getrenv().getfenv, function(...)
			if checkcaller() then
				return OldFenv(...)
			end

			local ToInspect = ...

			if ToInspect == 0 then
				return getrenv()
			elseif ToInspect == nil then
				return OldFenv(...)
			end

			local Success, ResultingEnv = pcall(function()
				if typeof(ToInspect) == "number" then
					return OldFenv(ToInspect + 3)
				end

				return OldFenv(ToInspect)
			end)

			if not Success then
				return OldFenv(...)
			end

			if typeof(ToInspect) == "function" then
				if typeof(ResultingEnv["getgenv"]) == "function" and isexecutorclosure(ResultingEnv["getgenv"]) then
					return getrenv()
				end

				return ResultingEnv
			end

			local ReconstructedConstructedStack = {}
			for Level = 2, 19997 do
				local StackInfoSuccess, Data = pcall(function()
					return {
						Environement = OldFenv(Level + 3),
						Function = OldDebugInfo(Level + 3, "f"),
					}
				end)

				if not StackInfoSuccess or not Data then
					break
				end

				local Environement = Data.Environement
				-- local Function = Data.Function

				if typeof(Environement["getgenv"]) == "function" and isexecutorclosure(Environement["getgenv"]) then
					Environement = getrenv()
				end

				table.insert(ReconstructedConstructedStack, Environement)
			end

			local InfoLevel = ReconstructedConstructedStack[ToInspect]

			if not InfoLevel then
				-- Max level is 19997 so this guarantees that it will return error
				return OldFenv(3e4)
			end

			return InfoLevel
		end)

		-- Disable all blacklisted connections

		local BlacklistedSignals = {
			game:GetService("LogService").MessageOut,
			game:GetService("ScriptContext").Error,
		}

		local DummySignals = {}

		for _, Signal in next, BlacklistedSignals do
			for _, Connection in next, getconnections(Signal) do
				-- dawg why does volcano return a thread for Connection.Function
				if
					(Connection.Function
					and type(Connection.Function) == "function"
					and isexecutorclosure(Connection.Function)) or
					Connection.Function == nil -- CoreScript connections return nil for Function
				then
					continue
				else
					Connection:Disable()
				end
			end
		end

		local OldIndex
		OldIndex = hookmetamethod(game, "__index", function(Self, Key)
			if checkcaller() then
				return OldIndex(Self, Key)
			end
			
			local Result = OldIndex(Self, Key)

			for _, BlacklistedSignal in next, BlacklistedSignals do
				if Result == BlacklistedSignal then
					if not DummySignals[BlacklistedSignal] then
						DummySignals[BlacklistedSignal] = Instance.new("BindableEvent").Event
					end

					return DummySignals[BlacklistedSignal]
				end
			end

			return Result
		end)

		local OldNewIndex
		OldNewIndex = hookmetamethod(game, "__newindex", function(Self, Key, Value)
			local AssetIndexes = {
				["MeshID"] = true,
				["TextureID"] = true,
				["MeshId"] = true,
				["TextureId"] = true,
				["Image"] = true,
				["SoundId"] = true,
				["AnimationId"] = true,
			}

			if AssetIndexes[Key] then
				local AssetId = Value

				if typeof(AssetId) == "string" then
					AssetId = tonumber(AssetId:match("%d+"))
				end

				if AssetId and not BlacklistedAssets[AssetId] then
					-- Check if the asset is already loaded so we don't accidentally blacklist a legitimate asset
					local AssetLoaded = false
					if
						ContentProvider:GetAssetFetchStatus("rbxassetid://" .. AssetId)
						== Enum.AssetFetchStatus.Success
					then
						AssetLoaded = true
					end

					if checkcaller() then
						if not AssetLoaded then
							BlacklistedAssets[AssetId] = true
						end
					else
						if BlacklistedAssets[AssetId] then
							-- The game is doing a sanity check where it intentionally loads a blacklisted asset
							-- to see if the executor is blocking it. We need to remove it from the blacklist
							-- so it doesn't get blocked.
							BlacklistedAssets[AssetId] = nil
						end
					end
				end
			end

			if Key == "CanCollide" and (not checkcaller()) then
				local Name = debug.info(3, "n")
				if Name and Name:match("Obfuscated") then
					return coroutine.yield()
				end
			end

			return OldNewIndex(Self, Key, Value)
		end)

		-- Now that we will proxy and record all assets the executor uses, we can load the hook.

		local OldPreloadAsync
		OldPreloadAsync = shared.SafeHook(
			ContentProvider.PreloadAsync,
			function(Self, Assets, OriginalCallback)
				if Self ~= ContentProvider or type(Assets) ~= "table" or type(OriginalCallback) ~= "function" then --note: callback can be nil but in that case it's useless anyways
					return OldPreloadAsync(Self, Assets, OriginalCallback)
				end

				--check for any errors that I might've missed (such as table being {[2] = "something"} which causes "Unable to cast to Array")
				local err
				task.spawn(
					function() --TIL calling a C yield function inside a C yield function is a bad idea ("cannot resume non-suspended coroutine")
						local s, e = pcall(OldPreloadAsync, Self, Assets)
						if not s and e then
							err = e
						end
					end
				)

				if err then
					return OldPreloadAsync(Self, Assets) --don't pass the callback, just in case
				end

				Assets = FilterTable(Assets)
				return OldPreloadAsync(Self, Assets, OriginalCallback)
			end
		)
        end)()

        local Sprint_Module = require(game:GetService("ReplicatedStorage").Modules.Game.Sprint)
        local Function_Table_UpValue = debug.getupvalue(Sprint_Module.loaded, 11)

        local _getfenv; _getfenv = hookfunction(getrenv().getfenv, LPH_NO_VIRTUALIZE(function(level)
            if debug.traceback():find("validity_check") then
                return setmetatable({}, {
                    __index = function(...)
                        return nil
                    end
                });
            end;

            return _getfenv(level);
        end));

        getgenv().Send_Remote = Function_Table_UpValue.send;

        getgenv().AntiCheatBypass = true;
    end

    if Game_Name == "Universal" or Game_Name == "Road To Riches" or Game_Name == "Street Life" or Game_Name == "The Bronx" or Game_Name == "Town" and not Solara then
        local DTC;

        LPH_NO_VIRTUALIZE(function()
            for Index, Value in next, getgc(true) do
                if type(Value) == "table" then
                    local Detected = rawget(Value, "Detected");
                    local Kill = rawget(Value, "Kill");
                    if type(Detected) == "function" and not DTC then
                        DTC = Detected
                        hookfunction(Detected, function(...)
                            return true
                        end);
                    end;
                    if rawget(Value, "Variables") and rawget(Value, "Process") and typeof(Kill) == "function" then          
                        hookfunction(Kill, function(...)
                        end)
                    end;
                end;
            end;
        end)()

        local Old; Old = hookfunction(getrenv().debug.info, LPH_NO_UPVALUES(function(...)
            local LevelOrFunc, Info = ...
            if DTC and LevelOrFunc == DTC then
                return coroutine.yield(coroutine.running())
            end
            return Old(...)
        end));

        getgenv().AntiCheatBypass = true
    end

    repeat Services.RunService.RenderStepped:Wait() until getgenv().AntiCheatBypass == true
end

local OldLightingSettings = {}

OldLightingSettings["Brightness"] = Lighting.Brightness
OldLightingSettings["ClockTime"] = Lighting.ClockTime
OldLightingSettings["FogEnd"] = Lighting.FogEnd
OldLightingSettings["GlobalShadows"] = Lighting.GlobalShadows
OldLightingSettings["OutdoorAmbient"] = Lighting.OutdoorAmbient

do
    LPH_JIT_MAX(function()
        local getnamecallmethod, hookmetamethod, hookfunction = (getnamecallmethod ~= nil) and clonefunction(getnamecallmethod) or function(...) end, (hookmetamethod ~= nil) and clonefunction(hookmetamethod) or function(...) end, (hookfunction ~= nil) and clonefunction(hookfunction) or function(...) end
        _fireproximityprompt = fireproximityprompt
        if Solara or not fireproximityprompt or string.find(identifyexecutor(), "MacSploit") then
            getgenv().fireproximityprompt = LPH_NO_VIRTUALIZE(function(self, vuln)
                local prompt_settings = {["HoldDuration"] = self.HoldDuration; ["RequiresLineOfSight"] = self.RequiresLineOfSight};

                if not vuln then
                    self.HoldDuration = 0; self.RequiresLineOfSight = false;

                    self:InputHoldBegin()

                    if not (self.HoldDuration == 0) then
                        task.wait(self.HoldDuration)
                    end

                    self:InputHoldEnd()

                    for Index, Value in prompt_settings do
                        self[Index] = Value
                    end
                else
                    self.HoldDuration = 0; self.RequiresLineOfSight = false;

                    _fireproximityprompt(self)
                end
            end)
        end

        local Tint = Instance.new("ColorCorrectionEffect", Lighting)
        local OldSaturation = Lighting.ColorCorrection.Saturation
        local OldFogColor = Lighting.FogColor
        local Set_Fog, Set_Fov, Set_FullBright = false, false, false
        RunService.PreRender:Connect(LPH_NO_VIRTUALIZE(function()
            if Config.WorldVisuals.SaturationEnabled then
                Lighting.ColorCorrection.Saturation = Config.WorldVisuals.Saturation_Value
            else
                Lighting.ColorCorrection.Saturation = OldSaturation
            end

            if Config.WorldVisuals.Fullbright then
                Set_FullBright = false
                Lighting.Brightness = 2
                Lighting.ClockTime = 14
                Lighting.FogEnd = 100000
                Lighting.GlobalShadows = false
                Lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128)
            else
                if not Set_FullBright then
                    Set_FullBright = true
                    
                    Lighting.Brightness = OldLightingSettings.Brightness
                    Lighting.FogEnd = OldLightingSettings.FogEnd
                    Lighting.GlobalShadows = OldLightingSettings.GlobalShadows
                    Lighting.OutdoorAmbient = OldLightingSettings.OutdoorAmbient
                end
            end

            if Config.WorldVisuals.AmbientEnabled then
                Tint.TintColor = Config.WorldVisuals.AmbientColor
            else
                Tint.TintColor = Color3.new(1,1,1)
            end

            if Config.WorldVisuals.FogColorEnabled then
                Set_Fog = false
                Lighting.FogColor = Config.WorldVisuals.FogColor
            else
                if not Set_Fog then
                    Set_Fog = true

                    Lighting.FogColor = OldFogColor
                end
            end

            if Config.WorldVisuals.FieldOfViewEnabled then
                Set_Fov = false
                Camera.FieldOfView = Config.WorldVisuals.FieldOfViewValue
            else
                if not Set_Fov then 
                    Set_Fov = true
                    Camera.FieldOfView = 70
                end
            end
        end))

        local Stamina_Table = {};


        local Set_Speed, Set_JumpPower, Set_Spectate = false, false, false
        if Game_Name == "The Bronx" then
            RunService:BindToRenderStep("MiscSettings", 1000 , LPH_NO_VIRTUALIZE(function(Delta)
                if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("Humanoid") or not LocalPlayer.Character:FindFirstChild("Head") then return end

                if Config.TheBronx.PlayerUtilities.SpectatePlayer then
                    Set_Spectate = false
                    local Subject = Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer) and Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character and Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character:FindFirstChild("Humanoid")

                    if not Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer) or not Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character or not Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character:FindFirstChild("Humanoid") then
                        Subject = LocalPlayer.Character.Humanoid
                    end

                    Camera.CameraSubject = Subject
                else
                    if not Set_Spectate then
                        Set_Spectate = true

                        Camera.CameraSubject = LocalPlayer.Character.Humanoid
                    end
                end
            end))
        else
            RunService:BindToRenderStep("MiscSettings", 1000 , LPH_NO_VIRTUALIZE(function()
                if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("Humanoid") or not LocalPlayer.Character:FindFirstChild("Head") then return end

                if Config.South_Bronx.PlayerUtilities.SpectatePlayer then
                    Set_Spectate = false
                    local Subject = Players:FindFirstChild(Config.South_Bronx.PlayerUtilities.SelectedPlayer) and Players:FindFirstChild(Config.South_Bronx.PlayerUtilities.SelectedPlayer).Character and Players:FindFirstChild(Config.South_Bronx.PlayerUtilities.SelectedPlayer).Character:FindFirstChild("Humanoid")

                    if not Players:FindFirstChild(Config.South_Bronx.PlayerUtilities.SelectedPlayer) or not Players:FindFirstChild(Config.South_Bronx.PlayerUtilities.SelectedPlayer).Character or not Players:FindFirstChild(Config.South_Bronx.PlayerUtilities.SelectedPlayer).Character:FindFirstChild("Humanoid") then
                        Subject = LocalPlayer.Character.Humanoid
                    end

                    Camera.CameraSubject = Subject
                else
                    if not Set_Spectate then
                        Set_Spectate = true

                        Camera.CameraSubject = LocalPlayer.Character.Humanoid
                    end
                end
            end))
        end

        WorldToScreenPoint = Camera.WorldToScreenPoint;
        GetMouseLocation = UserInputService.GetMouseLocation;
        FindFirstChild = Workspace.FindFirstChild;
        GetPlayers = Players.GetPlayers;
        GetChildren = Workspace.GetChildren;
        GetPartsObscuringTarget = Camera.GetPartsObscuringTarget;
        GetDescendants = Workspace.GetDescendants;
        IsA = Workspace.IsA;
        FindFirstChildOfClass = Workspace.FindFirstChildOfClass

        DistanceCheck = LPH_NO_VIRTUALIZE(function(Player, Distance)
            if not Player then
                return false
            end

            if Player.Character and FindFirstChild(Player.Character,"HumanoidRootPart") then
                local Magnitude = (Camera.CFrame.Position - FindFirstChild(Player.Character,"HumanoidRootPart").Position).Magnitude;

                return Distance > Magnitude
            end;

            return false            
        end);

        WallCheck = LPH_NO_VIRTUALIZE(function(Character)
            local Origin = Camera.CFrame.Position;
            local Position = FindFirstChild(Character, "Head").Position;
            local Parameters = RaycastParams.new();
        
            Parameters.FilterDescendantsInstances = { LocalPlayer.Character, Camera, Character };
            Parameters.FilterType = Enum.RaycastFilterType.Blacklist;
            Parameters.IgnoreWater = true;
        
            return not Workspace:Raycast(Origin, Position - Origin, Parameters)            
        end)

        GetClosestPlayerToMouseAimbot = LPH_NO_VIRTUALIZE(function()
            if not Config.Aimlock.Enabled then return end
            if not Config.Aimlock.Aiming then return end
            
            local PriorityPlayers = {}

            local Plrs = Players:GetPlayers()

            if library.priority[1] then
                for Index, Value in Plrs do
                    if Value == LocalPlayer then continue end;
                    if not table.find(library.priority, Value.Name) then continue end;
                    if table.find(library.whitelist, Value.Name) then continue end;
                    if (Value.Character and Value.Character:FindFirstChild(Config.Aimlock.TargetPart) and Value.Character:FindFirstChild("Humanoid") and Value.Character:FindFirstChild("Humanoid").Health > (Game_Name == "South Bronx" and 4 or 0)) then
                        if FindFirstChildOfClass(Value.Character, "ForceField") then continue end
                        if FindFirstChild(Value.Character, "Torso") and FindFirstChild(Value.Character, "Torso").Material == Enum.Material.ForceField then continue end
                        if Value.Character.Parent == nil then continue end
                        local TargetPart = Value.Character:FindFirstChild(Config.Aimlock.TargetPart)
                        local MouseLocation = Vector2.new(Mouse.X, Mouse.Y)
                        local TargetPartPosition, OnScreen = Camera:WorldToScreenPoint(TargetPart.Position)
                        local Radius = Config.Aimlock.UseFieldOfView and Config.Aimlock.Radius or 9e9
                        local Magnitude = (Vector2.new(TargetPartPosition.X,TargetPartPosition.Y) - MouseLocation).Magnitude
                        if not DistanceCheck(Value, Config.Aimlock.MaxDistance) then continue end

                        if Radius > Magnitude and OnScreen and Value then
                            if (Config.Aimlock.WallCheck and not WallCheck(Value.Character)) then continue end
                            table.insert(PriorityPlayers, {Player = Value, Distance = Magnitude})
                        end
                    end;
                end;
                
                table.sort(PriorityPlayers, function(Player , PlayerTwo)
                    return Player.Distance<PlayerTwo.Distance
                end)

                if PriorityPlayers[1] then
                    return PriorityPlayers[1].Player
                end;
            end;

            local ValidPlayers = {};

            for Index, Value in Plrs do
                if Value == LocalPlayer then continue end;
                if table.find(library.whitelist, Value.Name) then continue end;
                if (Value.Character and Value.Character:FindFirstChild(Config.Aimlock.TargetPart) and Value.Character:FindFirstChild("Humanoid") and Value.Character:FindFirstChild("Humanoid").Health > (Game_Name == "South Bronx" and 4 or 0)) then
                    if FindFirstChildOfClass(Value.Character, "ForceField") then continue end
                    if FindFirstChild(Value.Character, "Torso") and FindFirstChild(Value.Character, "Torso").Material == Enum.Material.ForceField then continue end
                    if Value.Character.Parent == nil then continue end
                    local TargetPart = Value.Character:FindFirstChild(Config.Aimlock.TargetPart)
                    local MouseLocation = Vector2.new(Mouse.X, Mouse.Y)
                    local TargetPartPosition, OnScreen = Camera:WorldToScreenPoint(TargetPart.Position)
                    local Radius = Config.Aimlock.UseFieldOfView and Config.Aimlock.Radius or 9e9
                    local Magnitude = (Vector2.new(TargetPartPosition.X,TargetPartPosition.Y) - MouseLocation).Magnitude
                    if not DistanceCheck(Value, Config.Aimlock.MaxDistance) then continue end

                    if Radius > Magnitude and OnScreen and Value then
                        if (Config.Aimlock.WallCheck and not WallCheck(Value.Character)) then continue end
                        table.insert(ValidPlayers, {Player = Value, Distance = Magnitude})
                    end;
                end;
            end;
            
            table.sort(ValidPlayers, function(Player , PlayerTwo)
                return Player.Distance<PlayerTwo.Distance
            end);
            
            if ValidPlayers[1] then
                return ValidPlayers[1].Player
            end;

            return nil
        end);

        GetClosestPlayerToPlayer = LPH_NO_VIRTUALIZE(function(Player)
            local _Players = {}

            if not Player.Character or not Player.Character:FindFirstChild("HumanoidRootPart") or not Player.Character:FindFirstChild("Humanoid") then return end

            for Index, Value in Players:GetPlayers() do
                if Player == LocalPlayer and Value == LocalPlayer then continue end

                if not Value.Character or not Value.Character:FindFirstChild("HumanoidRootPart") or not Value.Character:FindFirstChild("Humanoid") then continue end
                if Value.Character:FindFirstChild("Humanoid").Health == 0 then continue end

                if (Player.Character.HumanoidRootPart.Position - Value.Character.HumanoidRootPart.Position).Magnitude > 15 then continue end

                table.insert(_Players, {Plr = Value, Range = (Player.Character.HumanoidRootPart.Position - Value.Character.HumanoidRootPart.Position).Magnitude})
            end

            table.sort(_Players, function(...)
                return select(1, ...).Range < select(2, ...).Range
            end)

            return _Players[1] and _Players[1].Plr or nil
        end);

        GetClosestPlayerToMouseSilent = LPH_NO_VIRTUALIZE(function()
            if not Config.Silent.Enabled then return end
            if not Config.Silent.Targetting then return end
            
            local PriorityPlayers = {}

            local Plrs = GetPlayers(Players)

            if library.priority[1] then
                for Index, Value in Plrs do
                    if Value == LocalPlayer then continue end;
                    if not table.find(library.priority, Value.Name) then continue end;
                    if table.find(library.whitelist, Value.Name) then continue end;
                    if (Value.Character and FindFirstChild(Value.Character, "HumanoidRootPart") and FindFirstChild(Value.Character,"Humanoid") and FindFirstChild(Value.Character,"Humanoid").Health > (Game_Name == "South Bronx" and 4 or 0)) then
                        if FindFirstChildOfClass(Value.Character, "ForceField") then continue end
                        if FindFirstChild(Value.Character, "Torso") and FindFirstChild(Value.Character, "Torso").Material == Enum.Material.ForceField then continue end
                        if Value.Character.Parent == nil then continue end
                        local TargetPart = FindFirstChild(Value.Character, "HumanoidRootPart");
                        local MouseLocation = Vector2.new(Mouse.X, Mouse.Y)
                        local TargetPartPosition, OnScreen = WorldToScreenPoint(Camera, TargetPart.Position);
                        local Radius = Config.Silent.UseFieldOfView and Config.Silent.Radius or 9e9;
                        local Magnitude = (Vector2.new(TargetPartPosition.X,TargetPartPosition.Y) - MouseLocation).Magnitude;
                        if not DistanceCheck(Value, Config.Silent.MaxDistance) then continue end
                        
                        if Radius > Magnitude and OnScreen and Value then
                            if not Config.Silent.WallBang and (Config.Silent.WallCheck and (not WallCheck(Value.Character))) then continue end;
                            table.insert(PriorityPlayers, {Player = Value, Distance = Magnitude});
                        end;
                    end;
                end;
                
                table.sort(PriorityPlayers, function(Player , PlayerTwo)
                    return Player.Distance<PlayerTwo.Distance
                end);

                if PriorityPlayers[1] then
                    return PriorityPlayers[1].Player
                end;
            end;

            local ValidPlayers = {};

            for Index, Value in Plrs do
                if Value == LocalPlayer then continue end;
                if table.find(library.whitelist, Value.Name) then continue end;
                if (Value.Character and FindFirstChild(Value.Character, "HumanoidRootPart") and FindFirstChild(Value.Character,"Humanoid") and FindFirstChild(Value.Character,"Humanoid").Health > (Game_Name == "South Bronx" and 4 or 0)) then
                    if FindFirstChildOfClass(Value.Character, "ForceField") then continue end
                    if FindFirstChild(Value.Character, "Torso") and FindFirstChild(Value.Character, "Torso").Material == Enum.Material.ForceField then continue end
                    if Value.Character.Parent == nil then continue end
                    local TargetPart = FindFirstChild(Value.Character, "HumanoidRootPart")
                    local MouseLocation = Vector2.new(Mouse.X, Mouse.Y)
                    local TargetPartPosition, OnScreen = WorldToScreenPoint(Camera, TargetPart.Position)
                    local Radius = Config.Silent.UseFieldOfView and Config.Silent.Radius or 9e9
                    local Magnitude = (Vector2.new(TargetPartPosition.X,TargetPartPosition.Y) - MouseLocation).Magnitude
                    if not DistanceCheck(Value, Config.Silent.MaxDistance) then continue end
                    
                    if Radius > Magnitude and OnScreen and Value then
                        if not Config.Silent.WallBang and (Config.Silent.WallCheck and not WallCheck(Value.Character)) then continue end
                        table.insert(ValidPlayers, {Player = Value, Distance = Magnitude})
                    end
                end;
            end;
            
            table.sort(ValidPlayers, function(Player , PlayerTwo)
                return Player.Distance<PlayerTwo.Distance                
            end);
            
            if ValidPlayers[1] then
                return ValidPlayers[1].Player                
            end;

            return nil            
        end);

        SilentTarget = GetClosestPlayerToMouseSilent()

        TargetTable = {GetClosestPlayerToMouseAimbot();}
        
        local __namecall; __namecall = Solara and nil or not Solara and hookmetamethod(Workspace, "__namecall", LPH_NO_VIRTUALIZE(function(...)
            local Arguments = {...};
            local Method = getnamecallmethod();

            if checkcaller() then
                return __namecall(...)
            end;

            if not SilentTarget then
                return __namecall(...)
            end;

            if not Config.Silent.Enabled then
                return __namecall(...)
            end;

            if Game_Name == "Town" then
                if tostring(getcallingscript()) ~= "GunScript" then
                    return __namecall(...)
                end
            end

            if not (mathrandom(0, 100) <= Config.Silent.HitChance) then
                return __namecall(...)
            end

            if Game_Name == "The Bronx" then
                local Script = getcallingscript()

                if not (Script.Name == "GunScript_Local" or Script.Name == "BulletVisualizerServerScript" or Script.Name == "BulletVisualizerClientScript") then
                    return __namecall(...)
                end
            end

            local RandomPart = Config.Silent.TargetPart[1] and Config.Silent.TargetPart[math.random(1, #Config.Silent.TargetPart)] or "Head"
            
            if Method == "Raycast" and table.find(Config.Game.Ray_Systems, "Raycast") then
                local Script = getcallingscript()

                if Game_Name == "BlockSpin" then
                    if Script and not (Script.Name == "Gun") then
                        return __namecall(...)
                    end
                end

                if Config.Silent.Enabled then
                    if Config.Silent.Targetting then
                        local Target = SilentTarget
                        if Target and Target.Character and FindFirstChild(Target.Character, RandomPart) and FindFirstChild(Target.Character,"Humanoid") and FindFirstChild(Target.Character,"Humanoid").Health ~= 0 then
                            local TargetPart = FindFirstChild(Target.Character, RandomPart);
                            local Origin = Arguments[2];
                            local Direction = (TargetPart.Position - Origin).Unit * 1000;

                            Arguments[3] = Direction;
                        end;

                        if Config.Silent.WallBang and Game_Name ~= "BlockSpin" then
                            local FilterDescendantsInstances = {};

                            if Target.Character then
                                for Index, Value in pairs(GetDescendants(Target.Character)) do
                                    if IsA(Value, "Part") or IsA(Value, "BasePart") or IsA(Value, "MeshPart") then
                                        table.insert(FilterDescendantsInstances, Value)
                                    end
                                end;
                            end;

                            local RaycastParams = RaycastParams.new();

                            RaycastParams.FilterType = Enum.RaycastFilterType.Include
                            RaycastParams.IgnoreWater = false
                            RaycastParams.RespectCanCollide = false
                            RaycastParams.FilterDescendantsInstances = FilterDescendantsInstances
                            Arguments[4] = RaycastParams
                        end;

                        if not Config.Silent.WallBang and Game_Name == "South Bronx" then
                            local RaycastParams = RaycastParams.new()
                            RaycastParams.FilterType = Enum.RaycastFilterType.Blacklist
                            RaycastParams.FilterDescendantsInstances = {LocalPlayer.Character}
                            Arguments[4] = RaycastParams
                        end;

                        return __namecall(unpack(Arguments))
                    end;
                end;
            end;

            if string.find(string.lower(Method), "findpartonray") and (table.find(Config.Game.Ray_Systems, "FindPartOnRay") or table.find(Config.Game.Ray_Systems, "FindPartOnRayWithWhitelist")) then
                if Config.Silent.Enabled then
                    if Config.Silent.Targetting and mathrandom(0, 100) <= Config.Silent.HitChance then
                        local Target = SilentTarget;
                        if Target and Target.Character and FindFirstChild(Target.Character, RandomPart) and FindFirstChild(Target.Character,"Humanoid") and FindFirstChild(Target.Character,"Humanoid").Health ~= 0 then
                            local TargetPart = FindFirstChild(Target.Character, RandomPart);
                            local Origin = Arguments[2].Origin;

                            local Direction = (TargetPart.Position - Origin).Unit * 9e17;

                            Arguments[2] = Ray.new(Origin, Direction)

                            if Config.Silent.WallBang then
                                return TargetPart, TargetPart.Position, Vector3.new(0,0,0)
                            end

                            return __namecall(unpack(Arguments))
                        end;
                    end;
                end;
            end;

            return __namecall(...)
        end));

        local function Draw(ClassName, Properties)
            local Drawing = Drawing.new(ClassName);

            for Property, Value in Properties do
                Drawing[Property] = Value;
            end;

            return Drawing
        end;

        local AimbotFieldOfViewOutline = Draw("Circle", {Visible = false, Color = Color3.new(0, 0, 0), Radius = 100, NumSides = 100, Thickness = 4});
        local AimbotFieldOfView = Draw("Circle", {Visible = false, Color = Color3.new(1, 1, 1), Radius = 100, NumSides = 100, Thickness = 2});
        local AimbotFieldOfViewFill = Draw("Circle", {Visible = false, Color = Color3.new(1, 1, 1), Radius = 100, NumSides = 100, Thickness = 2, Filled = true});

        local AimbotSnaplineOutline = Draw("Line", {Visible = false, Color = Color3.new(0, 0, 0), Thickness = 3});
        local AimbotSnapline = Draw("Line", {Visible = false, Color = Color3.new(1, 1, 1), Thickness = 1});

        
        local SilentFieldOfViewOutline = Draw("Circle", {Visible = false, Color = Color3.new(0, 0, 0), Radius = 100, NumSides = 100, Thickness = 4});
        local SilentFieldOfView = Draw("Circle", {Visible = false, Color = Color3.new(1, 1, 1), Radius = 100, NumSides = 100, Thickness = 2});
        local SilentFieldOfViewFill = Draw("Circle", {Visible = false, Color = Color3.new(1, 1, 1), Radius = 100, NumSides = 100, Thickness = 2, Filled = true});
        
        local SilentSnaplineOutline = Draw("Line", {Visible = false, Color = Color3.new(0, 0, 0), Thickness = 3});
        local SilentSnapline = Draw("Line", {Visible = false, Color = Color3.new(1, 1, 1), Thickness = 1});

        RunService:BindToRenderStep("Functions",math.huge,LPH_NO_VIRTUALIZE(function()
            if Config.Silent.Mode == "Always" then
                Config.Silent.Targetting = true;
            end;
        
            local MouseLocation = UserInputService:GetMouseLocation()

            if (not LocalPlayer) or (not LocalPlayer.Character) or (not LocalPlayer.Character:FindFirstChild("Humanoid")) then
                return                
            end;

            if not TargetTable[1] then
                TargetTable[1] = GetClosestPlayerToMouseAimbot();
            end;

            if (TargetTable[1] and TargetTable[1].Character and TargetTable[1].Character:FindFirstChild("Humanoid") and TargetTable[1].Character:FindFirstChild("Humanoid").Health == 0) then
                TargetTable[1] = nil
            end
            
            local Target = TargetTable[1]
            if (Config.Aimlock.Enabled and Config.Aimlock.Aiming and Config.Aimlock.Type == "Mouse") and (Target and Target.Character and Target.Character:FindFirstChild(Config.Aimlock.TargetPart)) then
                local TargetPosition = Target.Character:FindFirstChild(Config.Aimlock.TargetPart).Position;
                local Result, OnScreen = Camera:WorldToScreenPoint(TargetPosition);
                if OnScreen then
                    Move_Mouse_Function(Vector2.new(Result.X - Mouse.X, Result.Y - Mouse.Y).X / (Config.Aimlock.Smoothness+1) , Vector2.new(Result.X - Mouse.X, Result.Y - Mouse.Y).Y / (Config.Aimlock.Smoothness + 1));
                end
            elseif (Config.Aimlock.Enabled and Config.Aimlock.Aiming and Config.Aimlock.Type == "Camera") and (Target and Target.Character and Target.Character:FindFirstChild(Config.Aimlock.TargetPart)) then
                local Smoothness = Config.Aimlock.Smoothness * 10;
                Camera.CFrame = Camera.CFrame:Lerp(CFrame.new(Camera.CFrame.p, Target.Character:FindFirstChild(Config.Aimlock.TargetPart).Position), (100 - Smoothness) / 100);
            end;
        
            SilentTarget = GetClosestPlayerToMouseSilent()
            local AimlockTarget = TargetTable[1]

            AimbotFieldOfView.Visible = Config.Aimlock.Enabled and Config.Aimlock.DrawFieldOfView and Config.Aimlock.UseFieldOfView
            AimbotFieldOfView.Radius = Config.Aimlock.Radius
            AimbotFieldOfView.Color = Config.Aimlock.FieldOfViewColor
            AimbotFieldOfView.NumSides = Config.Aimlock.Sides
            AimbotFieldOfView.Position = MouseLocation
            AimbotFieldOfView.NumSides = Config.Aimlock.Sides
            AimbotFieldOfViewOutline.NumSides = Config.Aimlock.Sides
            AimbotFieldOfViewOutline.Radius = AimbotFieldOfView.Radius
            AimbotFieldOfViewOutline.Position = AimbotFieldOfView.Position
            AimbotFieldOfViewOutline.Visible = AimbotFieldOfView.Visible

            AimbotFieldOfViewFill.Visible = AimbotFieldOfView.Visible
            AimbotFieldOfViewFill.NumSides = AimbotFieldOfView.NumSides
            AimbotFieldOfViewFill.Color = AimbotFieldOfView.Color
            AimbotFieldOfViewFill.Radius = AimbotFieldOfView.Radius
            AimbotFieldOfViewFill.Position = AimbotFieldOfView.Position
            AimbotFieldOfViewFill.Transparency = Config.Aimlock.FieldOfViewTransparency

            SilentFieldOfView.Visible = Config.Silent.Enabled and Config.Silent.UseFieldOfView and Config.Silent.DrawFieldOfView
            SilentFieldOfView.Radius = Config.Silent.Radius
            SilentFieldOfView.NumSides = Config.Silent.Sides
            SilentFieldOfView.Color = Config.Silent.FieldOfViewColor
            SilentFieldOfView.NumSides = Config.Silent.Sides
            SilentFieldOfView.Position = MouseLocation

            SilentFieldOfViewFill.Visible = SilentFieldOfView.Visible
            SilentFieldOfViewFill.NumSides = SilentFieldOfView.NumSides
            SilentFieldOfViewFill.Color = SilentFieldOfView.Color
            SilentFieldOfViewFill.Radius = SilentFieldOfView.Radius
            SilentFieldOfViewFill.Position = SilentFieldOfView.Position
            SilentFieldOfViewFill.Transparency = Config.Silent.FieldOfViewTransparency

            SilentFieldOfViewOutline.NumSides = Config.Silent.Sides
            SilentFieldOfViewOutline.Position = SilentFieldOfView.Position
            SilentFieldOfViewOutline.Visible = SilentFieldOfView.Visible
            SilentFieldOfViewOutline.Radius = SilentFieldOfView.Radius

            SilentSnapline.Visible = (Config.Silent.Enabled == true) and (Config.Silent.Targetting == true) and Config.Silent.Snapline and (SilentTarget ~= nil)
            SilentSnapline.Color = Config.Silent.SnaplineColor
            SilentSnapline.Thickness = Config.Silent.SnaplineThickness;
            SilentSnaplineOutline.Thickness = Config.Silent.SnaplineThickness + 2
            SilentSnaplineOutline.Visible = SilentSnapline.Visible

            AimbotSnapline.Color = Config.Aimlock.SnaplineColor
            AimbotSnapline.Visible = (Config.Aimlock.Enabled == true) and (Config.Aimlock.Aiming == true) and Config.Aimlock.Snapline and (AimlockTarget ~= nil)
            AimbotSnapline.Thickness = Config.Aimlock.SnaplineThickness;
            AimbotSnaplineOutline.Thickness = Config.Aimlock.SnaplineThickness + 2
            AimbotSnaplineOutline.Visible = AimbotSnapline.Visible

            if (not SilentTarget or not SilentTarget.Character or not SilentTarget.Character:FindFirstChild("Head")) then
                SilentSnapline.Visible = false
            end;

            if (not AimlockTarget or not AimlockTarget.Character or not AimlockTarget.Character:FindFirstChild(Config.Aimlock.TargetPart)) then
                AimbotSnapline.Visible = false
            end;

            local _Part = "Head"

            if SilentTarget and SilentTarget.Character and SilentTarget.Character:FindFirstChild(_Part) then
                local SilentPosition, OnScreen = Camera:WorldToViewportPoint(SilentTarget.Character:FindFirstChild(_Part).Position)

                SilentSnapline.Visible = (Config.Silent.Snapline and SilentTarget and OnScreen)
                SilentSnapline.Visible = SilentSnapline.Visible

                if (SilentSnapline.Visible and OnScreen) then
                    SilentSnapline.From = MouseLocation
                    SilentSnaplineOutline.From = SilentSnapline.From

                    SilentSnapline.To = Vector2.new(SilentPosition.X, SilentPosition.Y)
                    SilentSnaplineOutline.To = SilentSnapline.To
                end;
            end;

            if AimlockTarget and AimlockTarget.Character and AimlockTarget.Character:FindFirstChild(Config.Aimlock.TargetPart) then
                local AimlockPosition, OnScreen = Camera:WorldToViewportPoint(AimlockTarget.Character:FindFirstChild(Config.Aimlock.TargetPart).Position)

                AimbotSnapline.Visible = (Config.Aimlock.Snapline and AimlockTarget and OnScreen)
                AimbotSnaplineOutline.Visible = AimbotSnapline.Visible

                if (AimbotSnapline.Visible and OnScreen) then
                    AimbotSnapline.From = MouseLocation
                    AimbotSnaplineOutline.From = AimbotSnapline.From

                    AimbotSnapline.To = Vector2.new(AimlockPosition.X, AimlockPosition.Y)
                    AimbotSnaplineOutline.To = AimbotSnapline.To
                end;
            end;
        end));

        if not LocalPlayer.Character then
            LocalPlayer.CharacterAdded:Wait()
        end

        local ConnectHitboxToPlayer = function(Player)
            task.spawn(LPH_NO_VIRTUALIZE(function()
                while (Player ~= nil) and task.wait(0.25) do
                    if not Player.Character then continue end
                    if Player.Character then
                        if not Player.Character:FindFirstChild("HumanoidRootPart") or not Player.Character:FindFirstChild("Humanoid") then
                            continue
                        end

                        if not Player.Character:FindFirstChild("Head") or not Player.Character:FindFirstChild("Humanoid") then
                            continue
                        end

                        local HumanoidRootPart, Head, Humanoid = Player.Character:FindFirstChild("HumanoidRootPart"), Player.Character:FindFirstChild("Head"), Player.Character:FindFirstChild("Humanoid")

                        if Humanoid.Sit and not DefaultPlayerSettings[Player.Name] then continue end

                        if not DefaultPlayerSettings[Player.Name] then
                            DefaultPlayerSettings[Player.Name] = {}
                            DefaultPlayerSettings[Player.Name].HeadSettings = {}
                            DefaultPlayerSettings[Player.Name].RootSettings = {}

                            DefaultPlayerSettings[Player.Name].HeadSettings.Size = Head.Size
                            DefaultPlayerSettings[Player.Name].HeadSettings.Color = Head.Color
                            DefaultPlayerSettings[Player.Name].HeadSettings.Massless = Head.Massless
                            DefaultPlayerSettings[Player.Name].HeadSettings.CanCollide = Head.CanCollide
                            DefaultPlayerSettings[Player.Name].HeadSettings.Material = Head.Material
                            DefaultPlayerSettings[Player.Name].HeadSettings.Transparency = Head.Transparency

                            DefaultPlayerSettings[Player.Name].RootSettings.Size = HumanoidRootPart.Size
                            DefaultPlayerSettings[Player.Name].RootSettings.Color = HumanoidRootPart.Color
                            DefaultPlayerSettings[Player.Name].RootSettings.Massless = HumanoidRootPart.Massless
                            DefaultPlayerSettings[Player.Name].RootSettings.CanCollide = HumanoidRootPart.CanCollide
                            DefaultPlayerSettings[Player.Name].RootSettings.Material = HumanoidRootPart.Material
                            DefaultPlayerSettings[Player.Name].RootSettings.Transparency = HumanoidRootPart.Transparency
                            DefaultPlayerSettings[Player.Name].RootSettings.Shape = HumanoidRootPart.Shape
                        end

                        if not Config.MiscSettings.Hitbox_Expander.Enabled or Humanoid.Sit or Humanoid.Health == 0 or table.find(library.whitelist, Player.Name) then
                            for Index, Value in DefaultPlayerSettings[Player.Name].RootSettings do
                                HumanoidRootPart[Index] = Value
                            end

                            for Index, Value in DefaultPlayerSettings[Player.Name].HeadSettings do
                                Head[Index] = Value
                            end

                            if Head:FindFirstChild("MeshPart") then
                                Head.Mesh.MeshId = "rbxassetid://8635368421"
                            end

                            continue
                        end

                        if Config.MiscSettings.Hitbox_Expander.Part == "Head" and Config.MiscSettings.Hitbox_Expander.Enabled then
                            for Index, Value in DefaultPlayerSettings[Player.Name].RootSettings do
                                HumanoidRootPart[Index] = Value
                            end
                        end

                        if Config.MiscSettings.Hitbox_Expander.Part == "HumanoidRootPart" and Config.MiscSettings.Hitbox_Expander.Enabled then
                            for Index, Value in DefaultPlayerSettings[Player.Name].HeadSettings do
                                Head[Index] = Value
                            end

                            if Head:FindFirstChild("MeshPart") then
                                Head.Mesh.MeshId = "rbxassetid://8635368421"
                            end
                        end

                        if Config.MiscSettings.Hitbox_Expander.Part == "Head" then
                            if Config.MiscSettings.Hitbox_Expander.Enabled and Humanoid.Health ~= 0 then
                                Head.Size = Vector3.new(Config.MiscSettings.Hitbox_Expander.Multiplier, Config.MiscSettings.Hitbox_Expander.Multiplier, Config.MiscSettings.Hitbox_Expander.Multiplier)
                                Head.Transparency = Config.MiscSettings.Hitbox_Expander.Transparency
                                Head.Material = Enum.Material[Config.MiscSettings.Hitbox_Expander.Material]
                                Head.Color = Config.MiscSettings.Hitbox_Expander.Color
                                Head.CanCollide = not DefaultPlayerSettings[Player.Name].HeadSettings.CanCollide
                                Head.Massless = not DefaultPlayerSettings[Player.Name].HeadSettings.Massless

                                if Head:FindFirstChild("MeshPart") then
                                    Head.Mesh.MeshId = ""
                                end
                            end
                        else
                            if Config.MiscSettings.Hitbox_Expander.Enabled and Humanoid.Health ~= 0 then
                                HumanoidRootPart.Size = Vector3.new(Config.MiscSettings.Hitbox_Expander.Multiplier, Config.MiscSettings.Hitbox_Expander.Multiplier, Config.MiscSettings.Hitbox_Expander.Multiplier)
                                HumanoidRootPart.Transparency = Config.MiscSettings.Hitbox_Expander.Transparency
                                HumanoidRootPart.Material = Enum.Material[Config.MiscSettings.Hitbox_Expander.Material]
                                HumanoidRootPart.Shape = Enum.PartType[Config.MiscSettings.Hitbox_Expander.Type]
                                HumanoidRootPart.Color = Config.MiscSettings.Hitbox_Expander.Color
                                HumanoidRootPart.CanCollide = not DefaultPlayerSettings[Player.Name].RootSettings.CanCollide
                            end
                        end
                    end
                end
            end))
        end

        for Index, Value in Players:GetPlayers() do
            if Value == LocalPlayer then continue end;
            if Game_Name == "South Bronx" then continue end
            if Game_Name == "Criminality" then continue end
            if Game_Name == "Universal" then continue end
            if Game_Name == "BlockSpin" then continue end

            ConnectHitboxToPlayer(Value)
        end

        Players.PlayerAdded:Connect(function(Value)
            if Game_Name == "South Bronx" then return end
            if Game_Name == "Criminality" then return end
            if Game_Name == "Universal" then return end
            if Game_Name == "BlockSpin" then return end

            ConnectHitboxToPlayer(Value)
        end)

        --local StaminaRegen, MaxStamina = LocalPlayer:GetAttribute("StaminaRegen"), LocalPlayer:GetAttribute("MaxStamina")

        if Game_Name == "BlockSpin" then
            --[[local Set_Stamina = false;

            RunService.PreRender:Connect(LPH_NO_VIRTUALIZE(function()
                if Config.BlockSpin.LocalPlayer.InfiniteStamina then
                    Set_Stamina = false
                    LocalPlayer:SetAttribute("StaminaRegen", math.huge)
                    LocalPlayer:SetAttribute("MaxStamina", math.huge)
                else
                    if not Set_Stamina then
                        Set_Stamina = true
                        LocalPlayer:SetAttribute("StaminaRegen", StaminaRegen)
                        LocalPlayer:SetAttribute("MaxStamina", MaxStamina)
                    end
                end
            end))]]

            local _Send; _Send = hookfunction(Send_Remote, LPH_NO_VIRTUALIZE(function(...)
                local Arguments = {...}

                if Arguments[1] == "throw_hit" then
                    if not Config.Silent.Enabled then
                        return _Send(...)
                    end

                    if checkcaller() or not SilentTarget or not (mathrandom(0, 100) <= Config.Silent.HitChance) then
                        return _Send(...)
                    end

                    local RandomPart = Config.Silent.TargetPart[1] and Config.Silent.TargetPart[math.random(1, #Config.Silent.TargetPart)] or "Head"

                    local TargetPart = SilentTarget.Character:FindFirstChild(RandomPart)

                    if not SilentTarget.Character or not TargetPart then
                        return _Send(...)
                    end

                    Arguments[3] = TargetPart
                    Arguments[4] = TargetPart.CFrame
                end

                return _Send(unpack(Arguments))
            end))

            local PressKey = function(KeyCode, Duration)
                task.spawn(function()
                    VirtualInputManager:SendKeyEvent(false, KeyCode, false, game)
                    VirtualInputManager:SendKeyEvent(true, KeyCode, false, game)
                    task.wait(Duration)
                    VirtualInputManager:SendKeyEvent(false, KeyCode, false, game)
                end)
            end

            local Get_Puddle = LPH_NO_VIRTUALIZE(function()
                local CurrentPuddle, MaxDistance, BestPath = nil, math.huge, nil

                for _, v in ipairs(Workspace.Map.Tiles.BurgerPlaceTile.BurgerPlace.Interior.Puddles:GetChildren()) do
                    if v:IsA("BasePart") and v.Parent and (v.Name == "SmallPuddle" or v.Name == "LargePuddle") and v.Size.X >= 1 and v.Size.Z >= 1 and (v.Position - Vector3.new(150, 253, -250)).Magnitude > 3 then
                        local hrp = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
                        if not hrp then continue end

                        local Path = Services.PathfindingService:CreatePath({
                            AgentRadius = 1,
                            AgentHeight = 4,
                            AgentCanJump = false,
                            AgentCanClimb = true,
                        })

                        local targetPos = v.Position + Vector3.new(0, 2, 0)
                        Path:ComputeAsync(hrp.Position, targetPos)

                        if Path.Status ~= Enum.PathStatus.NoPath then
                            local dist = (hrp.Position - v.Position).Magnitude
                            if dist < MaxDistance then
                                CurrentPuddle = v
                                MaxDistance = dist
                                BestPath = Path
                            end
                        end
                    end
                end

                return CurrentPuddle, BestPath
            end)


            local Mop_FarmThread

            Start_MopFarm = function()
                Mop_FarmThread = task.spawn(LPH_JIT_MAX(function()
                    while task.wait(1) do
                        if not Config.BlockSpin.AutoFarming.FarmMops then continue end

                        local character = LocalPlayer.Character
                        local humanoid = character and character:FindFirstChild("Humanoid")
                        local hrp = character and character:FindFirstChild("HumanoidRootPart")

                        if not humanoid or humanoid.Health <= 0 or not hrp then continue end

                        local puddle, path = Get_Puddle()

                        if not puddle or not puddle:IsDescendantOf(game) or puddle.Size.X < 1 or puddle.Size.Z < 1 or not path or path.Status == Enum.PathStatus.NoPath then
                            continue
                        end

                        VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.LeftShift, false, game)
                        local waypoints = path:GetWaypoints()

                        if not puddle or not puddle:IsDescendantOf(game) or puddle.Size.X < 1 or puddle.Size.Z < 1 or not path or path.Status == Enum.PathStatus.NoPath then
                            continue
                        end

                        local default_time = puddle.Name == "SmallPuddle" and 5 or puddle.Name == "LargePuddle" and 10

                        default_time = 
                            (Config.BlockSpin.AutoFarming.MopType == "Default" and default_time) or
                            (Config.BlockSpin.AutoFarming.MopType == "Silver" and default_time * 0.8) or
                            (Config.BlockSpin.AutoFarming.MopType == "Gold" and default_time * 0.7) or
                            (Config.BlockSpin.AutoFarming.MopType == "Diamond" and default_time * 0.6) or
                            default_time

                        for index, waypoint in ipairs(waypoints) do
                            humanoid:MoveTo(waypoint.Position)
                            humanoid.MoveToFinished:Wait()

                            if not puddle:IsDescendantOf(game) or puddle.Size.X < 1 or puddle.Size.Z < 1 then
                                break
                            end

                            if index == #waypoints then
                                VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.LeftShift, false, game)
                                PressKey(Enum.KeyCode.W, 0.1)
                                task.wait(default_time + 0.25)
                            end
                        end
                    end
                end))
            end


            Stop_MopFarm = LPH_NO_VIRTUALIZE(function()
                if not Mop_FarmThread then return end
                if coroutine.status(Mop_FarmThread) == "suspended" then
                    task.cancel(Mop_FarmThread)
                end
            end)

            LocalPlayer.CharacterAdded:Connect(LPH_NO_VIRTUALIZE(function()
                if Mop_FarmThread then
                    Stop_MopFarm()
                end
            end))
        end

        if Game_Name == "The Bronx" then
            RequireSupport = type(select(2, pcall(require, Services.ReplicatedStorage.BlacklistedMarketTools))) == "table"
        end
            
        if Game_Name == "The Bronx" and RequireSupport then                                                
            local OldWeaponValues = {}

            local GetAllTools = LPH_NO_VIRTUALIZE(function(LocalToolsOnly)
                local Result = {}
    
                for _, Value in next, {not LocalToolsOnly and Lighting, LocalPlayer.Backpack, LocalPlayer.Character ~= nil and LocalPlayer.Character} do
                    if type(Value) == "userdata" then
                        for _, _Value in next, Value:GetChildren() do
                            --if _Value.Name == "TP9EliteTan" then continue end
                            Result[#Result + 1] = _Value
                        end
                    end
                end
    
                return Result
            end)

            local GetPercentage = LPH_NO_VIRTUALIZE(function(DefaultValue, NewValue)
                NewValue = math.max(0, math.min(100, NewValue))

                local newRecoil = DefaultValue * (NewValue / 100)
            
                return newRecoil
            end)

            local ModWeapon = LPH_JIT_MAX(function(Weapon)
                local Module = Weapon:FindFirstChildOfClass("ModuleScript")
                local OldConfig = OldWeaponValues[Weapon.Name]
    
                if Module and Module.Name == "Setting" then
                    Module = require(Module)
                else
                    return
                end

                if SetInfiniteAmmo == nil then
                    SetInfiniteAmmo = true
                end

                if SetInfiniteClips == nil then
                    SetInfiniteClips = true
                end

                if Config.TheBronx._Modifications.InfiniteClips then
                    debug.setupvalue(getsenv(Weapon:FindFirstChild("GunScript_Local")).Reload, 3, 9e17)

                    SetInfiniteClips = false
                end

                if Config.TheBronx._Modifications.InfiniteClips == false and SetInfiniteClips == false then
                    debug.setupvalue(getsenv(Weapon:FindFirstChild("GunScript_Local")).Reload, 3, OldConfig.AmmoPerMag)

                    SetInfiniteClips = true
                end

                if Config.TheBronx._Modifications.InfiniteAmmo then
                    debug.setupvalue(getsenv(Weapon:FindFirstChild("GunScript_Local")).Reload, 5, Config.TheBronx._Modifications.InfiniteAmmo and 9e17 or OldConfig.AmmoPerMag / 2)
                    SetInfiniteAmmo = false
                end

                if Config.TheBronx._Modifications.InfiniteAmmo == false and SetInfiniteAmmo == false then
                    debug.setupvalue(getsenv(Weapon:FindFirstChild("GunScript_Local")).Reload, 5, OldConfig.AmmoPerMag)

                    SetInfiniteAmmo = true
                end

                Module.LimitedAmmoEnabled = false

                Module.FireRate = Config.TheBronx._Modifications.ModifyFireRate and GetPercentage(OldConfig.FireRate, Config.TheBronx._Modifications.FireRateSpeed) or OldConfig.FireRate
                            
                Module.ReloadTime = Config.TheBronx._Modifications.ModifyReloadSpeed and GetPercentage(OldConfig.ReloadTime, Config.TheBronx._Modifications.ReloadSpeed) or OldConfig.ReloadTime
                                
                if Module.SpreadXY then
                    Module.SpreadXY = Config.TheBronx._Modifications.ModifySpreadValue and GetPercentage(OldConfig.SpreadXY, Config.TheBronx._Modifications.SpreadPercentage) or OldConfig.SpreadXY
                end

                if Module.SpreadYX then
                    Module.SpreadYX = Config.TheBronx._Modifications.ModifySpreadValue and GetPercentage(OldConfig.SpreadYX, Config.TheBronx._Modifications.SpreadPercentage) or OldConfig.SpreadYX
                end

                if Module.Spread then
                    Module.Spread = Config.TheBronx._Modifications.ModifySpreadValue and GetPercentage(OldConfig.Spread, Config.TheBronx._Modifications.SpreadPercentage) or OldConfig.Spread
                end

                Module.SpreadX = Config.TheBronx._Modifications.ModifySpreadValue and GetPercentage(OldConfig.SpreadX, Config.TheBronx._Modifications.SpreadPercentage) or OldConfig.SpreadX
                Module.SpreadY = Config.TheBronx._Modifications.ModifySpreadValue and GetPercentage(OldConfig.SpreadY, Config.TheBronx._Modifications.SpreadPercentage) or OldConfig.SpreadY

                Module.Recoil = Config.TheBronx._Modifications.ModifyRecoilValue and GetPercentage(OldConfig.Recoil, Config.TheBronx._Modifications.RecoilPercentage) or OldConfig.Recoil

                Module.BaseDamage = Config.TheBronx._Modifications.InfiniteDamage and math.huge or OldConfig.BaseDamage

                Module.Auto = Config.TheBronx._Modifications.Automatic or OldConfig.Auto
            
                Module.JamChance = Config.TheBronx._Modifications.DisableJamming and 0 or OldConfig.JamChance
    
                Module.Auto = Config.TheBronx._Modifications.Automatic or OldConfig.Auto
        
                Module.EquipTime = Config.TheBronx._Modifications.ModifyEquipSpeed and GetPercentage(OldConfig.EquipTime, Config.TheBronx._Modifications.EquipSpeed) or OldConfig.EquipTime

                Module.JamChance = Config.TheBronx._Modifications.NoJam and 0 or OldConfig.JamChance
            end)

            local ModWeapons = LPH_NO_VIRTUALIZE(function()
                for _, Weapon in next, GetAllTools(true) do
                    if Weapon:IsA("Tool") then
                        ModWeapon(Weapon)
                    end
                end
            end)

            local SetValues = LPH_NO_VIRTUALIZE(function()
                for _, Weapon in next, GetAllTools() do
                    if Weapon:IsA("Tool") then
                        local Module = Weapon:FindFirstChildOfClass("ModuleScript")

                        if Module and Module.Name == "Setting" then
                            Module = require(Module)
                        end

                        if type(Module) == "table" and not OldWeaponValues[Weapon.Name] then
                            OldWeaponValues[Weapon.Name] = {}

                            local OldConfig = OldWeaponValues[Weapon.Name]

                            for Index, Value in next, Module do
                                OldConfig[Index] = Value
                            end
                        end
                    end
                end
            end)

            if not LocalPlayer.Character then LocalPlayer.CharacterAdded:Wait() end

            LocalPlayer.Character.ChildAdded:Connect(LPH_NO_VIRTUALIZE(function(Value)
                if not Value:IsA("Tool") then return end

                SetValues()

                ModWeapon(Value);
            end))

            LocalPlayer.Backpack.ChildAdded:Connect(LPH_NO_VIRTUALIZE(function(Value)
                if not Value:IsA("Tool") then return end
                
                SetValues()

                ModWeapon(Value);
            end))

            LocalPlayer.CharacterAdded:Connect(function(Character)
                Character.ChildAdded:Connect(LPH_NO_VIRTUALIZE(function(Value)
                    if not Value:IsA("Tool") then return end
    
                    SetValues()

                    ModWeapon(Value);
                end))
    
                LocalPlayer.Backpack.ChildAdded:Connect(LPH_NO_VIRTUALIZE(function(Value)
                    if not Value:IsA("Tool") then return end
                        
                    SetValues()

                    ModWeapon(Value);
                end))
            end)

            local ConfigMetatable = getmetatable(Config.TheBronx.Modifications)

            ConfigMetatable.__index = LPH_NO_VIRTUALIZE(function(...)
                return Config.TheBronx._Modifications[select(2, ...)]
            end)
    
            ConfigMetatable.__newindex = LPH_NO_VIRTUALIZE(function(...)
                local Index, Value = select(2, ...)
    
                Config.TheBronx._Modifications[Index] = Value; ModWeapons()
            end)
        end

        if Game_Name == "The Bronx" then
            RunService.RenderStepped:Connect(LPH_NO_VIRTUALIZE(function()
                if LocalPlayer.PlayerGui:FindFirstChild("Run") and LocalPlayer.PlayerGui.Run:FindFirstChild("StaminaBarScript", true) then
                    LocalPlayer.PlayerGui.Run:FindFirstChild("StaminaBarScript", true).Disabled = Config.TheBronx.PlayerModifications.InfiniteStamina
                end

                if LocalPlayer.PlayerGui:FindFirstChild("Hunger") and LocalPlayer.PlayerGui.Hunger:FindFirstChild("HungerBarScript", true) then
                    LocalPlayer.PlayerGui.Hunger:FindFirstChild("HungerBarScript", true).Disabled = Config.TheBronx.PlayerModifications.InfiniteHunger
                end

                if LocalPlayer.PlayerGui:FindFirstChild("SleepGui") and LocalPlayer.PlayerGui.SleepGui:FindFirstChild("sleepScript", true) then
                    LocalPlayer.PlayerGui.SleepGui:FindFirstChild("sleepScript", true).Disabled = Config.TheBronx.PlayerModifications.InfiniteSleep
                end

                if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("CameraBobbing") then
                    LocalPlayer.Character:FindFirstChild("CameraBobbing").Disabled = Config.TheBronx.PlayerModifications.DisableCameraBobbing
                end

                if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("FallDamageRagdoll") then
                    LocalPlayer.Character:FindFirstChild("FallDamageRagdoll").Disabled = Config.TheBronx.PlayerModifications.NoFallDamage
                end

                if LocalPlayer.PlayerGui:FindFirstChild("BloodGui") then
                    LocalPlayer.PlayerGui:FindFirstChild("BloodGui").Enabled = not Config.TheBronx.PlayerModifications["DisableBloodEffects"]
                end

                if LocalPlayer.PlayerGui:FindFirstChild("JumpDebounce") and LocalPlayer.PlayerGui:FindFirstChild("JumpDebounce"):FindFirstChild("LocalScript") then
                    LocalPlayer.PlayerGui:FindFirstChild("JumpDebounce").LocalScript.Disabled = Config.TheBronx.PlayerModifications.NoJumpCooldown
                end

                if LocalPlayer.PlayerGui:FindFirstChild("CameraTexts") and LocalPlayer.PlayerGui:FindFirstChild("CameraTexts"):FindFirstChild("LocalScript") then
                    LocalPlayer.PlayerGui:FindFirstChild("CameraTexts").Enabled = not Config.TheBronx.PlayerModifications.DisableCameras
                    LocalPlayer.PlayerGui:FindFirstChild("CameraTexts").LocalScript.Disabled = Config.TheBronx.PlayerModifications.DisableCameras
                end

                if LocalPlayer.PlayerGui:FindFirstChild("JumpDebounce") and LocalPlayer.PlayerGui:FindFirstChild("JumpDebounce"):FindFirstChild("LocalScript") then
                    LocalPlayer.PlayerGui:FindFirstChild("JumpDebounce").LocalScript.Disabled = Config.TheBronx.PlayerModifications.NoJumpCooldown
                end

                if LocalPlayer.PlayerGui:FindFirstChild("RentGui") and LocalPlayer.PlayerGui:FindFirstChild("RentGui"):FindFirstChild("LocalScript") then
                    LocalPlayer.PlayerGui:FindFirstChild("RentGui").LocalScript.Disabled = Config.TheBronx.PlayerModifications.NoRentPay
                end

                if Config.TheBronx.PlayerModifications.AutoPickupBags and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
                    for Index, Value in next, Workspace.Storage:GetChildren() do
                        if not Value:IsA("MeshPart") then continue end
                        if Value:FindFirstChild("PlayerName") and Value:FindFirstChild("PlayerName").Value == LocalPlayer.Name then continue end
        
                        if (Value.Position - LocalPlayer.Character.HumanoidRootPart.Position).Magnitude < 5 then
                            fireproximityprompt(Value.stealprompt)
                        end
                    end
                end

                if Config.TheBronx.PlayerModifications.AutoPickupCash and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
                    for Index, Value in next, Workspace.Dollas:GetChildren() do
                        if not Value:IsA("Part") then continue end
        
                        if (Value.Position - LocalPlayer.Character.HumanoidRootPart.Position).Magnitude < 5 then
                            fireproximityprompt(Value.ProximityPrompt)
                        end
                    end
                end
            end))       
            
            LocalPlayer.CharacterAdded:Connect(LPH_NO_VIRTUALIZE(function()
                if Config.TheBronx.PlayerModifications.DisableCameras then
                    Lighting.Shiesty:FindFirstChildWhichIsA("RemoteEvent", true):FireServer()
                end
            end))

            UserInputService.InputBegan:Connect(LPH_NO_VIRTUALIZE(function(Input, Game_Event)
                if Game_Event then return end
                if not Config.MiscSettings.ModifyJump.Infinity then return end

                if Input.KeyCode == Enum.KeyCode.Space then
                    if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") and LocalPlayer.Character.Humanoid.Health ~= 0 then
                        LocalPlayer.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
                    end
                end
            end))

            local DeathFrame;

            if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
                LocalPlayer.Character:FindFirstChild("Humanoid").Died:Connect(LPH_NO_VIRTUALIZE(function()
                    DeathFrame = LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame
                end))

                LocalPlayer.Character.DescendantAdded:Connect(function(Descendant)
                    if Descendant:IsA("BodyVelocity") or Descendant:IsA("LinearVelocity") or Descendant:IsA("VectorForce") and Config.TheBronx.PlayerModifications.NoKnockback then
                        task.wait(); Descendant:Destroy()
                    end
                end)
            end

            LocalPlayer.CharacterAdded:Connect(LPH_NO_VIRTUALIZE(function(Character)
                Character:WaitForChild("Humanoid"); Character:WaitForChild("HumanoidRootPart");

                LocalPlayer.Character.DescendantAdded:Connect(function(Descendant)
                    if Descendant:IsA("BodyVelocity") or Descendant:IsA("LinearVelocity") or Descendant:IsA("VectorForce") and Config.TheBronx.PlayerModifications.NoKnockback then
                        task.wait(); Descendant:Destroy()
                    end
                end)

                Character:WaitForChild("Humanoid").Died:Connect(function()
                    DeathFrame = Character:WaitForChild("HumanoidRootPart").CFrame
                end)

                if Config.TheBronx.PlayerModifications.RespawnWhereYouDied and typeof(DeathFrame) == "CFrame" then
                    Character:WaitForChild("HumanoidRootPart").CFrame = DeathFrame
                end
            end))

            local KEYCODES = {
                [Enum.KeyCode.W] = true,
                [Enum.KeyCode.A] = true,
                [Enum.KeyCode.S] = true,
                [Enum.KeyCode.D] = true,
                [Enum.KeyCode.LeftControl] = true,
                [Enum.KeyCode.Space] = true
            }
            
            local root = LocalPlayer.Character:WaitForChild("HumanoidRootPart")
            local humanoid = LocalPlayer.Character:WaitForChild("Humanoid")
            local input_keys = {}
            local flight_registry = {}
            
            -- Functions
            local isKeysPressed = function(...)
                local keys = {...}
                for i = 1, #keys do
                    if input_keys[keys[i]] then return 1 end
                end
                return 0
            end
            
            local getFlightDirection = function()
                return Vector3.new(
                    isKeysPressed(Enum.KeyCode.D) - isKeysPressed(Enum.KeyCode.A),
                    isKeysPressed(Enum.KeyCode.Space) - isKeysPressed(Enum.KeyCode.LeftControl),
                    isKeysPressed(Enum.KeyCode.S) - isKeysPressed(Enum.KeyCode.W)
                )
            end
            
            StartFlight = LPH_NO_VIRTUALIZE(function()
                if Config.MiscSettings.Fly.Type == "Classic" then
                    local gyro = Instance.new("BodyGyro")
                    local velo = Instance.new("BodyVelocity")
                    table.insert(
                        flight_registry,
                        RunService.Stepped:Connect(function(t, dt)
                            if not root or not humanoid then return end
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                            humanoid.PlatformStand = true
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                            local velocity = getFlightDirection() * Config.MiscSettings.Fly.Speed
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                            local orientation = CFrame.fromEulerAnglesXYZ(Camera.CFrame:ToEulerAnglesXYZ())
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                            gyro.CFrame = orientation
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                            velo.Velocity = orientation:PointToWorldSpace(velocity)
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                            gyro.Parent = root
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                            velo.Parent = root
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                        end)
                    )
                    table.insert(flight_registry, gyro)
                    table.insert(flight_registry, velo)
                    table.insert(flight_registry, function() humanoid.PlatformStand = false end)
                    gyro.P = 9e4
                    gyro.D = 1e3
                    gyro.MaxTorque = Vector3.new(9e9, 9e9, 9e9)
                    velo.MaxForce = Vector3.new(9e9, 9e9, 9e9)
                elseif Config.MiscSettings.Fly.Type == "CFrame" then
                    table.insert(
                        flight_registry,
                        RunService.Stepped:Connect(function(t, dt)
                            if not root or not humanoid then return end
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                            local velocity = getFlightDirection() * Config.MiscSettings.Fly.Speed * dt
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                            local position, orientation = CFrame.new(root.Position), CFrame.fromEulerAnglesXYZ(Camera.CFrame:ToEulerAnglesXYZ())
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                            root.CFrame = position * orientation * CFrame.new(velocity)
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                            root.AssemblyLinearVelocity = Vector3.zero
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                            root.AssemblyAngularVelocity = Vector3.zero
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                            root.Anchored = true
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                            humanoid.PlatformStand = true
                            humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
                        end)
                    )
                    table.insert(flight_registry, function() root.Anchored = false end)
                    table.insert(flight_registry, function() humanoid.PlatformStand = false end)
                end
            end)
            
            ResetFlight = LPH_NO_VIRTUALIZE(function()
                for i,v in flight_registry do
                    local t = typeof(v)
                    if t == "RBXScriptConnection" then v:Disconnect()
                    elseif t == "Instance" then v:Destroy()
                    elseif t == "function" then task.spawn(v) end
                end
                flight_registry = {}
            end)
            
            local OnCharacter = LPH_NO_VIRTUALIZE(function(character: Model)
                root = character:WaitForChild("HumanoidRootPart")
                humanoid = character:WaitForChild("Humanoid")

                if Config.TheBronx.Fly.Enabled then
                    RunService.Stepped:Wait()
                    StartFlight()
                end
            end)
            
            local OnInputBegan = LPH_NO_VIRTUALIZE(function(input: InputObject, gameProcessedEvent: boolean)
                if gameProcessedEvent then return end
                if input.UserInputType ~= Enum.UserInputType.Keyboard then return end
                local keycode = input.KeyCode
                if KEYCODES[keycode] then input_keys[keycode] = true end
            end)
            
            local OnInputEnded = LPH_NO_VIRTUALIZE(function(input: InputObject)
                if input.UserInputType ~= Enum.UserInputType.Keyboard then return end
                local keycode = input.KeyCode
                if KEYCODES[keycode] then input_keys[keycode] = false end
            end)
            
            local OnCamera = LPH_NO_VIRTUALIZE(function()
                Camera = Workspace.CurrentCamera or Camera
            end)
            
            if LocalPlayer.Character then task.spawn(OnCharacter, LocalPlayer.Character) end
            LocalPlayer.CharacterAdded:Connect(OnCharacter)
            UserInputService.InputBegan:Connect(OnInputBegan)
            UserInputService.InputEnded:Connect(OnInputEnded)
            Workspace.Changed:Connect(OnCamera)

            local kill_gun = LPH_JIT_MAX(function(target: string, hpart: string, damage: number) 
                if not hpart then
                    hpart = "head"
                end

                if not damage then
                    damage = math.huge
                end

                local data = {
                    ["tool"] = Players.LocalPlayer.Character:FindFirstChildOfClass("Tool"),
                    ["target"] = Players[target],
                    ["hitpos"] = Players[target].Character[hpart].Position,
                }

                if not rawget(data, "tool") then
                    return
                end

                if RequireSupport then
                    require(rawget(data, "tool").Setting).Range = 10000
                end

                ReplicatedStorage.VisualizeMuzzle:FireServer(table.unpack({
                    rawget(data, "tool").Handle,
                    true,
                    {
                        false,
                        7,
                        Color3.new(1, 1.1098039150238, 0),
                        15,
                        true,
                        0.02
                    },
                    rawget(data, "tool").GunScript_Local.MuzzleEffect
                }))

                ReplicatedStorage.VisualizeBullet:FireServer(table.unpack({
                    rawget(data, "tool"),
                rawget(data, "tool").Handle,
                    Vector3.new(-0.17746905982494, 0.088731124997139, 0.98011803627014),
                    rawget(data, "tool").Handle.GunFirePoint,
                    {
                        true,
                        {
                            112139677907600,
                            92977228204408,
                            112139677907600,
                            92977228204408
                        },
                        1,
                        1,
                        10,
                        rawget(data, "tool").GunScript_Local.HitEffect,
                        true
                    },
                    {
                        true,
                        {
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                        },
                        1,
                        1,
                        1,
                        rawget(data, "tool").GunScript_Local.BloodEffect
                    },
                    {
                        true,
                        0.2,
                        {
                            3696144972
                        },
                        true,
                        7,
                        1
                    },
                    {
                        false,
                        8,
                        true,
                        {
                            163064102
                        },
                        1,
                        1.5,
                        1,
                        false,
                        rawget(data, "tool").GunScript_Local.ExplosionEffect
                    },
                    {
                        false,
                        Vector3.new(0.10000000149012, 0, 0),
                        Vector3.new(-0.10000000149012, 0, 0),
                        rawget(data, "tool").GunScript_Local.TracerEffect,
                        nil,
                        rawget(data, "tool").GunScript_Local.ParticleEffect,
                        300,
                        526,
                        0,
                        Vector3.zero,
                        Vector3.new(0.40000000596046, 0.40000000596046, 0.40000000596046),
                        Color3.new(0.63921570777893, 0.63529413938522, 0.61176472902298),
                        1,
                        Enum.Material.Neon,
                        Enum.PartType.Cylinder,
                        false,
                        6696543809,
                        0,
                        Vector3.new(0.0070000002160668, 0.0070000002160668, 0.0070000002160668)
                    },
                    {
                        true,
                        {
                            269514869,
                            269514887,
                            269514807,
                            269514817
                        },
                        0.5,
                        1,
                        1.5,
                        100
                    },
                    {
                        false,
                        3,
                        Color3.new(1, 0.64705884456635, 0.60000002384186),
                        6,
                        true
                    }
                }))

                ReplicatedStorage.InflictTarget:FireServer(table.unpack({
                    rawget(data, "tool"),
                    LocalPlayer,
                    rawget(data, "target").Character.Humanoid,
                    rawget(data, "target").Character[hpart],
                    damage,
                    {
                        0,
                        0,
                        false,
                        false,
                        rawget(data, "tool").GunScript_Server.IgniteScript,
                        rawget(data, "tool").GunScript_Server.IcifyScript,
                        100,
                        100
                    },
                    {
                        false,
                        5,
                        3
                    },
                    rawget(data, "target").Character[hpart],
                    {
                        false,
                        {
                            1930359546
                        },
                        1,
                        1.5,
                        1
                    },
                    rawget(data, "hitpos"),
                    Vector3.new(0.074456036090851, -0.099775791168213, -0.99222022294998),
                    true
                }))
            end)

            getgenv().kill_gun = kill_gun

            task.spawn(LPH_NO_VIRTUALIZE(function()
                while task.wait(1) do
                    if not Config.TheBronx.KillAura then continue end
                    if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChildOfClass("Tool") or not LocalPlayer.Character:FindFirstChildOfClass("Tool"):FindFirstChild("Setting") then continue end
                    for Index, Value in Players:GetPlayers() do
                        if table.find(library.whitelist, tostring(Value)) then continue end
                        if Value == LocalPlayer then continue end
                        if not Value.Character or not Value.Character:FindFirstChildOfClass("Humanoid") or not Value.Character:FindFirstChild("HumanoidRootPart") then continue end
                        if Value.Character:FindFirstChildOfClass("Humanoid").Health == 0 then continue end
                        if Value.Character:FindFirstChildOfClass("ForceField") then continue end

                        if not DistanceCheck(Value, Config.TheBronx.KillAuraRange) then continue end

                        kill_gun(tostring(Value), 'Head', math.huge)
                    end
                end
            end))

            local Get_Vehicle = LPH_NO_VIRTUALIZE(function()
                for Index, Value in Workspace.CivCars:GetChildren() do
                    if not Value:FindFirstChild("DriveSeat") then continue end
                    if not Value.DriveSeat.Occupant then
                        return Value
                    end
                end
            end)

            task.spawn(LPH_NO_VIRTUALIZE(function()
                while task.wait() do
                    if not Config.TheBronx.PlayerUtilities.BugPlayer then continue end
                    if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") or not Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer) or not Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character or not Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character:FindFirstChild("HumanoidRootPart") then continue end                    

                    local Car_To_Use = Get_Vehicle()

                    if not Car_To_Use then continue end
                    if not Car_To_Use:FindFirstChild("DriveSeat") then continue end
                    if Car_To_Use:FindFirstChild("DriveSeat").Occupant then continue end

                    if not Car_To_Use:GetAttribute("Usable") or Car_To_Use:GetAttribute("Usable") == false then
                        Car_To_Use.DriveSeat:Sit(LocalPlayer.Character.Humanoid)

                        Car_To_Use:SetAttribute("Usable", true)
                        task.wait(1)

                        LocalPlayer.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)

                        LocalPlayer.Character.Humanoid.Jump = true
                        LocalPlayer.Character.Humanoid.Sit = false
                    end
                    
                    task.wait()

                    if not Car_To_Use.PrimaryPart then
                        Car_To_Use.PrimaryPart = Car_To_Use.Body:FindFirstChild("#Weight")
                    end

                    Car_To_Use:SetPrimaryPartCFrame(Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character:FindFirstChild("HumanoidRootPart").CFrame)
                end
            end))

            task.spawn(LPH_NO_VIRTUALIZE(function()
                while task.wait(.25) do
                    if not Config.TheBronx.AutoDrop then continue end
                    ReplicatedStorage:WaitForChild("BankProcessRemote"):InvokeServer("Drop", tostring(Config.TheBronx.MoneyAmount))
                end
            end))

            task.spawn(LPH_NO_VIRTUALIZE(function()
                while task.wait(1) do
                    if not Config.TheBronx.PlayerUtilities.AutoKill then continue end
                    if not LocalPlayer.Character then continue end
                    if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") or not Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer) or not Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character or not Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character:FindFirstChild("HumanoidRootPart") then continue end                    
                    if not LocalPlayer.Character:FindFirstChildOfClass("Tool") then continue end
                    if not LocalPlayer.Character:FindFirstChildOfClass("Tool"):FindFirstChild("GunScript_Local") then continue end

                    if Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character:FindFirstChild("Humanoid").Health == 0 then continue end
                    if Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character:FindFirstChildOfClass("ForceField") then continue end

                    if RequireSupport then
                        kill_gun(Config.TheBronx.PlayerUtilities.SelectedPlayer, 'Head', math.huge)
                    else
                        if DistanceCheck(Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer), 300) == false then
                            local OldCFrame = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame
                            Teleport(Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character:FindFirstChild("HumanoidRootPart").CFrame)
                            kill_gun(Config.TheBronx.PlayerUtilities.SelectedPlayer, 'Head', math.huge)
                            task.wait(.5)
                            Teleport(OldCFrame)
                        else
                            kill_gun(Config.TheBronx.PlayerUtilities.SelectedPlayer, 'Head', math.huge)
                        end
                    end
                end
            end))

            task.spawn(LPH_NO_VIRTUALIZE(function()
                while task.wait(2) do
                    if not Config.TheBronx.PlayerUtilities.AutoRagdoll then continue end
                    if not LocalPlayer.Character then continue end
                    if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") or not Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer) or not Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character or not Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character:FindFirstChild("HumanoidRootPart") then continue end                    
                    if not LocalPlayer.Character:FindFirstChildOfClass("Tool") then continue end
                    if not LocalPlayer.Character:FindFirstChildOfClass("Tool"):FindFirstChild("GunScript_Local") then continue end

                    if Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character:FindFirstChild("Humanoid").Health == 0 then continue end
                    if Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character:FindFirstChild("Humanoid"):GetState() == Enum.HumanoidStateType.Physics then continue end

                    kill_gun(Config.TheBronx.PlayerUtilities.SelectedPlayer, 'RightUpperLeg', 0.01)
                end
            end))

            task.spawn(LPH_NO_VIRTUALIZE(function()
                while task.wait() do
                    if not Config.TheBronx.PlayerUtilities.BringingPlayer then continue end
                    if tostring(Config.TheBronx.PlayerUtilities.SelectedPlayer) == tostring(LocalPlayer) then continue end
                    if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") or not Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer) or not Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character or not Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character:FindFirstChild("HumanoidRootPart") then continue end
                    Players:FindFirstChild(Config.TheBronx.PlayerUtilities.SelectedPlayer).Character:FindFirstChild("HumanoidRootPart").CFrame = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame + Vector3.new(2, 0, 0)
                end
            end))

            task.spawn(LPH_NO_VIRTUALIZE(function()
                while true do
                    task.wait(0)
                    if Config.TheBronx.VehicleModifications.SpeedEnabled and UserInputService:IsKeyDown(Enum.KeyCode.W) then
                        if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
                            if LocalPlayer.Character and typeof(LocalPlayer.Character) == "Instance" then
                                local Humanoid = LocalPlayer.Character:FindFirstChildWhichIsA("Humanoid")
                                if Humanoid and typeof(Humanoid) == "Instance" then
                                    local SeatPart = Humanoid.SeatPart
                                    if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
                                        SeatPart.AssemblyLinearVelocity *= Vector3.new(1 + Config.TheBronx.VehicleModifications.SpeedValue, 1, 1 + Config.TheBronx.VehicleModifications.SpeedValue)
                                    end
                                end
                            end
                        end
                    end
                end
            end))

            task.spawn(LPH_NO_VIRTUALIZE(function()
                while true do
                    task.wait(0)
                    if Config.TheBronx.VehicleModifications.BreakEnabled and UserInputService:IsKeyDown(Enum.KeyCode.S) then
                        if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
                            if LocalPlayer.Character and typeof(LocalPlayer.Character) == "Instance" then
                                local Humanoid = LocalPlayer.Character:FindFirstChildWhichIsA("Humanoid")
                                if Humanoid and typeof(Humanoid) == "Instance" then
                                    local SeatPart = Humanoid.SeatPart
                                    if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
                                        SeatPart.AssemblyLinearVelocity *= Vector3.new(1 - Config.TheBronx.VehicleModifications.BreakValue, 1, 1 - Config.TheBronx.VehicleModifications.BreakValue)
                                    end
                                end
                            end
                        end
                    end
                end
            end))

            local GetPlaceToPlaceWood = LPH_NO_VIRTUALIZE(function()
                for Index, Value in Workspace.ConstructionStuff:GetChildren() do
                    if Value.Name:find("Wall") and Value:IsA("Part") and Value:FindFirstChild("Prompt") then
                        if Value:FindFirstChild("Prompt").Enabled then
                            return Value
                        end
                    end
                end
            end)

            task.spawn(LPH_NO_VIRTUALIZE(function()
                while true do task.wait()
                    if not Config.TheBronx.Farms.FarmConstructionJob then continue end

                    if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then continue end
                    if not LocalPlayer.Character:FindFirstChild("Humanoid") or LocalPlayer.Character:FindFirstChild("Humanoid").Health == 0 then continue end

                    if not LocalPlayer:GetAttribute("WorkingJob") then
                        Teleport(CFrame.new(-1729, 371, -1171))

                        task.wait(0.4)

                        fireproximityprompt(Workspace.ConstructionStuff["Start Job"].Prompt)

                        repeat task.wait() until LocalPlayer:GetAttribute("WorkingJob")
                    end

                    if not LocalPlayer.Backpack:FindFirstChild("PlyWood") and not LocalPlayer.Character:FindFirstChild("PlyWood") then
                        Teleport(CFrame.new(-1728, 371, -1178))
                        
                        repeat task.wait() fireproximityprompt(Workspace.ConstructionStuff["Grab Wood"].Prompt) until LocalPlayer.Backpack:FindFirstChild("PlyWood") or LocalPlayer.Character:FindFirstChild("PlyWood")
                    end

                    repeat task.wait() until LocalPlayer.Backpack:FindFirstChild("PlyWood") or LocalPlayer.Character:FindFirstChild("PlyWood")

                    LocalPlayer.Character.Humanoid:EquipTool(LocalPlayer.Backpack:FindFirstChild("PlyWood"))

                    local PlaceToPlaceWood = GetPlaceToPlaceWood()

                    if not PlaceToPlaceWood then continue end

                    Teleport(PlaceToPlaceWood.CFrame)

                    repeat task.wait()
                        fireproximityprompt(PlaceToPlaceWood.Prompt)
                    until not LocalPlayer.Character:FindFirstChild("PlyWood") or not PlaceToPlaceWood.Prompt.Enabled
                end
            end))

            task.spawn(LPH_NO_VIRTUALIZE(function()
                while true do task.wait()
                    if not Config.TheBronx.Farms.FarmBank then continue end

                    if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then continue end
                    if not LocalPlayer.Character:FindFirstChild("Humanoid") or LocalPlayer.Character:FindFirstChild("Humanoid").Health == 0 then continue end

                    local Robbable = workspace.vault.door.robPrompt.ProximityPrompt.Enabled

                    if not Robbable then
                        if Config.TheBronx.Farms.AFKCheck then
                            Teleport(SafePosition)
                        end
                        task.wait(0.4)
                        continue
                    end

                    if not LocalPlayer.Character:FindFirstChild("DuffelBag") then
                        local duffelPart = workspace:FindFirstChild("dufflebagequip") or workspace:FindFirstChild("dufflebagequip.Get_1a68")
                        if duffelPart and duffelPart:IsA("BasePart") then
                            Teleport(duffelPart.CFrame + Vector3.new(0, 5, 0))
                        else
                            Teleport(CFrame.new(-397, 340, -551))
                        end
                        task.wait(0.4)
                        local duffelPrompt = workspace.dufflebagequip:FindFirstChildWhichIsA("ProximityPrompt") or 
                                        workspace:FindFirstChild("dufflebagequip.Get_1a68")
                        if duffelPrompt then
                            fireproximityprompt(duffelPrompt)
                        end
                    end

                    if not LocalPlayer.Backpack:FindFirstChild("C4") and not LocalPlayer.Character:FindFirstChild("C4") then
                        local c4Part = workspace.GUNS and workspace.GUNS.C4 and workspace.GUNS.C4.Handle
                        if c4Part and c4Part:IsA("BasePart") then
                            Teleport(c4Part.CFrame + Vector3.new(0, 5, 0))
                        else
                            Teleport(CFrame.new(-393, 340, -564))
                        end
                        task.wait(0.4)
                        if workspace.GUNS and workspace.GUNS.C4 and workspace.GUNS.C4.Handle and 
                        workspace.GUNS.C4.Handle.BuyPrompt then
                            fireproximityprompt(workspace.GUNS.C4.Handle.BuyPrompt)
                        end
                    end

                    repeat task.wait() until LocalPlayer.Backpack:FindFirstChild("C4") or LocalPlayer.Character:FindFirstChild("C4")

                    if LocalPlayer.Backpack:FindFirstChild("C4") then
                        LocalPlayer.Character.Humanoid:EquipTool(LocalPlayer.Backpack:FindFirstChild("C4"))
                    end

                    local vaultPart = workspace.vault and workspace.vault.door and workspace.vault.door.robPrompt
                    if vaultPart and vaultPart:IsA("BasePart") then
                        Teleport(vaultPart.CFrame + Vector3.new(0, 5, 0))
                    else
                        Teleport(CFrame.new(-196, 374, -1216))
                    end
                    task.wait(0.4)
                    local vaultPrompt = workspace.vault.door.robPrompt:FindFirstChildWhichIsA("ProximityPrompt")
                    if vaultPrompt then
                        fireproximityprompt(vaultPrompt)
                    end
                    task.wait(2)

                    if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("DuffelBag") and
                    LocalPlayer.Character.DuffelBag.display and LocalPlayer.Character.DuffelBag.display.SurfaceGui and
                    LocalPlayer.Character.DuffelBag.display.SurfaceGui.Frame and
                    LocalPlayer.Character.DuffelBag.display.SurfaceGui.Frame.TextLabel then
                        
                        local Number = LocalPlayer.Character.DuffelBag.display.SurfaceGui.Frame.TextLabel.Text
                        Number = Number:gsub("0/", "")
                        local cashCount = tonumber(Number) or 0

                        for Index = 1, cashCount do
                            local Cash = workspace.BankItems.Cash:FindFirstChild("Cash")
                            
                            if not Cash then
                                for i,v in workspace:GetChildren() do
                                    if v.Name == "Cash" and v:IsA("Model") and v:FindFirstChild("Model") then
                                        Cash = v
                                        break
                                    end
                                end
                            end
                            
                            if Cash and Cash.Model and Cash.Model.Cash then
                                Teleport(Cash.Model.Cash.CFrame + Vector3.new(0, 5, 0))
                                task.wait(0.4)
                                
                                local cashPrompt = Cash.Model:FindFirstChildWhichIsA("ProximityPrompt", true)
                                if cashPrompt then
                                    fireproximityprompt(cashPrompt)
                                end
                                task.wait(.25)
                            else
                                break
                            end
                        end
                    end

                    local sellPart = workspace.sellgold
                    if sellPart and sellPart:IsA("BasePart") then
                        Teleport(sellPart.CFrame + Vector3.new(0, 5, 0))
                        task.wait(0.4)
                        
                        local sellPrompt = workspace.sellgold:FindFirstChildWhichIsA("ProximityPrompt")
                        local clickDetector = workspace.sellgold:FindFirstChildWhichIsA("ClickDetector")
                        
                        if sellPrompt then
                            fireproximityprompt(sellPrompt)
                        elseif clickDetector then
                            fireclickdetector(clickDetector)
                        end
                    end
                end
            end))

            task.spawn(LPH_NO_VIRTUALIZE(function()
                while true do task.wait()
                    if not Config.TheBronx.Farms.FarmHouses then continue end

                    if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then continue end
                    if not LocalPlayer.Character:FindFirstChild("Humanoid") or LocalPlayer.Character:FindFirstChild("Humanoid").Health == 0 then continue end

                    local HardDoorEnabled = Workspace.HouseRobb.HardDoor.Door:FindFirstChildWhichIsA("ProximityPrompt", true).Enabled

                    if not HardDoorEnabled and Config.TheBronx.Farms.AFKCheck then
                        Teleport(SafePosition)
                        continue
                    end

                    if HardDoorEnabled then
                        repeat task.wait()
                        Teleport(Workspace.HouseRobb.HardDoor.Door:FindFirstChildWhichIsA("ProximityPrompt", true).Parent.CFrame)
                        task.wait(0.4)

                        fireproximityprompt(Workspace.HouseRobb.HardDoor.Door:FindFirstChildWhichIsA("ProximityPrompt", true))

                        until Workspace.HouseRobb.HardDoor:FindFirstChild("TakeMoney") and Workspace.HouseRobb.HardDoor:FindFirstChild("TakeMoney"):FindFirstChild("MoneyGrab"):FindFirstChildWhichIsA("ProximityPrompt", true).Enabled


                        for Index, Value in Workspace.HouseRobb.HardDoor.TakeMoney:GetChildren() do                            
                            Teleport(Value.CFrame)
                            fireproximityprompt(Value.ProximityPrompt)
                            task.wait(0.025)
                        end

                        continue
                    end
                end
            end))

            task.spawn(LPH_NO_VIRTUALIZE(function()
                while true do task.wait()
                    if not Config.TheBronx.Farms.FarmStudio then continue end

                    if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then continue end
                    if not LocalPlayer.Character:FindFirstChild("Humanoid") or LocalPlayer.Character:FindFirstChild("Humanoid").Health == 0 then continue end

                    local Prompt1, Prompt2, Prompt3 = Workspace.StudioPay.Money.StudioPay1:FindFirstChild("Prompt", true), Workspace.StudioPay.Money.StudioPay2:FindFirstChild("Prompt", true), Workspace.StudioPay.Money.StudioPay3:FindFirstChild("Prompt", true)

                    if Prompt1.Enabled then
                        Teleport(Prompt1.Parent.CFrame)
                        task.wait(0.4)
                        fireproximityprompt(Prompt1)
                        task.wait(0.1)
                    end

                    if Prompt2.Enabled then
                        Teleport(Prompt2.Parent.CFrame)
                        task.wait(0.4)
                        fireproximityprompt(Prompt2)
                        task.wait(0.1)
                    end

                    if Prompt3.Enabled then
                        Teleport(Prompt3.Parent.CFrame)
                        task.wait(0.4)
                        fireproximityprompt(Prompt3)
                        task.wait(0.1)
                    end
                    
                    if Config.TheBronx.Farms.AFKCheck then
                        task.wait(0.4)
                        Teleport(SafePosition)
                        task.wait(0.4)
                        continue
                    end
                end
            end))

            local PressKey = function(KeyCode, Duration)
                task.spawn(LPH_NO_VIRTUALIZE(function()
                    Services.VirtualInputManager:SendKeyEvent(false, KeyCode, false, game)
                    Services.VirtualInputManager:SendKeyEvent(true, KeyCode, false, game)
                    task.wait(Duration)
                    Services.VirtualInputManager:SendKeyEvent(false, KeyCode, false, game)
                end))
            end

            task.spawn(LPH_NO_VIRTUALIZE(function()
                while true do task.wait()
                    if not Config.TheBronx.Farms.FarmTrash then continue end

                    if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then continue end
                    if not LocalPlayer.Character:FindFirstChild("Humanoid") or LocalPlayer.Character:FindFirstChild("Humanoid").Health == 0 then continue end

                    for Index, Value in Workspace:GetChildren() do
                        if Value.Name == "DumpsterPromt" and Config.TheBronx.Farms.FarmTrash then
                            if Value:FindFirstChild("ProximityPrompt") and Value:FindFirstChild("ProximityPrompt").Enabled then
                                Value:FindFirstChild("ProximityPrompt").HoldDuration = 0
                                Teleport(CFrame.new(Value.Position.X, Value.Position.Y, Value.Position.Z))
                                task.wait(0.4)

                                if not Solara then
                                    PressKey(Enum.KeyCode.E)
                                else
                                    fireproximityprompt(Value:FindFirstChild("ProximityPrompt"))
                                end

                                task.wait(0.5)
                                Value:FindFirstChild("ProximityPrompt").HoldDuration = 1
                            end
                        end 
                    end

                    if Config.TheBronx.Farms.AutoSellTrash then
                        for Index, Value in LocalPlayer.Backpack:GetChildren() do
                            if Value:IsA("Tool") then
                                ReplicatedStorage:WaitForChild("PawnRemote"):FireServer(Value.Name)
                                task.wait()
                            end
                        end
                        
                        task.wait(1)
                    end
                end
            end))

            GetGoodCleaner = LPH_NO_VIRTUALIZE(function()
                local CounterInstance;

                for Index, Value in Workspace["1# Map"]:GetChildren() do
                    if Value:FindFirstChild("CounterM") then
                        CounterInstance = Value
                    end
                end

                for Index, Value in next, {Workspace.CounterBag:GetChildren(), CounterInstance:GetChildren()} do
                    for _Index, _Value in Value do
                        if _Value:FindFirstChild("CashPrompt", true) and _Value:FindFirstChild("CashPrompt", true).Enabled and _Value:FindFirstChild("CashPrompt", true).ObjectText == "Count Bread" and _Value:FindFirstChild("GrabPrompt", true) and not _Value:FindFirstChild("GrabPrompt", true).Enabled then
                            return _Value
                        end
                    end
                end
            end)

            UserInputService.InputBegan:Connect(function(Input, GameProcessedEvent)
                if Input.KeyCode == Config.TheBronx.VehicleModifications.InstantStopBind and Config.TheBronx.VehicleModifications.InstantStop and (not GameProcessedEvent) then
                    if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
                        if LocalPlayer.Character and typeof(LocalPlayer.Character) == "Instance" then
                            local Humanoid = LocalPlayer.Character:FindFirstChildWhichIsA("Humanoid")
                            if Humanoid and typeof(Humanoid) == "Instance" then
                                local SeatPart = Humanoid.SeatPart
                                if SeatPart and typeof(SeatPart) == "Instance" and SeatPart:IsA("VehicleSeat") then
                                    SeatPart.AssemblyLinearVelocity *= Vector3.new(0, 0, 0)
                                    SeatPart.AssemblyAngularVelocity *= Vector3.new(0, 0, 0)
                                end
                            end
                        end
                    end
                end
            end)

            if Solara then
                LocalPlayer.PlayerScripts.BulletVisualizerClientScript.Visualize.Event:Connect(function(...)
                    local args = {...}

                    local data = {
                        ["damage"] = args[10][1],
                        ["player"] = args[1].Parent
                    }

                    if rawget(data, "damage") and type(args[10][1]) == 'number' and Config.Silent.Enabled and Config.Silent.Targetting and args[10] and data["player"] == LocalPlayer.Character then
                        if not (math.random(0, 100) <= Config.Silent.HitChance) then 
                            return
                        end 

                        local RandomPart = Config.Silent.TargetPart[1] and Config.Silent.TargetPart[math.random(1, #Config.Silent.TargetPart)] or "Head"

                        if SilentTarget and SilentTarget.Character and SilentTarget.Character:FindFirstChild(RandomPart) then

                            if not Config.Silent.WallBang then
                                local Holocaust = Workspace:FindPartOnRayWithIgnoreList(Ray.new(LocalPlayer.Character[RandomPart].Position, (SilentTarget.Character[RandomPart].Position - LocalPlayer.Character[RandomPart].Position).Unit * (SilentTarget.Character[RandomPart].Position - LocalPlayer.Character[RandomPart].Position).Magnitude), {SilentTarget.Character, LocalPlayer.Character})
                                
                                if Holocaust then return end
                            end

                            kill_gun(tostring(SilentTarget), RandomPart, data["damage"])
                        end
                    end
                end)
            end
        
            
            HideUI = LPH_NO_VIRTUALIZE(function(Title, Timing)
                getgenv().HideScreenGUI = Instance.new("ScreenGui")
                getgenv().HideScreenGUI.Name = "Scorpio"
                getgenv().HideScreenGUI.ResetOnSpawn = false
                getgenv().HideScreenGUI.IgnoreGuiInset = true
                getgenv().HideScreenGUI.Parent = gethui and gethui() or Services.CoreGui

                local H_Backdrop = Instance.new("Frame")
                H_Backdrop.Name = "Scorpio Hub"
                H_Backdrop.Size = UDim2.new(1, 0, 1, 0)
                H_Backdrop.Position = UDim2.new(0, 0, 0, 0)
                H_Backdrop.BackgroundColor3 = Color3.fromRGB(2, 21, 38)
                H_Backdrop.BackgroundTransparency = 0
                H_Backdrop.ZIndex = 0
                H_Backdrop.Parent = getgenv().HideScreenGUI

                local GlowEffect = Instance.new("ImageLabel")
                GlowEffect.Name = "Scorpio Hub"
                GlowEffect.Size = UDim2.new(1.25, 0, 1.15, 0)
                GlowEffect.Position = UDim2.new(-0.12, 0, -0.1, 0)
                GlowEffect.BackgroundTransparency = 1
                GlowEffect.Image = "rbxassetid://14653428612"
                GlowEffect.ImageColor3 = Color3.fromRGB(53, 255, 184)
                GlowEffect.ImageTransparency = 0.68
                GlowEffect.ScaleType = Enum.ScaleType.Slice
                GlowEffect.SliceCenter = Rect.new(50, 50, 150, 150)
                GlowEffect.ZIndex = 1
                GlowEffect.Parent = getgenv().HideScreenGUI

                local Frame = Instance.new("Frame")
                Frame.Name = "Scorpio Hub"
                Frame.Size = UDim2.new(0, 410, 0, 120)
                Frame.BackgroundColor3 = Color3.fromRGB(0, 12, 29)
                Frame.BackgroundTransparency = 0.12
                Frame.BorderSizePixel = 0
                Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
                Frame.AnchorPoint = Vector2.new(0.5, 0.5)
                Frame.ZIndex = 2
                Frame.Parent = getgenv().HideScreenGUI

                local Stroke = Instance.new("UIStroke")
                Stroke.Thickness = 9
                Stroke.Color = Color3.fromRGB(24, 255, 124)
                Stroke.Transparency = 0.04
                Stroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
                Stroke.Parent = Frame

                local TitleLabel = Instance.new("TextLabel")
                TitleLabel.Name = "Scorpio Hub"
                TitleLabel.Size = UDim2.new(1, 0, 0, 52)
                TitleLabel.Position = UDim2.new(0, 0, 0, 2)
                TitleLabel.BackgroundTransparency = 1
                TitleLabel.Text = "Scorpio Hub"
                TitleLabel.Font = Enum.Font.FredokaOne
                TitleLabel.TextColor3 = Color3.fromRGB(57, 255, 170)
                TitleLabel.TextStrokeTransparency = 0.21
                TitleLabel.TextStrokeColor3 = Color3.fromRGB(0, 25, 50)
                TitleLabel.TextScaled = true
                TitleLabel.ZIndex = 4
                TitleLabel.Parent = Frame

                local TitleGlow = Instance.new("TextLabel")
                TitleGlow.Name = "Scorpio Hub"
                TitleGlow.Size = TitleLabel.Size
                TitleGlow.Position = TitleLabel.Position
                TitleGlow.BackgroundTransparency = 1
                TitleGlow.Text = TitleLabel.Text
                TitleGlow.Font = TitleLabel.Font
                TitleGlow.TextColor3 = Color3.new(0.23, 1, 0.6)
                TitleGlow.TextStrokeTransparency = 0
                TitleGlow.TextTransparency = 0.38
                TitleGlow.TextScaled = true
                TitleGlow.ZIndex = TitleLabel.ZIndex - 1
                TitleGlow.Parent = Frame

                local textLabel = Instance.new("TextLabel")
                textLabel.Name = "Scorpio Hub"
                textLabel.Position = UDim2.new(0, 0, 0, 58)
                textLabel.Size = UDim2.new(1, 0, 0, 52)
                textLabel.BackgroundTransparency = 1
                textLabel.Text = '\n<font color="rgb(255,0,0)">Scorpio</font>\n' .. Title
                textLabel.Font = Enum.Font.FredokaOne
                textLabel.RichText = true
                textLabel.TextColor3 = Color3.fromRGB(33, 248, 152)
                textLabel.TextStrokeTransparency = 0.13
                textLabel.TextStrokeColor3 = Color3.fromRGB(4, 60, 20)
                textLabel.TextScaled = true
                textLabel.ZIndex = 4
                textLabel.Parent = Frame

                task.spawn(function()
                    while getgenv().HideScreenGUI and getgenv().HideScreenGUI.Parent do
                        local t = tick()
                        TitleLabel.TextColor3 = Color3.fromHSV(0.5 + 0.085, 1, 1 - 0.13 * math.abs(math.sin(t * 2.2)))
                        Stroke.Color = Color3.fromHSV(0.5 + 0.07, 0.9, 0.8 + 0.13 * math.cos(t * 3))
                        TitleGlow.TextTransparency = .15 + 0.15 * math.abs(math.cos(t * 1.32))
                        TitleGlow.TextColor3 = Color3.fromHSV(0.5 + 0.082, 0.7, 1)
                        textLabel.TextColor3 = Color3.fromHSV(0.5 + 0.08, 0.65 + 0.2 * math.sin(t * 2), 1)
                        Frame.BackgroundColor3 = Color3.fromHSV(0.5 + 0.085, 0.88, 0.112 + 0.15 * math.abs(math.sin(t * 1.3)))
                        task.wait(0.05)
                    end
                end)

                if Timing then
                    task.spawn(function()
                        local startTime = tick()
                        local endTime = startTime + Timing
                        while tick() < endTime do
                            local timeLeft = endTime - tick()
                            textLabel.Text = string.format(
                                'bronx.lol\n%s\nplease wait : <font color="rgb(0,163,224)">%.2f</font> seconds',
                                Title, math.max(timeLeft, 0)
                            )
                            task.wait()
                        end
                    end)
                end

                return textLabel
            end)

            DeleteSecretUI = LPH_NO_VIRTUALIZE(function(Title)
                if getgenv().HideScreenGUI then
                    getgenv().HideScreenGUI:Destroy()
                    getgenv().HideScreenGUI = nil
                end
            end)

            getgenv().Teleport = LPH_NO_VIRTUALIZE(function(CF, DontUi)
                local player = LocalPlayer
                if not player.Character then return end

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

                if not humanoid or not hrp then return end

                humanoid:ChangeState(0)

                if player:GetAttribute("LastACPos") ~= nil then
                    repeat task.wait() until not player:GetAttribute("LastACPos")
                end

                hrp.CFrame = CF

                task.wait()

                humanoid:ChangeState(2)

                return true
            end)

            GetWorkingSafe = LPH_NO_VIRTUALIZE(function()
                local House; local Safe;
                
                for Index, Value in workspace["1# Map"]["2 Crosswalks"].Safes:GetChildren() do
                    if Value:IsA("Model") and Value.Name == "Safe" then
                        if Value.WorldPivot == CFrame.new(-215.944153, 292.669647, -1034.16846, 0, 0, -1, -1, 0, 0, 0, 1, 0) then
                            Safe = Value
                            break
                        end
                    end
                end


                return Safe
            end)

            CollectDroppedMoney = LPH_NO_VIRTUALIZE(function()  
                if not Config.TheBronx.Farms.CollectDroppedMoney then return end
                if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then return end
                local OldCFrame = LocalPlayer.Character.HumanoidRootPart.CFrame

                for Index, Value in next, {Workspace.Dollas:GetChildren()} do
                    for _Index, _Value in Value do
                        if not _Value:IsA("Part") then continue end

                        Teleport(_Value.CFrame + Vector3.new(0, 3.5, 0))

                        task.wait(0.4)

                        fireproximityprompt(_Value.ProximityPrompt)

                        task.wait(_Value.ProximityPrompt.HoldDuration)
                    end
                end

                Teleport(OldCFrame)

                task.wait(0.4)

                return true
            end)

            local GunNames = {}

            for Index, Value in Lighting:GetChildren() do
                if Value:IsA("Tool") and Value:FindFirstChild("Setting") then
                    table.insert(GunNames, Value.Name)
                end
            end

            CollectLootBags = LPH_NO_VIRTUALIZE(function()  
                if not Config.TheBronx.Farms.CollectDroppedLoot then return end
                if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then return end
                local OldCFrame = LocalPlayer.Character.HumanoidRootPart.CFrame

                for Index, Value in next, {Workspace.Storage:GetChildren()} do
                    for _Index, _Value in Value do
                        if not _Value:IsA("MeshPart") then continue end
                        if _Value:FindFirstChild("PlayerName").Value == LocalPlayer.Name then continue end
                        
                        local _GunFound = true

                        --[[if Config.TheBronx.Farms.OnlyCollectGuns then
                            _GunFound = false; for __Index, __Value in _Value.Container:GetChildren() do
                                if table.find(GunNames, __Value.Name) then
                                    _GunFound = true;
                                end
                            end
                        end]]

                        if _GunFound == false then continue end;

                        Teleport(_Value.CFrame + Vector3.new(0, 3.5, 0))

                        task.wait(0.4)

                        fireproximityprompt(_Value.stealprompt)

                        task.wait(_Value.stealprompt.HoldDuration)
                    end
                end

                return true
            end)

            Workspace.Storage.ChildAdded:Connect(LPH_NO_VIRTUALIZE(function()
                task.spawn(CollectLootBags)
            end))

            Workspace.Dollas.ChildAdded:Connect(LPH_NO_VIRTUALIZE(function()
                task.spawn(CollectDroppedMoney)
            end))

            WashMoney = LPH_NO_VIRTUALIZE(function()
                -- TODO
            end)

            DryMoney = LPH_NO_VIRTUALIZE(function()
                -- TODO
            end)

            RunService.PreRender:Connect(LPH_NO_VIRTUALIZE(function()
                if not Config.TheBronx.PlayerModifications.InstantRevive then return end
                if not LocalPlayer.Character then return end
                if not LocalPlayer.Character:FindFirstChild("Humanoid") then return end

                if LocalPlayer.Character.Humanoid:GetState() == Enum.HumanoidStateType.Physics then
                    FireServer(ReplicatedStorage.FSpamRemote)
                    LocalPlayer.Character.Humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
                end

                StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
            end))

            ProximityPromptService.PromptButtonHoldBegan:Connect(function(Prompt, Self)
                if Prompt and Self == LocalPlayer and fireproximityprompt then
                    if Config.TheBronx.PlayerModifications.InstantInteract then
                        fireproximityprompt(Prompt, true)
                    end

                    if Config.TheBronx.PlayerModifications.BypassLockedCars then
                        if Self == LocalPlayer then
                            while true do
                                if Prompt.Parent:FindFirstChild("DriveSeat") then
                                    if Prompt:IsA("VehicleSeat") then
                                        Prompt:Sit(LocalPlayer.Character.Humanoid)
                                    else
                                        Prompt = Prompt.Parent
                                    end

                                    break
                                else
                                    Prompt = Prompt.Parent
                                end
                    
                                if not Prompt.Parent then
                                    break
                                end
                            end
                        end
                    end
                end 
            end)

            local Teleport_Debounce = false
            UserInputService.InputBegan:Connect(LPH_NO_VIRTUALIZE(function(Input, Game_Event)
                if not library then return end
                if not Flags then return end
                if Game_Event then return end
                if Input.UserInputType == Enum.UserInputType.MouseButton1 and Flags["ClickTeleport_TheBronx"] and Config.TheBronx.ClickTeleportActive then
                    local MouseLocation = UserInputService:GetMouseLocation()
                    local Ray = Camera:ViewportPointToRay(MouseLocation.X, MouseLocation.Y)
                    local RaycastParams = RaycastParams.new()
                    RaycastParams.FilterType = Enum.RaycastFilterType.Blacklist
                    RaycastParams.FilterDescendantsInstances = {LocalPlayer.Character, Workspace:FindFirstChild("Cameras"), Workspace:FindFirstChild("CameraLocations")}
                    local Cast = Workspace:Raycast(Ray.Origin, Ray.Direction * 1000, RaycastParams)
                    
                    if Cast and not Teleport_Debounce then
                        Teleport_Debounce = true

                        Teleport(CFrame.new(Cast.Position + Vector3.new(0,3,0)))

                        Teleport_Debounce = false
                    end
                end
            end))

            if Workspace:FindFirstChild("GUNS") then
                for Index, Value in Workspace:FindFirstChild("GUNS"):GetChildren() do
                    if not Value:IsA("Model") then continue end;
                    local Price = Value:FindFirstChild("Price", true).Value;
                    if Price == 0 then continue end;
                    if Price > 100000 then continue end;
                    if Price < 10 then continue end;
                    
                    if not table.find(Config.Guns, Value.Name.." - $"..tostring(Price)) then
                        table.insert(Config.Guns, Value.Name.." - $"..tostring(Price));
                    end;
                end;
            end;

            table.sort(Config.Guns, LPH_NO_VIRTUALIZE(function(a,b)
                return a<b
            end));
        end
    end)()
end

local Fonts = {}; do
    local function RegisterFont(Name, Weight, Style, Asset)
        if isfile(library.directory.."/assets/"..Asset.Id) then
            delfile(library.directory.."/assets/"..Asset.Id)
        end

        writefile(library.directory.."/assets/"..Asset.Id, Asset.Font)

        local Data = {
            name = Name,
            faces = {
                {
                    Name = "Normal",
                    weight = Weight,
                    style = Style,
                    assetId = getcustomasset(library.directory.."/assets/"..Asset.Id),
                },
            },
        }

        writefile(library.directory.."/fonts/"..Name .. ".font", Services.HttpService:JSONEncode(Data))

        return getcustomasset(library.directory.."/fonts/"..Name .. ".font");
    end
    
    local Tahoma = RegisterFont("Tahoma", 400, "Normal", {
        Id = "Tahoma.ttf",
        Font = game:HttpGet("https://[Log in to view URL]"),
    })

    local Pixel = RegisterFont("Pixel", 400, "Normal", {
        Id = "Pixel.ttf",
        Font = game:HttpGet("https://[Log in to view URL]"),
    })

    local Minecraftia = RegisterFont("Minecraftia", 400, "Normal", {
        Id = "Minecraftia.ttf",
        Font = game:HttpGet("https://[Log in to view URL]"),
    }) 

    local Verdana = RegisterFont("Verdana", 400, "Normal", {
        Id = "Verdana.ttf",
        Font = game:HttpGet("https://[Log in to view URL]"),
    })

    Fonts["Plex"] = Font.new(Tahoma, Enum.FontWeight.Regular, Enum.FontStyle.Normal);
    Fonts["Pixel"] = Font.new(Pixel, Enum.FontWeight.Regular, Enum.FontStyle.Normal);
    Fonts["Minecraftia"] = Font.new(Minecraftia, Enum.FontWeight.Regular, Enum.FontStyle.Normal);
    Fonts["Verdana"] = Font.new(Verdana, Enum.FontWeight.Regular, Enum.FontStyle.Normal);
end

local Players_ESP = {}

local RefreshAllElements = LPH_NO_VIRTUALIZE(function()
    for i,v in Players_ESP do
        if v and v.RefreshElements then
            v.RefreshElements()
        end
    end 
end)

do
    local Workspace, RunService, Players, CoreGui = Services.Workspace, Services.RunService, Services.Players, Services.CoreGui

    -- Def & Vars
    local Euphoria = Config.ESP.Connections;
    local lplayer = Players.LocalPlayer;
    local Cam = Workspace.CurrentCamera;
    local RotationAngle, Tick = -45, tick();

    local Functions = {}
    do
        function Functions:Create(Class, Properties)
            local _Instance = typeof(Class) == 'string' and Instance.new(Class) or Class
            for Property, Value in pairs(Properties) do
                _Instance[Property] = Value
            end
            return _Instance;
        end
        --
        Functions.FadeOutOnDist = LPH_NO_VIRTUALIZE(function(element, distance)
            local transparency = math.max(0.1, 1 - (distance / Config.ESP.MaxDistance))
            if element:IsA("TextLabel") then
                element.TextTransparency = 1 - transparency
            elseif element:IsA("ImageLabel") then
                element.ImageTransparency = 1 - transparency
            elseif element:IsA("UIStroke") then
                element.Transparency = 1 - transparency
            elseif element:IsA("Frame") and (element == Healthbar or element == BehindHealthbar) then
                element.BackgroundTransparency = 1 - transparency
            elseif element:IsA("Frame") then
                element.BackgroundTransparency = 1 - transparency
            elseif element:IsA("Highlight") then
                element.FillTransparency = 1 - transparency
                element.OutlineTransparency = 1 - transparency
            end;
        end);  

        Functions.AddOutline = LPH_NO_VIRTUALIZE(function(Frame, Thickness)     
            Functions:Create("Frame", {
                Parent = Frame,
                BorderSizePixel = 0,
                BackgroundColor3 = Color3.new(0, 0, 0),
                Position = UDim2.new(0, -Thickness, 0, -Thickness),
                Size = UDim2.new(1, Thickness * 2, 0, Thickness),
                ZIndex = Frame.ZIndex - 1
            })
        
            Functions:Create("Frame", {
                Parent = Frame,
                BorderSizePixel = 0,
                BackgroundColor3 = Color3.new(0, 0, 0),
                Position = UDim2.new(0, -Thickness, 1, 0),
                Size = UDim2.new(1, Thickness * 2, 0, Thickness),
                ZIndex = Frame.ZIndex - 1
            })
        
            Functions:Create("Frame", {
                Parent = Frame,
                BorderSizePixel = 0,

                BackgroundColor3 = Color3.new(0, 0, 0),
                Position = UDim2.new(0, -Thickness, 0, 0),
                Size = UDim2.new(0, Thickness, 1, 0),
                ZIndex = Frame.ZIndex - 1
            })
        
            Functions:Create("Frame", {
                Parent = Frame,
                BorderSizePixel = 0,

                BackgroundColor3 = Color3.new(0, 0, 0),
                Position = UDim2.new(1, 0, 0, 0),
                Size = UDim2.new(0, Thickness, 1, 0),
                ZIndex = Frame.ZIndex - 1
            })
        end)
    end;

    do -- Initalize
        local ScreenGui = Functions:Create("ScreenGui", {
            Parent = CoreGui,
            Name = "ESPHolder",
            ResetOnSpawn = false,
        });

        local DupeCheck = LPH_NO_VIRTUALIZE(function(plr)
            if ScreenGui:FindFirstChild(plr.Name) then
                ScreenGui[plr.Name]:Destroy()
            end
        end)

        local getHealthColor = LPH_NO_VIRTUALIZE(function(currentHealth, maxHealth)    
            return Config.ESP.Drawing.Healthbar.GradientRGB1:Lerp(Config.ESP.Drawing.Healthbar.GradientRGB2, (currentHealth / maxHealth))
        end)

        local ESP = function(plr)
            task.spawn(LPH_JIT_MAX(function()
            if plr == lplayer then return end

            coroutine.wrap(DupeCheck)(plr)
            local Name = Functions:Create("TextLabel", {Visible = false,Parent = ScreenGui, Position = UDim2.new(0.5, 0, 0, -11), Size = UDim2.new(0, 100, 0, 20), AnchorPoint = Vector2.new(0.5, 0.5), BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(255, 255, 255), Font = Enum.Font.Code, TextSize = Config.ESP.FontSize, TextStrokeTransparency = 0, TextStrokeColor3 = Color3.fromRGB(0, 0, 0), RichText = true})
            local Distance = Functions:Create("TextLabel", {Visible = false,Parent = ScreenGui, Position = UDim2.new(0.5, 0, 0, 11), Size = UDim2.new(0, 100, 0, 20), AnchorPoint = Vector2.new(0.5, 0.5), BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(255, 255, 255), Font = Enum.Font.Code, TextSize = Config.ESP.FontSize, TextStrokeTransparency = 0, TextStrokeColor3 = Color3.fromRGB(0, 0, 0), RichText = true})
            local Weapon = Functions:Create("TextLabel", {Visible = false,Parent = ScreenGui, Position = UDim2.new(0.5, 0, 0, 31), Size = UDim2.new(0, 100, 0, 20), AnchorPoint = Vector2.new(0.5, 0.5), BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(255, 255, 255), Font = Enum.Font.Code, TextSize = Config.ESP.FontSize, TextStrokeTransparency = 0, TextStrokeColor3 = Color3.fromRGB(0, 0, 0), RichText = true, Text = "None"})
            local Box = Functions:Create("Frame", {Parent = ScreenGui, BackgroundColor3 = Color3.fromRGB(0, 0, 0), BackgroundTransparency = 0.75, BorderSizePixel = 0})
            local Gradient1 = Functions:Create("UIGradient", {Parent = Box, Enabled = Config.ESP.Drawing.Boxes.GradientFill, Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Config.ESP.Drawing.Boxes.GradientFillRGB1), ColorSequenceKeypoint.new(1, Config.ESP.Drawing.Boxes.GradientFillRGB2)}})
            local Outline = Functions:Create("UIStroke", {Parent = Box, Enabled = Config.ESP.Drawing.Boxes.Gradient, Transparency = 0, Color = Color3.fromRGB(255, 255, 255), LineJoinMode = Enum.LineJoinMode.Miter})
            local Gradient2 = Functions:Create("UIGradient", {Parent = Outline, Enabled = Config.ESP.Drawing.Boxes.Gradient, Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Config.ESP.Drawing.Boxes.GradientRGB1), ColorSequenceKeypoint.new(1, Config.ESP.Drawing.Boxes.GradientRGB2)}})
            local Healthbar = Functions:Create("Frame", {Parent = ScreenGui, BackgroundColor3 = Color3.fromRGB(255, 255, 255), BackgroundTransparency = 0})
            local BehindHealthbar = Functions:Create("Frame", {BorderColor3 = Color3.fromRGB(0, 0, 0), Parent = ScreenGui, ZIndex = -1, BackgroundColor3 = Color3.fromRGB(0, 0, 0), BackgroundTransparency = 0})
            local HealthbarGradient = Functions:Create("UIGradient", {Parent = Healthbar, Enabled = Config.ESP.Drawing.Healthbar.Gradient, Rotation = -90, Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Config.ESP.Drawing.Healthbar.GradientRGB1), ColorSequenceKeypoint.new(1, Config.ESP.Drawing.Healthbar.GradientRGB2)}})
            local HealthText = Functions:Create("TextLabel", {Visible = false,Parent = ScreenGui, Position = UDim2.new(0.5, 0, 0, 31), Size = UDim2.new(0, 100, 0, 20), AnchorPoint = Vector2.new(0.5, 0.5), BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(255, 255, 255), Font = Enum.Font.Code, TextSize = Config.ESP.FontSize, TextStrokeTransparency = 0, TextStrokeColor3 = Color3.fromRGB(0, 0, 0), ZIndex = 500})
            local Chams = Functions:Create("Highlight", {Parent = ScreenGui, FillTransparency = 1, OutlineTransparency = 0, OutlineColor = Color3.fromRGB(119, 120, 255), DepthMode = "AlwaysOnTop"})
            local WeaponIcon = Functions:Create("ImageLabel", {Parent = ScreenGui, BackgroundTransparency = 1, BorderColor3 = Color3.fromRGB(0, 0, 0), BorderSizePixel = 0, Size = UDim2.new(0, 40, 0, 40)})
            local Gradient3 = Functions:Create("UIGradient", {Parent = WeaponIcon, Rotation = -90, Enabled = Config.ESP.Drawing.Weapons.Gradient, Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Config.ESP.Drawing.Weapons.GradientRGB1), ColorSequenceKeypoint.new(1, Config.ESP.Drawing.Weapons.GradientRGB2)}})
            local LeftTop = Functions:Create("Frame", {Parent = ScreenGui, BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB, Position = UDim2.new(0, 0, 0, 0), BorderSizePixel = 0, BorderColor3 = Color3.new(0,0,0)})
            local LeftSide = Functions:Create("Frame", {Parent = ScreenGui, BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB, Position = UDim2.new(0, 0, 0, 0), BorderSizePixel = 0, BorderColor3 = Color3.new(0,0,0)})
            local RightTop = Functions:Create("Frame", {Parent = ScreenGui, BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB, Position = UDim2.new(0, 0, 0, 0), BorderSizePixel = 0, BorderColor3 = Color3.new(0,0,0)})
            local RightSide = Functions:Create("Frame", {Parent = ScreenGui, BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB, Position = UDim2.new(0, 0, 0, 0), BorderSizePixel = 0, BorderColor3 = Color3.new(0,0,0)})
            local BottomSide = Functions:Create("Frame", {Parent = ScreenGui, BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB, Position = UDim2.new(0, 0, 0, 0), BorderSizePixel = 0, BorderColor3 = Color3.new(0,0,0)})
            local BottomDown = Functions:Create("Frame", {Parent = ScreenGui, BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB, Position = UDim2.new(0, 0, 0, 0), BorderSizePixel = 0, BorderColor3 = Color3.new(0,0,0)})
            local BottomRightSide = Functions:Create("Frame", {Parent = ScreenGui, BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB, Position = UDim2.new(0, 0, 0, 0), BorderSizePixel = 0, BorderColor3 = Color3.new(0,0,0)})
            local BottomRightDown = Functions:Create("Frame", {Parent = ScreenGui, BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB, Position = UDim2.new(0, 0, 0, 0), BorderSizePixel = 0, BorderColor3 = Color3.new(0,0,0)})
            local Flag1 = Functions:Create("TextLabel", {Visible = false,Parent = ScreenGui, Position = UDim2.new(1, 0, 0, 0), Size = UDim2.new(0, 100, 0, 20), AnchorPoint = Vector2.new(0.5, 0.5), BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(255, 255, 255), Font = Enum.Font.Code, TextSize = Config.ESP.FontSize, TextStrokeTransparency = 0, TextStrokeColor3 = Color3.fromRGB(0, 0, 0)})
            local Flag2 = Functions:Create("TextLabel", {Visible = false,Parent = ScreenGui, Position = UDim2.new(1, 0, 0, 0), Size = UDim2.new(0, 100, 0, 20), AnchorPoint = Vector2.new(0.5, 0.5), BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(255, 255, 255), Font = Enum.Font.Code, TextSize = Config.ESP.FontSize, TextStrokeTransparency = 0, TextStrokeColor3 = Color3.fromRGB(0, 0, 0)})
            --local DroppedItems = Functions:Create("TextLabel", {Visible = false,Parent = ScreenGui, AnchorPoint = Vector2.new(0.5, 0.5), BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(255, 255, 255), Font = Enum.Font.Code, TextSize = Config.ESP.FontSize, TextStrokeTransparency = 0, TextStrokeColor3 = Color3.fromRGB(0, 0, 0)})
            --
            Functions.AddOutline(LeftTop, 1); Functions.AddOutline(LeftSide, 1); Functions.AddOutline(LeftSide, 1); Functions.AddOutline(RightTop, 1); Functions.AddOutline(RightSide, 1); Functions.AddOutline(BottomSide, 1); Functions.AddOutline(BottomDown, 1); Functions.AddOutline(BottomRightSide, 1); Functions.AddOutline(BottomRightDown, 1); 
            if not plr.Character then plr.CharacterAdded:Wait() end
            local Humanoid, HRP = plr.Character:WaitForChild("Humanoid"), plr.Character:WaitForChild("HumanoidRootPart")

            local Pos, OnScreen = Cam:WorldToScreenPoint(HRP.Position)
            local Dist = (Cam.CFrame.Position - HRP.Position).Magnitude
                            
            local Size = HRP.Size.Y

            if DefaultPlayerSettings[plr.Name] and DefaultPlayerSettings[plr.Name].RootSettings and DefaultPlayerSettings[plr.Name].RootSettings.Size then
                Size = DefaultPlayerSettings[plr.Name].RootSettings.Size.Y
            end

            local health_clamped = math.clamp(Humanoid.Health, 0, Humanoid.MaxHealth)
            local health = health_clamped / Humanoid.MaxHealth;
            
            local scaleFactor = (Size * Cam.ViewportSize.Y) / (Pos.Z * 2)
            
            local w, h = 3 * scaleFactor, 4.5 * scaleFactor

            if not Players_ESP[plr.Name] then
                -- ERROR BECAUSE LEAVE + JOIN NEW PLAYER CHARACTER NEW ESP ELEMTNS

                Players_ESP[plr.Name] = {}
                Players_ESP[plr.Name].RefreshElements = LPH_JIT_MAX(function()
                    task.spawn(LPH_NO_VIRTUALIZE(function()
                        if Config.ESP.Font == Fonts["Plex"] or Config.ESP.Font == Fonts["Pixel"] or Config.ESP.Font == Fonts["Minecraftia"] or Config.ESP.Font == Fonts["Verdana"] then
                            HealthText.FontFace = Config.ESP.Font
                            Name.FontFace = Config.ESP.Font
                            Distance.FontFace = Config.ESP.Font
                            Weapon.FontFace = Config.ESP.Font
                        else
                            HealthText.Font = Config.ESP.Font
                            Name.Font = Config.ESP.Font
                            Distance.Font = Config.ESP.Font
                            Weapon.Font = Config.ESP.Font
                        end

                        do -- \\ Boxes
                            Box.Visible = Config.ESP.Drawing.Boxes.Full.Enabled
                            if Config.ESP.Drawing.Boxes.Filled.Enabled then
                                Box.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
                                if Config.ESP.Drawing.Boxes.GradientFill then
                                    Box.BackgroundTransparency = Config.ESP.Drawing.Boxes.Filled.Transparency;
                                else
                                    Box.BackgroundTransparency = 1
                                end
                                Box.BorderSizePixel = 1
                            else
                                Box.BackgroundTransparency = 1
                            end

                            if not Config.ESP.Drawing.Boxes.Bounding.Enabled or (Config.ESP.Drawing.Boxes.Corner.Enabled and Config.ESP.Drawing.Boxes.Bounding.Enabled) then
                                LeftTop.Transparency = Config.ESP.Drawing.Boxes.Corner.Transparency
                                LeftTop.BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB

                                LeftSide.Transparency = Config.ESP.Drawing.Boxes.Corner.Transparency
                                LeftSide.BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB

                                BottomSide.Transparency = Config.ESP.Drawing.Boxes.Corner.Transparency
                                BottomSide.BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB

                                BottomDown.Transparency = Config.ESP.Drawing.Boxes.Corner.Transparency
                                BottomDown.BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB

                                RightTop.Transparency = Config.ESP.Drawing.Boxes.Corner.Transparency
                                RightTop.BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB

                                RightSide.Transparency = Config.ESP.Drawing.Boxes.Corner.Transparency
                                RightSide.BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB

                                BottomRightSide.Transparency = Config.ESP.Drawing.Boxes.Corner.Transparency
                                BottomRightSide.BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB

                                BottomRightDown.Transparency = Config.ESP.Drawing.Boxes.Corner.Transparency
                                BottomRightDown.BackgroundColor3 = Config.ESP.Drawing.Boxes.Corner.RGB
                            end

                            if not Config.ESP.Drawing.Boxes.Corner.Enabled then
                                LeftTop.Transparency = Config.ESP.Drawing.Boxes.Bounding.Transparency
                                LeftSide.Transparency = Config.ESP.Drawing.Boxes.Bounding.Transparency
                                BottomSide.Transparency = Config.ESP.Drawing.Boxes.Bounding.Transparency
                                RightSide.Transparency = Config.ESP.Drawing.Boxes.Bounding.Transparency

                                LeftTop.BackgroundColor3 = Config.ESP.Drawing.Boxes.Bounding.RGB
                                LeftSide.BackgroundColor3 = Config.ESP.Drawing.Boxes.Bounding.RGB
                                BottomSide.BackgroundColor3 = Config.ESP.Drawing.Boxes.Bounding.RGB
                                RightSide.BackgroundColor3 = Config.ESP.Drawing.Boxes.Bounding.RGB
                            end

                            BottomSide.AnchorPoint = Vector2.new(0, 5)
                            BottomDown.AnchorPoint = Vector2.new(0, 1)
                            RightTop.AnchorPoint = Vector2.new(1, 0)
                            RightSide.AnchorPoint = Vector2.new(0, 0)
                            BottomRightSide.AnchorPoint = Vector2.new(1, 1)
                            BottomRightDown.AnchorPoint = Vector2.new(1, 1)

                            if not Config.ESP.Drawing.Boxes.Animate then
                                Gradient1.Rotation = -45
                                Gradient2.Rotation = -45
                            end

                            Gradient1.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Config.ESP.Drawing.Boxes.GradientFillRGB1), ColorSequenceKeypoint.new(1, Config.ESP.Drawing.Boxes.GradientFillRGB2)}
                            Gradient2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Config.ESP.Drawing.Boxes.GradientRGB1), ColorSequenceKeypoint.new(1, Config.ESP.Drawing.Boxes.GradientRGB2)}
                        end
                        
                        do -- \\ Names
                            Name.TextSize = Config.ESP.FontSize
                            --Name.Font = Config.ESP.Font
                            Name.TextColor3 = Config.ESP.Drawing.Names.RGB
                            Name.TextStrokeTransparency = Config.ESP.Drawing.Names.Transparency
                        end

                        do -- \\ Chams
                            if Config.ESP.Drawing.Chams.VisibleCheck then
                                Chams.DepthMode = "Occluded"
                            else
                                Chams.DepthMode = "AlwaysOnTop"
                            end

                            Chams.FillColor = Config.ESP.Drawing.Chams.FillRGB
                            Chams.OutlineColor = Config.ESP.Drawing.Chams.OutlineRGB

                            if not Config.ESP.Drawing.Chams.Thermal then 
                                Chams.OutlineTransparency = Config.ESP.Drawing.Chams.Outline_Transparency / 100
                                Chams.FillTransparency = Config.ESP.Drawing.Chams.Fill_Transparency / 100
                            end
                        end

                        do -- \\ Rest im lazy cuzzy bro
                            Distance.TextStrokeTransparency = Config.ESP.Drawing.Distances.Transparency
                            Distance.TextSize = Config.ESP.FontSize
                            Distance.TextColor3 = Config.ESP.Drawing.Distances.RGB
                            Weapon.TextStrokeTransparency = Config.ESP.Drawing.Weapons.Transparency
                            Weapon.TextSize = Config.ESP.FontSize
                            Weapon.TextColor3 = Config.ESP.Drawing.Weapons.WeaponTextRGB
                        end
                    end))
                end)

                Players_ESP[plr.Name].Health_Changed = LPH_NO_VIRTUALIZE(function()
                    health_clamped = math.clamp(Humanoid.Health, 0, Humanoid.MaxHealth)
                    health = health_clamped / Humanoid.MaxHealth;
                end)

                Players_ESP[plr.Name].Health_Changed()

                Players_ESP[plr.Name].Child_Added = LPH_NO_VIRTUALIZE(function(Item)
                    if not Item:IsA("Tool") then 
                        return
                    end 

                    local name = plr.Character:FindFirstChild(Item.Name) and Item.Name or "None"

                    Weapon.Text = name
                end)

                Players_ESP[plr.Name].ToolConnection_Added = plr.Character.ChildAdded:Connect(Players_ESP[plr.Name].Child_Added)
                Players_ESP[plr.Name].ToolConnection_Removed = plr.Character.ChildRemoved:Connect(Players_ESP[plr.Name].Child_Added)

                Players_ESP[plr.Name].HumanoidConnection = Humanoid.HealthChanged:Connect(Players_ESP[plr.Name].Health_Changed)

                Players_ESP[plr.Name].CharacterAdded = plr.CharacterAdded:Connect(LPH_JIT_MAX(function(Character)
                    Humanoid = Character:WaitForChild("Humanoid")
                    HRP = Character:WaitForChild("HumanoidRootPart")
                    Players_ESP[plr.Name].ToolConnection_Added:Disconnect()
                    Players_ESP[plr.Name].ToolConnection_Removed:Disconnect()

                    Players_ESP[plr.Name].ToolConnection_Removed = nil
                    Players_ESP[plr.Name].ToolConnection_Added = nil

                    Players_ESP[plr.Name].ToolConnection_Added = plr.Character.ChildAdded:Connect(Players_ESP[plr.Name].Child_Added)
                    Players_ESP[plr.Name].ToolConnection_Removed = plr.Character.ChildRemoved:Connect(Players_ESP[plr.Name].Child_Added)

                    Players_ESP[plr.Name].HumanoidConnection:Disconnect()
                    Players_ESP[plr.Name].HumanoidConnection = Humanoid.HealthChanged:Connect(Players_ESP[plr.Name].Health_Changed)
                    Players_ESP[plr.Name].Health_Changed()
                    Players_ESP[plr.Name].RefreshElements()
                end))

                Players_ESP[plr.Name].RefreshElements()
            end

            local Updater = function()
                local Connection;
                local HideESP = LPH_NO_VIRTUALIZE(function()
                    Box.Visible = false;
                    Name.Visible = false;
                    Distance.Visible = false;
                    Weapon.Visible = false;
                    Healthbar.Visible = false;
                    BehindHealthbar.Visible = false;
                    HealthText.Visible = false;
                    WeaponIcon.Visible = false;
                    LeftTop.Visible = false;
                    LeftSide.Visible = false;
                    BottomSide.Visible = false;
                    BottomDown.Visible = false;
                    RightTop.Visible = false;
                    RightSide.Visible = false;
                    BottomRightSide.Visible = false;
                    BottomRightDown.Visible = false;
                    Flag1.Visible = false;
                    Chams.Enabled = false;
                    Flag2.Visible = false;
                    if not plr then
                        ScreenGui:Destroy();
                        Connection:Disconnect();
                    end
                end)
                --
                Connection = Euphoria.RunService.RenderStepped:Connect(LPH_NO_VIRTUALIZE(function()
                    if plr.Character and lplayer.Character and Config.ESP.Enabled then
                        if Humanoid and HRP then
                            Pos, OnScreen = Cam:WorldToScreenPoint(HRP.Position)
                            Dist = (Cam.CFrame.Position - HRP.Position).Magnitude
                            
                            if OnScreen and Dist <= Config.ESP.MaxDistance then
                                Size = HRP.Size.Y

                                if DefaultPlayerSettings[plr.Name] and DefaultPlayerSettings[plr.Name].RootSettings and DefaultPlayerSettings[plr.Name].RootSettings.Size then
                                    Size = DefaultPlayerSettings[plr.Name].RootSettings.Size.Y
                                end
                                
                                scaleFactor = (Size * Cam.ViewportSize.Y) / (Pos.Z * 2)
                                
                                w, h = 3 * scaleFactor, 4.5 * scaleFactor

                                -- Fade-out effect --
                                if Config.ESP.FadeOut.OnDistance then
                                    Functions.FadeOutOnDist(Box, Dist)
                                    Functions.FadeOutOnDist(Outline, Dist)
                                    Functions.FadeOutOnDist(Name, Dist)
                                    Functions.FadeOutOnDist(Distance, Dist)
                                    Functions.FadeOutOnDist(Weapon, Dist)
                                    Functions.FadeOutOnDist(Healthbar, Dist)
                                    Functions.FadeOutOnDist(BehindHealthbar, Dist)
                                    Functions.FadeOutOnDist(HealthText, Dist)
                                    Functions.FadeOutOnDist(WeaponIcon, Dist)
                                    Functions.FadeOutOnDist(LeftTop, Dist)
                                    Functions.FadeOutOnDist(LeftSide, Dist)
                                    Functions.FadeOutOnDist(BottomSide, Dist)
                                    Functions.FadeOutOnDist(BottomDown, Dist)
                                    Functions.FadeOutOnDist(RightTop, Dist)
                                    Functions.FadeOutOnDist(RightSide, Dist)
                                    Functions.FadeOutOnDist(BottomRightSide, Dist)
                                    Functions.FadeOutOnDist(BottomRightDown, Dist)
                                    Functions.FadeOutOnDist(Chams, Dist)
                                    Functions.FadeOutOnDist(Flag1, Dist)
                                    Functions.FadeOutOnDist(Flag2, Dist)
                                end
                                
                                -- Teamcheck
                                if HRP and Humanoid then
                                    do -- Chams
                                        Chams.Adornee = plr.Character
                                        Chams.Enabled = Config.ESP.Drawing.Chams.Enabled
                                        do -- Breathe
                                            if Config.ESP.Drawing.Chams.Thermal then
                                                local breathe_effect = math.atan(math.sin(tick() * 2)) * 2 / math.pi
                                                Chams.FillTransparency = Config.ESP.Drawing.Chams.Fill_Transparency * breathe_effect * 0.01
                                                Chams.OutlineTransparency = Config.ESP.Drawing.Chams.Outline_Transparency * breathe_effect * 0.01
                                            end
                                        end
                                    end;

                                    do -- Corner Boxes
                                        if not Config.ESP.Drawing.Boxes.Bounding.Enabled or (Config.ESP.Drawing.Boxes.Corner.Enabled and Config.ESP.Drawing.Boxes.Bounding.Enabled) then
                                            LeftTop.Visible = Config.ESP.Drawing.Boxes.Corner.Enabled
                                            LeftTop.Position = UDim2.new(0, Pos.X - w / 2, 0, Pos.Y - h / 2)
                                            LeftTop.Size = UDim2.new(0, w / 5, 0, 1)

                                            LeftSide.Visible = Config.ESP.Drawing.Boxes.Corner.Enabled
                                            LeftSide.Position = UDim2.new(0, Pos.X - w / 2, 0, Pos.Y - h / 2)
                                            LeftSide.Size = UDim2.new(0, 1, 0, h / 5)

                                            BottomSide.Visible = Config.ESP.Drawing.Boxes.Corner.Enabled
                                            BottomSide.Position = UDim2.new(0, Pos.X - w / 2, 0, Pos.Y + h / 2)
                                            BottomSide.Size = UDim2.new(0, 1, 0, h / 5)

                                            BottomDown.Visible = Config.ESP.Drawing.Boxes.Corner.Enabled
                                            BottomDown.Position = UDim2.new(0, Pos.X - w / 2, 0, Pos.Y + h / 2)
                                            BottomDown.Size = UDim2.new(0, w / 5, 0, 1)


                                            RightTop.Visible = Config.ESP.Drawing.Boxes.Corner.Enabled
                                            RightTop.Position = UDim2.new(0, Pos.X + w / 2, 0, Pos.Y - h / 2)
                                            RightTop.Size = UDim2.new(0, w / 5, 0, 1)

                                            RightSide.Visible = Config.ESP.Drawing.Boxes.Corner.Enabled
                                            RightSide.Position = UDim2.new(0, Pos.X + w / 2 - 1, 0, Pos.Y - h / 2)
                                            RightSide.Size = UDim2.new(0, 1, 0, h / 5)

                                            BottomRightSide.Visible = Config.ESP.Drawing.Boxes.Corner.Enabled
                                            BottomRightSide.Position = UDim2.new(0, Pos.X + w / 2, 0, Pos.Y + h / 2)
                                            BottomRightSide.Size = UDim2.new(0, 1, 0, h / 5)

                                            BottomRightDown.Visible = Config.ESP.Drawing.Boxes.Corner.Enabled
                                            BottomRightDown.Position = UDim2.new(0, Pos.X + w / 2, 0, Pos.Y + h / 2)
                                            BottomRightDown.Size = UDim2.new(0, w / 5, 0, 1)
                                        end
                                    end

                                    do -- // Bounding Boxes
                                        if not Config.ESP.Drawing.Boxes.Corner.Enabled then
                                            LeftTop.Visible = Config.ESP.Drawing.Boxes.Bounding.Enabled
                                            LeftTop.Position = UDim2.new(0, Pos.X - w / 2, 0, Pos.Y - h / 2)
                                            LeftTop.Size = UDim2.new(0, w, 0, 1)


                                            LeftSide.Visible = Config.ESP.Drawing.Boxes.Bounding.Enabled
                                            LeftSide.Position = UDim2.new(0, Pos.X - w / 2, 0, Pos.Y - h / 2)
                                            LeftSide.Size = UDim2.new(0, 1, 0, h)


                                            BottomSide.Visible = Config.ESP.Drawing.Boxes.Bounding.Enabled
                                            BottomSide.Position = UDim2.new(0, Pos.X - w / 2, 0, Pos.Y + h / 2)
                                            BottomSide.Size = UDim2.new(0, w, 0, 1) 


                                            RightSide.Visible = Config.ESP.Drawing.Boxes.Bounding.Enabled 
                                            RightSide.Position = UDim2.new(0, Pos.X + w / 2 - 1, 0, Pos.Y - h / 2)
                                            RightSide.Size = UDim2.new(0, 1, 0, h) 

                                            BottomRightSide.Visible = false
                                            BottomRightDown.Visible = false
                                            BottomDown.Visible = false
                                            RightTop.Visible = false
                                        end
                                    end

                                    do -- Boxes
                                        Box.Position = UDim2.new(0, Pos.X - w / 2, 0, Pos.Y - h / 2)
                                        Box.Size = UDim2.new(0, w, 0, h)
                                        Box.Visible = Config.ESP.Drawing.Boxes.Full.Enabled

                                        -- Animation
                                        if Config.ESP.Drawing.Boxes.Animate then
                                            RotationAngle = RotationAngle + (tick() - Tick) * Config.ESP.Drawing.Boxes.RotationSpeed * math.cos(math.pi / 4 * tick() - math.pi / 2)
                                            Gradient1.Rotation = RotationAngle
                                            Gradient2.Rotation = RotationAngle
                                        end

                                        
                                        Tick = tick()
                                    end

                                    -- Healthbar
                                    do  
                                        

                                            local is_inf = false

                                            if Humanoid.Health ~= Humanoid.Health then
                                                health = 1;
                                                is_inf = true;
                                            end

                                            Healthbar.Position = UDim2.new(0, Pos.X - w / 2 - 6, 0, Pos.Y - h / 2 + h * (1 - health))
                                            Healthbar.Size = UDim2.new(0, Config.ESP.Drawing.Healthbar.Width, 0, h * health)

                                            Healthbar.BackgroundTransparency = Config.ESP.Drawing.Healthbar.Transparency

                                            BehindHealthbar.Position = UDim2.new(0, Pos.X - w / 2 - 6, 0, Pos.Y - h / 2) 
                                            BehindHealthbar.Size = UDim2.new(0, Config.ESP.Drawing.Healthbar.Width, 0, h) 
                                            BehindHealthbar.BackgroundTransparency = Config.ESP.Drawing.Healthbar.Transparency


                                            HealthbarGradient.Enabled = Config.ESP.Drawing.Healthbar.Gradient
                                            HealthbarGradient.Color = ColorSequence.new{
                                                ColorSequenceKeypoint.new(0, Config.ESP.Drawing.Healthbar.GradientRGB1),
                                                ColorSequenceKeypoint.new(1, Config.ESP.Drawing.Healthbar.GradientRGB2)
                                            }

                                            HealthbarGradient.Offset = Vector2.new(0, health - 1)

                                            local color = getHealthColor(health_clamped , Humanoid.MaxHealth)
                                            local healthtexttext = tostring(math.floor(health_clamped))

                                            if is_inf then
                                                healthtexttext = "inf"

                                                color = getHealthColor(Humanoid.MaxHealth, Humanoid.MaxHealth)
                                            end

                                            Healthbar.BackgroundColor3 = not Config.ESP.Drawing.Healthbar.Gradient and color or Color3.new(1,1,1)
                                            -- Health Text

                                            Healthbar.Visible = Config.ESP.Drawing.Healthbar.Enabled
                                            BehindHealthbar.Visible = Config.ESP.Drawing.Healthbar.Enabled

                                            do
                                                if Config.ESP.Drawing.Healthbar.HealthText then
                                                    local healthPercentage = math.floor(health_clamped / Humanoid.MaxHealth * 100)

                                                    if is_inf then
                                                        healthPercentage = 100
                                                    end

                                                    HealthText.Position = UDim2.new(0, Pos.X - w / 2 - 18 --[[6]], 0, Pos.Y - h / 2 + h * (1 - healthPercentage / 100) + 3)
                                                    HealthText.Text = healthtexttext
                                                    HealthText.TextSize = Config.ESP.FontSize
                                                    --HealthText.Font = Config.ESP.Font
                                                    HealthText.Visible = Config.ESP.Drawing.Healthbar.HealthText
                                                    HealthText.TextStrokeTransparency = Config.ESP.Drawing.Healthbar.HealthTextTransparency
                                                    if Config.ESP.Drawing.Healthbar.Lerp then
                                                        HealthText.TextColor3 = color
                                                    else
                                                        HealthText.TextColor3 = Config.ESP.Drawing.Healthbar.HealthTextRGB
                                                    end
                                                else
                                                    HealthText.Visible = false
                                                end
                                            end
                                    end

                                    do -- Names
                                            Name.Visible = Config.ESP.Drawing.Names.Enabled
                                            Name.Text = plr.Name
                                            if Config.ESP.Options.Friendcheck and lplayer:IsFriendsWith(plr.UserId) then
                                                Name.Text = string.format('(<font color="rgb(%d, %d, %d)">F</font>) %s', Config.ESP.Options.FriendcheckRGB.R * 255, Config.ESP.Options.FriendcheckRGB.G * 255, Config.ESP.Options.FriendcheckRGB.B * 255, plr.Name)
                                            end
                                            Name.Position = UDim2.new(0, Pos.X, 0, Pos.Y - h / 2 - 9)
                                    end
                                    
                                    do -- Distance
                                            if Config.ESP.Drawing.Distances.Enabled then
                                                Weapon.Position = UDim2.new(0, Pos.X, 0, Pos.Y + h / 2 + 7)

                                                --WeaponIcon.Position = UDim2.new(0, Pos.X - 21, 0, Pos.Y + h / 2 + 15);
                                                Distance.Position = UDim2.new(0, Pos.X, 0, Pos.Y + h / 2 + (Weapon.Visible and 18 or 7))
                                                Distance.Text = string.format("%d Studs", math.floor(Dist))

                                                Distance.Visible = true
                                                --Distance.Font = Config.ESP.Font
                                            else
                                                Weapon.Position = UDim2.new(0, Pos.X, 0, Pos.Y + h / 2 + 8)
                                                Distance.Visible = false;
                                            end
                                    end

                                    do -- Weapons
                                            Weapon.Visible = Config.ESP.Drawing.Weapons.Enabled
                                            --Weapon.Font = Config.ESP.Font
                                    end
                                else
                                    HideESP();
                                end
                            else
                                HideESP();
                            end
                        else
                            HideESP();
                        end
                    else
                        HideESP();
                    end
                end))
            end
            coroutine.wrap(Updater)();
            end))
        end
        do -- Update ESP
            for _, v in pairs(Players:GetPlayers()) do
                if v ~= lplayer then
                    coroutine.wrap(ESP)(v)
                end
            end
            --
            Players.PlayerAdded:Connect(function(v)
                coroutine.wrap(ESP)(v)
            end);

            Players.PlayerRemoving:Connect(function(v)
                if Players_ESP[v.Name] then
                    Players_ESP[v.Name].RefreshElements = nil
                    Players_ESP[v.Name].CharacterAdded:Disconnect()
                    Players_ESP[v.Name].CharacterAdded = nil
                    Players_ESP[v.Name].ToolConnection_Added:Disconnect()
                    Players_ESP[v.Name].ToolConnection_Removed:Disconnect()
                    Players_ESP[v.Name].ToolConnection_Removed = nil
                    Players_ESP[v.Name].ToolConnection_Added = nil
                    Players_ESP[v.Name] = nil
                end 
            end)
        end;
    end;
end

local Library, Flags = loadstring(game:HttpGet("https://[Log in to view URL]"))() -- uii

-- \\ Script

local window = Library:Window({Prefix = "🔫", Suffix = "SCORPIO HUB"})

if Game_Name == "The Bronx" then
    local LocalPlayerTab = window:Tab({name = "Main"})
    local MiscTab = window:Tab({name = "Money", icon = GetImage("Cash.png")})
    local uhhiTab1 = window:Tab({name = "Miscellaneous", icon = GetImage("Wrench.png")})
	local executor = identifyexecutor and identifyexecutor() or "Unknown"

    if executor ~= "Solara" and executor ~= "Xeno" then
        local GeneralSection = uhhiTab1:Section({name = "Weapon Modifications", side = "left"})

        local Modifications = {
            "Infinite Ammo";
            "Infinite Clips";
            "Infinite Damage";
            "Fully Automatic";
            "Disable Jamming";
            "Modify Recoil Value";
            "Modify Spread Value";
            "Modify Reload Speed";
            "Modify Equip Speed";
            "Modify Fire Rate";
        }

        for _, Index in Modifications do
            GeneralSection:Toggle({name = Index, flag = Index.."_TB3", type = "toggle", default = false, callback = function(state)
                if Index == "Fully Automatic" then Index = "Automatic" end
                Config.TheBronx.Modifications[Index:gsub(" ", "")] = state
            end})
        end
        
        task.spawn(function()
            local Players = game:GetService('Players')
            local LocalPlayer = Players.LocalPlayer
            
            while task.wait(0.1) do
                if not Config.TheBronx.Modifications.InfiniteAmmo then continue end
                
                local char = LocalPlayer.Character
                if not char then continue end

                local gun = char:FindFirstChildOfClass('Tool')
                if not gun then continue end

                local server = gun:FindFirstChild('GunScript_Server')
                if not server then continue end

                local setting = gun:FindFirstChild('Setting')
                if not setting then continue end

                pcall(function()
                    for _, conn in ipairs(getconnections(server.ChangeMagAndAmmo.OnClientEvent)) do
                        if conn.Function then
                            setupvalue(conn.Function, 1, 10) 
                        end
                    end
                end)
            end
        end)

        GeneralSection = uhhiTab1:Section({name = "Weapon Modifications", side = "left"})

        GeneralSection:Slider({name = "Recoil Percentage", flag = "RecoilValue_TB3", default = 50, min = 0, max = 100, suffix = "%", callback = function(state)
            Config.TheBronx.Modifications.RecoilPercentage = state
        end})

        GeneralSection:Slider({name = "Spread Percentage", flag = "SpreadValue_TB3", default = 50, min = 0, max = 100, suffix = "%", callback = function(state)
            Config.TheBronx.Modifications.SpreadPercentage = state
        end})

        GeneralSection:Slider({name = "Fire Rate Percentage", flag = "FireRateSpeed_TB3", default = 50, min = 0, max = 100, suffix = "%", callback = function(state)
            Config.TheBronx.Modifications.FireRateSpeed = state
        end})

        GeneralSection:Slider({name = "Reload Speed Percentage", flag = "ReloadSpeed_TB3", default = 50, min = 0, max = 100, suffix = "%", callback = function(state)
            Config.TheBronx.Modifications.ReloadSpeed = state
        end})

        GeneralSection:Slider({name = "Equip Speed Percentage", flag = "EquipSpeed_TB3", default = 50, min = 0, max = 100, suffix = "%", callback = function(state)
            Config.TheBronx.Modifications.EquipSpeed = state
        end})
    end

	do -- \\ Local Player Tab
        local LocalPlayerColumn = LocalPlayerTab

        local LocalPlayerModsSection = LocalPlayerColumn:Section({name = "Local Player Modifications", side = "left", size = 1.0135})

        local __Modifications = {
            "Infinite Sleep";
            "Infinite Hunger";
            "Infinite Stamina";
            "Instant Interact";
            "Auto Pickup Cash";
            "Auto Pickup Bags";
            "Disable Camera Bobbing";
            --"Disable Cameras";
            "Disable Blood Effects";
            "Bypass Locked Cars";
            "No Jump Cooldown";
            "No Rent Pay";
            "No Fall Damage";
            "No Knockback";
            "Respawn Where You Died";
        }

        LocalPlayerModsSection:Toggle({type = "toggle", name = "Instant Respawn", flag = "InstantRespawn_Enabled", default = false, callback = function(state)
            getgenv().InstantRespawnEnabled = state
            
            if state then
                task.spawn(function()
                    while getgenv().InstantRespawnEnabled do
                        local character = game:GetService("Players").LocalPlayer.Character
                        if character and character:FindFirstChild("Humanoid") then
                            local humanoid = character.Humanoid
                            if humanoid.Health <= 0 then
                                task.wait(0.1)  
                                game:GetService("ReplicatedStorage").RespawnRE:FireServer()
                            end
                        end
                        task.wait(0.1) 
                    end
                end)
            else
                getgenv().InstantRespawnEnabled = false
            end
        end})

        for _, Index in __Modifications do
            LocalPlayerModsSection:Toggle({type = "toggle", name = Index, flag = Index, default = false, callback = function(state)
                Config.TheBronx.PlayerModifications[Index:gsub(" ", "")] = state
            end})
        end

        LocalPlayerColumn = LocalPlayerTab
        local CharacterModsSection = LocalPlayerColumn:Section({name = "Character Modifications", side = "right"})

        local _NoClipToggle = CharacterModsSection:Toggle({type = "toggle", name = "No Clip", flag = "NoClip_TheBronx", seperator = true, default = false, callback = function(state)
            if state then
                RunService:BindToRenderStep("NOCLIP", 1, LPH_NO_VIRTUALIZE(function()
                    if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
                        if LocalPlayer.Character.Humanoid.Health ~= 0 then
                            for Index, Value in LocalPlayer.Character:GetDescendants() do
                                if Collide_Data[Value.Name] then
                                    pcall(function()
                                        Value.CanCollide = false
                                    end)
                                end
                            end
                        else
                            for Index, Value in LocalPlayer.Character:GetDescendants() do
                                if Collide_Data[Value.Name] then
                                    pcall(function()
                                        Value.CanCollide = true
                                    end)
                                end
                            end
                        end
                    end
                end))
            else
                RunService:UnbindFromRenderStep("NOCLIP")

                for Index, Value in LocalPlayer.Character:GetDescendants() do
                    if Collide_Data[Value.Name] then
                        pcall(function()
                            Value.CanCollide = true
                        end)
                    end
                end
            end
        end})

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

        local swimMethod = false
        local speedMultiplier = 50
        local flyEnabled = false
        local flySpeedMultiplier = 50
        local CFloop

        local speedConnection

        local function handleSpeed()
            if not swimMethod then return end
            
            local character = player.Character
            if not character or not character.Parent then return end
            
            local humanoid = character:FindFirstChildOfClass("Humanoid")
            local hrp = character:FindFirstChild("HumanoidRootPart")
            if not humanoid or not hrp or humanoid.Health <= 0 then return end
            
            humanoid:ChangeState(0) 
            
            local moveDir = humanoid.MoveDirection
            if moveDir.Magnitude > 0 then
                local worldMoveVec = Vector3.new(moveDir.X, 0, moveDir.Z).Unit * (speedMultiplier * 16)
                if worldMoveVec.Magnitude == worldMoveVec.Magnitude then 
                    hrp.Velocity = Vector3.new(worldMoveVec.X, hrp.Velocity.Y, worldMoveVec.Z)
                end
            else
                hrp.Velocity = Vector3.new(0, hrp.Velocity.Y, 0)
            end
            
            local rotVelocity = hrp.RotVelocity
            if rotVelocity.X ~= 0 or rotVelocity.Y ~= 0 or rotVelocity.Z ~= 0 then
                hrp.RotVelocity = Vector3.new(0, 0, 0)
            end
        end

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

        local function setupCleanup()
            if player and player.CharacterRemoving then
                player.CharacterRemoving:Connect(function()
                    if speedConnection then
                        speedConnection:Disconnect()
                        speedConnection = nil
                    end
                end)
            else
            end
        end

        if player then
            player.CharacterAdded:Connect(onCharacterAdded)
            
            task.spawn(function()
                task.wait(0.5)
                setupCleanup()
            end)
            
            if player.Character then
                onCharacterAdded(player.Character)
            end
        else
        end

        CharacterModsSection:Toggle({
            type = "toggle",
            name = "Speed",
            flag = "ModifyWalkSpeed_TheBronx",
            default = false,
            Callback = function(state)
                swimMethod = state
            end
        })

        CharacterModsSection:Slider({
            name = "Speed Amount",
            flag = "WalkSpeedValue_TheBronx",
            min = 0,
            max = 50,
            default = 10 ,
            Callback = function(state)
                speedMultiplier = state
            end
        })

        local flyToggle = CharacterModsSection:Toggle({
            Name = "Fly",
            Flag = "Fly_Toggle", 
            Default = false,
            Callback = function(state)
                flyEnabled = state
                local camera = workspace.CurrentCamera
                
                if state then
                    swimMethod = true
                    task.wait(0.3)
                    
                    local character = player.Character
                    if not character then
                        character = player.CharacterAdded:Wait()
                        if not character then return end
                    end

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

                    humanoid.PlatformStand = true
                    head.Anchored = true

                    local removedHair = {}
                    for _, accessory in ipairs(character:GetChildren()) do
                        if accessory:IsA("Accessory") then
                            local handle = accessory:FindFirstChild("Handle")
                            if handle then
                                local mesh = handle:FindFirstChildOfClass("SpecialMesh")
                                if mesh and mesh.MeshId then
                                    if mesh.MeshId:lower():find("hair") or accessory.Name:lower():find("hair") then
                                        removedHair[accessory] = true
                                        accessory.Parent = nil
                                    end
                                elseif accessory.Name:lower():find("hair") then
                                    removedHair[accessory] = true
                                    accessory.Parent = nil
                                end
                            end
                        end
                    end

                    camera.CameraSubject = head
                    camera.CameraType = Enum.CameraType.Custom
                    player.CameraMinZoomDistance = 0.5
                    player.CameraMaxZoomDistance = 0.5

                    if CFloop then 
                        CFloop:Disconnect() 
                    end
                    
                    CFloop = RunService.Heartbeat:Connect(function(deltaTime)
                        if not flyEnabled or not character or not character.Parent then
                            if CFloop then
                                CFloop:Disconnect()
                            end
                            return
                        end
                        
                        local humanoid = character:FindFirstChildOfClass("Humanoid")
                        local head = character:FindFirstChild("Head")
                        if not humanoid or not head then return end
                        
                        local moveDirection = humanoid.MoveDirection * (flySpeedMultiplier * deltaTime * 100)
                        local headCFrame = head.CFrame
                        local cameraCFrame = camera.CFrame
                        local cameraOffset = headCFrame:ToObjectSpace(cameraCFrame).Position
                        cameraCFrame = cameraCFrame * CFrame.new(-cameraOffset.X, -cameraOffset.Y, -cameraOffset.Z + 1)
                        local cameraPosition = cameraCFrame.Position
                        local headPosition = headCFrame.Position

                        local objectSpaceVelocity = CFrame.new(cameraPosition, Vector3.new(headPosition.X, cameraPosition.Y, headPosition.Z)):VectorToObjectSpace(moveDirection)
                        head.CFrame = CFrame.new(headPosition) * (cameraCFrame - cameraPosition) * CFrame.new(objectSpaceVelocity)

                        camera.CameraSubject = head
                        camera.CameraType = Enum.CameraType.Custom
                        player.CameraMinZoomDistance = 0.1
                        player.CameraMaxZoomDistance = 0.1
                    end)

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

                        swimMethod = false

                        if getgenv()._FlyRemovedHair then
                            for accessory, _ in pairs(getgenv()._FlyRemovedHair) do
                                if character and not accessory.Parent then
                                    accessory.Parent = character
                                end
                            end
                            getgenv()._FlyRemovedHair = nil
                        end
                    end

                    player.CameraMinZoomDistance = 0.5
                    player.CameraMaxZoomDistance = 400
                end
            end
        })

        CharacterModsSection:Slider({
            Name = "Fly Speed Amount",
            Flag = "FlySpeed_Slider",
            Min = 1,
            Max = 25,
            Value = 5,
            Callback = function(value)
                flySpeedMultiplier = value
            end
        })

        local jumpPowerEnabled = false
        local jumpPowerValue = 25

        CharacterModsSection:Toggle({
            type = "toggle", 
            name = "Jump Power", 
            default = false,
            Callback = function(state)
                jumpPowerEnabled = state
                local character = player.Character
                if not character then return end
                
                local humanoid = character:FindFirstChildOfClass("Humanoid")
                if humanoid then
                    if state then
                        humanoid.UseJumpPower = true
                        humanoid.JumpPower = jumpPowerValue
                    else
                        humanoid.JumpPower = 50
                        humanoid.UseJumpPower = false
                    end
                end
            end
        })

        CharacterModsSection:Slider({
            name = "Jump Power Amount", 
            min = 0, 
            max = 100, 
            default = 25,
            Callback = function(value)
                jumpPowerValue = value
                if jumpPowerEnabled then
                    local character = player.Character
                    if character then
                        local humanoid = character:FindFirstChildOfClass("Humanoid")
                        if humanoid then
                            humanoid.JumpPower = value
                        end
                    end
                end
            end
        })

        if player then
            player.CharacterAdded:Connect(function(character)
                if jumpPowerEnabled then
                    character:WaitForChild("Humanoid")
                    local humanoid = character:FindFirstChildOfClass("Humanoid")
                    if humanoid then
                        humanoid.UseJumpPower = true
                        humanoid.JumpPower = jumpPowerValue
                    end
                end
            end)
        end

        local UISection = LocalPlayerColumn:Section({name = "Toggle Interfaces Section", side = "right"})

        local _UINames, BlacklistedNames = {'ATM GUI'}, {"Dead", "Settings1", "Controls", "FirstShopGUI", "Freecam", "ThaShop2", "WATCH GUI", "NYPD Cars", "CONSTRUCTION LEVEL", "RobPlayerUI", "Bronx LOCKER", 'MobileBeam', 'Settings', 'Flash', 'Enter', 'CopSirens'}
        
        for Index, Value in LocalPlayer.PlayerGui:GetChildren() do
            if Value:IsA("ScreenGui") and not Value.Enabled then
                if table.find(BlacklistedNames, Value.Name) then continue end
                table.insert(_UINames, Value.Name)
            end
        end 

        local _UI_EnabledToggle;

        UISection:Dropdown({name = "Selected UI", flag = "SelectedUI_TB3", width = 120, items = _UINames, seperator = false, multi = false, default = 'Bronx Market 2'})

        _UI_EnabledToggle = UISection:Toggle({name = "UI Enabled", type = 'toggle', callback = function(state)
            task.spawn(LPH_NO_VIRTUALIZE(function()
                if tostring(Flags["SelectedUI_TB3"]) == "ATM GUI" then
                    local SelectedUI = LocalPlayer.PlayerGui:FindFirstChild("ATMGui")

                    if not SelectedUI and state then
                        local _Clone = Lighting.Assets.GUI.ATMGui:Clone()
                        _Clone.Parent = LocalPlayer.PlayerGui
                        SelectedUI = _Clone
                        _Clone.Frame.closeBtn.MouseButton1Click:Connect(function()
                            _UI_EnabledToggle.set(false)
                            --_Clone:Destroy()
                        end)
                    end

                    if not state and SelectedUI then
                        SelectedUI:Destroy()
                    end

                    local Old_UI_Value = Flags["SelectedUI_TB3"]

                    repeat task.wait() until Flags["SelectedUI_TB3"] ~= Old_UI_Value

                    if SelectedUI then
                        SelectedUI:Destroy()
                    end

                    if _UI_EnabledToggle then
                        _UI_EnabledToggle.set(false)
                    end

                    return
                end

                local SelectedUI = LocalPlayer.PlayerGui:FindFirstChild(tostring(Flags["SelectedUI_TB3"]))

                if SelectedUI then
                    SelectedUI.Enabled = state

                    local Old_UI_Value = Flags["SelectedUI_TB3"]

                    repeat task.wait() until Flags["SelectedUI_TB3"] ~= Old_UI_Value

                    SelectedUI.Enabled = false
                    if _UI_EnabledToggle then
                        _UI_EnabledToggle.set(false)
                    end
                end 
            end))
        end})
    end

    do -- \\ Players Tab
        local Column = uhhiTab1

        local PlayerListSection = Column:Section({name = "Select Player", size = 1, default = false, side = 'right' --[[3 people icon]]})

        local PlayerList = PlayerListSection:Dropdown({flag = "SelectPlayer_TheBronx", options = {}, callback = function(state)
            Config.TheBronx.PlayerUtilities.SelectedPlayer = tostring(state)
        end})

        local RefreshPlayers = LPH_NO_VIRTUALIZE(function()
            local Cache = {}

            for i, Player in Players:GetPlayers() do
                if Player == LocalPlayer then continue end

                table.insert(Cache, Player.Name)
            end

            table.sort(Cache)

            PlayerList.RefreshOptions(Cache)
        end)

        task.spawn(RefreshPlayers)

        Players.PlayerAdded:Connect(RefreshPlayers)

        Players.PlayerRemoving:Connect(RefreshPlayers)

        Column = uhhiTab1

        local PlayerOptionsSection = Column:Section({name = "Player Options", side = 'right'})
        
        PlayerOptionsSection:Toggle({type = "toggle", name = "Spectate Player", flag = "SpectatePlayer_TheBronx", default = false, callback = function(state)
            Config.TheBronx.PlayerUtilities.SpectatePlayer = state
        end})

        PlayerOptionsSection:Toggle({type = "toggle", name = "Bring Player", flag = "BringPlayer_TheBronx", default = false, callback = function(state)
            Config.TheBronx.PlayerUtilities.BringingPlayer = state
        end})

        PlayerOptionsSection:Toggle({type = "toggle", name = "Bug / Kill Player - Car", flag = "BugPlayer_TheBronx", default = false, callback = function(state)
            Config.TheBronx.PlayerUtilities.BugPlayer = state
        end})

        PlayerOptionsSection:Toggle({type = "toggle", name = "Auto Kill Player - Gun", flag = "AutoKillPlayer_TheBronx", default = false, callback = function(state)
            Config.TheBronx.PlayerUtilities.AutoKill = state
        end})

        PlayerOptionsSection:Toggle({type = "toggle", name = "Auto Ragdoll Player - Gun", flag = "AutoRagdollPlayer_TheBronx", seperator = true, default = false, callback = function(state)
            Config.TheBronx.PlayerUtilities.AutoRagdoll = state
        end})

        PlayerOptionsSection:Button({name = "Teleport To Player", callback = function()
            task.spawn(Teleport, Players[Config.TheBronx.PlayerUtilities.SelectedPlayer].Character.HumanoidRootPart.CFrame)
        end})

        PlayerOptionsSection:Button({name = "Down Player - Hold Gun", callback = function(state)
            pcall(kill_gun, Config.TheBronx.PlayerUtilities.SelectedPlayer, "HumanoidRootPart", (Players[Config.TheBronx.PlayerUtilities.SelectedPlayer].Character.Humanoid.Health - 5))
        end})

        PlayerOptionsSection:Button({name = "Kill Player - Hold Gun", callback = function(state)
            pcall(kill_gun, Config.TheBronx.PlayerUtilities.SelectedPlayer, "HumanoidRootPart", math.huge)
        end})

        PlayerOptionsSection:Button({name = "God Player - Hold Gun", callback = function(state)
            pcall(kill_gun, Config.TheBronx.PlayerUtilities.SelectedPlayer, "HumanoidRootPart", math.sqrt(-1))
        end})

        PlayerOptionsSection:Button({name = "Fling Player - Hold Gun", callback = function(state)
            for Index=1, 50 do
                pcall(kill_gun, Config.TheBronx.PlayerUtilities.SelectedPlayer, "RightUpperLeg", 0.01)
            end
        end})

        PlayerOptionsSection:Button({name = "God All Players - Hold Gun", callback = function()
            task.spawn(LPH_NO_VIRTUALIZE(function()
                for Index, Value in Players:GetPlayers() do
                    if Value ~= LocalPlayer and Value.Character and Value.Character:FindFirstChild("Humanoid") and Value.Character:FindFirstChild("Humanoid").Health ~= 0 and not Value.Character:FindFirstChildOfClass("ForceField") and Value.Character:FindFirstChild("HumanoidRootPart") then
                        pcall(kill_gun, Value.Name, "HumanoidRootPart", math.sqrt(-1))
                        task.wait(0.1)
                    end
                end
            end))
        end})

        local KillAuraSection = Column:Section({name = "Kill Section", size = 0.275, default = false, side = 'right', icon = GetImage("Bullet.png")}) 

        KillAuraSection:Toggle({name = "Enabled - Hold Gun", flag = "KillAura_Enabled_TB3", type = "toggle", default = false, callback = function(state)
            Config.TheBronx.KillAura = state
        end})

        KillAuraSection:Slider({name = "Kill Aura Range", flag = "KillAuraRange_TB3", min = 0, max = 1000, default = 300, suffix = "st", callback = function(state)
            Config.TheBronx.KillAuraRange = state
        end})
        
        KillAuraSection:Button({name = "Kill All Players - Hold Gun", callback = function()
            task.spawn(LPH_NO_VIRTUALIZE(function()
                for Index, Value in Players:GetPlayers() do
                    if Value ~= LocalPlayer and Value.Character and Value.Character:FindFirstChild("Humanoid") and Value.Character:FindFirstChild("Humanoid").Health ~= 0 and not Value.Character:FindFirstChildOfClass("ForceField") and Value.Character:FindFirstChild("HumanoidRootPart") then
                        pcall(kill_gun, Value.Name, "HumanoidRootPart", math.huge)
                        task.wait(0.1)
                    end
                end
            end))
        end})
    end
        
    do -- \\ Misc Tab
        local Column = MiscTab

        local FarmingSection = Column:Section({name = "Farming", size = 0.415, default = false, side = 'left', icon = GetImage("Wheatt.png")})

        FarmingSection:Toggle({type = "toggle", name = "Auto Farm Construction", flag = "FarmConstruction_TheBronx", default = false, callback = function(state)
            Config.TheBronx.Farms.FarmConstructionJob = state
        end})

        FarmingSection:Toggle({type = "toggle", name = "Auto Farm Bank", flag = "FarmBank_TheBronx", default = false, callback = function(state)
            Config.TheBronx.Farms.FarmBank = state
        end})

        FarmingSection:Toggle({type = "toggle", name = "Auto Farm House", flag = "FarmHouses_TheBronx", default = false, callback = function(state)
            Config.TheBronx.Farms.FarmHouses = state
        end})

        FarmingSection:Toggle({type = "toggle", name = "Auto Farm Studio", flag = "FarmStudio_TheBronx", default = false, callback = function(state)
            Config.TheBronx.Farms.FarmStudio = state
        end})

        FarmingSection:Toggle({type = "toggle", name = "Auto Farm Dumpsters", flag = "FarmDumpsters_TheBronx", default = false, callback = function(state)
            Config.TheBronx.Farms.FarmTrash = state
        end})

        local ManualFarmSections = Column:Section({name = "Manual Farms", size = 0.325, default = false, side = 'left', icon = GetImage("Pickkaxe.png")}) 

        ManualFarmSections:Toggle({type = "toggle", name = "Auto Collect Dropped Cash", flag = "FarmDroppedMoney_TheBronx", default = false, callback = function(state)
            Config.TheBronx.Farms.CollectDroppedMoney = state
        end})

        ManualFarmSections:Toggle({type = "toggle", name = "Auto Collect Dropped Bags", flag = "FarmDroppedLoot_TheBronx", default = false, callback = function(state)
            Config.TheBronx.Farms.CollectDroppedLoot = state
        end})

        ManualFarmSections:Button({name = "Clean All Filthy Money", callback = LPH_NO_VIRTUALIZE(function()
            if LocalPlayer.stored.FilthyStack.Value == 0 then 
                return 
            end

            if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then return end
            if not LocalPlayer.Character:FindFirstChild("Humanoid") or LocalPlayer.Character:FindFirstChild("Humanoid").Health == 0 then return end

            local Cleaner = GetGoodCleaner()
            
            if not Cleaner then
                return 
            end

            Teleport(Cleaner.WorldPivot)

            task.wait(0.4)

            fireproximityprompt(Cleaner:FindFirstChild("CashPrompt", true))

            repeat task.wait() until Cleaner:FindFirstChild("On", true).Color == Color3.fromRGB(74, 156, 69)

            task.wait(0.5)

            fireproximityprompt(Cleaner:FindFirstChild("CashPrompt", true))
            
            task.wait(0.25)

            Teleport(Cleaner.WorldPivot)

            task.wait(0.4)

            repeat task.wait() until LocalPlayer.Backpack:FindFirstChild("MoneyReady")

            LocalPlayer.Character.Humanoid:EquipTool(LocalPlayer.Backpack["MoneyReady"])

            repeat task.wait(0.1) fireproximityprompt(Cleaner:FindFirstChild("GrabPrompt", true)) until not LocalPlayer.Character:FindFirstChild("MoneyReady")
            
            repeat task.wait()
            until LocalPlayer.Backpack:FindFirstChild("BagOfMoney")

            Teleport(CFrame.new(-224.070892, 283.80954, -1200.51355, 0.898020029, -8.45030157e-10, -0.439954549, 1.71171859e-08, 1, 3.30182885e-08, 0.439954549, -3.718187e-08, 0.898020029))

            task.wait(0.4)

            LocalPlayer.Character.Humanoid:EquipTool(LocalPlayer.Backpack["BagOfMoney"])

            task.wait(1)

            fireproximityprompt(Workspace.ATMMoney.Prompt)
        end)})

    do -- \\ Bank Actions
        local Player_Utility_Section = Column:Section({Name = "Bank Actions", Side = "Left"})

        local atmbankamount = 0
        local selectedBankAction = "Deposit"
        local autoDepositEnabled = false
        local autoWithdrawEnabled = false
        local autoDropEnabled = false
        local autoInterval = 0.1 
        local depositConnection = nil
        local withdrawConnection = nil
        local dropConnection = nil
        
        Player_Utility_Section:Textbox({
            Name = "Money Amount",
            Flag = "ATM_Amount_Input",
            Placeholder = "Enter Money Amount",
            Numeric = true,
            Callback = function(text)
                local amount = tonumber(text)
                if amount then
                    atmbankamount = amount
                end
            end
        })

        local BankActionList = {"Deposit", "Withdraw", "Drop"}
        Player_Utility_Section:Dropdown({
            Name = "Select Bank Action",
            Flag = "BankAction_Type",
            Options = BankActionList,
            Default = "Deposit",
            Callback = function(Value)
                selectedBankAction = Value
            end
        })

        Player_Utility_Section:Button({
            Name = "Apply Selected Bank Action",
            Callback = function()
                if atmbankamount <= 0 then return end
                
                local BankActionRemote = ReplicatedStorage:WaitForChild("BankAction")
                local DropRemote = ReplicatedStorage:WaitForChild("BankProcessRemote")
                
                if selectedBankAction == "Deposit" then
                    BankActionRemote:FireServer("depo", atmbankamount)
                elseif selectedBankAction == "Withdraw" then
                    BankActionRemote:FireServer("with", atmbankamount)
                elseif selectedBankAction == "Drop" then
                    DropRemote:InvokeServer("Drop", atmbankamount)
                end
            end
        })

        Player_Utility_Section:Toggle({
            Name = "Auto Deposit",
            Flag = "Auto_Deposit",
            Default = false,
            Callback = function(state)
                autoDepositEnabled = state
                
                if depositConnection then
                    depositConnection:Disconnect()
                    depositConnection = nil
                end
                
                if autoDepositEnabled and atmbankamount > 0 then
                    depositConnection = game:GetService("RunService").Heartbeat:Connect(function()
                        local BankActionRemote = ReplicatedStorage:WaitForChild("BankAction")
                        BankActionRemote:FireServer("depo", atmbankamount)
                        task.wait(autoInterval)
                    end)
                end
            end
        })

        Player_Utility_Section:Toggle({
            Name = "Auto Withdraw",
            Flag = "Auto_Withdraw",
            Default = false,
            Callback = function(state)
                autoWithdrawEnabled = state
                
                if withdrawConnection then
                    withdrawConnection:Disconnect()
                    withdrawConnection = nil
                end
                
                if autoWithdrawEnabled and atmbankamount > 0 then
                    withdrawConnection = game:GetService("RunService").Heartbeat:Connect(function()
                        local BankActionRemote = ReplicatedStorage:WaitForChild("BankAction")
                        BankActionRemote:FireServer("with", atmbankamount)
                        task.wait(autoInterval)
                    end)
                end
            end
        })

        Player_Utility_Section:Toggle({
            Name = "Auto Drop",
            Flag = "Auto_Drop",
            Default = false,
            Callback = function(state)
                autoDropEnabled = state
                
                if dropConnection then
                    dropConnection:Disconnect()
                    dropConnection = nil
                end
                
                if autoDropEnabled and atmbankamount > 0 then
                    dropConnection = game:GetService("RunService").Heartbeat:Connect(function()
                        local DropRemote = ReplicatedStorage:WaitForChild("BankProcessRemote")
                        DropRemote:InvokeServer("Drop", atmbankamount)
                        task.wait(autoInterval)
                    end)
                end
            end
        })
    end

        local FarmSettingsSection = Column:Section({name = "Farming Settings", size = 0.225, default = false, side = 'right', Icon = GetImage("Settings.png")}) 

        FarmSettingsSection:Toggle({type = "toggle", name = "AFK Safety Teleport", flag = "AFKCheck_TheBronx", default = false, callback = function(state)
            Config.TheBronx.Farms.AFKCheck = state
        end})

        FarmSettingsSection:Toggle({type = "toggle", name = "Auto Sell Trash", flag = "SellTrash_TheBronx", default = false, callback = function(state)
            Config.TheBronx.Farms.AutoSellTrash = state
        end})

        Column = MiscTab

        local DupingSection = Column:Section({name = "Duping Section", size = 0.29, default = false, side = 'right', icon = GetImage("Node.png")}) 

        local Cooldown = false;

        local function DupeCurrentItem()
            if Cooldown then return false end
            Cooldown = true

            if statusLabel then
                statusLabel.Text = "Executing..."
                statusLabel.TextColor3 = Color3.fromRGB(255,255,0)
            end

            pcall(function()
                local msg = game:GetService("ReplicatedStorage"):FindFirstChild("message")
                if msg and msg:FindFirstChild("Frame") and msg.Frame:FindFirstChild("TextLabel") then
                    msg.Frame.TextLabel:Destroy()
                end
            end)
            task.wait(1)

            local Player = Players.LocalPlayer
            local Character = Player.Character

            local Tool = Character and Character:FindFirstChildOfClass("Tool")
            if not Tool then
                local Backpack = Player:FindFirstChild("Backpack")
                if Backpack then
                    for _, item in pairs(Backpack:GetChildren()) do
                        if item:FindFirstChild("Handle") and item.Name ~= "Fist" and item.Name ~= "Phone" then
                            local humanoid = Character and Character:FindFirstChildOfClass("Humanoid")
                            if humanoid then
                                humanoid:UnequipTools()
                                task.wait(0.1)
                                humanoid:EquipTool(item)
                                task.wait(0.01)
                            end
                            Tool = item
                            break
                        end
                    end
                end
            end

            if not (Tool and Tool.Name) then
                if statusLabel then
                    statusLabel.Text = "Dupe failed or weapon not found!"
                    statusLabel.TextColor3 = Color3.fromRGB(255,0,0)
                end
                Cooldown = false
                return false
            end

            local gunName = Tool.Name

            pcall(function()
                local marketGui = Player.PlayerGui:FindFirstChild("Bronx Market 2")
                if marketGui then
                    local marketLabel = marketGui.Body.Frames.Market.TextLabel
                    if marketLabel then
                        marketLabel.Text = "Picked: " .. gunName
                    end
                end
            end)
            
            ReplicatedStorage:WaitForChild("ListWeaponRemote"):FireServer(gunName, 900000)
            task.wait(0.25)

            local ReplicatedStorage_ref = cloneref(ReplicatedStorage)
            local function GetCharacter()
                return Players.LocalPlayer.Character
            end

            local InventoryRemote = ReplicatedStorage_ref:WaitForChild("Inventory")
            local BackpackRemote = ReplicatedStorage_ref:WaitForChild("BackpackRemote")

            local character = GetCharacter()
            if character and character:FindFirstChildOfClass("Tool") then
                local localGunTool = character:FindFirstChildOfClass("Tool")
                local localGunName = localGunTool.Name

                local humanoid = character:FindFirstChildOfClass("Humanoid")
                if humanoid then humanoid:UnequipTools() end
                BackpackRemote:InvokeServer("Store", localGunName)
                task.wait(0.5)

                task.spawn(function()
                    InventoryRemote:FireServer("Change", localGunName, "Backpack", true)
                end)
                task.wait(1.2)

                BackpackRemote:InvokeServer("Grab", localGunName)
            end

            task.wait(1)

            pcall(function()
                local marketGui = Player.PlayerGui:FindFirstChild("Bronx Market 2")
                if marketGui then
                    local selectedGun = marketGui.Body.Frames.Market.TextLabel and marketGui.Body.Frames.Market.TextLabel.Text:match("Picked: (.+)")
                    if selectedGun then
                        local gunButton = marketGui.Body.Frames.Guns.ScrollingFrame:FindFirstChild(selectedGun)
                        if gunButton then
                            for _, connection in pairs(getconnections(gunButton.MouseButton1Click)) do
                                connection:Fire()
                            end
                        end
                    end
                end
            end)

            if statusLabel then
                statusLabel.Text = "Dupe completed!"
                statusLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
            end

            Cooldown = false
            
            task.wait(2.4)

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

            task.spawn(function()
                while task.wait() do
                    if getgenv().SwimMethod then
                        local player = game:GetService("Players").LocalPlayer
                        if player and player.Character and player.Character:FindFirstChild("Humanoid") then
                            player.Character.Humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
                        end
                    end
                end
            end)

            task.spawn(function()
                if player.Character and player.Character:FindFirstChild("Humanoid") and player.Character:FindFirstChild("HumanoidRootPart") then
                    getgenv().SwimMethod = true
                    task.wait(1)
                    player.Character.HumanoidRootPart.CFrame = CFrame.new(-185, 295, -998)
                    task.wait(0.1)
                    getgenv().SwimMethod = false
                end
            end)
            local map = workspace:FindFirstChild("1# Map")
            task.wait(1)

            if map then
                local children = map:GetChildren()
                local obj = children[752] and children[752]:GetChildren()[5]
                if obj and obj:FindFirstChild("ChestClicker") and obj.ChestClicker:FindFirstChild("Items_aa75") then
                    local prompt = obj.ChestClicker.Items_aa75
                    if typeof(prompt) == "Instance" and prompt:IsA("ProximityPrompt") then
                        fireproximityprompt(prompt)
                        task.wait(0.25)
                    end
                end
            end

            local VirtualInputManager = game:GetService("VirtualInputManager")
            local Backpack = game:GetService("Players").LocalPlayer.Backpack
            local toolNameCounts = {}
            local toolNameToTools = {}

            for _, item in ipairs(Backpack:GetChildren()) do
                if item:IsA("Tool") and item:FindFirstChild("GunScript_Local") then
                    toolNameCounts[item.Name] = (toolNameCounts[item.Name] or 0) + 1
                    toolNameToTools[item.Name] = item
                end
            end

            local playerGui = game:GetService("Players").LocalPlayer.PlayerGui
            local backpackFrame = playerGui:FindFirstChild("Inventory") and 
                playerGui.Inventory:FindFirstChild("Background") and 
                playerGui.Inventory.Background:FindFirstChild("Front") and 
                playerGui.Inventory.Background.Front:FindFirstChild("BackpackFrame")

            if backpackFrame then
                for _, button in ipairs(backpackFrame:GetChildren()) do
                    if button:IsA("TextButton") and toolNameCounts[button.Text] and toolNameCounts[button.Text] > 1 then
                        if button.AbsoluteSize then
                            local absPos = button.AbsolutePosition
                            local absSize = button.AbsoluteSize
                            local clickX = absPos.X + absSize.X / 3
                            local clickY = absPos.Y + absSize.Y / 1

                            VirtualInputManager:SendMouseButtonEvent(clickX, clickY, 0, true, game, 0)
                            task.wait(0.1)
                            VirtualInputManager:SendMouseButtonEvent(clickX, clickY, 0, false, game, 0)
                            break
                        end
                    end
                end
            end

            task.wait()

            local closeButton = playerGui:FindFirstChild("Inventory") and 
                playerGui.Inventory:FindFirstChild("Background") and 
                playerGui.Inventory.Background:FindFirstChild("Front") and 
                playerGui.Inventory.Background.Front:FindFirstChild("Close")

            if closeButton and closeButton.AbsoluteSize then
                local absPos = closeButton.AbsolutePosition
                local absSize = closeButton.AbsoluteSize
                local clickX = absPos.X + absSize.X / 3
                local clickY = absPos.Y + absSize.Y / 1

                VirtualInputManager:SendMouseButtonEvent(clickX, clickY, 0, true, game, 0)
                task.wait(0.1)
                VirtualInputManager:SendMouseButtonEvent(clickX, clickY, 0, false, game, 0)
            end

            return true
        end

        local function ManualDupeFunction()
            DupeCurrentItem()
        end

        local function AutoDupeFunction(state)
            Config.AutoDupeCurrentItem = state
            if state then
                task.spawn(function()
                    while Config.AutoDupeCurrentItem do
                        local Player = Players.LocalPlayer
                        local Character = Player.Character
                        if not Character then
                            Config.AutoDupeCurrentItem = false
                            break
                        end
                        local Tool = Character:FindFirstChildOfClass("Tool")
                        if not Tool then
                            for _, item in ipairs(Player.Backpack:GetChildren()) do
                                if item:IsA("Tool") and item:FindFirstChild("GunScript_Local") then
                                    local humanoid = Character:FindFirstChildOfClass("Humanoid")
                                    if humanoid then
                                        humanoid:EquipTool(item)
                                        task.wait(0.4)
                                    end
                                    Tool = item
                                    break
                                end
                            end
                        end
                        if not Tool then
                            Config.AutoDupeCurrentItem = false
                            break
                        end
                        DupeCurrentItem()
                        task.wait(2.75)
                    end
                end)
            end
        end


        DupingSection:Button({ name = "Duplicate Current Item", callback = ManualDupeFunction })
        DupingSection:Toggle({ type = "toggle", name = "Auto Duplicate Current Item", flag = "AutoDuplicateCurrentItem_Enabled", default = false, callback = AutoDupeFunction })


        DupingSection:Label({wrapped = true, name = "This might bug if you have more than 1 of the item you're duping!"})

        local VulnerabilitySection = Column:Section({name = "Vulnerability Section", size = 0.347, default = false, side = 'right', icon = GetImage("unlocked.png")}) 

        local GetFruitCup = LPH_NO_VIRTUALIZE(function()
            local Found, Cup = false, nil;

            for Index, Value in next, {LocalPlayer.Backpack:GetChildren(), LocalPlayer.Character:GetChildren()} do
                for _Index, _Value in Value do
                    if _Value:IsA("Tool") and _Value.Name == "Ice-Fruit Cupz" then
                        if _Value["IceFruit Cup"]["IceFruit PunchMedium"].Transparency ~= 1 then
                            Found = true
                            Cup = _Value
                            break
                        end
                    end
                end
            end 

            return Found, Cup
        end)

        VulnerabilitySection:Button({
            name = "Scorpio inf money Manual",
            callback = function()
               
                HideUI("Generating Max Illegal/Or Not Work")
                    

                local player = game.Players.LocalPlayer
                local character = player.Character
                if not character or not character:FindFirstChild("HumanoidRootPart") then 
                    DeleteSecretUI()
                    return 
                end

                local originalCF = character:GetPivot()
                getgenv().SwimMethod = true
                task.wait(1)
                character:PivotTo(CFrame.new(-68, 287, -321))

                for _, v in pairs(game.Workspace:GetDescendants()) do
                    if v:IsA("ProximityPrompt") then
                        v.HoldDuration = 0
                        v.RequiresLineOfSight = false
                    end
                end

                local prompt = workspace:FindFirstChild("IceFruit Sell") and workspace["IceFruit Sell"]:FindFirstChildOfClass("ProximityPrompt")
                if prompt then
                    for i = 1, 1000 do
                        for j = 1, 50 do
                            fireproximityprompt(prompt, 1, true)
                        end
                        task.wait(0.01)
                    end
                    print("fired proximity prompt")
                else
                    warn("IceFruit Sell ProximityPromp wasnotfound lol")
                end

                task.wait(2)
                for _, part in pairs(character:GetDescendants()) do
                    if part:IsA("BasePart") then
                        part.Anchored = false
                    end
                end

                task.wait(1)
                getgenv().SwimMethod = true
                character:PivotTo(originalCF)
                task.wait(1)
                getgenv().SwimMethod = false
                DeleteSecretUI()
                return
            end
        })

        VulnerabilitySection:Label({wrapped = true, name = "Requires Ice-Fruit Cup In Inventory!"})

        VulnerabilitySection:Button({
            name = "Scorpio inf money Auto",
            callback = function()
                local Found, Cup = GetFruitCup()

                if Cup and Found then
                    
                    local OLDCFrame = LocalPlayer.Character.HumanoidRootPart.CFrame

                    if Cup.Parent == LocalPlayer.Backpack then
                        LocalPlayer.Character.Humanoid:EquipTool(Cup)
                        task.wait(1)
                    end

                    Teleport(Workspace["IceFruit Sell"].CFrame + Vector3.new(0, 0, 0), true)

                    local prompt = Workspace["IceFruit Sell"].ProximityPrompt
                    local originalHoldDuration = prompt.HoldDuration
                    local originalMaxDistance = prompt.MaxActivationDistance

                    prompt.HoldDuration = 0
                    prompt.MaxActivationDistance = 50
                    prompt.RequiresLineOfSight = false

                    LocalPlayer.Character.HumanoidRootPart.Anchored = true

                    for i = 1, 1000 do
                        fireproximityprompt(prompt, 0)
                    end

                    prompt.HoldDuration = originalHoldDuration
                    prompt.MaxActivationDistance = originalMaxDistance
                    LocalPlayer.Character.HumanoidRootPart.Anchored = false

                    Teleport(OLDCFrame, true)
                    DeleteSecretUI()
                    return
                end

                 

                local OLDCFrame = LocalPlayer.Character.HumanoidRootPart.CFrame
                local Itemz = {"FijiWater", "FreshWater", "Ice-Fruit Bag", "Ice-Fruit Cupz"}
                local Stove

                for Index, Value in Workspace.CookingPots:GetChildren() do
                    if Value:IsA("Model") then
                        if Value:FindFirstChildWhichIsA("ProximityPrompt", true).ActionText == "Turn On" and Value:FindFirstChildWhichIsA("ProximityPrompt", true).Enabled then
                            Stove = Value
                            break
                        end
                    end
                end

                for Index, Value in Itemz do
                    if not LocalPlayer.Backpack:FindFirstChild(Value) then
                        ReplicatedStorage:WaitForChild("ExoticShopRemote"):InvokeServer(Value)
                        task.wait(1)
                    end
                end

                local Check = false

                for Index, Value in Itemz do
                    if not LocalPlayer.Backpack:FindFirstChild(Value) then
                        Check = true
                    end
                end

                if Check then
                    DeleteSecretUI()
                    return
                end

                DeleteSecretUI()

                

                Teleport(Stove.CookPart.CFrame, true)
                task.wait(1)

                StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
                LocalPlayer.Character.HumanoidRootPart.Anchored = true
                task.wait(1.5)

                fireproximityprompt(Stove:FindFirstChildWhichIsA("ProximityPrompt", true))
                task.wait(2)

                for Index, Value in {"FijiWater", "FreshWater", "Ice-Fruit Bag"} do
                    LocalPlayer.Character.Humanoid:EquipTool(LocalPlayer.Backpack[Value])
                    task.wait(1)
                    fireproximityprompt(Stove:FindFirstChildWhichIsA("ProximityPrompt", true))
                    task.wait(3)
                end

                repeat task.wait() until Stove.CookPart.Steam.LoadUI.Enabled == false

                if not LocalPlayer.Character:FindFirstChild("Ice-Fruit Cupz") then
                    LocalPlayer.Character.Humanoid:EquipTool(LocalPlayer.Backpack['Ice-Fruit Cupz'])
                    task.wait(1)
                end

                task.wait(1)
                fireproximityprompt(Stove:FindFirstChildWhichIsA("ProximityPrompt", true))
                task.wait(3)

                LocalPlayer.Character.HumanoidRootPart.Anchored = false
                Teleport(Workspace["IceFruit Sell"].CFrame + Vector3.new(0, 0, 0), true)
                task.wait(1)

                LocalPlayer.Character.HumanoidRootPart.Anchored = true
                task.wait(1.5)

                if not LocalPlayer.Character:FindFirstChild("Ice-Fruit Cupz") then
                    LocalPlayer.Character.Humanoid:EquipTool(LocalPlayer.Backpack["Ice-Fruit Cupz"])
                    task.wait(1)
                end

                local prompt = workspace["IceFruit Sell"].ProximityPrompt
                local originalHoldDuration = prompt.HoldDuration
                local originalMaxDistance = prompt.MaxActivationDistance

                prompt.HoldDuration = 0
                prompt.MaxActivationDistance = 50
                prompt.RequiresLineOfSight = false

                for i = 1, 1000 do
                    fireproximityprompt(prompt, 0)
                end

                prompt.HoldDuration = originalHoldDuration
                prompt.MaxActivationDistance = originalMaxDistance
                LocalPlayer.Character.HumanoidRootPart.Anchored = false
                StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)

                task.wait(0.5)
                Teleport(OLDCFrame, true)
                task.wait(2)
                pcall(DeleteSecretUI)
            end
        })

        VulnerabilitySection:Label({wrapped = true, name = "Need 5K To Do This!"})
    end

    do -- \\ Purchase Guns
        local PurchaseGunTab = uhhiTab1

        local WeaponListSection = uhhiTab1:Section({name = "Purchase Selected Item", side = "left", size = 1, icon = GetImage("Cash.png")})

        WeaponListSection:Dropdown({flag = "PurchaseSelectedItem_TheBronx", options = Config.Guns, callback = function(state)
            task.spawn(LPH_NO_VIRTUALIZE(function()
                if not state then
                    return
                end

                Config.TheBronx.Selected_Item = state

                local self = string.match(Config.TheBronx.Selected_Item, "^(.*) %-");

                self = self:match("^%s*(.-)%s*$");
                local OldCFrame = LocalPlayer.Character.HumanoidRootPart.CFrame;
                local Prompt = Workspace:FindFirstChild("GUNS")[self]:FindFirstChildWhichIsA("ProximityPrompt",true);
                if (Workspace:FindFirstChild("GUNS")[self]:FindFirstChild("GamepassID", true) and not MarketplaceService:UserOwnsGamePassAsync(LocalPlayer.UserId, Workspace:FindFirstChild("GUNS")[self]:FindFirstChild("GamepassID",true).Value)) then 
                    return 
                end
                
                --if Solara then Prompt.HoldDuration = 0; end

                local Part = Prompt.Parent:IsA("Part") and Prompt.Parent.CFrame or Prompt.Parent:IsA("MeshPart") and Prompt.Parent.CFrame or Prompt.Parent:IsA("UnionOperation") and Prompt.Parent.CFrame;
                if LocalPlayer.stored.Money.Value < Workspace:FindFirstChild("GUNS")[self]:FindFirstChild("Price",true).Value then
                    return 
                end;
                
                task.spawn(Teleport, Part)

                task.wait(0.4)

                local ItemReceieved = false;
                task.spawn(function()
                    local Check = LocalPlayer.Backpack.ChildAdded:Connect(function(Child)
                        if tostring(Child) == tostring(self) then
                            ItemReceieved = true
                        end
                    end)

                    task.spawn(function()
                        task.wait(1.5)
                        ItemReceieved = true
                    end)

                    repeat task.wait() until ItemReceieved == true
                    Check:Disconnect()
                end)

                repeat task.wait(); fireproximityprompt(Prompt); until ItemReceieved == true;
                
                task.wait(0.4)

                task.spawn(Teleport, OldCFrame)

            end))
        end})

        PurchaseGunTab = uhhiTab1

        local TeleportListSection = uhhiTab1:Section({name = "Teleport To Location", side = "left", size = 1, icon = GetImage("World.png")})

        local List = {}

        for Index, Value in Config.TheBronx.TeleportationList do
            table.insert(List, Index)
        end

        table.sort(List)

        TeleportListSection:Dropdown({flag = "TeleportToPlace_TheBronx", options = List, callback = function(state)
            task.spawn(LPH_NO_VIRTUALIZE(function()
                if not state then
                    return
                end

                Teleport(Config.TheBronx.TeleportationList[state])

            end))
        end})

    do -- \\ Outfits
        local OutfitsSection = uhhiTab1:Section({Name = "Outfits", Side = "left"})

        local Outfits = {
            ["Spiderman Outfit"] = {
                { Category = "Shirts", Item = "Spiderman" },
                { Category = "Pants", Item = "Spiderman" },
                { Category = "Shiestys", Item = "RedShiesty" },
            },
            ["600Block Outfit"] = {
                { Category = "Hats", Item = "RedCleezy" },
                { Category = "Shirts", Item = "Bandi T Cardi" },
                { Category = "Pants", Item = "Red Bandana Shorts" },
                { Category = "Shiestys", Item = "RedShiesty" },
            },
            ["Amiri Outfit"] = {
                { Category = "Hats", Item = "CleezyB" },
                { Category = "Shirts", Item = "Black AMiri 22" },
                { Category = "Pants", Item = "White AF1 BJeans" },
                { Category = "Shiestys", Item = "ShiestyDesign" },
            },
            ["Reset Clothing"] = "reset"
        }

        local selectedOutfit = "Spiderman Outfit"
        local outfitNames = {}
        for name in pairs(Outfits) do
            table.insert(outfitNames, name)
        end

        OutfitsSection:Dropdown({
            name = "Select Outfit",
            flag = "SelectedOutfit",
            options = outfitNames,
            value = selectedOutfit,
            Callback = function(value)
                selectedOutfit = value
            end
        })

        OutfitsSection:Button({
            Name = "Apply Selected Outfit",
            Callback = function()
                local outfit = Outfits[selectedOutfit]
                local Remote = ReplicatedStorage:WaitForChild("ClothShopRemote")

                if outfit == "reset" then
                    Remote:FireServer("Reset Data")
                    return
                end

                for _, item in ipairs(outfit) do
                    task.spawn(function()
                        Remote:FireServer("Buy", item.Category, item.Item)
                        Remote:FireServer("Wear", item.Category, item.Item)
                    end)
                end
            end
        })
        end
    end
end

if Game_Name == "Street Life" then
    do
        local streetlife_Tab = window:Tab({Name = "Main"})
        local streetlife1_Tab = window:Tab({Name = "Miscellaneous", icon = GetImage("Wrench.png")})
        local local_player12 = streetlife_Tab:Section({name = "Local Player", side = "left"})

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

        local originalDurations = {}

        local_player12:Toggle({
            Name = "Instant Interact",
            Flag = "InstantInteract",
            Side = "Left",
            Value = false,
            Callback = function(Toggle_Bool)
                if Toggle_Bool then
                    for _, prompt in pairs(workspace:GetDescendants()) do
                        if prompt:IsA("ProximityPrompt") then
                            originalDurations[prompt] = prompt.HoldDuration
                            prompt.HoldDuration = 0
                        end
                    end

                    if not _G.InstantInteractConnection then
                        _G.InstantInteractConnection = workspace.DescendantAdded:Connect(function(descendant)
                            if descendant:IsA("ProximityPrompt") then
                                originalDurations[descendant] = descendant.HoldDuration
                                descendant.HoldDuration = 0
                            end
                        end)
                    end
                else
                    for prompt, duration in pairs(originalDurations) do
                        if prompt and prompt:IsDescendantOf(workspace) then
                            prompt.HoldDuration = duration
                        end
                    end
                    originalDurations = {}

                    if _G.InstantInteractConnection then
                        _G.InstantInteractConnection:Disconnect()
                        _G.InstantInteractConnection = nil
                    end
                end
            end
        })

        local_player12:Toggle({
            Name = "Infinite Stamina",
            Flag = "Infinite_Stamina",
            Side = "Left",
            Value = false,
            Callback = function(Toggle_Bool)
                local staminaValue = LocalPlayer:WaitForChild("Data"):WaitForChild("Stamina")
                if Toggle_Bool then
                    staminaValue.Value = 1000000
                else
                    staminaValue.Value = 0
                end
            end
        })

        local originalText = nil

        local_player12:Toggle({
            Name = "Hide Name",
            Flag = "Custom_Overhead_Name",
            Side = "Left",
            Value = false,
            Callback = function(toggle)
                local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
                local head = character:WaitForChild("Head", 3)
                local overhead = head and head:FindFirstChild("Overhead")
                local usernameLabel = overhead and overhead:FindFirstChild("Username")

                if usernameLabel and usernameLabel:IsA("TextLabel") then
                    if toggle then
                        originalText = usernameLabel.Text
                        usernameLabel.Text = "https://[Log in to view URL]"
                    else
                        if originalText then
                            usernameLabel.Text = originalText
                        end
                    end
                end
            end
        })

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

        local player = Players.LocalPlayer
        local lastDeathPosition = nil
        local autoTeleportEnabled = false
        local deathConnection = nil

        local function teleportToDeathPosition()
            if autoTeleportEnabled and lastDeathPosition and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
                player.Character.HumanoidRootPart.CFrame = CFrame.new(lastDeathPosition)
            end
        end

        local function onCharacterAdded(character)
            local humanoid = character:WaitForChild("Humanoid", 5)
            if humanoid then
                if deathConnection then
                    deathConnection:Disconnect()
                end

                deathConnection = humanoid.Died:Connect(function()
                    local root = character:FindFirstChild("HumanoidRootPart")
                    if root then
                        lastDeathPosition = root.Position
                    end

                    task.delay(11, teleportToDeathPosition)
                end)
            end
        end

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

        local_player12:Toggle({
            Name = "Respawn at Death Location",
            Flag = "AutoTeleportDeath",
            Side = "Left",
            Callback = function(state)
                autoTeleportEnabled = state
            end
        })


        local SpeedEnabled = false
        local CurrentSpeed = 16
        local SpeedLoop = nil

        local function applySpeed(character)
            if not character then return end
            local humanoid = character:FindFirstChild("Humanoid")
            if humanoid and SpeedEnabled then
                humanoid.WalkSpeed = CurrentSpeed
            end
        end

        local_player12:Toggle({
            Name = "Speed",
            Flag = "Speed_Enabled",
            Side = "Left",
            Value = false,
            Callback = function(Toggle_Bool)
                SpeedEnabled = Toggle_Bool
                local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
                
                if Toggle_Bool then
                    applySpeed(character)
                    if not SpeedLoop then
                        SpeedLoop = RunService.RenderStepped:Connect(function()
                            local char = LocalPlayer.Character
                            if char then
                                local humanoid = char:FindFirstChild("Humanoid")
                                if humanoid then
                                    humanoid.WalkSpeed = CurrentSpeed
                                end
                            end
                        end)
                    end
                else
                    if SpeedLoop then
                        SpeedLoop:Disconnect()
                        SpeedLoop = nil
                    end
                    if character then
                        local humanoid = character:FindFirstChild("Humanoid")
                        if humanoid then
                            humanoid.WalkSpeed = 16
                        end
                    end
                end
            end
        })

        local_player12:Slider({
            Name = "Speed Value",
            Flag = "Speed_Value",
            Side = "Left",
            Slim = true,
            Min = 1,
            Max = 25,
            Value = 16,
            Callback = function(Number)
                CurrentSpeed = Number
                if SpeedEnabled then
                    local character = LocalPlayer.Character
                    if character then
                        local humanoid = character:FindFirstChild("Humanoid")
                        if humanoid then
                            humanoid.WalkSpeed = Number
                        end
                    end
                end
            end
        })

        local JumpEnabled = false
        local CurrentJumpPower = 50
        local JumpLoop = nil

        local function applyJump(character)
            if not character then return end
            local humanoid = character:FindFirstChild("Humanoid")
            if humanoid and JumpEnabled then
                humanoid.JumpPower = CurrentJumpPower
            end
        end

        local_player12:Toggle({
            Name = "Jump Power",
            Flag = "JumpPower_Enabled",
            Side = "Left",
            Value = false,
            Callback = function(toggle)
                JumpEnabled = toggle
                local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
                
                if toggle then
                    applyJump(character)
                    if not JumpLoop then
                        JumpLoop = RunService.RenderStepped:Connect(function()
                            local char = LocalPlayer.Character
                            if char then
                                local humanoid = char:FindFirstChild("Humanoid")
                                if humanoid then
                                    humanoid.JumpPower = CurrentJumpPower
                                end
                            end
                        end)
                    end
                else
                    if JumpLoop then
                        JumpLoop:Disconnect()
                        JumpLoop = nil
                    end
                    if character then
                        local humanoid = character:FindFirstChild("Humanoid")
                        if humanoid then
                            humanoid.JumpPower = 50
                        end
                    end
                end
            end
        })

        local_player12:Slider({
            Name = "Jump Power Value",
            Flag = "JumpPower_Value",
            Side = "Left",
            Slim = true,
            Min = 10,
            Max = 100,
            Value = 50,
            Callback = function(value)
                CurrentJumpPower = value
                if JumpEnabled then
                    local character = LocalPlayer.Character
                    if character then
                        local humanoid = character:FindFirstChild("Humanoid")
                        if humanoid then
                            humanoid.JumpPower = value
                        end
                    end
                end
            end
        })

        local Players = game:GetService("Players")
        local VirtualInputManager = game:GetService("VirtualInputManager")
        local TweenService = game:GetService("TweenService")
        local PathfindingService = game:GetService("PathfindingService")
        local LocalPlayer = Players.LocalPlayer
        local Camera = workspace.CurrentCamera

        function MC(x, y, z)
            local car = workspace.Vehicles:FindFirstChild(LocalPlayer.Name .. "'s Car")
            if car and car.PrimaryPart then
                car:SetPrimaryPartCFrame(CFrame.new(x, y + 4, z))
            end
        end

        function TweenToPosition(targetPosition)
            local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
            local root = character:WaitForChild("HumanoidRootPart")
            local walkSpeed = 25
            
            local path = PathfindingService:CreatePath()
            path:ComputeAsync(root.Position, targetPosition)
            
            if path.Status == Enum.PathStatus.Success then
                local waypoints = path:GetWaypoints()
                for i, waypoint in ipairs(waypoints) do
                    local distance = (waypoint.Position - root.Position).Magnitude
                    local time = distance / walkSpeed
                    
                    local tweenInfo = TweenInfo.new(
                        time,
                        Enum.EasingStyle.Linear,
                        Enum.EasingDirection.Out
                    )
                    
                    local waypointPos = Vector3.new(waypoint.Position.X, root.Position.Y, waypoint.Position.Z)
                    
                    local tween = TweenService:Create(root, tweenInfo, {CFrame = CFrame.new(waypointPos)})
                    tween:Play()
                    tween.Completed:Wait()
                end
            end
        end

        local Player_Utility_Section = streetlife_Tab:Section({name = "Player Utilities", side = "left"})
        local SelectedPlayer = nil
        local SelectedPlayerTeleportMethod = "Tween" 

        local function GetPlayerDropdownList()
            local list = {}
            for _, player in ipairs(Players:GetPlayers()) do
                if player ~= LocalPlayer then
                    table.insert(list, player.Name)
                end
            end
            return list
        end

        Player_Utility_Section:Dropdown({
            Name = "Teleport Method",
            Flag = "PlayerTeleportMethodDropdown",
            Options = {"Tween", "Scooter"},
            Default = "Tween",
            Callback = function(selectedMethod)
                SelectedPlayerTeleportMethod = selectedMethod
            end
        })

        Player_Utility_Section:Dropdown({
            Name = "Select Player",
            Flag = "SelectPlayerDropdown",
            Options = GetPlayerDropdownList(),
            Default = GetPlayerDropdownList()[1] or "", 
            Callback = function(selectedPlayerName)
                SelectedPlayer = Players:FindFirstChild(selectedPlayerName)
            end
        })

        Player_Utility_Section:Toggle({
            Name = "Spectate Player",
            Flag = "SpectateToggle",
            Side = "Left",
            Value = false,
            Callback = function(toggle)
                if toggle and SelectedPlayer and SelectedPlayer.Character and SelectedPlayer.Character:FindFirstChild("Humanoid") then
                    Camera.CameraSubject = SelectedPlayer.Character.Humanoid
                else
                    if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
                        Camera.CameraSubject = LocalPlayer.Character.Humanoid
                    end
                end
            end
        })

        Player_Utility_Section:Button({
            Name = "Teleport To Player",
            Callback = function()
                if SelectedPlayer and SelectedPlayer.Character and SelectedPlayer.Character:FindFirstChild("HumanoidRootPart") then
                    local pos = SelectedPlayer.Character.HumanoidRootPart.Position
                    
                    if SelectedPlayerTeleportMethod == "Scooter" then
                        MC(pos.X, pos.Y, pos.Z)
                    elseif SelectedPlayerTeleportMethod == "Tween" then
                        TweenToPosition(Vector3.new(pos.X, pos.Y, pos.Z))
                    end
                end
            end
        })

        Player_Utility_Section:Button({
            Name = "Get Into Players Car",
            Callback = function()
                if not SelectedPlayer then
                    return
                end

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

                local car = workspace:FindFirstChild("Vehicles") and workspace.Vehicles:FindFirstChild(SelectedPlayer.Name .. "'s Car")
                if not car then
                    return
                end

                local seat = car:FindFirstChildWhichIsA("VehicleSeat", true)
                if not seat then
                    return
                end

                hrp.CFrame = seat.CFrame + Vector3.new(0, 3, 0)
                task.wait(0.05)
                seat:Sit(humanoid)
            end
        })

        local Locations = {
            ["Apartment 1"] = Vector3.new(594, 52, -209),
            ["Apartment 2"] = Vector3.new(592, 52, 335),
            ["Apartment 3"] = Vector3.new(580, 52, 291),
            ["Apartment 4"] = Vector3.new(-17, 52, -424),
            ["Arcade"] = Vector3.new(556, 52, -463),
            ["Bank"] = Vector3.new(396, 52, 65),
            ["Black Market"] = Vector3.new(245, 52, -697),
            ["Box Job"] = Vector3.new(211, 52, 341),
            ["Car Dealership"] = Vector3.new(492, 52, 56),
            ["Clothing Store"] = Vector3.new(610, 52, -73),
            ["Delivery Job"] = Vector3.new(492, 52, -384),
            ["Gas Station"] = Vector3.new(279, 52, 171),
            ["Gym"] = Vector3.new(104, 52, -404),
            ["Gun Buyer"] = Vector3.new(919, 52, 401),
            ["Gun Store 1"] = Vector3.new(610, 52, -400),
            ["Gun Store 2"] = Vector3.new(26, 70, 550),
            ["Ice Cream Job"] = Vector3.new(860, 52, -473),
            ["Jewelry"] = Vector3.new(6, 52, -181),
            ["Mechanic 1"] = Vector3.new(741, 52, -395),
            ["Merchant 2"] = Vector3.new(854, 52, -715),
            ["Pent House"] = Vector3.new(392, 70, 548),
            ["Pier"] = Vector3.new(844, 52, -977),
            ["Police Station"] = Vector3.new(364, 52, -339),
            ["Studio"] = Vector3.new(858, 52, -62),
            ["The Ice"] = Vector3.new(215, 52, 152),
            ["Ware House"] = Vector3.new(-115, 70, 360),
        }


        local Teleport_Section1 = streetlife1_Tab:Section({name = "Teleportation Utilities", side = "left"})
        local player = game.Players.LocalPlayer
        local SelectedLocationTeleportMethod = "Tween" 

        Teleport_Section1:Dropdown({
            Name = "Teleport Method",
            Flag = "LocationTeleportMethodDropdown",
            Options = {"Tween", "Scooter"},
            Default = "Tween",
            Callback = function(selectedMethod)
                SelectedLocationTeleportMethod = selectedMethod
            end
        })

        getgenv().SelectedTeleportLocation = nil

        Teleport_Section1:Dropdown({
            Name = "Select Location",
            Flag = "Teleport_Location_Select",
            Side = "Left",
            Options = (function()
                local items = {}
                for name, _ in pairs(Locations) do
                    table.insert(items, name)
                end
                table.sort(items)
                return items
            end)(),
            Callback = function(selectedName)
                getgenv().SelectedTeleportLocation = selectedName
            end
        })

        Teleport_Section1:Button({
            Name = "Teleport to Location",
            Callback = function()
                local name = getgenv().SelectedTeleportLocation
                if name and Locations[name] then
                    local pos = Locations[name]
                    
                    if SelectedLocationTeleportMethod == "Scooter" then
                        MC(pos.X, pos.Y, pos.Z)
                    elseif SelectedLocationTeleportMethod == "Tween" then
                        TweenToPosition(Vector3.new(pos.X, pos.Y, pos.Z))
                    end
                end
            end
        })

        local Purchase_Section1 = streetlife1_Tab:Section({name = "Purchasing Utilities", side = 'left'})
        local ReplicatedStorage = game:GetService("ReplicatedStorage")
        local GunBuy = ReplicatedStorage.Remotes.GunBuy

        local Guns = {
            ["Ruger - $800"] = {Name = "Ruger", Cost = 800},
            ["Makarov - $1000"] = {Name = "Makarov", Cost = 1000},
            ["Glock17 - $1200"] = {Name = "Glock17", Cost = 1200},
            ["Mac - $3000"] = {Name = "Mac", Cost = 3000},
            ["Tec-9 - $3500"] = {Name = "Tec-9", Cost = 3500},
            ["UMP - $4800"] = {Name = "UMP", Cost = 4800},
            ["Shotgun - $5000"] = {Name = "Shotgun", Cost = 5000},
            ["Glock19X - $5000"] = {Name = "Glock19X", Cost = 5000},
            ["Aug - $5000"] = {Name = "Aug", Cost = 5000},
            ["Draco - $5200"] = {Name = "Draco", Cost = 5200},
            ["Glockswitch - $5400"] = {Name = "Glockswitch", Cost = 5400},
            ["ARPistol - $5000"] = {Name = "ARPistol", Cost = 5000},
            ["HoneyBadger - $5500"] = {Name = "HoneyBadger", Cost = 5500},
            ["AK-47 - $6500"] = {Name = "AK-47", Cost = 6500},
            ["Vector - $7000"] = {Name = "Vector", Cost = 7000},
            ["MP5 - $7500"] = {Name = "MP5", Cost = 7500},
            ["TSR-15 - $8000"] = {Name = "TSR-15", Cost = 8000},
            ["BinaryG17 - $7000"] = {Name = "BinaryG17", Cost = 7000},
            ["AKS-74U - $8500"] = {Name = "AKS-74U", Cost = 8500},
            ["G36C - $4000"] = {Name = "G36C", Cost = 4000},
            ["Spas - $4500"] = {Name = "Spas", Cost = 4500},
            ["Thompson - $4000"] = {Name = "Thompson", Cost = 4000},
            ["Perun - $5000"] = {Name = "Perun", Cost = 5000},
            ["M&P9 - $2500"] = {Name = "M&P9", Cost = 2500},
            ["AK-12 - $5000"] = {Name = "AK-12", Cost = 5000},
            ["Famas - $8000"] = {Name = "Famas", Cost = 8000},
            ["Micro Uzi - $7500"] = {Name = "Micro Uzi", Cost = 7500}
        }

        getgenv().SelectedGun = nil
        getgenv().PurchaseAmount = 1

        Purchase_Section1:Dropdown({
            Name = "Select Weapon",
            Flag = "GunBuy_Selected",
            Side = "Left",
            Options = (function()
                local items = {}
                for label, _ in pairs(Guns) do
                    table.insert(items, label)
                end
                table.sort(items)
                return items
            end)(),
            Callback = function(selectedLabel)
                getgenv().SelectedGun = Guns[selectedLabel]
            end
        })

        Purchase_Section1:Slider({
            Name = "Amount",
            Flag = "GunBuy_Amount",
            Side = "Left",
            Slim = true,
            Min = 1,
            Max = 10,
            Value = 1,
            Callback = function(val)
                getgenv().PurchaseAmount = val
            end
        })

        Purchase_Section1:Button({
            Name = "Purchase Selected Weapon",
            Callback = function()
                local data = getgenv().SelectedGun
                local amount = getgenv().PurchaseAmount or 1
                if data then
                    for i = 1, amount do
                        GunBuy:FireServer(data.Name, data.Cost)
                        task.wait(0.1)
                    end
                end
            end
        })

        local Auto_Farm12 = streetlife_Tab:Section({name = "Money Utilities", side = "right"})

        local AutoFarmBoxesEnabled = false
        local AutoFarmMopEnabled = false
        local AutoFarmIceCreamEnabled = false

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

        function tween(targetPosition)
            local character = player.Character or player.CharacterAdded:Wait()
            local root = character:WaitForChild("HumanoidRootPart")
            local speed = 25
            local path = PathfindingService:CreatePath()
            path:ComputeAsync(root.Position, targetPosition)
            local waypoints = path:GetWaypoints()
            for i, waypoint in ipairs(waypoints) do
                local distance = (waypoint.Position - root.Position).Magnitude
                local time = distance / speed
                local tweenInfo = TweenInfo.new(time, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
                local waypointPos = Vector3.new(waypoint.Position.X, root.Position.Y, waypoint.Position.Z)
                local tween = TweenService:Create(root, tweenInfo, {CFrame = CFrame.new(waypointPos)})
                tween:Play()
                tween.Completed:Wait()
            end
        end

        local function mopfarm()
            local character = player.Character or player.CharacterAdded:Wait()
            
            tween(Vector3.new(282, 52, -186))
            
            local npcPrompt = workspace.Map.Jobs.CleanNPC.Model.UpperTorso.Interact
            while not player.Backpack:FindFirstChild("Mop") 
            and not character:FindFirstChild("Mop") do
                fireproximityprompt(npcPrompt)
                task.wait(0.5)
            end

            local cleanSpots = {
                workspace.Map.Jobs.CleanNPC.Clean["1"],
                workspace.Map.Jobs.CleanNPC.Clean["2"],
                workspace.Map.Jobs.CleanNPC.Clean["3"],
                workspace.Map.Jobs.CleanNPC.Clean["4"],
                workspace.Map.Jobs.CleanNPC.Clean["5"],
                workspace.Map.Jobs.CleanNPC.Clean["6"],
                workspace.Map.Jobs.CleanNPC.Clean["7"],
                workspace.Map.Jobs.CleanNPC.Clean["8"]
            }

            for _, cleanSpot in ipairs(cleanSpots) do
                if cleanSpot then
                    tween(cleanSpot.Position)
                    fireproximityprompt(cleanSpot.ProximityPrompt)
                    task.wait(4)
                end
            end
        end

        local function boxfarm()
            tween(Vector3.new(204, 52, 340))
            fireproximityprompt(workspace.Map.Jobs.BoxJob.Take.Take.Interact)
            tween(Vector3.new(158, 53, 254))
            fireproximityprompt(workspace.Map.Jobs.BoxJob.Deliver.Deliver.Interact)
            task.wait(1)
        end

        local hijayo = true

        local function icecreamfarm()
            if hijayo then
                tween(Vector3.new(869, 52, -471))
                tween(Vector3.new(897, 52, -473))
                fireproximityprompt(workspace.Map.Jobs.FrostyJob.Interact.ProximityPrompt)
                hijayo = false
            end

            while #workspace.Map.Jobs.FrostyJob.NPCArea:GetChildren() == 0 do
                task.wait(2)
            end

            local npc = workspace.Map.Jobs.FrostyJob.NPCArea:GetChildren()[1]
            local npcName = npc.Name
            local npcColor = npc.ColorValue.Value

            local gotIceCream = false
            while not gotIceCream do
                for _, version in pairs(workspace.Map.Jobs.FrostyJob.Versions:GetChildren()) do
                    local meshPart = version:FindFirstChild("MeshPart")
                    if meshPart and meshPart.Color == npcColor then
                        tween(meshPart.Position + Vector3.new(3, 0, 3))
                        fireproximityprompt(meshPart.ProximityPrompt)
                        task.wait(2)
                        gotIceCream = true
                        break
                    end
                end
                if not gotIceCream then
                    task.wait(2)
                end
            end

            local gaveToNpc = false
            while not gaveToNpc do
                local sameNpc = workspace.Map.Jobs.FrostyJob.NPCArea[npcName]
                if sameNpc then
                    tween(Vector3.new(899, 52, -467))
                    tween(Vector3.new(889, 52, -463))
                    tween(sameNpc.PrimaryPart.Position)
                    fireproximityprompt(sameNpc.Interact)
                    task.wait(2)
                    gaveToNpc = true
                else
                    task.wait(2)
                end
            end
        end

        Auto_Farm12:Toggle({
            Name = "Auto Farm Boxes",
            Flag = "AutoFarmBoxesToggle",
            Side = "Left",
            Value = false,
            Callback = function(toggle)
                AutoFarmBoxesEnabled = toggle
                if toggle then
                    spawn(function()
                        while AutoFarmBoxesEnabled do
                            boxfarm()
                        end
                    end)
                end
            end
        })

        Auto_Farm12:Toggle({
            Name = "Auto Farm Mop",
            Flag = "AutoFarmMopToggle",
            Side = "Left",
            Value = false,
            Callback = function(toggle)
                AutoFarmMopEnabled = toggle
                if toggle then
                    spawn(function()
                        while AutoFarmMopEnabled do
                            mopfarm()
                        end
                    end)
                end
            end
        })

        Auto_Farm12:Toggle({
            Name = "Auto Farm Ice Cream",
            Flag = "AutoFarmIceCreamToggle",
            Side = "Left",
            Value = false,
            Callback = function(toggle)
                AutoFarmIceCreamEnabled = toggle
                if toggle then
                    spawn(function()
                        while AutoFarmIceCreamEnabled do
                            icecreamfarm()
                        end
                    end)
                end
            end
        })

        local Gun_Mods1 = streetlife1_Tab:Section({name = "Gun Utilities", side = "right"})
        local RunService = game:GetService("RunService")
        local Players = game:GetService("Players")
        local LocalPlayer = Players.LocalPlayer

        local ammoConnection = nil
        local antiJamConnection = nil

        local function patchAmmo(tool)
            if tool:IsA("Tool") then
                if tool:GetAttribute("Ammo_Client") ~= nil then
                    tool:SetAttribute("Ammo_Client", 999999999)
                end
                if tool:GetAttribute("Ammo_Server") ~= nil then
                    tool:SetAttribute("Ammo_Server", 999999999)
                end
                if tool:GetAttribute("Capacity") ~= nil then
                    tool:SetAttribute("Capacity", 999999999)
                end
            end
        end

        local function patchJam(tool)
            if tool:IsA("Tool") then
                if tool:GetAttribute("IsJammed") ~= nil then
                    tool:SetAttribute("IsJammed", false)
                end
            end
        end

        local function applyPatchToAllGuns(callback)
            for _, tool in ipairs(LocalPlayer.Backpack:GetChildren()) do
                callback(tool)
            end
            if LocalPlayer.Character then
                for _, tool in ipairs(LocalPlayer.Character:GetChildren()) do
                    callback(tool)
                end
            end
        end
        
        Gun_Mods1:Toggle({
            Name = "Infinite Ammo",
            Flag = "InfAmmoToggle",
            Side = "Left",
            Callback = function(state)
                if state then
                    ammoConnection = RunService.RenderStepped:Connect(function()
                        applyPatchToAllGuns(patchAmmo)
                    end)
                else
                    if ammoConnection then
                        ammoConnection:Disconnect()
                        ammoConnection = nil
                    end
                end
            end
        })

        Gun_Mods1:Toggle({
            Name = "Anti Jam",
            Flag = "AntiJamToggle",
            Side = "Left",
            Callback = function(state)
                if state then
                    antiJamConnection = RunService.RenderStepped:Connect(function()
                        applyPatchToAllGuns(patchJam)
                    end)
                else
                    if antiJamConnection then
                        antiJamConnection:Disconnect()
                        antiJamConnection = nil
                    end
                end
            end
        })

        local Car_Mods1 = streetlife1_Tab:Section({name = "Car Utilities", side = "right"})
        local ReplicatedStorage = game:GetService("ReplicatedStorage")
        local VirtualInputManager = game:GetService("VirtualInputManager")

        local AllCars = {
            {Name = "720s", Price = 1150000},
            {Name = "A45", Price = 300000},
            {Name = "AMR24", Price = "Reward"},
            {Name = "ArmoredSUV", Price = "Reward"},
            {Name = "ATV", Price = 45000},
            {Name = "Cadillac", Price = 550000},
            {Name = "CarreraS", Price = 1500000},
            {Name = "CBR600", Price = 175000},
            {Name = "Chiron", Price = 1000000},
            {Name = "Chrysler", Price = 500000},
            {Name = "CorvetteC8", Price = 550000},
            {Name = "CrownVic", Price = 65000},
            {Name = "Cullinan", Price = 785000},
            {Name = "Dirtbike", Price = 35000},
            {Name = "Dodge", Price = 475000},
            {Name = "Durango", Price = 550000},
            {Name = "Ferraro", Price = "Reward"},
            {Name = "G80", Price = 350000},
            {Name = "GLE", Price = 175000},
            {Name = "Honda", Price = 25000},
            {Name = "Huracan", Price = 675000},
            {Name = "I8", Price = "Reward"},
            {Name = "LowRider", Price = 500000},
            {Name = "M140I", Price = 275000},
            {Name = "M5", Price = 100000},
            {Name = "Mayback", Price = 785000},
            {Name = "ModelY", Price = "Reward"},
            {Name = "Polestar", Price = 750000},
            {Name = "R35", Price = 750000},
            {Name = "R8", Price = 850000},
            {Name = "RangeRover", Price = 250000},
            {Name = "Roadster", Price = "Reward"},
            {Name = "RS6", Price = 300000},
            {Name = "Scooter", Price = 5000},
            {Name = "Sliverado", Price = 125000},
            {Name = "Sprinter", Price = "Spin"},
            {Name = "Srt", Price = 400000},
            {Name = "Trackhawk", Price = 200000},
            {Name = "TRX", Price = 850000},
            {Name = "Utopia", Price = 1000000},
            {Name = "Urus", Price = 550000},
            {Name = "Wagon", Price = 575000}
        }

        local SelectedCarToBuy = nil
        local SelectedCarToSpawn = nil

        table.sort(AllCars, function(a, b)
            return a.Name:lower() < b.Name:lower()
        end)

        local function GetBuyableCarList()
            local list = {}
            for _, car in ipairs(AllCars) do
                if typeof(car.Price) == "number" then
                    table.insert(list, {
                        Name = car.Name .. " - $" .. car.Price,
                        Mode = "Button",
                        Value = false,
                        Callback = function()
                            SelectedCarToBuy = car.Name
                        end
                    })
                end
            end
            return list
        end

        local function GetSpawnableCarList()
            local list = {}
            for _, car in ipairs(AllCars) do
                table.insert(list, {
                    Name = car.Name,
                    Mode = "Button",
                    Value = false,
                    Callback = function()
                        SelectedCarToSpawn = car.Name
                    end
                })
            end
            return list
        end

        Car_Mods1:Dropdown({
            Name = "Select Car to Buy",
            Flag = "SelectCarToBuy",
            Side = "Left",
            Options = (function()
                local items = {}
                for _, car in ipairs(AllCars) do
                    if typeof(car.Price) == "number" then
                        table.insert(items, car.Name .. " - $" .. car.Price)
                    end
                end
                table.sort(items)
                return items
            end)(),
            Default = "",
            Callback = function(selectedCarText)
                if selectedCarText and selectedCarText ~= "" then
                    SelectedCarToBuy = selectedCarText:gsub(" %- %$%d+", "")
                end
            end
        })

        Car_Mods1:Dropdown({
            Name = "Select Car to Spawn",
            Flag = "SelectCarToSpawn",
            Side = "Left",
            Options = (function()
                local items = {}
                for _, car in ipairs(AllCars) do
                    table.insert(items, car.Name)
                end
                table.sort(items)
                return items
            end)(),
            Callback = function(selectedCarName)
                SelectedCarToSpawn = selectedCarName
            end
        })

        Car_Mods1:Button({
            Name = "Purchase Selected Car",
            Callback = function()
                if not SelectedCarToBuy then return end
                ReplicatedStorage.Remotes.CarHandler:FireServer("Buy", SelectedCarToBuy)
            end
        })

        Car_Mods1:Button({
            Name = "Spawn Selected Car",
            Callback = function()
                if not SelectedCarToSpawn then return end
                ReplicatedStorage.Remotes.CarHandler:FireServer("Spawn", SelectedCarToSpawn)
            end
        })

        Car_Mods1:Button({
            Name = "Sit In Car",
            Callback = function()
                local player = Players.LocalPlayer
                local username = player.Name
                local character = player.Character or player.CharacterAdded:Wait()
                local hrp = character:WaitForChild("HumanoidRootPart")
                local humanoid = character:WaitForChild("Humanoid")

                local vehicles = workspace:WaitForChild("Vehicles")
                local myVehicle
                for _, v in pairs(vehicles:GetChildren()) do
                    if v.Name:find(username) and v:FindFirstChildWhichIsA("VehicleSeat", true) then
                        myVehicle = v
                        break
                    end
                end

                if not myVehicle then return end

                local seat = myVehicle:FindFirstChildWhichIsA("VehicleSeat", true)
                if not seat then return end

                hrp.CFrame = seat.CFrame + Vector3.new(0, 3, 0)
                task.wait(0.05)
                seat:Sit(humanoid)
            end
        })

        local Bank_section = streetlife_Tab:Section({name = "Bank Utilities", side = "right"})
        local ATM = ReplicatedStorage.Remotes:WaitForChild("ATM")

        local atmbankamount = 0
        local autoWithdrawEnabled = false
        local autoDepositEnabled = false

        Bank_section:Textbox({
            Name = "Money Amount",
            Flag = "Cash_Amount_Input",
            Slim = true,
            Placeholder = "Enter Money Amount.",
            Numeric = true,
            Callback = function(text)
                local amount = tonumber(text)
                if amount and amount > 0 then
                    atmbankamount = amount
                else
                end
            end
        })

        Bank_section:Button({
            Name = "Withdraw",
            Callback = function()
                if atmbankamount and atmbankamount > 0 then
                    ATM:FireServer("Withdraw", atmbankamount)
                else
                end
            end
        })

        Bank_section:Button({
            Name = "Deposit",
            Callback = function()
                if atmbankamount and atmbankamount > 0 then
                    ATM:FireServer("Deposit", atmbankamount)
                else
                end
            end
        })

        Bank_section:Toggle({
            Name = "Auto Withdraw",
            Flag = "AutoWithdrawToggle",
            Side = "Left",
            Value = false,
            Callback = function(toggle)
                autoWithdrawEnabled = toggle
                if toggle then
                    spawn(function()
                        while autoWithdrawEnabled do
                            if atmbankamount and atmbankamount > 0 then
                                ATM:FireServer("Withdraw", atmbankamount)
                            end
                            task.wait(0.5)
                        end
                    end)
                end
            end
        })

        Bank_section:Toggle({
            Name = "Auto Deposit",
            Flag = "AutoDepositToggle",
            Side = "Left",
            Value = false,
            Callback = function(toggle)
                autoDepositEnabled = toggle
                if toggle then
                    spawn(function()
                        while autoDepositEnabled do
                            if atmbankamount and atmbankamount > 0 then
                                ATM:FireServer("Deposit", atmbankamount)
                            end
                            task.wait(0.5)
                        end
                    end)
                end
            end
        })
    end
end

if (Game_Name ~= "The Bronx" and Game_Name ~= "Street Life") then
local function teleport(targetPos)
    local player = game.Players.LocalPlayer
    if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
        player.Character.HumanoidRootPart.CFrame = CFrame.new(targetPos)
    end
end

local function equip(itemName)
    local player = game.Players.LocalPlayer
    local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
    if humanoid then
        local item = player.Backpack:FindFirstChild(itemName)
        if item then
            humanoid:EquipTool(item)
        end
    end
end

local function sell()
    local player = game.Players.LocalPlayer
    local camera = game.Workspace.CurrentCamera
    
    if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
        local hrp = player.Character.HumanoidRootPart
        local cameraPosition = hrp.Position + Vector3.new(0, 100, -12)
        local lookAtPosition = hrp.Position + Vector3.new(0, -100, 0)
        camera.CFrame = CFrame.new(cameraPosition, lookAtPosition)
    end
    
    task.wait(0.2)
    
    local VirtualInputManager = game:GetService("VirtualInputManager")
    VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.E, false, nil)
    task.wait(2)
    VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.E, false, nil)
end

local function log()
    local VIM = game:GetService("VirtualInputManager")
    VIM:SendMouseButtonEvent(0, 0, 0, true, game, 0)
    task.wait(0.1)
    VIM:SendMouseButtonEvent(0, 0, 0, false, game, 0)
end

local TeleportLocations = {
    ["Bank"] = Vector3.new(-469, 317, -423),
    ["Mail Job"] = Vector3.new(-35, 317, -384),
    ["Ice Blox"] = Vector3.new(-1281, 317, 519),
    ["Barber Shop"] = Vector3.new(-157, 321, 749),
    ["Gun Shop"] = Vector3.new(92996, 122101, 17237),
    ["Laundromat"] = Vector3.new(-1, 317, 934),
    ["Black Market"] = Vector3.new(316, 317, 1093),
    ["Gas Station"] = Vector3.new(288, 317, 299),
    ["Car Dealership"] = Vector3.new(646, 317, 347),
    ["Clothing"] = Vector3.new(887, 318, -311),
    ["Devices"] = Vector3.new(693, 317, -76),
    ["Auto Shop"] = Vector3.new(1035, 317, 819),
    ["Beauty Studio"] = Vector3.new(802, 317, 958),
    ["Garbage Job"] = Vector3.new(288, 317, 797),
    ["Lumber Job"] = Vector3.new(742, 317, 847)
}

do -- \\ Main Page
    local MainPage = window:Tab({Name = "Main"})
    local MiscPage = window:Tab({name = "Miscellaneous", icon = GetImage("Wrench.png")})
    do -- \\ Local Player Sections
        local LocalPlayerSection = MainPage:Section({Name = "Local Player", Side = "left"})
        LocalPlayerSection:Toggle({
            type = "toggle",
            name = "Infinite Stamina",
            flag = "InfiniteStamina",
            default = false,
            Callback = function(state)
                if state then
                    getgenv().infiniteStaminaLoop = true
                    task.spawn(function()
                        while getgenv().infiniteStaminaLoop do
                            local args = { false }
                            local plr = game:GetService("Players").LocalPlayer
                            local events = plr:FindFirstChild("Events")
                            if events then
                                local energy = events:FindFirstChild("Energy")
                                if energy then
                                    energy:FireServer(unpack(args))
                                end
                            end
                            task.wait(0.2)
                        end
                    end)
                else
                    getgenv().infiniteStaminaLoop = false
                    local args = { false }
                    local plr = game:GetService("Players").LocalPlayer
                    local events = plr:FindFirstChild("Events")
                    if events then
                        local energy = events:FindFirstChild("Energy")
                        if energy then
                            energy:FireServer(unpack(args))
                        end
                    end
                end
            end
        })
        LocalPlayerSection:Toggle({
            type = "toggle",
            name = "Instant Interaction",
            flag = "InstantInteraction",
            default = false,
            Callback = function(state)
                local Workspace = game:GetService("Workspace")
                
                for _, v in ipairs(Workspace:GetDescendants()) do
                    if v.ClassName == "ProximityPrompt" then
                        v.HoldDuration = state and 0 or 0.5
                    end
                end

                if state then
                    getgenv().InstantInteractionConnection = Workspace.DescendantAdded:Connect(function(descendant)
                        if descendant.ClassName == "ProximityPrompt" then
                            descendant.HoldDuration = 0
                        end
                    end)
                else
                    if getgenv().InstantInteractionConnection then
                        getgenv().InstantInteractionConnection:Disconnect()
                        getgenv().InstantInteractionConnection = nil
                    end
                end
            end
        })
        LocalPlayerSection:Toggle({
            type = "toggle",
            name = "Infinite Jump",
            flag = "InfiniteJump",
            default = false,
            Callback = function(state)
                getgenv().InfJumpEnabled = state
            end
        })
        LocalPlayerSection:Toggle({
            type = "toggle",
            name = "No Combat",
            flag = "AntiCombat",
            default = false,
            Callback = function(state)
                local plr = game:GetService("Players").LocalPlayer
                local settings = plr:FindFirstChild("Settings")
                if settings then
                    local settingsObj = settings:FindFirstChild("Settings")
                    if settingsObj then
                        if state then
                            getgenv().antiCombatLoop = true
                            task.spawn(function()
                                while getgenv().antiCombatLoop do
                                    if settingsObj:GetAttribute("Combat") == true then
                                        settingsObj:SetAttribute("Combat", false)
                                    end
                                    task.wait(0.01)
                                end
                            end)
                        else
                            getgenv().antiCombatLoop = false
                        end
                    end
                end
            end
        })

        LocalPlayerSection:Toggle({
            type = "toggle",
            name = "No Knockout",
            flag = "AntiKnockout",
            default = false,
            Callback = function(state)
                local plr = game:GetService("Players").LocalPlayer
                local settings = plr:FindFirstChild("Settings")
                if settings then
                    local settingsObj = settings:FindFirstChild("Settings")
                    if settingsObj then
                        if state then
                            getgenv().antiKnockoutLoop = true
                            task.spawn(function()
                                while getgenv().antiKnockoutLoop do
                                    if settingsObj:GetAttribute("KnockedOut") == true then
                                        settingsObj:SetAttribute("KnockedOut", false)
                                    end
                                    task.wait(0.2)
                                end
                            end)
                        else
                            getgenv().antiKnockoutLoop = false
                        end
                    end
                end
            end
        })
        LocalPlayerSection:Toggle({
            type = "toggle",
            name = "No Climb",
            flag = "AntiClimb",
            default = false,
            Callback = function(state)
                local jumpsFolder = workspace:WaitForChild("GateJumps"):WaitForChild("Jumps")
                getgenv().DisabledTouchInterests = getgenv().DisabledTouchInterests or {}

                if state then
                    for _, jump in ipairs(jumpsFolder:GetDescendants()) do
                        if jump:IsA("BasePart") then
                            for _, child in ipairs(jump:GetChildren()) do
                                if child:IsA("TouchTransmitter") or child.Name == "TouchInterest" then
                                    local clone = child:Clone()
                                    child:Destroy()
                                    table.insert(getgenv().DisabledTouchInterests, {part = jump, obj = clone})
                                end
                            end
                        end
                    end
                    getgenv().ClimbBlockConnection = jumpsFolder.DescendantAdded:Connect(function(desc)
                        if desc:IsA("TouchTransmitter") or desc.Name == "TouchInterest" then
                            local parent = desc.Parent
                            local clone = desc:Clone()
                            desc:Destroy()
                            table.insert(getgenv().DisabledTouchInterests, {part = parent, obj = clone})
                        end
                    end)
                else
                    for _, data in ipairs(getgenv().DisabledTouchInterests) do
                        if data.part and data.obj and data.part:IsDescendantOf(workspace) then
                            data.obj.Parent = data.part
                        end
                    end
                    getgenv().DisabledTouchInterests = {}

                    if getgenv().ClimbBlockConnection then
                        getgenv().ClimbBlockConnection:Disconnect()
                        getgenv().ClimbBlockConnection = nil
                    end
                end
            end
        })
        LocalPlayerSection:Toggle({
            type = "toggle",
            name = "No On Camera",
            flag = "AntiOnCamera",
            default = false,
            Callback = function(state)
                local ReplicatedStorage = game:GetService("ReplicatedStorage")
                local remote = ReplicatedStorage:FindFirstChild("cameraZoneFunction")

                if state then
                    if remote and remote:IsA("RemoteEvent") then
                        remote:FireServer(false, "\xE2\x80\x8E Pr\xE2\x80\x8E 1V\xE2\x80\x8E 4t3\xE2\x80\x8E ")
                        getgenv().OriginalCameraZoneRemote = remote
                        remote.Parent = nil
                    end
                else
                    if getgenv().OriginalCameraZoneRemote and getgenv().OriginalCameraZoneRemote:IsA("RemoteEvent") then
                        getgenv().OriginalCameraZoneRemote.Parent = ReplicatedStorage
                        getgenv().OriginalCameraZoneRemote = nil
                    end
                end
            end
        })
        UserInputService.JumpRequest:Connect(function()
            if getgenv().InfJumpEnabled and not getgenv().infJumpBounce then
                getgenv().infJumpBounce = true
                local hum = LocalPlayer.Character and LocalPlayer.Character:FindFirstChildWhichIsA("Humanoid")
                if hum then hum:ChangeState(Enum.HumanoidStateType.Jumping) end
                task.wait()
                getgenv().infJumpBounce = false
            end
        end)

        UserInputService.InputBegan:Connect(function(input, gameProcessed)
            if input.KeyCode == Enum.KeyCode.Space then
                getgenv().holdingSpace = true
                while getgenv().holdingSpace do
                    if getgenv().InfJumpEnabled and not getgenv().infJumpBounce then
                        getgenv().infJumpBounce = true
                        local hum = LocalPlayer.Character and LocalPlayer.Character:FindFirstChildWhichIsA("Humanoid")
                        if hum then hum:ChangeState(Enum.HumanoidStateType.Jumping) end
                        task.wait()
                        getgenv().infJumpBounce = false
                    end
                    task.wait()
                end
            end
        end)

        UserInputService.InputEnded:Connect(function(input)
            if input.KeyCode == Enum.KeyCode.Space then
                getgenv().holdingSpace = false
            end
        end)
    end

    do -- \\ Player Adjustments Section
        local PlayerAdjustmentsSection = MainPage:Section({Name = "Player Adjustments", Side = "left"})

        local speedvalue = 1
        PlayerAdjustmentsSection:Slider({
            Name = "Change Walkspeed",
            Flag = "SpeedValue",
            Min = 1,
            Max = 10,
            Value = 1,
            Callback = function(value)
                speedvalue = value
                getgenv().speedvalue = value
            end
        })

        local SpeedEnabled = false
        local SpeedConnection

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

        local function DisconnectSpeed()
            if SpeedConnection then
                SpeedConnection:Disconnect()
                SpeedConnection = nil
            end
        end

        local function SpeedControl()
            DisconnectSpeed()
            SpeedConnection = RunService.RenderStepped:Connect(function()
                if not SpeedEnabled then
                    DisconnectSpeed()
                    return
                end
                local character = getCharacter()
                local humanoid = character and character:FindFirstChildOfClass("Humanoid")
                local hrp = character and character:FindFirstChild("HumanoidRootPart")
                local currentSpeed = speedvalue or getgenv().speedvalue or 1
                if humanoid and hrp then
                    local MoveDirection = humanoid.MoveDirection
                    if MoveDirection.Magnitude > 0 then
                        hrp.CFrame = hrp.CFrame + MoveDirection * (currentSpeed * 1)
                    end
                end
            end)
        end

        local flying = false
        local speed = 100
        local ctrl = {f = 0, b = 0, l = 0, r = 0}
        local lastctrl = {f = 0, b = 0, l = 0, r = 0}

        local animationId = "rbxassetid://99870380291426"
        local animationTrack = nil
        local animationThread = nil

        PlayerAdjustmentsSection:Slider({
            Name = "Change Fly speed",
            Flag = "FlySpeedSlider",
            Min = 10,
            Max = 100,
            Value = 75,
            Callback = function(value)
                speed = value
            end
        })

        local function startAnimation()
            local char = LocalPlayer.Character
            if not char then return end

            local hum = char:FindFirstChildOfClass("Humanoid")
            if not hum then return end

            if animationTrack then
                animationTrack:Stop()
            end

            local anim = Instance.new("Animation")
            anim.AnimationId = animationId

            animationTrack = hum:LoadAnimation(anim)
            animationTrack.Looped = true
            animationTrack:Play()
        end

        local function Fly()
            local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
            local torso = Character:WaitForChild("HumanoidRootPart")
            local humanoid = Character:WaitForChild("Humanoid")

            local bg = Instance.new("BodyGyro", torso)
            bg.P = 9e4
            bg.MaxTorque = Vector3.new(9e9, 9e9, 9e9)
            bg.CFrame = torso.CFrame

            local bv = Instance.new("BodyVelocity", torso)
            bv.Velocity = Vector3.new(0, 0.1, 0)
            bv.MaxForce = Vector3.new(9e9, 9e9, 9e9)

            humanoid.PlatformStand = true
            flying = true

            animationThread = task.spawn(function()
                while flying do
                    startAnimation()
                    task.wait(3)
                end
            end)

            while flying do
                task.wait()
                local camCF = workspace.CurrentCamera.CFrame
                if (ctrl.l + ctrl.r ~= 0) or (ctrl.f + ctrl.b ~= 0) then
                    bv.Velocity = (
                        (camCF.LookVector * (ctrl.f + ctrl.b)) +
                        ((camCF * CFrame.new(ctrl.l + ctrl.r, (ctrl.f + ctrl.b) * 0.2, 0).Position - camCF.Position))
                    ).Unit * speed
                    lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
                else
                    bv.Velocity = Vector3.new(0, 0.1, 0)
                end
                bg.CFrame = camCF
            end

            ctrl = {f = 0, b = 0, l = 0, r = 0}
            lastctrl = {f = 0, b = 0, l = 0, r = 0}
            humanoid.PlatformStand = false

            if animationTrack then
                animationTrack:Stop()
                animationTrack = nil
            end

            if animationThread then
                task.cancel(animationThread)
                animationThread = nil
            end

            bv:Destroy()
            bg:Destroy()
        end

        PlayerAdjustmentsSection:Toggle({
            Name = "Enable Fly",
            Flag = "FlyToggle",
            Value = false,
            Callback = function(state)
                if state then
                    flying = true
                    task.spawn(Fly)
                else
                    flying = false
                end
            end
        })

        UserInputService.InputBegan:Connect(function(input, processed)
            if processed or not flying then return end
            local key = input.KeyCode
            if key == Enum.KeyCode.W then ctrl.f = 1 end
            if key == Enum.KeyCode.S then ctrl.b = -1 end
            if key == Enum.KeyCode.A then ctrl.l = -1 end
            if key == Enum.KeyCode.D then ctrl.r = 1 end
        end)

        UserInputService.InputEnded:Connect(function(input)
            local key = input.KeyCode
            if key == Enum.KeyCode.W then ctrl.f = 0 end
            if key == Enum.KeyCode.S then ctrl.b = 0 end
            if key == Enum.KeyCode.A then ctrl.l = 0 end
            if key == Enum.KeyCode.D then ctrl.r = 0 end
        end)

        PlayerAdjustmentsSection:Toggle({
            Name = "Walkspeed",
            Flag = "Speedhack",
            Value = false,
            Callback = function(enabled)
                SpeedEnabled = enabled
                if enabled then
                    SpeedControl()
                else
                    DisconnectSpeed()
                end
            end
        })

        local player = LocalPlayer
        local Config = {
            ClickTeleportEnabled = false,
            ClickTeleportKeybind = Enum.KeyCode.E,
            ClickTeleportDistance = 50
        }

        local function setupClickTeleport()
            local mouse = player:GetMouse()
            local mouseConnection
            local keybindConnection

            local function teleportToMousePosition()
                if not Config.ClickTeleportEnabled then return end

                local target = mouse.Target
                if target then
                    local hitPosition = mouse.Hit.Position
                    local character = player.Character
                    local humanoidRootPart = character and character:FindFirstChild("HumanoidRootPart")

                    if humanoidRootPart then
                        local distance = (humanoidRootPart.Position - hitPosition).Magnitude
                        if distance <= Config.ClickTeleportDistance then
                            humanoidRootPart.CFrame = CFrame.new(hitPosition.X, hitPosition.Y + 3, hitPosition.Z)
                        end
                    end
                end
            end

            local function onMouseClick()
                teleportToMousePosition()
            end

            local function onKeybindPress(input)
                if input.UserInputType == Enum.UserInputType.Keyboard then
                    if input.KeyCode == Config.ClickTeleportKeybind then
                        teleportToMousePosition()
                    end
                end
            end

            return {
                Enable = function()
                    if mouseConnection then
                        mouseConnection:Disconnect()
                    end
                    if keybindConnection then
                        keybindConnection:Disconnect()
                    end

                    if Config.ClickTeleportKeybind == Enum.KeyCode.E then
                        keybindConnection = UserInputService.InputBegan:Connect(onKeybindPress)
                    elseif Config.ClickTeleportKeybind == Enum.UserInputType.MouseButton1 then
                        mouseConnection = mouse.Button1Down:Connect(onMouseClick)
                    else
                        keybindConnection = UserInputService.InputBegan:Connect(onKeybindPress)
                    end
                end,
                Disable = function()
                    if mouseConnection then
                        mouseConnection:Disconnect()
                        mouseConnection = nil
                    end
                    if keybindConnection then
                        keybindConnection:Disconnect()
                        keybindConnection = nil
                    end
                end,
                UpdateKeybind = function(newKeybind)
                    Config.ClickTeleportKeybind = newKeybind
                    if Config.ClickTeleportEnabled then
                        clickTeleportSystem.Disable()
                        clickTeleportSystem.Enable()
                    end
                end
            }
        end

        local clickTeleportSystem = setupClickTeleport()

        local clickTeleportToggle = PlayerAdjustmentsSection:Toggle({
            Name = "Click to Teleport",
            Flag = "Click_Teleport",
            Side = "Left",
            Value = false,
            Callback = function(Value)
                Config.ClickTeleportEnabled = Value
                if Value then
                    clickTeleportSystem.Enable()
                else
                    clickTeleportSystem.Disable()
                end
            end
        })

        clickTeleportToggle:Keybind({
            name = "Keybind",
            flag = "Click_Teleport_Bind",
            mode = "Always",
            default = Enum.KeyCode.E,
            Callback = function(state)
                if state then
                    if Config.ClickTeleportEnabled then
                        local mouse = player:GetMouse()
                        local hitPosition = mouse.Hit.Position
                        local character = player.Character
                        local humanoidRootPart = character and character:FindFirstChild("HumanoidRootPart")

                        if humanoidRootPart then
                            local distance = (humanoidRootPart.Position - hitPosition).Magnitude
                            if distance <= Config.ClickTeleportDistance then
                                humanoidRootPart.CFrame = CFrame.new(hitPosition.X, hitPosition.Y + 3, hitPosition.Z)
                            end
                        end
                    end
                end
            end,
            KeybindCallback = function(key)
                Config.ClickTeleportKeybind = key
                clickTeleportSystem.UpdateKeybind(key)
            end
        })

        PlayerAdjustmentsSection:Slider({
            name = "Teleport Distance",
            flag = "Click_Teleport_Distance",
            min = 10,
            max = 500,
            default = 50,
            Callback = function(value)
                Config.ClickTeleportDistance = value
            end
        })

        local respawnAtDeathEnabled = false
        local deathLocation = nil
        local deathConnection = nil

        PlayerAdjustmentsSection:Toggle({
            name = "Respawn At Death Location",
            flag = "RespawnAtDeath",
            default = false,
            Callback = function(state)
                respawnAtDeathEnabled = state
            
                if state then
                    local function setupDeathMonitoring(character)
                        if deathConnection then
                            deathConnection:Disconnect()
                        end
                    
                        local humanoid = character:FindFirstChildOfClass("Humanoid")
                        if humanoid then
                            deathConnection = humanoid.Died:Connect(function()
                                local rootPart = character:FindFirstChild("HumanoidRootPart")
                                if rootPart then
                                    deathLocation = rootPart.Position
                                end
                            
                                task.wait(3)
                            
                                if respawnAtDeathEnabled and deathLocation then
                                    local newCharacter = LocalPlayer.Character
                                    if newCharacter then
                                        local newRoot = newCharacter:FindFirstChild("HumanoidRootPart")
                                        if newRoot then
                                            newRoot.CFrame = CFrame.new(deathLocation)
                                        end
                                    end
                                end
                            end)
                        end
                    end
                
                    local currentChar = LocalPlayer.Character
                    if currentChar then
                        setupDeathMonitoring(currentChar)
                    end
                
                    LocalPlayer.CharacterAdded:Connect(function(character)
                        if respawnAtDeathEnabled then
                            task.wait(0.5)
                            setupDeathMonitoring(character)
                        end
                    end)
                else
                    if deathConnection then
                        deathConnection:Disconnect()
                        deathConnection = nil
                    end
                    deathLocation = nil
                end
            end
        })

        PlayerAdjustmentsSection:Toggle({
            Name = "No Clip",
            Flag = "NoclipToggle",
            Value = false,
            Callback = function(Value)
                getgenv().NoclipEnabled = Value
            
                local function applyNoclip(character)
                    for _, part in pairs(character:GetDescendants()) do
                        if part:IsA("BasePart") then
                            part.CanCollide = not Value
                        end
                    end
                end
            
                local function noclipLoop()
                    while getgenv().NoclipEnabled and LocalPlayer.Character do
                        if LocalPlayer.Character then
                            for _, part in pairs(LocalPlayer.Character:GetDescendants()) do
                                if part:IsA("BasePart") then
                                    part.CanCollide = false
                                end
                            end
                        end
                        task.wait()
                    end
                end
            
                if Value then
                    local character = LocalPlayer.Character
                    if character then
                        applyNoclip(character)
                    end
                    
                    LocalPlayer.CharacterAdded:Connect(function(char)
                        if getgenv().NoclipEnabled then
                            applyNoclip(char)
                        end
                    end)
                    
                    task.spawn(noclipLoop)
                else
                    local character = LocalPlayer.Character
                    if character then
                        for _, part in pairs(character:GetDescendants()) do
                            if part:IsA("BasePart") then
                                part.CanCollide = true
                            end
                        end
                    end
                end
            end
        })
    end

    do -- \\ Target Section
        local TargetSection = MiscPage:Section({Name = "Target", Side = "left"})

        local SelectedPlayer
        local SpectateConnection

        local function updatePlayerList()
            local players = {}
            for _, player in pairs(game.Players:GetPlayers()) do
                if player ~= game.Players.LocalPlayer then
                    table.insert(players, player.Name)
                end
            end
            return players
        end

        local function findPlayer(playerName)
            for _, player in pairs(game.Players:GetPlayers()) do
                if player.Name == playerName then
                    SelectedPlayer = player
                    return true
                end
            end
            SelectedPlayer = nil
            return false
        end

        local playerDropdown = TargetSection:Dropdown({
            Name = "Select Player",
            Flag = "PlayerDropdown",
            Options = updatePlayerList(),
            Default = "",
            Callback = function(selectedPlayer)
                findPlayer(selectedPlayer) 
            end
        })

        game.Players.PlayerAdded:Connect(function()
            playerDropdown:SetValues(updatePlayerList())
        end)

        game.Players.PlayerRemoving:Connect(function()
            playerDropdown:SetValues(updatePlayerList())
        end)

        local function spectatePlayer(enable)
            if enable then
                if not SelectedPlayer then
                    return false
                end
                
                if SpectateConnection then 
                    SpectateConnection:Disconnect() 
                    SpectateConnection = nil
                end
                
                workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
                
                SpectateConnection = game:GetService("RunService").RenderStepped:Connect(function()
                    local targetPos = Vector3.new(0, 10, 0) 
                    
                    if SelectedPlayer and SelectedPlayer.Character then
                        local hrp = SelectedPlayer.Character:FindFirstChild("HumanoidRootPart")
                        local torso = SelectedPlayer.Character:FindFirstChild("Torso") or SelectedPlayer.Character:FindFirstChild("UpperTorso")
                        local head = SelectedPlayer.Character:FindFirstChild("Head")
                        
                        if hrp then
                            targetPos = hrp.Position
                            workspace.CurrentCamera.CFrame = CFrame.new(hrp.Position + hrp.CFrame.LookVector * -10 + Vector3.new(0, 3, 0), hrp.Position)
                        elseif torso then
                            targetPos = torso.Position
                            workspace.CurrentCamera.CFrame = CFrame.new(torso.Position + Vector3.new(-10, 3, 0), torso.Position)
                        elseif head then
                            targetPos = head.Position
                            workspace.CurrentCamera.CFrame = CFrame.new(head.Position + Vector3.new(-10, 3, 0), head.Position)
                        else
                            workspace.CurrentCamera.CFrame = CFrame.new(targetPos + Vector3.new(-10, 3, 0), targetPos)
                        end
                    else
                        return
                    end
                end)
                
                return true
            else
                workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
                if SpectateConnection then 
                    SpectateConnection:Disconnect() 
                    SpectateConnection = nil
                end
                return true
            end
        end

        TargetSection:Toggle({
            Name = "Spectate Player",
            Flag = "SpectateToggle",
            Value = false,
            Callback = function(Value)
                spectatePlayer(Value)
            end
        })
        TargetSection:Button({
            Name = "Teleport To Player",
            Callback = function()
                if not SelectedPlayer then
                    return
                end
                
                local localChar = game.Players.LocalPlayer.Character
                if not localChar then
                    return
                end
                
                local localHRP = localChar:FindFirstChild("HumanoidRootPart")
                if not localHRP then
                    return
                end
                
                local targetPos
                
                if SelectedPlayer.Character then
                    local targetHRP = SelectedPlayer.Character:FindFirstChild("HumanoidRootPart")
                    if targetHRP then
                        targetPos = targetHRP.Position
                    else
                        local torso = SelectedPlayer.Character:FindFirstChild("Torso") or SelectedPlayer.Character:FindFirstChild("UpperTorso")
                        local head = SelectedPlayer.Character:FindFirstChild("Head")
                        if torso then
                            targetPos = torso.Position
                        elseif head then
                            targetPos = head.Position
                        end
                    end
                end
                
                if not targetPos then
                    targetPos = Vector3.new(0, 10, 0)
                end
                
                localHRP.CFrame = CFrame.new(targetPos + Vector3.new(0, 5, 0))
            end
        })
    end

    do -- \\ Money Section
        local MoneySection = MainPage:Section({Name = "Money", Side = "right"})

        MoneySection:Toggle({
            Name = "Auto Farm Garbage",
            Flag = "AutoGarbageFarm",
            Value = false,
            Callback = function(state)
                if state then
                    task.spawn(function()
                        while Toggles.AutoGarbageFarm.Value do
                            teleport(Vector3.new(288, 317, 797))
                            task.wait(0.5)
                            
                            if workspace.Interactions.toolInteractions:FindFirstChild("TrashPart") then
                                workspace.Interactions.toolInteractions.TrashPart.Interaction:FireServer()
                            end
                            task.wait(0.5)
                            
                            teleport(Vector3.new(288, 317, 797))
                            task.wait(0.5)
                            
                            equip("Trash Bag")
                            task.wait(2.5)
                            
                            sell()
                            task.wait(8)
                        end
                    end)
                end
            end
        })

        MoneySection:Toggle({
            Name = "Auto Farm Lumber",
            Flag = "AutoLumberFarm",
            Value = false,
            Callback = function(state)
                if state then
                    task.spawn(function()
                        teleport(Vector3.new(742.917603,317.395477,848.981689)) 
                        task.wait(1)
                        sell()
                        task.wait(1)
                        
                        while Toggles.AutoLumberFarm.Value do
                            teleport(Vector3.new(742.917603,317.395477,848.981689)) 
                            task.wait(1)
                            sell()
                            task.wait(1)
                            
                            teleport(Vector3.new(753.964600,317.395477,845.122253)) 
                            equip("Full Log")
                            sell()
                            task.wait(1)
                            
                            teleport(Vector3.new(663, 318, 820)) 
                            task.wait(1)
                            
                            equip("Lumber Jack Axe")
                            log() 
                            task.wait(3)
                            
                            teleport(Vector3.new(694.135681,317.395477,842.434753))
                            task.wait(1)
                            
                            equip("Half-Cut Log")
                            sell()
                            task.wait(1)
                            
                            equip("Lumber Jack Axe")
                            log()
                            task.wait(3)
                            
                            teleport(Vector3.new(718, 317, 820))
                            task.wait(4)
                            
                            equip("Half-Cut Log")
                            sell()
                            task.wait(1)
                            
                            equip("Lumber Jack Axe")
                            log()
                            task.wait(3)
                            
                            teleport(Vector3.new(755, 317, 841))
                            task.wait(1)
                            
                            for i = 1, 4 do
                                equip("Quarter-Cut Log")
                                sell()
                                task.wait(2)
                            end
                            
                            task.wait(1)
                        end
                    end)
                end
            end
        })

        MoneySection:Toggle({
            Name = "Auto Farm House",
            Flag = "AutoHouseRobbery",
            Value = false,
            Callback = function(state)
                if not state then return end

                task.spawn(function()
                    local House = workspace:WaitForChild("HouseRobbery")
                    local localPlayer = game.Players.LocalPlayer
                    local character = localPlayer.Character or localPlayer.CharacterAdded:Wait()
                    
                    local WAIT_AFTER_TP = 0.25
                    local SPAM_INTERVAL = 0.06
                    local HOLD_DURATION = 0.05
                    local PROMPT_TIMEOUT = 100
                    
                    local function findPrompt(model)
                        local prompt = model:FindFirstChild("Interaction") or model:FindFirstChild("Prompt")
                        if not prompt then
                            for _, desc in pairs(model:GetDescendants()) do
                                if desc:IsA("ProximityPrompt") then
                                    prompt = desc
                                    break
                                end
                            end
                        end
                        return prompt
                    end
                    
                    local function spamPrompt(prompt)
                        local startTime = tick()
                        while Toggles.AutoHouseRobbery.Value and (tick() - startTime < PROMPT_TIMEOUT) do
                            pcall(function()
                                prompt:InputHoldBegin()
                                task.wait(HOLD_DURATION)
                                prompt:InputHoldEnd()
                            end)
                            task.wait(SPAM_INTERVAL)
                            if not prompt.Parent or not prompt.Enabled then
                                return true
                            end
                        end
                        return false
                    end
                    
                    local function breakDoor(doorName)
                        local brokenName = doorName .. "_Broken"
                        local startTime = tick()
                        
                        local doorModel = nil
                        for _, obj in pairs(House:GetDescendants()) do
                            if obj.Name:lower():find(doorName:lower()) then
                                doorModel = obj
                                break
                            end
                        end
                        
                        if not doorModel then return false end
                        
                        local prompt = findPrompt(doorModel)
                        if not prompt then return false end
                        
                        while Toggles.AutoHouseRobbery.Value and (tick() - startTime) < PROMPT_TIMEOUT do
                            pcall(function()
                                prompt:InputHoldBegin()
                                task.wait(HOLD_DURATION)
                                prompt:InputHoldEnd()
                            end)
                            task.wait(SPAM_INTERVAL)
                            
                            if House:FindFirstChild(brokenName) then
                                return true
                            end
                        end
                        return false
                    end
                    
                    local function waitForChildNamed(name, timeout)
                        timeout = timeout or 10
                        local start = tick()
                        while tick() - start < timeout do
                            local found = House:FindFirstChild(name)
                            if found then return true end
                            task.wait(0.1)
                        end
                        return false
                    end
                    
                    local function lootByKeyword(keyword)
                        local loot = {}
                        for _, obj in pairs(House:GetDescendants()) do
                            if obj:IsA("Model") or obj:IsA("Part") or obj:IsA("MeshPart") then
                                if obj.Name:lower():find(keyword:lower()) then
                                    local prompt = findPrompt(obj)
                                    if prompt then
                                        table.insert(loot, {
                                            model = obj,
                                            prompt = prompt,
                                            looted = false
                                        })
                                    end
                                end
                            end
                        end
                        return loot
                    end
                    
                    teleport(Vector3.new(222, 320, 1373))
                    task.wait(WAIT_AFTER_TP)
                    
                    breakDoor("KickDoor1")
                    if not waitForChildNamed("KickDoor1_Broken", 10) then return end
                    
                    local cash = lootByKeyword("cash")
                    if #cash == 0 then
                        cash = lootByKeyword("money")
                    end
                    
                    for _, item in pairs(cash) do
                        if not Toggles.AutoHouseRobbery.Value then break end
                        if not item.looted then
                            teleport(item.model.Position)
                            task.wait(0.15)
                            if spamPrompt(item.prompt) then
                                item.looted = true
                            end
                            task.wait(0.25)
                        end
                    end
                    
                    if House:FindFirstChild("KickDoor1_Broken") then
                        local door2Model = nil
                        for _, obj in pairs(House:GetDescendants()) do
                            if obj.Name:lower():find("kickdoor2") then
                                door2Model = obj
                                break
                            end
                        end
                        
                        if door2Model then
                            teleport(door2Model.Position)
                            task.wait(WAIT_AFTER_TP)
                            breakDoor("KickDoor2")
                        end
                    end
                    
                    if not waitForChildNamed("KickDoor2_Broken", 10) then return end
                    
                    local function lootItems(keyword)
                        local items = lootByKeyword(keyword)
                        for _, item in pairs(items) do
                            if not Toggles.AutoHouseRobbery.Value then break end
                            if not item.looted then
                                teleport(item.model.Position)
                                task.wait(0.15)
                                if spamPrompt(item.prompt) then
                                    item.looted = true
                                end
                                task.wait(0.25)
                            end
                        end
                    end
                    
                    lootItems("duffle")
                    lootItems("box")
                    lootItems("crate")
                    
                    teleport(Vector3.new(192.491028, 316.25, 942.423828))
                end)
            end
        })

        

        MoneySection:Label({wrapped = true, name = "Need 50+ Strength For House Farm."})

        MoneySection:Button({
            Name = "Rollback Dupe",
            Callback = function()
                local LocalPlayer = game:GetService("Players").LocalPlayer

                LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("MainGUI"):WaitForChild("clinicFrame"):WaitForChild("textboxEntry"):FireServer("How \237\190\140")

                replicatesignal(LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("MainGUI"):WaitForChild("clinicFrame").firstNameButton.MouseButton1Down, 1, 1)
            end
        })
        MoneySection:Button({
            Name = "Rejoin Server",
            Callback = function()
                game:GetService("TeleportService"):Teleport(game.PlaceId, game.Players.LocalPlayer)
            end
        })

        MoneySection:Label({wrapped = true, name = "Need Custom Name Gamepass."})
        MoneySection:Label({wrapped = true, name = "Need $2,500."})
        MoneySection:Label({wrapped = true, name = "Click Rollback To Start."})
        MoneySection:Label({wrapped = true, name = "Spend/Drop Money Freely."})
        MoneySection:Label({wrapped = true, name = "Rejoin To Reset Everything."})

        MoneySection:Button({
            Name = "Counter Dupe",
            Callback = function()
                local Players = game:GetService('Players')
                local LocalPlayer = Players.LocalPlayer
                local PlayerName = LocalPlayer.Name

                local function findPlayerOwnedPrompts()
                    local prompts = {}

                    for _, machine in ipairs(workspace.MoneyCounterMachines:GetChildren()) do
                        if machine.Name:find(PlayerName) then
                            local base = machine:FindFirstChild('Base')
                            if base then
                                local interact = base:FindFirstChild('Interact')
                                if interact then
                                    local prompt = interact:FindFirstChild('Interaction')
                                    if prompt and prompt:IsA('ProximityPrompt') then
                                        prompt.Exclusivity = Enum.ProximityPromptExclusivity.AlwaysShow
                                        table.insert(prompts, prompt)
                                    end
                                end
                            end
                        end
                    end

                    return prompts
                end

                local validPrompts = findPlayerOwnedPrompts()
                if #validPrompts < 2 then
                    return
                end

                local prompt1, prompt2 = validPrompts[1], validPrompts[2]

                for i = 1, 1 do
                    task.spawn(function()
                        prompt1:InputHoldBegin()
                        prompt2:InputHoldBegin()
                        prompt1:InputHoldEnd()
                        prompt2:InputHoldEnd()
                    end)
                end
            end
        }) 

        MoneySection:Label({wrapped = true, name = "Must Have 2 Money Counters Placed."})
        MoneySection:Label({wrapped = true, name = "Stand Infront Of Them."})
        MoneySection:Label({wrapped = true, name = "And Click The Button."})
        MoneySection:Label({wrapped = true, name = "This Only Doubles The Dirty."})
        MoneySection:Label({wrapped = true, name = "Money You Put In."})
    end

    do -- \\ Notifications Section
        local spams = MainPage:Section({name = "Notifications", side = "Right"})
        local spamNotificationEnabled = false
        local spamMessage = "Scorpio Hub"
        local spamCount = 1
        local spamDelay = 0.1
        local spamDuration = 999999

        spams:Textbox({
            Name = "Notification Message",
            Flag = "SpamMessageInput",
            Placeholder = "Enter message",
            Text = spamMessage,
            Callback = function(value)
                spamMessage = tostring(value)
            end
        })

        spams:Slider({
            Name = "Spam Count",
            Flag = "SpamCountSlider",
            Min = 1,
            Max = 60,
            Value = spamCount,
            Callback = function(value)
                spamCount = value
            end
        })

        spams:Slider({
            Name = "Spam Delay(s)",
            Flag = "SpamDelaySlider",
            Min = 0.01,
            Max = 5,
            Value = spamDelay,
            Callback = function(value)
                spamDelay = value
            end
        })

        spams:Slider({
            Name = "Message Duration(s)",
            Flag = "SpamDurationSlider",
            Min = 1,
            Max = 60,
            Value = 30,
            Callback = function(value)
                spamDuration = value
            end
        })

        spams:Toggle({
            Name = "Spam Notifications",
            Flag = "SpamNotificationToggle",
            Value = false,
            Callback = function(state)
                spamNotificationEnabled = state

                if state then
                    task.spawn(function()
                        local Event = game:GetService("ReplicatedStorage"):WaitForChild("notificationFunction")
                        for i = 1, spamCount do
                            if not spamNotificationEnabled then break end
                            pcall(function()
                                firesignal(Event.OnClientEvent, spamMessage or "Scorpio Hub", Color3.fromRGB(42, 208, 255), spamDuration)
                            end)
                            task.wait(spamDelay)
                        end
                        spamNotificationEnabled = false
                        Toggles.SpamNotificationToggle:Set(false) 
                    end)
                end
            end
        })
    end

    do -- \\ Exploits Section
        local Exploits = MiscPage:Section({name = "Account Exploits", side = "left"})

        local Config = {
            FirstName = "",
            LastName = ""
        }

        Exploits:Textbox({
            Name = "First Name",
            Flag = "FirstNameInput",
            Placeholder = "Enter First Name",
            Text = "",
            Callback = function(text)
                Config.FirstName = text
            end
        })

        Exploits:Textbox({
            Name = "Last Name",
            Flag = "LastNameInput",
            Placeholder = "Enter Last Name",
            Text = "",
            Callback = function(text)
                Config.LastName = text
            end
        })

        Exploits:Button({
            Name = "Force Reset Player",
            Callback = function()
                local TeleportService = game:GetService("TeleportService")
                local PLACE_ID = 101606818845121
                TeleportService:Teleport(PLACE_ID, LocalPlayer)
            end
        })

        Exploits:Button({
            Name = "Set Names",
            Callback = function()
                for _, v in ipairs(getgc(true)) do
                    if typeof(v) == "function" and debug.getinfo(v).name == "changedAttribute" then
                        local UpValue = debug.getupvalues(v)[1]
                        if typeof(upValue) == "table" then
                            UpValue.stamina = 120
                            UpValue.strength = 120
                            UpValue.smarts = 120
                            UpValue.stress = 0
                            UpValue.FirstName = Config.FirstName ~= "" and Config.FirstName or "Aaron"
                            UpValue.LastName = Config.LastName ~= "" and Config.LastName or "Adams"
                            table.freeze(UpValue)
                            break
                        end
                    end
                end
            end
        })

        Exploits:Button({
            Name = "Perm Hide Name",
            Callback = function()
                local CreationRemote = LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("CreationGUI"):WaitForChild("sendData")

                if not hookmetamethod then
                    return
                end

                local OldNamecall
                OldNamecall = hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
                    local method = getnamecallmethod()
                    local args = { ... }

                    if self == CreationRemote and method == "FireServer" then
                        if typeof(args[1]) == "table" then
                            local NewPayload = table.clone(args[1])

                            if NewPayload.AbilitiesData then
                                NewPayload.AbilitiesData.Smarts = 120
                                NewPayload.AbilitiesData.Strength = 120
                                NewPayload.AbilitiesData.Stamina = 120
                            end

                            if NewPayload.AppearanceData then
                                NewPayload.AppearanceData.FirstName = nil
                                NewPayload.AppearanceData.LastName = nil
                            end

                            return OldNamecall(self, NewPayload, select(2, ...))
                        end
                    end

                    return OldNamecall(self, ...)
                end))
            end
        })
    end

    do -- \\ Gun Adjustments Section
        local GunAdjustmentsSection = MiscPage:Section({Name = "Gun Adjustments", Side = "right"})

        local OriginalSettings = {}

        local function getAllGunSettings()
            local guns = {}

            local function scan(container)
                for _, item in ipairs(container:GetChildren()) do
                    if item:IsA("Tool") and item:FindFirstChild("Settings") and item.Settings:IsA("ModuleScript") then
                        table.insert(guns, item.Settings)
                    end
                end
            end

            scan(LocalPlayer.Backpack)
            if LocalPlayer.Character then
                scan(LocalPlayer.Character)
            end

            return guns
        end

        local function cacheOriginal(gunSettings, moduleId)
            if OriginalSettings[moduleId] then return end
            OriginalSettings[moduleId] = {
                jamChance = gunSettings.jamChance,
                spread = gunSettings.spread,
                semiCooldown = gunSettings.semiCooldown,
                autoCooldown = gunSettings.autoCooldown,
                fireMode = gunSettings.fireMode,
                projectiles = gunSettings.projectiles,
            }
        end

        local function applyMod(callback)
            for _, mod in ipairs(getAllGunSettings()) do
                local success, gunSettings = pcall(require, mod)
                if success and type(gunSettings) == "table" then
                    cacheOriginal(gunSettings, mod:GetDebugId())
                    callback(gunSettings)
                end
            end
        end

        GunAdjustmentsSection:Toggle({
            name = "No Jam",
            flag = "NoJam",
            default = false,
            Callback = function(state)
                if state then
                    applyMod(function(gun) gun.jamChance = 0 end)
                else
                    for _, mod in ipairs(getAllGunSettings()) do
                        local success, gunSettings = pcall(require, mod)
                        local backup = OriginalSettings[mod:GetDebugId()]
                        if success and type(gunSettings) == "table" and backup then
                            gunSettings.jamChance = backup.jamChance
                        end
                    end
                end
            end
        })

        GunAdjustmentsSection:Toggle({
            name = "No Spread",
            flag = "NoSpread", 
            default = false,
            Callback = function(state)
                if state then
                    applyMod(function(gun) gun.spread = 0 end)
                else
                    for _, mod in ipairs(getAllGunSettings()) do
                        local success, gunSettings = pcall(require, mod)
                        local backup = OriginalSettings[mod:GetDebugId()]
                        if success and type(gunSettings) == "table" and backup then
                            gunSettings.spread = backup.spread
                        end
                    end
                end
            end
        })

        GunAdjustmentsSection:Toggle({
            name = "Full Auto",
            flag = "FullAuto",
            default = false,
            Callback = function(state)
                if state then
                    applyMod(function(gun)
                        if gun.fireMode == "semi" then
                            gun.fireMode = "auto"
                            gun.autoCooldown = 0.05
                        end
                    end)
                else
                    for _, mod in ipairs(getAllGunSettings()) do
                        local success, gunSettings = pcall(require, mod)
                        local backup = OriginalSettings[mod:GetDebugId()]
                        if success and type(gunSettings) == "table" and backup then
                            gunSettings.fireMode = backup.fireMode
                            gunSettings.autoCooldown = backup.autoCooldown
                        end
                    end
                end
            end
        })
    end

    do -- \\ Purchase Item Section
        local PurchaseItemSection = MiscPage:Section({Name = "Purchase Item", Side = "right"})

        local SelectedToolPart
        local PurchaseAmount = 1
        local toolInteractionNames = {}
        local originalPosition 

        local toolInteractionsFolder = workspace.Interactions.toolInteractions
        
        for _, item in pairs(toolInteractionsFolder:GetChildren()) do
            if item.Name ~= "handler" then
                table.insert(toolInteractionNames, item.Name)
            end
        end
        table.sort(toolInteractionNames)

        PurchaseItemSection:Dropdown({
            name = "Select Item to Purchase",
            flag = "ToolItemDropdown",
            Options = toolInteractionNames,
            default = nil,
            Callback = function(Value)
                SelectedToolPart = Value
            end
        })

        PurchaseItemSection:Slider({
            name = "Purchase Amount",
            flag = "PurchaseAmount",
            min = 1,
            max = 10,
            default = 1,
            Callback = function(value)
                PurchaseAmount = value
            end
        })

        PurchaseItemSection:Button({
            name = "Purchase Selected Item",
            Callback = function()
                if SelectedToolPart then
                    local player = game.Players.LocalPlayer
                    if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
                        if not originalPosition then
                            originalPosition = player.Character.HumanoidRootPart.Position
                        end
                    end
                    
                    for i = 1, PurchaseAmount do
                        teleport(Vector3.new(-446, 317, 790))
                        task.wait(0.5)
                        
                        local toolPart = workspace.Interactions.toolInteractions:FindFirstChild(SelectedToolPart)
                        
                        if toolPart then
                            teleport(toolPart.Position)
                            
                            task.wait(1)
                            
                            if toolPart:FindFirstChild("Interaction") then
                                toolPart.Interaction:FireServer()
                            end
                            
                            task.wait(1.5)
                            
                            if originalPosition then
                                teleport(originalPosition)
                            end
                        end
                        
                        if i < PurchaseAmount then
                            task.wait(0.5)
                        end
                    end
                end
            end
        })
    end

    do -- \\ Teleport Section
        local TeleportSection = MiscPage:Section({Name = "Teleport", Side = "right"})

        local SelectedLocation

        local locationNames = {}
        for locationName, _ in pairs(TeleportLocations) do
            table.insert(locationNames, locationName)
        end
        table.sort(locationNames)

        local LocationDropdown = TeleportSection:Dropdown({
            name = "Select Location",
            flag = "LocationDropdown",
            items = locationNames,
            default = nil,
            Callback = function(Value)
                SelectedLocation = Value
            end
        })

        TeleportSection:Button({
            name = "Teleport To Selected Location",
            Callback = function()
                if SelectedLocation and TeleportLocations[SelectedLocation] then
                    teleport(TeleportLocations[SelectedLocation])
                end
            end
        })
    end
end
end

if not Solara then
    local SilentAimTab = window:Tab({name = "Silent Aim", tabs = {"General Settings"}, icon = GetImage("Aimlock.png")}) do
    local GeneralSection = SilentAimTab:Section({name = "General", side = "left" })

    GeneralSection:Toggle({type = "toggle", name = "Enabled", flag = "SilentAim_Enabled", default = false, callback = function(state)
        Config.Silent.Enabled = state
    end}):Keybind({name = "Keybind", flag = "SilentAim_Bind", mode = "Always", callback = function(state)
        Config.Silent.Targetting = state
    end})

    local SettingsSection = SilentAimTab:Section({name = "Settings", side = "left", size = 0.455, icon = GetImage("Settings.png")})

    SettingsSection:Toggle({name = "Visible Check", flag = "SilentAim_Wallcheck", type = "toggle", default = false, callback = function(state)
        Config.Silent.WallCheck = state
    end})

    local BodyParts = {}

    local RigType = "R15"

    if LocalPlayer.Character then
        RigType = LocalPlayer.Character:WaitForChild("Humanoid").RigType.Name
    else
        LocalPlayer.CharacterAdded:Wait()

        RigType = LocalPlayer.Character:WaitForChild("Humanoid").RigType.Name
    end

    BodyParts = (RigType == "R6") and {
        "Head",
        "Torso",
        "Left Arm",
        "Right Arm",
        "Left Leg",
        "Right Leg",
        "HumanoidRootPart"
    } or (RigType == "R15") and {
        "Head",
        "UpperTorso",
        "LowerTorso",
        "LeftUpperArm",
        "LeftLowerArm",
        "RightUpperArm",
        "RightLowerArm",
        "LeftUpperLeg",
        "LeftLowerLeg",
        "RightUpperLeg",
        "RightLowerLeg",
        "HumanoidRootPart"
    } or {}

    SettingsSection:Dropdown({name = "Target Parts", flag = "Silent_TargetPart", width = 110, items = BodyParts, seperator = false, multi = true, default = {'Head'}, callback = function(state)
        table.clear(Config.Silent.TargetPart)
        
        for Index, Value in state do
            table.insert(Config.Silent.TargetPart, Value)
        end
    end})

    SettingsSection:Slider({name = "Max Distance", flag = "MaxDistance_Silent", min = 0, max = (Game_Name == "South Bronx") and 300 or 3000, default = (Game_Name == "South Bronx") and 300 or 1000, suffix = "st", callback = function(state)
        Config.Silent.MaxDistance = state
    end})

    SettingsSection:Slider({name = "Hit Chance", flag = "SilentAim_HitChance", min = 0, max = 100, default = 100, suffix = "%", callback = function(state)
        Config.Silent.HitChance = state
    end})

    local FieldOfViewSection = SilentAimTab:Section({name = "Field Of View", side = "right", size = 0.23, icon = GetImage("FieldOfView2.png")})

    FieldOfViewSection:Toggle({type = "toggle", name = "Enabled", flag = "SilentAim_Usefov", default = false, callback = function(state)
        Config.Silent.UseFieldOfView = state
    end})

    FieldOfViewSection:Toggle({type = "toggle", name = "Draw Circle", flag = "SilentAim_DrawCircle", default = false, callback = function(state)
        Config.Silent.DrawFieldOfView = state
    end}):Colorpicker({flag = "SilentAim_FOVColor", default = Color3.new(1,1,1), alpha = 0.25, callback = function(state, alpha)
        Config.Silent.FieldOfViewColor = state
        Config.Silent.FieldOfViewTransparency = 1 - alpha
    end})

    local FieldOfViewSettingsSection = SilentAimTab:Section({name = "Field Of View Settings", side = "right", size = 0.3, icon = GetImage("Settings.png")})

    FieldOfViewSettingsSection:Slider({name = "Radius", flag = "SilentAim_Radius", min = 0, max = 1000, default = 100, suffix = "°", callback = function(state)
        Config.Silent.Radius = state
    end})

    FieldOfViewSettingsSection:Slider({name = "Sides", flag = "SilentAim_Sides", min = 3, max = 100, default = 25, suffix = "°", callback = function(state)
        Config.Silent.Sides = state
    end})

    local SnaplineSection = SilentAimTab:Section({name = "Snapline", side = "right", size = 0.275, icon = GetImage("Snapline.png")})

    SnaplineSection:Toggle({type = "toggle", name = "Enabled", flag = "SilentAim_Snapline", default = false, callback = function(state)
        Config.Silent.Snapline = state
    end}):Colorpicker({flag = "SilentAim_SnaplineColor", default = Color3.new(1,1,1), alpha = 1, callback = function(state, alpha)
        Config.Silent.SnaplineColor = state
    end})

    SnaplineSection:Slider({name = "Snapline Thickness", flag = "SilentAim_SnaplineThickness", min = 1, max = 5, default = 1, callback = function(state)
        Config.Silent.SnaplineThickness = state
    end})
end
end

    local AimlockTab = window:Tab({name = "Aimlock", tabs = {"General Settings"}, icon = GetImage("Aimlock.png")})
    local GeneralSection = AimlockTab:Section({name = "General", side = "left", size = 0.23, icon = GetImage("UZI.png")})

    GeneralSection:Toggle({type = "toggle", name = "Enabled", flag = "AimlockAim_Enabled", default = false, callback = function(state)
        Config.Aimlock.Enabled = state
    end}):Keybind({name = "Keybind", flag = "AimlockAim_Bind", mode = "Toggle", callback = function(state)
        Config.Aimlock.Aiming = state
        TargetTable[1] = nil
    end})

    local SettingsSection = AimlockTab:Section({name = "Settings", side = "left", size = 0.51, icon = GetImage("Settings.png")})

    SettingsSection:Toggle({name = "Visible Check", flag = "AimlockAim_Wallcheck", type = "toggle", default = false, callback = function(state)
        Config.Aimlock.WallCheck = state
    end})

    local BodyParts = {}

    local RigType = "R15"

    if LocalPlayer.Character then
        RigType = LocalPlayer.Character:WaitForChild("Humanoid").RigType.Name
    else
        LocalPlayer.CharacterAdded:Wait()

        RigType = LocalPlayer.Character:WaitForChild("Humanoid").RigType.Name
    end

    BodyParts = (RigType == "R6") and {
        "Head",
        "Torso",
        "Left Arm",
        "Right Arm",
        "Left Leg",
        "Right Leg",
        "HumanoidRootPart"
    } or (RigType == "R15") and {
        "Head",
        "UpperTorso",
        "LowerTorso",
        "LeftUpperArm",
        "LeftLowerArm",
        "RightUpperArm",
        "RightLowerArm",
        "LeftUpperLeg",
        "LeftLowerLeg",
        "RightUpperLeg",
        "RightLowerLeg",
        "HumanoidRootPart"
    } or {}

    SettingsSection:Dropdown({name = "Aimlock Type", flag = "Aimlock_AimType", width = 110, items = {'Camera', 'Mouse'}, seperator = false, multi = false, default = 'Mouse', callback = function(state)
        Config.Aimlock.Type = state
    end})

    SettingsSection:Dropdown({name = "Target Parts", flag = "Aimlock_TargetPart", width = 110, items = BodyParts, seperator = false, multi = false, default = 'Head', callback = function(state)
        Config.Aimlock.TargetPart = state
    end})

    SettingsSection:Slider({name = "Max Distance", flag = "MaxDistance_Aimlock", min = 0, max = 3000, default = ((Game_Name == "South Bronx") and 300 or 1000), suffix = "st", callback = function(state)
        Config.Aimlock.MaxDistance = state
    end})

    SettingsSection:Slider({name = "Smoothness", flag = "MaxDistance_Smoothness", min = 0, max = 100, default = 10, suffix = "%", callback = function(state)
        Config.Aimlock.Smoothness = state/10
    end})

    local FieldOfViewSection = AimlockTab:Section({name = "Field Of View", side = "right", size = 0.23, icon = GetImage("FieldOfView2.png")})

    FieldOfViewSection:Toggle({type = "toggle", name = "Enabled", flag = "AimlockAim_Usefov", default = false, callback = function(state)
        Config.Aimlock.UseFieldOfView = state
    end})

    FieldOfViewSection:Toggle({type = "toggle", name = "Draw Circle", flag = "AimlockAim_DrawCircle", default = false, callback = function(state)
        Config.Aimlock.DrawFieldOfView = state
    end}):Colorpicker({flag = "AimlockAim_FOVColor", default = Color3.new(1,1,1), alpha = 0.25, callback = function(state, alpha)
        Config.Aimlock.FieldOfViewColor = state
        Config.Aimlock.FieldOfViewTransparency = 1 - alpha
    end})

    local FieldOfViewSettingsSection = AimlockTab:Section({name = "Field Of View Settings", side = "right", size = 0.3, icon = GetImage("Settings.png")})

    FieldOfViewSettingsSection:Slider({name = "Radius", flag = "AimlockAim_Radius", min = 0, max = 1000, default = 100, suffix = "°", callback = function(state)
        Config.Aimlock.Radius = state
    end})

    FieldOfViewSettingsSection:Slider({name = "Sides", flag = "AimlockAim_Sides", min = 3, max = 100, default = 25, suffix = "°", callback = function(state)
        Config.Aimlock.Sides = state
    end})

    local SnaplineSection = AimlockTab:Section({name = "Snapline", side = "right", size = 0.275, icon = GetImage("Snapline.png")})

    SnaplineSection:Toggle({type = "toggle", name = "Enabled", flag = "AimlockAim_Snapline", default = false, callback = function(state)
        Config.Aimlock.Snapline = state
    end}):Colorpicker({flag = "AimlockAim_SnaplineColor", default = Color3.new(1,1,1), alpha = 1, callback = function(state, alpha)
        Config.Aimlock.SnaplineColor = state
    end})

    SnaplineSection:Slider({name = "Snapline Thickness", flag = "AimlockAim_SnaplineThickness", min = 1, max = 5, default = 1, callback = function(state)
        Config.Aimlock.SnaplineThickness = state
    end})

local Visuals = window:Tab({name = "Visuals", tabs = {"Players"}, icon = GetImage("ESP.png")})

local Main1Group = Visuals:Section({name = "Enable ESP", side = "Left"})
local BoxGroup = Visuals:Section({name = "Box ESP", side = "Left"})
local MainGroup = Visuals:Section({name = "ESP Settings", side = "Right"})
local HealthGroup = Visuals:Section({name = "Healthbar ESP", side = "Left"})
local ChamsGroup = Visuals:Section({name = "Cham ESP", side = "Right"})
local DistanceGroup = Visuals:Section({name = "Extra ESP", side = "Left"})

Main1Group:Toggle({
    Name = "Enable ESP",
    Flag = "ESPEnabled",
    Value = false,
    Callback = function(Value)
        Config.ESP.Enabled = Value
        RefreshAllElements()
    end
})

BoxGroup:Toggle({
    Name = "Corner Frame ESP",
    Flag = "CornerBoxes",
    Value = false,
    Callback = function(Value)
        Config.ESP.Drawing.Boxes.Corner.Enabled = Value
        RefreshAllElements()
    end
})

BoxGroup:Toggle({
    Name = "Box ESP",
    Flag = "BoundingBoxes",
    Value = false,
    Callback = function(Value)
        Config.ESP.Drawing.Boxes.Bounding.Enabled = Value
        RefreshAllElements()
    end
})

MainGroup:Toggle({
    Name = "Distance",
    Flag = "DistanceEnabled",
    Value = false,
    Callback = function(Value)
        Config.ESP.Drawing.Distances.Enabled = Value
        RefreshAllElements()
    end
}):Colorpicker({
    Flag = "DistanceColor",
    Color = Color3.fromRGB(255, 255, 255),
    Callback = function(state)
        Config.ESP.Drawing.Distances.RGB = state
        RefreshAllElements()
    end
})

MainGroup:Slider({
    Name = "Max Distance",
    Flag = "MaxDistance",
    Min = 1100,
    Max = 2000,
    Value = 500,
    Callback = function(Value)
        Config.ESP.MaxDistance = Value
    end
})

HealthGroup:Toggle({
    Name = "Health Bar",
    Flag = "HealthbarEnabled",
    Value = false,
    Callback = function(Value)
        Config.ESP.Drawing.Healthbar.Enabled = Value
        RefreshAllElements()
    end
})

HealthGroup:Toggle({
    Name = "Health Text",
    Flag = "HealthText",
    Value = false,
    Callback = function(Value)
        Config.ESP.Drawing.Healthbar.HealthText = Value
        RefreshAllElements()
    end
})

HealthGroup:Toggle({
    Name = "Lerp Health Color",
    Flag = "HealthLerp",
    Value = false,
    Callback = function(Value)
        Config.ESP.Drawing.Healthbar.Lerp = Value
        RefreshAllElements()
    end
})

HealthGroup:Toggle({
    Name = "Gradient Health",
    Flag = "HealthGradient",
    Value = false,
    Callback = function(Value)
        Config.ESP.Drawing.Healthbar.Gradient = Value
        RefreshAllElements()
    end
}):Colorpicker({
    Flag = "HealthLow",
    Color = Color3.fromRGB(255, 0, 0),
    Callback = function(state)
        Config.ESP.Drawing.Healthbar.GradientRGB1 = state
        RefreshAllElements()
    end
}):Colorpicker({
    Flag = "HealthHigh",
    Color = Color3.fromRGB(0, 255, 0),
    Callback = function(state)
        Config.ESP.Drawing.Healthbar.GradientRGB2 = state
        RefreshAllElements()
    end
})

ChamsGroup:Toggle({
    Name = "Chams",
    Flag = "ChamsEnabled",
    Value = false,
    Callback = function(Value)
        Config.ESP.Drawing.Chams.Enabled = Value
        RefreshAllElements()
    end
}):Colorpicker({
    Flag = "ChamsFill",
    Color = Color3.fromRGB(119, 120, 255),
    Callback = function(state)
        Config.ESP.Drawing.Chams.FillRGB = state
        RefreshAllElements()
    end
}):Colorpicker({
    Flag = "ChamsOutline",
    Color = Color3.fromRGB(0, 0, 0),
    Callback = function(state)
        Config.ESP.Drawing.Chams.OutlineRGB = state
        RefreshAllElements()
    end
})

ChamsGroup:Toggle({
    Name = "Thermal Effect",
    Flag = "ChamsThermal",
    Value = false,
    Callback = function(Value)
        Config.ESP.Drawing.Chams.Thermal = Value
        RefreshAllElements()
    end
})

ChamsGroup:Toggle({
    Name = "Visible Check",
    Flag = "ChamsVisibleCheck",
    Value = false,
    Callback = function(Value)
        Config.ESP.Drawing.Chams.VisibleCheck = Value
        RefreshAllElements()
    end
})

ChamsGroup:Slider({
    Name = "Fill Transparency",
    Flag = "ChamsFillTransparency",
    Min = 0,
    Max = 100,
    Value = 80,
    Callback = function(Value)
        Config.ESP.Drawing.Chams.Fill_Transparency = Value
        RefreshAllElements()
    end
})

ChamsGroup:Slider({
    Name = "Outline Transparency",
    Flag = "ChamsOutlineTransparency",
    Min = 0,
    Max = 100,
    Value = 80,
    Callback = function(Value)
        Config.ESP.Drawing.Chams.Outline_Transparency = Value
        RefreshAllElements()
    end
})

DistanceGroup:Toggle({
    Name = "Weapons",
    Flag = "WeaponsEnabled",
    Value = false,
    Callback = function(Value)
        Config.ESP.Drawing.Weapons.Enabled = Value
        RefreshAllElements()
    end
}):Colorpicker({
    Flag = "WeaponColor",
    Color = Color3.fromRGB(119, 120, 255),
    Callback = function(state)
        Config.ESP.Drawing.Weapons.WeaponTextRGB = state
        RefreshAllElements()
    end
})

DistanceGroup:Toggle({
    Name = "Player Names",
    Flag = "NamesEnabled",
    Value = false,
    Callback = function(Value)
        Config.ESP.Drawing.Names.Enabled = Value
        RefreshAllElements()
    end
}):Colorpicker({
    Flag = "NameColor",
    Color = Color3.fromRGB(255, 255, 255),
    Callback = function(state)
        Config.ESP.Drawing.Names.RGB = state
        RefreshAllElements()
    end
})

DistanceGroup:Slider({
    Name = "Font Size",
    Flag = "FontSize",
    Min = 8,
    Max = 24,
    Value = 12,
    Callback = function(Value)
        Config.ESP.FontSize = Value
        RefreshAllElements()
    end
})

local WorldSection = Visuals:Section({Name = "World Visuals", Side = "Right"})

local currentAmbientColor = Color3.fromRGB(113, 113, 255)
local isAmbientColorEnabled = false

WorldSection:Toggle({
    Name = "Enable Ambient Color",
    Flag = "EnableAmbientColor",
    Value = false,
    Callback = function(Value)
        isAmbientColorEnabled = Value
        Lighting.Ambient = Value and currentAmbientColor or Color3.fromRGB(127, 127, 127)
    end
}):Colorpicker({
    Flag = "AmbientColorPicker",
    Color = currentAmbientColor,
    Callback = function(state)
        currentAmbientColor = state
        if isAmbientColorEnabled then
            Lighting.Ambient = state
        end
    end
})

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

local currentSaturation = 100
local isSaturationEnabled = false

WorldSection:Toggle({
    Name = "Saturation",
    Flag = "Saturation",
    Value = false,
    Callback = function(Value)
        isSaturationEnabled = Value
        colorCorrection.Saturation = Value and currentSaturation / 100 or 0
    end
})

WorldSection:Slider({
    Name = "Saturation Amount",
    Flag = "SaturationLevel",
    Min = 0,
    Max = 200,
    Value = 100,
    Callback = function(Value)
        currentSaturation = Value
        if isSaturationEnabled then
            colorCorrection.Saturation = Value / 100
        end
    end
})

Library:Configs(window)

Embed on website

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