local RunService = game:GetService("RunService")
if NULLZEN_LOADED and not _G.NULLZEN_DEBUG == true then return end pcall(function() getgenv().NULLZEN_LOADED = true end)
local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
local requestz = (syn and syn.request) or (fluxus and fluxus.request) or (http and http.request) or http_request or request

local Window = Rayfield:CreateWindow({
Name = "JujuHun || Scp Roleplay || v1.71",
Icon = 0,
LoadingTitle = "Loading ...",
LoadingSubtitle = "By Juju",
Theme = {
    Shadow = Color3.fromRGB(- 82.99999999999999, - 58.99999999999997, - 119.99999999999994),
    SliderProgress = Color3.fromRGB(- 162.99999999999997, - 102.99999999999997, - 253.9999999999999),
    PlaceholderColor = Color3.fromRGB(- 177.99999999999994, - 177.99999999999994, - 177.99999999999994),
    InputStroke = Color3.fromRGB(- 55.99999999999998, - 55.99999999999998, - 55.99999999999998),
    ToggleDisabledStroke = Color3.fromRGB(- 124.99999999999994, - 124.99999999999994, - 124.99999999999994),
    InputBackground = Color3.fromRGB(- 22.999999999999993, - 22.999999999999993, - 22.999999999999993),
    ElementBackgroundHover = Color3.fromRGB(- 33, - 33, - 33),
    DropdownUnselected = Color3.fromRGB(- 29.999999999999986, - 29.999999999999986, - 29.999999999999986),
    SelectedTabTextColor = Color3.fromRGB(- 45.999999999999986, - 45.999999999999986, - 45.999999999999986),
    NotificationBackground = Color3.fromRGB(- 19.999999999999996, - 19.999999999999996, - 19.999999999999996),
    DropdownSelected = Color3.fromRGB(- 39.99999999999999, - 39.99999999999999, - 39.99999999999999),
    SecondaryElementStroke = Color3.fromRGB(- 39.99999999999999, - 39.99999999999999, - 39.99999999999999),
    Background = Color3.fromRGB(- 14.999999999999993, - 14.999999999999993, - 14.99999999999993),
    ToggleDisabledOuterStroke = Color3.fromRGB(- 65, - 65, - 65),
    TabStroke = Color3.fromRGB(- 60.99999999999997, - 60.99999999999997, - 60.99999999999997),
    ElementBackground = Color3.fromRGB(- 27.99999999999999, - 27.99999999999999, - 27.99999999999999),
    ToggleEnabledOuterStroke = Color3.fromRGB(- 78.99999999999999, - 78.99999999999999, - 78.99999999999999),
    ToggleEnabled = Color3.fromRGB(- 162.99999999999997, - 102.99999999999997, - 253.9999999999999),
    ToggleEnabledStroke = Color3.fromRGB(- 69, - 69, - 69),
    ToggleDisabled = Color3.fromRGB(- 99.99999999999997, - 99.99999999999997, - 99.99999999999997),
    SecondaryElementBackground = Color3.fromRGB(- 24.999999999999993, - 24.999999999999993, - 24.999999999999993),
    ToggleBackground = Color3.fromRGB(- 22.999999999999993, - 22.999999999999993, - 22.999999999999993),
    TabTextColor = Color3.fromRGB(- 239.9999999999999, - 239.9999999999999, - 239.9999999999999),
    ElementStroke = Color3.fromRGB(- 45.999999999999986, - 45.999999999999986, - 45.999999999999986),
    SliderBackground = Color3.fromRGB(- 22.999999999999993, - 22.999999999999993, - 22.999999999999993),
    SliderStroke = Color3.fromRGB(- 83.99999999999999, - 83.99999999999999, - 83.99999999999999),
    NotificationActionsBackground = Color3.fromRGB(- 229.99999999999991, - 229.99999999999991, - 229.99999999999991),
    Topbar = Color3.fromRGB(- 19.999999999999996, - 19.999999999999996, - 19.999999999999996),
    TabBackground = Color3.fromRGB(- 55.99999999999998, - 55.99999999999998, - 55.99999999999998),
    TabBackgroundSelected = Color3.fromRGB(- 174.99999999999994, - 152.99999999999997, - 254.9999999999999),
    TextColor = Color3.fromRGB(- 239.9999999999999, - 239.9999999999999, - 239.9999999999999),
},
DisableRayfieldPrompts = false,
DisableBuildWarnings = false,
ConfigurationSaving = {
    Enabled = false,
    FolderName = nil,
    FileName = "NullZen Configs"
},
Discord = {
    Enabled = false,
    Invite = "noinvitelink",
    RememberJoins = true
},
KeySystem = false,
KeySettings = {
    Title = "NullZen || Key System || v1.65",
    Subtitle = "discord.gg/WGhq4kBAG3",
    Note = "Link to get key copied to clipboard",
    FileName = "Key",
    SaveKey = false,
    GrabKeyFromSite = false,
    Key = ""
}
})

local Main = Window:CreateTab("Home","home")
local Section = Main:CreateSection("Options")

local AntiAfkToggle = Main:CreateToggle({
    Name = "Anti AFK",
    CurrentValue = false,
    Flag = "AntiAfkToggle",
    Callback = function(Value)
        local vu = game:GetService("VirtualUser")
        game:GetService("Players").LocalPlayer.Idled:connect(function()
            vu:Button2Down(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
            wait(1)
            vu:Button2Up(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
        end)
    end,
})

local FullBrightToggle = Main:CreateToggle({
    Name = "FullBright",
    CurrentValue = false,
    Flag = "FullBrightToggle", 
    Callback = function(Value)
            if Value then
                game:GetService("Lighting").Ambient = Color3.new(1.49, 1.49, 1.49) 
            else
                game:GetService("Lighting").Ambient = Color3.new(0, 0, 0) 
            end
    end,
})

local Noclip = nil
local Clip = nil

local NoclipToggle = Main:CreateToggle({
    Name = "Noclip",
    CurrentValue = false,
    Flag = "NoclipToggle",
    Callback = function(Value)
        if Value then
            Clip = false
            local function Nocl()
                if not Clip and game.Players.LocalPlayer.Character then
                    for _, v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
                        if v:IsA('BasePart') and v.CanCollide and v.Name ~= floatName then
                            v.CanCollide = false
                        end
                    end
                end
                wait(0.21)
            end
            Noclip = game:GetService('RunService').Stepped:Connect(Nocl)
        else
            if Noclip then
                Noclip:Disconnect()
            end
            Clip = true
        end
    end,
})

local isenabled = false

local AntiVoidToggle = Main:CreateToggle({
Name = "Anti Void",
CurrentValue = false,
Flag = "AntiVoidToggle", 
Callback = function(Value)
    isenabled = Value

    if Value then
        local player = game.Players.LocalPlayer
        local checkInterval = 0.1
        local partSize = Vector3.new(4, 1, 4)
        local partColor = Color3.new(1, 0, 0)
        local spawnedParts = {}
        local debounce = 0
        local heartbeatConnection

        player.CharacterAdded:Connect(function(character)
            local humanoidRootPart = character:WaitForChild("HumanoidRootPart")

            if heartbeatConnection then
                heartbeatConnection:Disconnect()
            end

            heartbeatConnection = game:GetService("RunService").Heartbeat:Connect(function(deltaTime)
                debounce = debounce + deltaTime
                if debounce >= checkInterval then
                    debounce = 0
                    if isenabled then
                        local ray = Ray.new(humanoidRootPart.Position, Vector3.new(0, -1000, 0))
                        local hitPart, hitPosition = workspace:FindPartOnRay(ray, player.Character)

                        if not hitPart then
                            local part = Instance.new("Part")
                            part.Size = partSize
                            part.Position = humanoidRootPart.Position - Vector3.new(0, partSize.Y / 2 + 1, 0)
                            part.Anchored = true
                            part.CanCollide = true
                            part.BrickColor = BrickColor.new(partColor)
                            part.Transparency = 1
                            part.Parent = workspace
                            table.insert(spawnedParts, part)

                            local isStandingOnPart = false
                            while not isStandingOnPart do
                                wait(0.1)
                                if humanoidRootPart.Position.Y <= part.Position.Y + partSize.Y / 2 then
                                    isStandingOnPart = true
                                end
                            end
                            part:Destroy()
                        end
                    end
                end
            end)
        end)

        if player.Character then
            local humanoidRootPart = player.Character:WaitForChild("HumanoidRootPart")
            if not heartbeatConnection then
                heartbeatConnection = game:GetService("RunService").Heartbeat:Connect(function(deltaTime)
                    debounce = debounce + deltaTime
                    if debounce >= checkInterval then
                        debounce = 0
                        if isenabled then
                            local ray = Ray.new(humanoidRootPart.Position, Vector3.new(0, -1000, 0))
                            local hitPart, hitPosition = workspace:FindPartOnRay(ray, player.Character)

                            if not hitPart then
                                local part = Instance.new("Part")
                                part.Size = partSize
                                part.Position = humanoidRootPart.Position - Vector3.new(0, partSize.Y / 2 + 1, 0)
                                part.Anchored = true
                                part.CanCollide = true
                                part.BrickColor = BrickColor.new(partColor)
                                part.Transparency = 1
                                part.Parent = workspace
                                table.insert(spawnedParts, part)

                                local isStandingOnPart = false
                                while not isStandingOnPart do
                                    wait(0.1)
                                    if humanoidRootPart.Position.Y <= part.Position.Y + partSize.Y / 2 then
                                        isStandingOnPart = true
                                    end
                                end
                                part:Destroy()
                            end
                        end
                    end
                end)
            end
        end

    else
        if heartbeatConnection then
            heartbeatConnection:Disconnect()
        end
    end
end,
})


local speedBoostEnabled = true
local currentBoostAmount = 0
local heartbeatConnection
local runningConnection
local walkSpeedMonitorThread

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

player.CharacterAdded:Connect(function(character)
    local humanoid = character:WaitForChild("Humanoid")

    if heartbeatConnection then
        heartbeatConnection:Disconnect()
    end
    if runningConnection then
        runningConnection:Disconnect()
    end

    local boosting = false

    heartbeatConnection = runService.Heartbeat:Connect(function()
        if boosting and speedBoostEnabled then
            local delta = humanoid.MoveDirection * currentBoostAmount
            character:SetPrimaryPartCFrame(character.PrimaryPart.CFrame + delta)
        end
    end)

    runningConnection = humanoid.Running:Connect(function(speed)
        boosting = humanoid.MoveDirection.Magnitude > 0
    end)
end)

if player.Character then
    local character = player.Character
    local humanoid = character:WaitForChild("Humanoid")

    if heartbeatConnection then
        heartbeatConnection:Disconnect()
    end
    if runningConnection then
        runningConnection:Disconnect()
    end

    local boosting = false

    heartbeatConnection = runService.Heartbeat:Connect(function()
        if boosting and speedBoostEnabled then
            local delta = humanoid.MoveDirection * currentBoostAmount
            character:SetPrimaryPartCFrame(character.PrimaryPart.CFrame + delta)
        end
    end)

    runningConnection = humanoid.Running:Connect(function(speed)
        boosting = humanoid.MoveDirection.Magnitude > 0
    end)
end

local SpeedBoostSliderN = Main:CreateSlider({
    Name = "Speed Boost",
    Range = {0, 0.45},
    Increment = 0.01,
    Suffix = "Boost",
    CurrentValue = 0,
    Flag = "SpeedBoostSlider",
    Callback = function(Value)
        currentBoostAmount = Value

        if player.Character then
            local character = player.Character
            local humanoid = character:FindFirstChild("Humanoid")
            if humanoid then
                if heartbeatConnection then
                    heartbeatConnection:Disconnect()
                end
                if runningConnection then
                    runningConnection:Disconnect()
                end

                local boosting = false

                heartbeatConnection = runService.Heartbeat:Connect(function()
                    if boosting and speedBoostEnabled then
                        local delta = humanoid.MoveDirection * currentBoostAmount
                        character:SetPrimaryPartCFrame(character.PrimaryPart.CFrame + delta)
                    end
                end)

                runningConnection = humanoid.Running:Connect(function(speed)
                    boosting = humanoid.MoveDirection.Magnitude > 0
                end)
            end
        end

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

        if Value > 0.3 then
            walkSpeedMonitorThread = runService.Heartbeat:Connect(function()
                local character = player.Character
                if character and character:FindFirstChild("Humanoid") then
                    character.Humanoid.WalkSpeed = 14
                end
            end)
        end
    end,
})


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

Main:CreateToggle({
    Name = "Show Full Chat",
    CurrentValue = false,
    Flag = "Toggle1",
    Callback = function(Value)
        game:GetService("TextChatService").ChatWindowConfiguration.Enabled = Value
    end,
})

local ESPEnabledz = false
local ESPBoxes = {}
local ESPHighlights = {}
local NameGuis = {}
local SCPPaths = {
    "workspace.SCPs['SCP-966']",
    "workspace.SCPs['SCP-173']",
    "workspace.SCPs['SCP-049']",
    "workspace.SCPs['SCP-131'].Red",
    "workspace.SCPs['SCP-131'].Yellow",
    "workspace.SCPs['SCP-066']",
    "workspace.SCPs['SCP-457']",
    "workspace.SCPs['SCP-023']",
    "workspace.SCPs['SCP-096']['096']",
    "workspace.SCPs['SCP-002-2']"
}

local SCPESPToggle = Main:CreateToggle({ 
    Name = "SCP ESP",
    CurrentValue = false,
    Flag = "Toggle1",
    Callback = function(Value)
        ESPEnabledz = Value

        if ESPEnabledz then
            spawn(function()
                while ESPEnabledz do
                    for scp, highlight in pairs(ESPHighlights) do
                        if highlight then highlight:Destroy() end
                    end
                    ESPHighlights = {}

                    for scp, gui in pairs(NameGuis) do
                        if gui then gui:Destroy() end
                    end
                    NameGuis = {}

                    for _, path in pairs(SCPPaths) do
                        local scpName = path:match("['](.-)[']") or "Unknown SCP"
                        if scpName == "SCP-002-2" then
                            for _, instance in pairs(workspace.SCPs:GetChildren()) do
                                if instance:IsA("Model") and instance.Name == "SCP-002-2" then
                                    ESPHighlights[instance] = Instance.new("Highlight")
                                    ESPHighlights[instance].Name = scpName .. "Highlight"
                                    ESPHighlights[instance].Parent = instance
                                    ESPHighlights[instance].Adornee = instance
                                    ESPHighlights[instance].DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
                                    ESPHighlights[instance].FillColor = Color3.new(1, 0, 0)
                                    ESPHighlights[instance].FillTransparency = 0.5

                                    NameGuis[instance] = Instance.new("BillboardGui")
                                    NameGuis[instance].Name = scpName .. "Name"
                                    NameGuis[instance].Parent = instance
                                    NameGuis[instance].Adornee = instance
                                    NameGuis[instance].Size = UDim2.new(0, 100, 0, 50)
                                    NameGuis[instance].StudsOffset = Vector3.new(0, 5, 0)
                                    NameGuis[instance].AlwaysOnTop = true
                                    NameGuis[instance].LightInfluence = 0

                                    local nameLabel = Instance.new("TextLabel")
                                    nameLabel.Parent = NameGuis[instance]
                                    nameLabel.Size = UDim2.new(1, 0, 1, 0)
                                    nameLabel.BackgroundTransparency = 1
                                    nameLabel.Text = scpName
                                    nameLabel.TextColor3 = Color3.new(1, 1, 1)
                                    nameLabel.TextScaled = true
                                    nameLabel.Font = Enum.Font.SourceSansBold
                                end
                            end
                        else
                            local success, scpContainer = pcall(function()
                                return loadstring("return " .. path)()
                            end)
                            if success and scpContainer then
                                local scps = {scpContainer}
                                for _, descendant in pairs(scpContainer:GetDescendants()) do
                                    if descendant:IsA("Model") then
                                        table.insert(scps, descendant)
                                    end
                                end

                                for _, scp in pairs(scps) do
                                    if not ESPHighlights[scp] then
                                        ESPHighlights[scp] = Instance.new("Highlight")
                                        ESPHighlights[scp].Name = scpName .. "Highlight"
                                        ESPHighlights[scp].Parent = scp
                                        ESPHighlights[scp].Adornee = scp
                                        ESPHighlights[scp].DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
                                        ESPHighlights[scp].FillColor = Color3.new(1, 0, 0)
                                        ESPHighlights[scp].FillTransparency = 0.5
                                    end

                                    if not NameGuis[scp] then
                                        NameGuis[scp] = Instance.new("BillboardGui")
                                        NameGuis[scp].Name = scpName .. "Name"
                                        NameGuis[scp].Parent = scp
                                        NameGuis[scp].Adornee = scp
                                        NameGuis[scp].Size = UDim2.new(0, 100, 0, 50)
                                        NameGuis[scp].StudsOffset = Vector3.new(0, 5, 0)
                                        NameGuis[scp].AlwaysOnTop = true
                                        NameGuis[scp].LightInfluence = 0

                                        local nameLabel = Instance.new("TextLabel")
                                        nameLabel.Parent = NameGuis[scp]
                                        nameLabel.Size = UDim2.new(1, 0, 1, 0)
                                        nameLabel.BackgroundTransparency = 1
                                        nameLabel.Text = scpName
                                        nameLabel.TextColor3 = Color3.new(1, 1, 1)
                                        nameLabel.TextScaled = true
                                        nameLabel.Font = Enum.Font.SourceSansBold
                                    end
                                end
                            end
                        end
                    end
                    wait(5)
                end
            end)
        else
            for scp, highlight in pairs(ESPHighlights) do
                if highlight then highlight:Destroy() end
            end
            ESPHighlights = {}

            for scp, gui in pairs(NameGuis) do
                if gui then gui:Destroy() end
            end
            NameGuis = {}
        end
    end,
})

local UserInputService = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local infJumpConnection
local infJumpDebounce = false
local jumpPowerEnforcer

local InfiniteJumpToggle = Main:CreateToggle({
    Name = "Infinite Jump",
    CurrentValue = false,
    Flag = "InfiniteJumpToggle",
    Callback = function(Value)
        if Value then
            if infJumpConnection then infJumpConnection:Disconnect() end
            infJumpDebounce = false
            infJumpConnection = UserInputService.JumpRequest:Connect(function()
                if not infJumpDebounce and player.Character then
                    local humanoid = player.Character:FindFirstChildWhichIsA("Humanoid")
                    if humanoid then
                        infJumpDebounce = true
                        humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
                        task.wait()
                        infJumpDebounce = false
                    end
                end
            end)

            if jumpPowerEnforcer then
                jumpPowerEnforcer:Disconnect()
            end
            jumpPowerEnforcer = RunService.RenderStepped:Connect(function()
                local character = player.Character
                if character then
                    local humanoid = character:FindFirstChildWhichIsA("Humanoid")
                    if humanoid and humanoid.JumpPower ~= 50 then
                        humanoid.JumpPower = 50
                    end
                end
            end)

        else
            if infJumpConnection then
                infJumpConnection:Disconnect()
                infJumpConnection = nil
            end
            infJumpDebounce = false

            if jumpPowerEnforcer then
                jumpPowerEnforcer:Disconnect()
                jumpPowerEnforcer = nil
            end
        end
    end,
})

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

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

local flying = false
local fespeed = 50
local direction = Vector3.zero
local humanoidRootPart

local inputStates = {
    W = false,
    A = false,
    S = false,
    D = false,
    Space = false,
    LeftShift = false
}

player.CharacterAdded:Connect(function(char)
    humanoidRootPart = char:WaitForChild("HumanoidRootPart")
    humanoidRootPart.Anchored = flying
end)

if player.Character then
    humanoidRootPart = player.Character:WaitForChild("HumanoidRootPart")
    humanoidRootPart.Anchored = flying
end

local Toggle = Main:CreateToggle({
Name = "Fly (NON FE)",
CurrentValue = flying,
Flag = "FlightToggle",
Callback = function(value)
    flying = value
    if humanoidRootPart then
        humanoidRootPart.Anchored = flying
    end
end,
})

UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    local key = input.KeyCode.Name
    if inputStates[key] ~= nil then
        inputStates[key] = true
    end
end)

UserInputService.InputEnded:Connect(function(input)
    local key = input.KeyCode.Name
    if inputStates[key] ~= nil then
        inputStates[key] = false
    end
end)

RunService.RenderStepped:Connect(function(deltaTime)
    if flying and humanoidRootPart then
        direction = Vector3.zero
        local cameraCFrame = camera.CFrame
        local lookVector = cameraCFrame.LookVector
        local rightVector = cameraCFrame.RightVector
        local upVector = cameraCFrame.UpVector

        if inputStates.W then
            direction += lookVector
        end
        if inputStates.S then
            direction -= lookVector
        end
        if inputStates.A then
            direction -= rightVector
        end
        if inputStates.D then
            direction += rightVector
        end
        if inputStates.Space then
            direction += upVector
        end
        if inputStates.LeftShift then
            direction -= upVector
        end

        if direction.Magnitude > 0 then
            direction = direction.Unit
            local moveDelta = direction * fespeed * deltaTime
            humanoidRootPart.CFrame = humanoidRootPart.CFrame + moveDelta
        end
    end
end)

local Slider = Main:CreateSlider({
Name = "Flight Speed",
Range = {0, 500},
Increment = 10,
Suffix = "Speed",
CurrentValue = 50,
Flag = "Slider1",
Callback = function(Value)
    fespeed = Value
end,
})


local RagdollToggle = Main:CreateToggle({
    Name = "Ragdoll",
    CurrentValue = false,
    Flag = "Toggle1",
    Callback = function(Value)
        local player = game.Players.LocalPlayer
        local character = player.Character or player.CharacterAdded:Wait()
        local humanoid = character:FindFirstChildOfClass("Humanoid")

        if Value then
            if humanoid then
                humanoid:ChangeState(Enum.HumanoidStateType.Physics)
                for _, part in pairs(character:GetChildren()) do
                    if part:IsA("BasePart") then
                        part.Anchored = false
                        part.CanCollide = true
                    end
                end
            end
        else
            if humanoid then
                humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
                for _, part in pairs(character:GetChildren()) do
                    if part:IsA("BasePart") then
                        part.Anchored = false
                        part.CanCollide = true
                    end
                end
            end
        end
    end,
})

Main:CreateButton({
    Name = "Get Radio",
    Callback = function()
        local player = game.Players.LocalPlayer

        for _, otherPlayer in pairs(game.Players:GetPlayers()) do
            if otherPlayer ~= player then
                local backpack = otherPlayer:FindFirstChild("Backpack")
                if backpack then
                    local radio = backpack:FindFirstChild("Radio")
                    if radio then
                        local clonedRadio = radio:Clone()
                        clonedRadio.Parent = player.Backpack
                        return
                    end
                end
            end
        end
    end,
})

Main:CreateButton({
    Name = "Respawn/Reset",
    Callback = function()
                    local args = {
            {
                "Class - D",
                0,
                0,
                false,
                true
            },
            false,
            false
        }
        game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Spawn"):InvokeServer(unpack(args))
    end,
})

Main:CreateButton({
    Name = "Invisibility",
    Callback = function()
        local plr = game.Players.LocalPlayer
        local chr = plr.Character
        local hum = chr.HumanoidRootPart
        hum.Parent = nil
        hum.Parent = chr
        Rayfield:Notify({
            Title = "Became Invisible To Others",
            Content = "If u want to turn off reset",
            Duration = 6.5,
            Image = 4483362458,
        })
        Rayfield:Notify({
            Title = "Check",
            Content = "Make Sure to initialize invis in a hidden place if u want to kill people",
            Duration = 6.5,
            Image = 4483362458,
        })
        Rayfield:Notify({
            Title = "Success",
            Content = "If you get bugged use the button respawn in main section",
            Duration = 6.5,
            Image = 4483362458,
        })
    end,
})

Main:CreateButton({
    Name = "Invisibility Method 2",
    Callback = function()
        
            if not replicatesignal then
                Rayfield:Notify({
                    Title = "Unsupported Executor",
                    Content = "Unsupported Executor for this feature",
                    Duration = 6.5,
                    Image = "rewind",
                })
                return
            end

        for _, part in game.Players.LocalPlayer.Character:GetDescendants() do
            if part:IsA("BasePart") then
                part.Transparency = 1
            end
        end
        replicatesignal(game.Players.LocalPlayer.Character.Humanoid.ServerBreakJoints)
    end,
})

local Teleports = Window:CreateTab("Teleports/Movement Byp", "map-pinned")
local Section = Teleports:CreateSection("TP")

Teleports:CreateButton({
    Name = "U must load bypass before using anything from this section",
    Callback = function()
    end,
})

Teleports:CreateButton({
    Name = "Load Bypass",
    Callback = function()
        for i,v in pairs(workspace:GetDescendants()) do
        if v:IsA("Seat") and v.Parent.Name ~= "Bed" and v.Parent:IsA("Model") then
        seat = v
        tback = v.Parent.WorldPivot
        v.Transparency = 1
        v.CanCollide = false
        break
        end
        end
        local plr = game.Players.LocalPlayer
        local chr = plr.Character
        local hum = chr.Humanoid
        seat.Parent:PivotTo(chr.PrimaryPart.CFrame)
        repeat task.wait()
        seat:Sit(hum)
        until hum.SeatPart ~= nil
        hum.Parent = nil
        hum.Parent = chr
        seat.Parent:PivotTo(tback)
        Rayfield:Notify({
            Title = "Success",
            Content = "If you get bugged use the button respawn in main section",
            Duration = 6.5,
            Image = 4483362458,
        })
    end,
})

local bypenabled = false

local AutoByp = Teleports:CreateToggle({
    Name = "Auto Load Bypass After Respawn",
    CurrentValue = false,
    Flag = "AutoByp", 
    Callback = function(Value)
        bypenabled = Value
        game.Players.LocalPlayer.CharacterAdded:Connect(function()
            if bypenabled then
                for i,v in pairs(workspace:GetDescendants()) do
                if v:IsA("Seat") and v.Parent.Name ~= "Bed" and v.Parent:IsA("Model") then
                seat = v
                tback = v.Parent.WorldPivot
                v.Transparency = 1
                v.CanCollide = false
                break
                end
                end
                local plr = game.Players.LocalPlayer
                local chr = plr.Character
                local hum = chr.Humanoid
                seat.Parent:PivotTo(chr.PrimaryPart.CFrame)
                repeat task.wait()
                seat:Sit(hum)
                until hum.SeatPart ~= nil
                hum.Parent = nil
                hum.Parent = chr
                seat.Parent:PivotTo(tback)
                Rayfield:Notify({
                Title = "Success",
                Content = "If you get bugged use the button respawn in main section",
                Duration = 6.5,
                Image = 4483362458,
                })
            end
        end)
    end,
})

local speedBoostEnabled = true
local currentBoostAmount = 0
local heartbeatConnection
local runningConnection
local walkSpeedMonitorThread

local player = game.Players.LocalPlayer

player.CharacterAdded:Connect(function(character)
    local humanoid = character:WaitForChild("Humanoid")

    if heartbeatConnection then
        heartbeatConnection:Disconnect()
    end
    if runningConnection then
        runningConnection:Disconnect()
    end

    local boosting = false

    heartbeatConnection = runService.Heartbeat:Connect(function()
        if boosting and speedBoostEnabled then
            local delta = humanoid.MoveDirection * currentBoostAmount
            character:SetPrimaryPartCFrame(character.PrimaryPart.CFrame + delta)
        end
    end)

    runningConnection = humanoid.Running:Connect(function(speed)
        boosting = humanoid.MoveDirection.Magnitude > 0
    end)
end)

if player.Character then
    local character = player.Character
    local humanoid = character:WaitForChild("Humanoid")

    if heartbeatConnection then
        heartbeatConnection:Disconnect()
    end
    if runningConnection then
        runningConnection:Disconnect()
    end

    local boosting = false

    heartbeatConnection = runService.Heartbeat:Connect(function()
        if boosting and speedBoostEnabled then
            local delta = humanoid.MoveDirection * currentBoostAmount
            character:SetPrimaryPartCFrame(character.PrimaryPart.CFrame + delta)
        end
    end)

    runningConnection = humanoid.Running:Connect(function(speed)
        boosting = humanoid.MoveDirection.Magnitude > 0
    end)
end

local SpeedBoostSlider = Teleports:CreateSlider({
    Name = "Super Speed Bypass (FE)",
    Range = {0, 5},
    Increment = 0.1,
    Suffix = "Boost",
    CurrentValue = 0,
    Flag = "SpeedBoostSlider",
    Callback = function(Value)
        currentBoostAmount = Value

        if player.Character then
            local character = player.Character
            local humanoid = character:FindFirstChild("Humanoid")
            if humanoid then
                if heartbeatConnection then
                    heartbeatConnection:Disconnect()
                end
                if runningConnection then
                    runningConnection:Disconnect()
                end

                local boosting = false

                heartbeatConnection = runService.Heartbeat:Connect(function()
                    if boosting and speedBoostEnabled then
                        local delta = humanoid.MoveDirection * currentBoostAmount
                        character:SetPrimaryPartCFrame(character.PrimaryPart.CFrame + delta)
                    end
                end)

                runningConnection = humanoid.Running:Connect(function(speed)
                    boosting = humanoid.MoveDirection.Magnitude > 0
                end)
            end
        end

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

        if Value > 0.3 then
            walkSpeedMonitorThread = runService.Heartbeat:Connect(function()
                local character = player.Character
                if character and character:FindFirstChild("Humanoid") then
                    character.Humanoid.WalkSpeed = 14
                end
            end)
        end
    end,
})

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

local flying = false
local feflyspeed = 50
local inputStates = {
    W = false,
    A = false,
    S = false,
    D = false,
    Space = false,
    LeftShift = false,
}

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

local function onCharacterAdded(char)
    character = char
    hrp = character:WaitForChild("HumanoidRootPart")
    if flying then
        lastPosition = hrp.Position
    end
end

player.CharacterAdded:Connect(onCharacterAdded)

local FlyBypassToggle = Teleports:CreateToggle({
    Name = "Fly Bypass (FE)",
    CurrentValue = false,
    Flag = "FlyToggle",
    Callback = function(Value)
        flying = Value
        if flying and hrp then
            lastPosition = hrp.Position
        end
    end,
})

UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    local key = input.KeyCode.Name
    if inputStates[key] ~= nil then
        inputStates[key] = true
    end
end)

UserInputService.InputEnded:Connect(function(input)
    local key = input.KeyCode.Name
    if inputStates[key] ~= nil then
        inputStates[key] = false
    end
end)

RunService.RenderStepped:Connect(function(dt)
    if flying and hrp then
        local direction = Vector3.new(0, 0, 0)
        local cf = camera.CFrame

        if inputStates.W then direction += cf.LookVector end
        if inputStates.S then direction -= cf.LookVector end
        if inputStates.A then direction -= cf.RightVector end
        if inputStates.D then direction += cf.RightVector end
        if inputStates.Space then direction += cf.UpVector end
        if inputStates.LeftShift then direction -= cf.UpVector end

        if direction.Magnitude > 0 then
            direction = direction.Unit
            lastPosition = lastPosition + direction * feflyspeed * dt
        end

        hrp:PivotTo(CFrame.new(lastPosition))
    elseif hrp then
        lastPosition = hrp.Position
    end
end)

local Slider = Teleports:CreateSlider({
Name = "Flight Speed",
Range = {0, 500},
Increment = 10,
Suffix = "Speed",
CurrentValue = 50,
Flag = "Slider1",
Callback = function(Value)
    feflyspeed = Value
end,
})


local Section = Teleports:CreateSection(" ")
Teleports:CreateButton({
    Name = "Auditorium",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-76, 3, 255)
    end,
})

Teleports:CreateButton({
    Name = "Omega Warhead Room",
    Callback = function()
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-260, 3, 472)
    end,
})

Teleports:CreateButton({
    Name = "Control Room",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-77, 25, 450)
    end,
})

Teleports:CreateButton({
    Name = "Parking Lot",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-75, 3, 711)
    end,
})

Teleports:CreateButton({
    Name = "Helipad",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-77, 3, 855)
    end,
})

Teleports:CreateButton({
    Name = "Outside MTF Base",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-590, 1, 710)
    end,
})

Teleports:CreateButton({
    Name = "Sector 1 Entrance",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-75, 3, 62)
    end,
})

Teleports:CreateButton({
    Name = "ScD Department",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(19, 3, -137)
    end,
})

Teleports:CreateButton({
    Name = "CDC Viewing Room",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(224, 25, -277)
    end,
})

Teleports:CreateButton({
    Name = "CDC",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(278, 3, -262)
    end,
})

Teleports:CreateButton({
    Name = "CDC Hidden Spawn",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(320, 37, -184)
    end,
})

Teleports:CreateButton({
    Name = "Workout Room",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(443, 3, -303)
    end,
})

Teleports:CreateButton({
    Name = "Transformers",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-263, -9, -133)
    end,
})

Teleports:CreateButton({
    Name = "SCP-316",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-169, 3, -199)
    end,
})

Teleports:CreateButton({
    Name = "SCP-1299",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-164, 3, -129)
    end,
})

Teleports:CreateButton({
    Name = "SCP-2950",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-179, 3, -38)
    end,
})

Teleports:CreateButton({
    Name = "Medbay",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(57, 3, -11)
    end,
})

Teleports:CreateButton({
    Name = "SCP-999",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(108, 3, -83)
    end,
})

Teleports:CreateButton({
    Name = "Bunker",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-328, 36, -261)
    end,
})

Teleports:CreateButton({
    Name = "SCP-1025",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-160, 3, -389)
    end,
})

Teleports:CreateButton({
    Name = "SCP-066",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-162, 3, -499)
    end,
})

Teleports:CreateButton({
    Name = "SCP-131",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(8, 3, -399)
    end,
})

local SCP093 = Teleports:CreateButton({
    Name = "SCP-093",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(136, 6, -381)
    end,
})

local SCP173 = Teleports:CreateButton({
    Name = "SCP-173",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(60, 3, -511)
    end,
})

local Sector3Checkpoint = Teleports:CreateButton({
    Name = "Sector 3 Checkpoint",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-76, 3, -592)
    end,
})

local SCP938 = Teleports:CreateButton({
    Name = "SCP-938",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-176, 3, -635)
    end,
})

local SCP023 = Teleports:CreateButton({
    Name = "SCP-023",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-314, 3, -748)
    end,
})

local SCP457 = Teleports:CreateButton({
    Name = "SCP-457",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-348, 3, -895)
    end,
})

local SCP002 = Teleports:CreateButton({
    Name = "SCP-002",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-106, 3, -1084)
    end,
})

local SCP076 = Teleports:CreateButton({
    Name = "SCP-076",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-47, 3, -1244)
    end,
})

local SCP966 = Teleports:CreateButton({
    Name = "SCP-966",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(14, 3, -931)
    end,
})

local SublevelBiohazard = Teleports:CreateButton({
    Name = "Sublevel Biohazard",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(165, 3, -966)
    end,
})

local SCP008 = Teleports:CreateButton({
    Name = "SCP-008",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(199, 0, -1123)
    end,
})

local SCP409 = Teleports:CreateButton({
    Name = "SCP-409",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(302, -1, -943)
    end,
})

local SCP096 = Teleports:CreateButton({
    Name = "SCP-096",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(288, 3, -813)
    end,
})

local SCP079 = Teleports:CreateButton({
    Name = "SCP-079",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(185, 3, -671)
    end,
})

local SCP049 = Teleports:CreateButton({
    Name = "SCP-049",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(52, 3, -608)
    end,
})

local SCP087 = Teleports:CreateButton({
    Name = "SCP-087",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-20, 3, -711)
    end,
})

local Sector1 = Teleports:CreateButton({
    Name = "Sector 1",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-320, 22, 17)
    end,
})

local Sector2 = Teleports:CreateButton({
    Name = "Sector 2",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-32, 22, 56)
    end,
})

local Sector3 = Teleports:CreateButton({
    Name = "Sector 3",
    Callback = function()
        
        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(237, 22, -9)
    end,
})

local Combat = Window:CreateTab("Combat", "sword")
local Section = Combat:CreateSection("Options")

local ESPEnabled = false
local ESPConnections = {}
local ESPRefreshLoop = nil

local ESPToggle = Combat:CreateToggle({
    Name = "ESP",
    CurrentValue = false,
    Flag = "EspToggle",
    Callback = function(state)
        local ESPEnabled = state

        if ESPEnabled then
            for _, plr in ipairs(Players:GetPlayers()) do
                if plr ~= Players.LocalPlayer and plr.Character then
                    if not plr.Character:FindFirstChild("ESP_Highlight") then
                        local espHighlight = Instance.new("Highlight")
                        espHighlight.Name = "ESP_Highlight"
                        espHighlight.Adornee = plr.Character
                        espHighlight.Parent = plr.Character
                        espHighlight.FillColor = plr.Team and plr.Team.TeamColor.Color or Color3.new(1,1,1)
                        espHighlight.FillTransparency = 0.5
                        espHighlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
                    end

                    ESPConnections[plr] = plr.CharacterAdded:Connect(function(char)
                        if ESPEnabled and not char:FindFirstChild("ESP_Highlight") then
                            local espHighlightNew = Instance.new("Highlight")
                            espHighlightNew.Name = "ESP_Highlight"
                            espHighlightNew.Adornee = char
                            espHighlightNew.Parent = char
                            espHighlightNew.FillColor = plr.Team and plr.Team.TeamColor.Color or Color3.new(1,1,1)
                            espHighlightNew.FillTransparency = 0.5
                            espHighlightNew.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
                        end
                    end)
                end
            end

            ESPConnections["PlayerAdded"] = Players.PlayerAdded:Connect(function(plr)
                if plr ~= Players.LocalPlayer then
                    ESPConnections[plr] = plr.CharacterAdded:Connect(function(char)
                        if ESPEnabled and not char:FindFirstChild("ESP_Highlight") then
                            local espHighlightNew = Instance.new("Highlight")
                            espHighlightNew.Name = "ESP_Highlight"
                            espHighlightNew.Adornee = char
                            espHighlightNew.Parent = char
                            espHighlightNew.FillColor = plr.Team and plr.Team.TeamColor.Color or Color3.new(1,1,1)
                            espHighlightNew.FillTransparency = 0.5
                            espHighlightNew.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
                        end
                    end)

                    if plr.Character and not plr.Character:FindFirstChild("ESP_Highlight") then
                        local espHighlight = Instance.new("Highlight")
                        espHighlight.Name = "ESP_Highlight"
                        espHighlight.Adornee = plr.Character
                        espHighlight.Parent = plr.Character
                        espHighlight.FillColor = plr.Team and plr.Team.TeamColor.Color or Color3.new(1,1,1)
                        espHighlight.FillTransparency = 0.5
                        espHighlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
                    end
                end
            end)

            ESPRefreshLoop = task.spawn(function()
                while ESPEnabled do
                    task.wait(1)
                    for _, plr in ipairs(Players:GetPlayers()) do
                        if plr ~= Players.LocalPlayer and plr.Character and not plr.Character:FindFirstChild("ESP_Highlight") then
                            local newHighlight = Instance.new("Highlight")
                            newHighlight.Name = "ESP_Highlight"
                            newHighlight.Adornee = plr.Character
                            newHighlight.Parent = plr.Character
                            newHighlight.FillColor = plr.Team and plr.Team.TeamColor.Color or Color3.new(1,1,1)
                            newHighlight.FillTransparency = 0.5
                            newHighlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
                        end
                    end
                end
            end)

        else
            for _, plr in ipairs(Players:GetPlayers()) do
                if plr.Character then
                    local espH = plr.Character:FindFirstChild("ESP_Highlight")
                    if espH then espH:Destroy() end
                end
            end

            for _, conn in pairs(ESPConnections) do
                if conn then conn:Disconnect() end
            end
            ESPConnections = {}

            if ESPRefreshLoop then
                task.cancel(ESPRefreshLoop)
                ESPRefreshLoop = nil
            end
        end
    end,
})


local enableChecks = true

local HeadHitboxSlider = Combat:CreateSlider({
    Name = "Head Hitbox Size",
    Range = {1, 4},
    Increment = 0.1,
    Suffix = "Size",
    CurrentValue = 1,
    Flag = "Toggle1",
    Callback = function(Value)
        _G.headsize = Value

        if not _G.headLoopRunning then
            _G.headLoopRunning = true
            spawn(function()
                while true do
                    wait(1)
                    local playerteamname = game.Players.LocalPlayer.Team and game.Players.LocalPlayer.Team.Name or "NoTeam"

                    for _, player in ipairs(game.Players:GetPlayers()) do
                        if player ~= game.Players.LocalPlayer then
                            local character = player.Character
                            if character then
                                local head = character:FindFirstChild("Head")
                                local otherteamname = player.Team and player.Team.Name or "NoTeam"
                                local istarget = false

                                if enableChecks then
                                    if playerteamname == "Class - D" then
                                        istarget = (otherteamname ~= playerteamname and otherteamname ~= "Chaos Insurgency")
                                    elseif playerteamname == "Chaos Insurgency" then
                                        istarget = (otherteamname ~= playerteamname and otherteamname ~= "Class - D")
                                    else
                                        istarget = (otherteamname == "Class - D" or otherteamname == "Chaos Insurgency")
                                    end
                                else
                                    istarget = true
                                end

                                if istarget and head then
                                    head.Size = Vector3.new(_G.headsize, _G.headsize, _G.headsize)
                                    head.CanCollide = false
                                    head.Transparency = 1
                                end
                            end
                        end
                    end
                end
            end)
        end
    end,
})

local BodyHitboxToggle = Combat:CreateSlider({
    Name = "Body Hitbox Size",
    Range = {1, 4},
    Increment = 0.1,
    Suffix = "Size",
    CurrentValue = 1,
    Flag = "Toggle1",
    Callback = function(Value)
        _G.bodysize = Value

        if not _G.bodyLoopRunning then
            _G.bodyLoopRunning = true
            spawn(function()
                while true do
                    wait(1)
                    local playerteamname = game.Players.LocalPlayer.Team and game.Players.LocalPlayer.Team.Name or "NoTeam"

                    for _, player in ipairs(game.Players:GetPlayers()) do
                        if player ~= game.Players.LocalPlayer then
                            local character = player.Character
                            if character then
                                local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
                                local otherteamname = player.Team and player.Team.Name or "NoTeam"
                                local istarget = false

                                if enableChecks then
                                    if playerteamname == "Class - D" then
                                        istarget = (otherteamname ~= playerteamname and otherteamname ~= "Chaos Insurgency")
                                    elseif playerteamname == "Chaos Insurgency" then
                                        istarget = (otherteamname ~= playerteamname and otherteamname ~= "Class - D")
                                    else
                                        istarget = (otherteamname == "Class - D" or otherteamname == "Chaos Insurgency")
                                    end
                                else
                                    istarget = true
                                end

                                if istarget and humanoidRootPart then
                                    humanoidRootPart.Size = Vector3.new(_G.bodysize, _G.bodysize, _G.bodysize)
                                    humanoidRootPart.CanCollide = false
                                    humanoidRootPart.Transparency = 1
                                end
                            end
                        end
                    end
                end
            end)
        end
    end,
})

game.Players.LocalPlayer:GetPropertyChangedSignal("Team"):Connect(function()
    if _G.headsize or _G.bodysize then
        for _, player in ipairs(game.Players:GetPlayers()) do
            if player.Character then
                local character = player.Character
                local head = character:FindFirstChild("Head")
                local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
                    head.Size = Vector3.new(1, 1, 1)
                    head.CanCollide = false
                    head.Transparency = 0
                    humanoidRootPart.Size = Vector3.new(1, 1, 1)
                    humanoidRootPart.CanCollide = false
                    humanoidRootPart.Transparency = 1
            end
        end
    end
end)

local Section = Combat:CreateSection("Silent Aim")
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local localPlayer = Players.LocalPlayer
local camera = workspace.CurrentCamera
local raycastEnabled = false
local holdingLclick = false
local aimFov = 40
local silentenabled = false
local mouse = localPlayer:GetMouse()
local mouseWeight = 0.5
local Ratez = 0.1

UserInputService.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        if not holdingLclick then
            holdingLclick = true
            while holdingLclick and silentenabled do
                local facingplayer = nil
                local bestScore = math.huge
                local cameradirc = camera.CFrame.LookVector

                for _, player in pairs(Players:GetPlayers()) do
                    if player ~= localPlayer and player.Character and player.Character:FindFirstChild("Head") then
                        local playerteamname = localPlayer.Team and localPlayer.Team.Name or "NoTeam"
                        local otherteamname = player.Team and player.Team.Name or "NoTeam"
                        local character = localPlayer.Character
                        local otherCharacter = player.Character

                        if character and otherCharacter and otherCharacter:FindFirstChild("HumanoidRootPart") then
                            local head = otherCharacter:FindFirstChild("Head")
                            local istarget = false
                            if (head and head.BrickColor == BrickColor.new("Olivine")) 
                            or (workspace:FindFirstChild(player.Name) and workspace:FindFirstChild(player.Name):FindFirstChild("001MorphBits")) then
                                isvalidtarget = true
                                istarget = true
                            elseif enableChecks then
                                if playerteamname == "Class - D" or playerteamname == "Chaos Insurgency" then
                                    if otherteamname ~= "Class - D" and otherteamname ~= "Chaos Insurgency" then
                                        local targetposition = otherCharacter.HumanoidRootPart.Position
                                        local inregion = false
                                        local regions = {
                                                SCIENTIFIC_DEPARTMENT_1 = { min = Vector3.new(16.3, 2.0, -168.8),   max = Vector3.new(47.1, 12.7, -104.8) }, -- fixed
                                                SCIENTIFIC_DEPARTMENT_2 = { min = Vector3.new(-13.1, -0.3, -155.9), max = Vector3.new(10.9, 10.6, -124.8) }, -- fixed
                                                SECURITY_DEPARTMENT     = { min = Vector3.new(-31.8, -0.3, -248.5), max = Vector3.new(13.1, 17.8, -202.7) }, -- fixed
                                                MTF_1                   = { min = Vector3.new(-149.3, -0.3, -858.9), max = Vector3.new(-4.8, 13.6, -805.1) }, -- fixed
                                                MTF_2                   = { min = Vector3.new(-115.6, -1.1, -870.8), max = Vector3.new(-37.4, 23.9, -799.1) }, -- fixed
                                                RRT_1                   = { min = Vector3.new(-33.7, 42.3, 54.8),    max = Vector3.new(20.1, 56.9, 90.4) },   -- fixed
                                                RRT_2                   = { min = Vector3.new(3.2, 42.3, 89.4),     max = Vector3.new(19.1, 56.0, 105.3) },  -- fixed
                                                RRT_3                   = { min = Vector3.new(-10.0, -0.3, 92.3),    max = Vector3.new(20.5, 13.3, 111.6) },  -- fixed
                                                INTERNAL_SECURITY_DEPARTMENT       = { min = Vector3.new(-177.2, -0.3, 100.2), max = Vector3.new(-136.9, 16.5, 133.8) }, -- fixed
                                                INTERNAL_SECURITY_DEPARTMENT_roombig = { min = Vector3.new(-196.7, -0.3, 135.6), max = Vector3.new(-121.6, 16.5, 179.0) }, -- fixed
                                                INTELLIGENCE_AGENCY     = { min = Vector3.new(-236.4, -0.3, 135.9), max = Vector3.new(-202.0, 16.5, 178.2) }, -- fixed
                                                IA_ROOMBIG1             = { min = Vector3.new(-172.7, -0.3, 183.1), max = Vector3.new(-129.5, 12.9, 217.2) }, -- fixed
                                                IA_ROOMBIG2             = { min = Vector3.new(-172.9, -0.3, 182.8), max = Vector3.new(-89.4, 13.1, 201.0) },  -- fixed
                                                IA_ROOMBIG3             = { min = Vector3.new(-107.7, -0.3, 147.0), max = Vector3.new(-89.2, 13.1, 201.0) },  -- fixed
                                                ADMINISTRATIVE          = { min = Vector3.new(89.8, -0.3, 294.0),   max = Vector3.new(143.4, 12.7, 343.8) },  -- fixed
                                                O5_SPAWN                = { min = Vector3.new(24.3, -0.3, 122.7),   max = Vector3.new(72.0, 13.1, 220.2) }  -- fixed

                                        }
                                        for _, region in pairs(regions) do
                                            if (targetposition.X >= region.min.X and targetposition.X <= region.max.X) and
                                            (targetposition.Y >= region.min.Y and targetposition.Y <= region.max.Y) and
                                            (targetposition.Z >= region.min.Z and targetposition.Z <= region.max.Z) then
                                                inregion = true
                                                break
                                            end
                                        end
                                        istarget = not inregion
                                    end
                                else
                                    if otherteamname == "Class - D" then
                                        local targetposition = otherCharacter.HumanoidRootPart.Position
                                        local inarea = targetposition.X >= -0 and targetposition.X <= 0 and
                                                    targetposition.Y >= 0 and targetposition.Y <= 0 and
                                                    targetposition.Z >= 0 and targetposition.Z <= 0
                                        local hasgun = false
                                        for _, tool in ipairs(otherCharacter:GetChildren()) do
                                            if tool:IsA("Tool") and tool:FindFirstChild("Laser") then
                                                hasgun = true
                                                break
                                            end
                                        end
                                        istarget = not inarea or hasgun
                                    elseif otherteamname == "Chaos Insurgency" then
                                        istarget = true
                                    end
                                end
                            else
                                istarget = true
                            end

                            if istarget then
                                local humanoid = player.Character:FindFirstChild("Humanoid")
                                if humanoid and humanoid.Health > 0 then
                                    local head = player.Character.Head
                                    local directiontoplayer = (head.Position - localPlayer.Character.Head.Position).Unit
                                    local distance = (head.Position - localPlayer.Character.Head.Position).Magnitude
                                    local angle = math.acos(cameradirc:Dot(directiontoplayer))
                                    local fovRadians = math.rad(aimFov / 2)

                                    if angle <= fovRadians then
                                        local screenPoint = camera:WorldToScreenPoint(head.Position)
                                        local mouseDistance = (Vector2.new(screenPoint.X, screenPoint.Y) - Vector2.new(mouse.X, mouse.Y)).Magnitude
                                        local combinedScore = (distance * (1 - mouseWeight)) + (mouseDistance * mouseWeight)
                                        
                                        if combinedScore < bestScore then
                                            bestScore = combinedScore
                                            facingplayer = player
                                        end
                                    end
                                end
                            end
                        end
                    end
                end

                if facingplayer and facingplayer.Character and facingplayer.Character:FindFirstChild("Head") then
                    local headPosition = facingplayer.Character.Head.Position
                    local mhp = localPlayer.Character.Head.Position
                    local distance = (headPosition - mhp).Magnitude

                    if distance <= 23232 then
                        local canFire = true
                        if not raycastEnabled then
                            local ignoreInstances = {
                                localPlayer.Character,
                                workspace:FindFirstChild("MorphAssets")
                            }

                            local obscuringParts = workspace.CurrentCamera:GetPartsObscuringTarget(
                                {mhp, headPosition},
                                ignoreInstances
                            )
                            if #obscuringParts > 0 then
                                local blocked = false
                                for _, part in ipairs(obscuringParts) do
                                    local partIsPlayer = false

                                    for _, player in ipairs(game.Players:GetPlayers()) do
                                        if player.Character and part:IsDescendantOf(player.Character) then
                                            partIsPlayer = true
                                            break
                                        end
                                    end

                                    if not part:IsDescendantOf(workspace:FindFirstChild("MorphAssets")) and
                                    not partIsPlayer then
                                        blocked = true
                                        break
                                    end
                                end

                                if blocked then
                                    canFire = false
                                end
                            end
                        end

                        if canFire then                        
                                local targetname = facingplayer.Name

                                local arguments = {
                                    [1] = {
                                        [1] = {
                                            [1] = 200.9026336669922,
                                            [2] = 4.207571029663086,
                                            [3] = -269.53729248046875
                                        }
                                    },
                                    [2] = true,
                                    [3] = workspace:FindFirstChild(facingplayer.Name) and workspace[facingplayer.Name]:FindFirstChild("Head")
                                }

                                game:GetService("ReplicatedStorage").Remotes.GunRemote:FireServer(unpack(arguments))
                        end

                    end
                end
                wait(Ratez)
            end
        end
    end
end)

    UserInputService.InputEnded:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        holdingLclick = false
    end
end)

local SilentToggle = Combat:CreateToggle({
    Name = "Enable Silent Aim",
    CurrentValue = false,
    Flag = "SilentAimToggle",
    Callback = function(Value)
        silentenabled = Value
    end,
})

local SilentRate = Combat:CreateToggle({
    Name = "5x Silent Aim Fire Rate (Risky)",
    CurrentValue = false,
    Flag = "Ratez",
    Callback = function(Value)
        if Value then
            Ratez = 0.01
            else
            Ratez = 0.1
        end
    end,
})

local RCToggle = Combat:CreateToggle({
    Name = "WallBang (Silent Aim only) (Shoots Thru Walls)",
    CurrentValue = false,
    Flag = "ToggleRaycast",
    Callback = function(Value)
        raycastEnabled = Value
    end,
})

local Slider = Combat:CreateSlider({
Name = "FOV",
Range = {0, 80},
Increment = 1,
Suffix = " ",
CurrentValue = 40,
Flag = "Slider1", 
Callback = function(Value)
aimFov = Value
end,
})

local drawingCircle

local Toggle = Combat:CreateToggle({
    Name = "Show FOV",
    CurrentValue = false,
    Flag = "Toggle1",
    Callback = function(Value)
        if Value then
            drawingCircle = Drawing.new("Circle")
            drawingCircle.Thickness = 2
            drawingCircle.NumSides = 64
            drawingCircle.Color = Color3.new(1, 1, 1)
            drawingCircle.Transparency = 1
            drawingCircle.Filled = false
            drawingCircle.Position = Vector2.new(workspace.CurrentCamera.ViewportSize.X / 2, workspace.CurrentCamera.ViewportSize.Y / 2)
            drawingCircle.Visible = true
            
            game:GetService("RunService").RenderStepped:Connect(function()
                if drawingCircle then
                    drawingCircle.Radius = aimFov * 5
                end
            end)
        else
            if drawingCircle then
                drawingCircle:Remove()
                drawingCircle = nil
            end
        end
    end,
})



local Section = Combat:CreateSection("Aimbot")
local playerss = game:GetService("Players")
local frameservc = game:GetService("RunService")
local inputservc = game:GetService("UserInputService")
local guiservc = game:GetService("GuiService")
local localplayerinstc = playerss.LocalPlayer
local currentcameradistance = workspace.CurrentCamera
local isrclickheld = false
local isaimbotenabled = false
local israycaston = false
local tfov = 40
local mouse = localplayerinstc:GetMouse()
local mouseWeight = 0.5
local selectedpart = "Head"

local Dropdown = Combat:CreateDropdown({
Name = "Aim Part",
Options = {"Head", "Torso"},
CurrentOption = {"Head"},
MultipleOptions = false,
Flag = "Dropdown1",
Callback = function(Options)
    selectedpart = Options[1]
end,
})

inputservc.InputBegan:Connect(function(inputEvent)
    if inputEvent.UserInputType == Enum.UserInputType.MouseButton2 then
        isrclickheld = true
        if isaimbotenabled then
            local character = localplayerinstc.Character
            if character then
                local hasTool = false
                for _, child in ipairs(character:GetChildren()) do
                    if child:IsA("Tool") then
                        hasTool = true
                        break
                    end
                end
                if hasTool then
                    local closestplayer = nil
                    local bestscore = math.huge
                    local cameradirc = currentcameradistance.CFrame.LookVector

                    for _, player in pairs(playerss:GetPlayers()) do
                        if player ~= localplayerinstc and player.Character and player.Character:FindFirstChild("Head") then
                            local localTeamName = localplayerinstc.Team and localplayerinstc.Team.Name or "NoTeam"
                            local targetteamname = player.Team and player.Team.Name or "NoTeam"
                            local localCharacter = localplayerinstc.Character
                            local targetCharacter = player.Character

                            if localCharacter and targetCharacter and targetCharacter:FindFirstChild("HumanoidRootPart") then
                                local targetHead = targetCharacter:FindFirstChild("Head")
                                local isvalidtarget = false

                                if (targetHead and targetHead.BrickColor == BrickColor.new("Olivine")) 
                                or (workspace:FindFirstChild(player.Name) and workspace:FindFirstChild(player.Name):FindFirstChild("001MorphBits")) then
                                    isvalidtarget = true
                                elseif enableChecks then
                                    if localTeamName == "Class - D" or localTeamName == "Chaos Insurgency" then
                                        if targetteamname ~= "Class - D" and targetteamname ~= "Chaos Insurgency" then
                                            local targetposition = targetCharacter.HumanoidRootPart.Position
                                            local inregion = false
                                            local regions = {
                                                        SCIENTIFIC_DEPARTMENT_1 = { min = Vector3.new(16.3, 2.0, -168.8),   max = Vector3.new(47.1, 12.7, -104.8) }, -- fixed
                                                        SCIENTIFIC_DEPARTMENT_2 = { min = Vector3.new(-13.1, -0.3, -155.9), max = Vector3.new(10.9, 10.6, -124.8) }, -- fixed
                                                        SECURITY_DEPARTMENT     = { min = Vector3.new(-31.8, -0.3, -248.5), max = Vector3.new(13.1, 17.8, -202.7) }, -- fixed
                                                        MTF_1                   = { min = Vector3.new(-149.3, -0.3, -858.9), max = Vector3.new(-4.8, 13.6, -805.1) }, -- fixed
                                                        MTF_2                   = { min = Vector3.new(-115.6, -1.1, -870.8), max = Vector3.new(-37.4, 23.9, -799.1) }, -- fixed
                                                        RRT_1                   = { min = Vector3.new(-33.7, 42.3, 54.8),    max = Vector3.new(20.1, 56.9, 90.4) },   -- fixed
                                                        RRT_2                   = { min = Vector3.new(3.2, 42.3, 89.4),     max = Vector3.new(19.1, 56.0, 105.3) },  -- fixed
                                                        RRT_3                   = { min = Vector3.new(-10.0, -0.3, 92.3),    max = Vector3.new(20.5, 13.3, 111.6) },  -- fixed
                                                        INTERNAL_SECURITY_DEPARTMENT       = { min = Vector3.new(-177.2, -0.3, 100.2), max = Vector3.new(-136.9, 16.5, 133.8) }, -- fixed
                                                        INTERNAL_SECURITY_DEPARTMENT_roombig = { min = Vector3.new(-196.7, -0.3, 135.6), max = Vector3.new(-121.6, 16.5, 179.0) }, -- fixed
                                                        INTELLIGENCE_AGENCY     = { min = Vector3.new(-236.4, -0.3, 135.9), max = Vector3.new(-202.0, 16.5, 178.2) }, -- fixed
                                                        IA_ROOMBIG1             = { min = Vector3.new(-172.7, -0.3, 183.1), max = Vector3.new(-129.5, 12.9, 217.2) }, -- fixed
                                                        IA_ROOMBIG2             = { min = Vector3.new(-172.9, -0.3, 182.8), max = Vector3.new(-89.4, 13.1, 201.0) },  -- fixed
                                                        IA_ROOMBIG3             = { min = Vector3.new(-107.7, -0.3, 147.0), max = Vector3.new(-89.2, 13.1, 201.0) },  -- fixed
                                                        ADMINISTRATIVE          = { min = Vector3.new(89.8, -0.3, 294.0),   max = Vector3.new(143.4, 12.7, 343.8) },  -- fixed
                                                        O5_SPAWN                = { min = Vector3.new(24.3, -0.3, 122.7),   max = Vector3.new(72.0, 13.1, 220.2) }  -- fixed

                                            }
                                            for _, region in pairs(regions) do
                                                if (targetposition.X >= region.min.X and targetposition.X <= region.max.X) and
                                                (targetposition.Y >= region.min.Y and targetposition.Y <= region.max.Y) and
                                                (targetposition.Z >= region.min.Z and targetposition.Z <= region.max.Z) then
                                                    inregion = true
                                                    break
                                                end
                                            end
                                            isvalidtarget = not inregion
                                        end
                                    else
                                        if targetteamname == "Class - D" then
                                            local targetposition = targetCharacter.HumanoidRootPart.Position
                                            local inarea = targetposition.X >= 0 and targetposition.X <= 0 and
                                                        targetposition.Y >= 0 and targetposition.Y <= 0 and
                                                        targetposition.Z >= 0 and targetposition.Z <= 0
                                            local hasweapon = false
                                            for _, item in ipairs(targetCharacter:GetChildren()) do
                                                if item:IsA("Tool") and item:FindFirstChild("Laser") then
                                                    hasweapon = true
                                                    break
                                                end
                                            end
                                            isvalidtarget = not inarea or hasweapon
                                        elseif targetteamname == "Chaos Insurgency" then
                                            isvalidtarget = true
                                        end
                                    end
                                else
                                    isvalidtarget = true
                                end

                                if isvalidtarget then
                                    local humanoid = player.Character:FindFirstChild("Humanoid")
                                    if humanoid and humanoid.Health > 0 then
                                        local playerhead = player.Character.Head
                                        local directiontoplayer = (playerhead.Position - localplayerinstc.Character.Head.Position).Unit
                                        local distancetoplayer = (playerhead.Position - localplayerinstc.Character.Head.Position).Magnitude
                                        local angleBetween = math.acos(cameradirc:Dot(directiontoplayer))
                                        local halfFOVRadians = math.rad(tfov / 2)

                                        if angleBetween <= halfFOVRadians then
                                            local screenPoint = currentcameradistance:WorldToScreenPoint(playerhead.Position)
                                            local mouseDistance = (Vector2.new(screenPoint.X, screenPoint.Y) - Vector2.new(mouse.X, mouse.Y)).Magnitude
                                            local combinedScore = (distancetoplayer * (1 - mouseWeight)) + (mouseDistance * mouseWeight)
                                            
                                            if combinedScore < bestscore then
                                                bestscore = combinedScore
                                                closestplayer = player
                                            end
                                        end
                                    end
                                end
                            end
                        end
                    end

                    if closestplayer and closestplayer.Character then
                        local canTarget = true
                        if israycaston then
                            local targetHead = closestplayer.Character:FindFirstChild("Head")
                            if targetHead then
                                local partsObscuring = workspace.CurrentCamera:GetPartsObscuringTarget(
                                    {localplayerinstc.Character.Head.Position, targetHead.Position},
                                    {localplayerinstc.Character, workspace.MorphAssets}
                                )

                                if #partsObscuring > 0 then
                                    local isObstructed = false
                                    for _, part in ipairs(partsObscuring) do
                                        local partIsPlayer = false

                                        for _, player in ipairs(game.Players:GetPlayers()) do
                                            if player.Character and part:IsDescendantOf(player.Character) then
                                                partIsPlayer = true
                                                break
                                            end
                                        end

                                        if not part:IsDescendantOf(workspace.MorphAssets)
                                        and not partIsPlayer then
                                            isObstructed = true
                                            break
                                        end
                                    end

                                    if isObstructed then
                                        canTarget = false
                                    end
                                end
                            else
                                canTarget = false
                            end
                        end


                        if canTarget then
                            local targetPart
                            if selectedpart == "Head" then
                                targetPart = closestplayer.Character:FindFirstChild("Head")
                            elseif selectedpart == "Torso" then
                                targetPart = closestplayer.Character:FindFirstChild("HumanoidRootPart")
                            end

                            if targetPart then
                                currentcameradistance.CFrame = CFrame.new(currentcameradistance.CFrame.Position, targetPart.Position)
                            end
                        end
                    end
                end
            end
        end
    end
end)

inputservc.InputEnded:Connect(function(inputEvent)
    if inputEvent.UserInputType == Enum.UserInputType.MouseButton2 then
        isrclickheld = false
    end
end)

frameservc.RenderStepped:Connect(function()
    if isrclickheld and isaimbotenabled then
        local character = localplayerinstc.Character
        if character then
            local hasTool = false
            for _, child in ipairs(character:GetChildren()) do
                if child:IsA("Tool") then
                    hasTool = true
                    break
                end
            end
            if hasTool then
                local closestplayer = nil
                local bestscore = math.huge
                local cameradirc = currentcameradistance.CFrame.LookVector

                for _, player in pairs(playerss:GetPlayers()) do
                    if player ~= localplayerinstc and player.Character and player.Character:FindFirstChild("Head") then
                        local localTeamName = localplayerinstc.Team and localplayerinstc.Team.Name or "NoTeam"
                        local targetteamname = player.Team and player.Team.Name or "NoTeam"
                        local localCharacter = localplayerinstc.Character
                        local targetCharacter = player.Character

                        if localCharacter and targetCharacter and targetCharacter:FindFirstChild("HumanoidRootPart") then
                            local targetHead = targetCharacter:FindFirstChild("Head")
                            local isvalidtarget = false

                            if (targetHead and targetHead.BrickColor == BrickColor.new("Olivine")) 
                            or (workspace:FindFirstChild(player.Name) and workspace:FindFirstChild(player.Name):FindFirstChild("001MorphBits")) then
                                isvalidtarget = true
                            elseif enableChecks then
                                if localTeamName == "Class - D" or localTeamName == "Chaos Insurgency" then
                                    if targetteamname ~= "Class - D" and targetteamname ~= "Chaos Insurgency" then
                                        local targetposition = targetCharacter.HumanoidRootPart.Position
                                        local inregion = false
                                        local regions = {
                                            SCIENTIFIC_DEPARTMENT_1 = { min = Vector3.new(16.3, 2.0, -168.8),   max = Vector3.new(47.1, 12.7, -104.8) }, -- fixed
                                            SCIENTIFIC_DEPARTMENT_2 = { min = Vector3.new(-13.1, -0.3, -155.9), max = Vector3.new(10.9, 10.6, -124.8) }, -- fixed
                                            SECURITY_DEPARTMENT     = { min = Vector3.new(-31.8, -0.3, -248.5), max = Vector3.new(13.1, 17.8, -202.7) }, -- fixed
                                            MTF_1                   = { min = Vector3.new(-149.3, -0.3, -858.9), max = Vector3.new(-4.8, 13.6, -805.1) }, -- fixed
                                            MTF_2                   = { min = Vector3.new(-115.6, -1.1, -870.8), max = Vector3.new(-37.4, 23.9, -799.1) }, -- fixed
                                            RRT_1                   = { min = Vector3.new(-33.7, 42.3, 54.8),    max = Vector3.new(20.1, 56.9, 90.4) },   -- fixed
                                            RRT_2                   = { min = Vector3.new(3.2, 42.3, 89.4),     max = Vector3.new(19.1, 56.0, 105.3) },  -- fixed
                                            RRT_3                   = { min = Vector3.new(-10.0, -0.3, 92.3),    max = Vector3.new(20.5, 13.3, 111.6) },  -- fixed
                                            INTERNAL_SECURITY_DEPARTMENT       = { min = Vector3.new(-177.2, -0.3, 100.2), max = Vector3.new(-136.9, 16.5, 133.8) }, -- fixed
                                            INTERNAL_SECURITY_DEPARTMENT_roombig = { min = Vector3.new(-196.7, -0.3, 135.6), max = Vector3.new(-121.6, 16.5, 179.0) }, -- fixed
                                            INTELLIGENCE_AGENCY     = { min = Vector3.new(-236.4, -0.3, 135.9), max = Vector3.new(-202.0, 16.5, 178.2) }, -- fixed
                                            IA_ROOMBIG1             = { min = Vector3.new(-172.7, -0.3, 183.1), max = Vector3.new(-129.5, 12.9, 217.2) }, -- fixed
                                            IA_ROOMBIG2             = { min = Vector3.new(-172.9, -0.3, 182.8), max = Vector3.new(-89.4, 13.1, 201.0) },  -- fixed
                                            IA_ROOMBIG3             = { min = Vector3.new(-107.7, -0.3, 147.0), max = Vector3.new(-89.2, 13.1, 201.0) },  -- fixed
                                            ADMINISTRATIVE          = { min = Vector3.new(89.8, -0.3, 294.0),   max = Vector3.new(143.4, 12.7, 343.8) },  -- fixed
                                            O5_SPAWN                = { min = Vector3.new(24.3, -0.3, 122.7),   max = Vector3.new(72.0, 13.1, 220.2) }  -- fixed

                                        }
                                        for _, region in pairs(regions) do
                                            if (targetposition.X >= region.min.X and targetposition.X <= region.max.X) and
                                            (targetposition.Y >= region.min.Y and targetposition.Y <= region.max.Y) and
                                            (targetposition.Z >= region.min.Z and targetposition.Z <= region.max.Z) then
                                                inregion = true
                                                break
                                            end
                                        end
                                        isvalidtarget = not inregion
                                    end
                                else
                                    if targetteamname == "Class - D" then
                                        local targetposition = targetCharacter.HumanoidRootPart.Position
                                        local inarea = targetposition.X >= -0 and targetposition.X <= 0 and
                                                    targetposition.Y >= 0 and targetposition.Y <= 0 and
                                                    targetposition.Z >= 0 and targetposition.Z <= 0
                                        local hasweapon = false
                                        for _, item in ipairs(targetCharacter:GetChildren()) do
                                            if item:IsA("Tool") and item:FindFirstChild("Laser") then
                                                hasweapon = true
                                                break
                                            end
                                        end
                                        isvalidtarget = not inarea or hasweapon
                                    elseif targetteamname == "Chaos Insurgency" then
                                        isvalidtarget = true
                                    end
                                end
                            else
                                isvalidtarget = true
                            end

                            if isvalidtarget then
                                local humanoid = player.Character:FindFirstChild("Humanoid")
                                if humanoid and humanoid.Health > 0 then
                                    local playerhead = player.Character.Head
                                    local directiontoplayer = (playerhead.Position - localplayerinstc.Character.Head.Position).Unit
                                    local distancetoplayer = (playerhead.Position - localplayerinstc.Character.Head.Position).Magnitude
                                    local angleBetween = math.acos(cameradirc:Dot(directiontoplayer))
                                    local halfFOVRadians = math.rad(tfov / 2)
                                    if angleBetween <= halfFOVRadians then
                                        local screenPoint = currentcameradistance:WorldToScreenPoint(playerhead.Position)
                                        local mouseDistance = (Vector2.new(screenPoint.X, screenPoint.Y) - Vector2.new(mouse.X, mouse.Y)).Magnitude
                                        local combinedScore = (distancetoplayer * (1 - mouseWeight)) + (mouseDistance * mouseWeight)
                                        
                                        if combinedScore < bestscore then
                                            bestscore = combinedScore
                                            closestplayer = player
                                        end
                                    end
                                end
                            end
                        end
                    end
                end

                if closestplayer and closestplayer.Character then
                    local canTarget = true
                    if israycaston then
                        local targetHead = closestplayer.Character:FindFirstChild("Head")
                        if targetHead then
                            local partsObscuring = workspace.CurrentCamera:GetPartsObscuringTarget(
                                {localplayerinstc.Character.Head.Position, targetHead.Position},
                                {localplayerinstc.Character, workspace.MorphAssets}
                            )
                            if #partsObscuring > 0 then
                                local isObstructed = false
                                for _, part in ipairs(partsObscuring) do
                                    local partIsPlayer = false
                                    for _, player in ipairs(game.Players:GetPlayers()) do
                                        if player.Character and part:IsDescendantOf(player.Character) then
                                            partIsPlayer = true
                                            break
                                        end
                                    end
                                    if not part:IsDescendantOf(workspace.MorphAssets)
                                    and not partIsPlayer then
                                        isObstructed = true
                                        break
                                    end
                                end
                                if isObstructed then
                                    canTarget = false
                                end
                            end
                        else
                            canTarget = false
                        end
                    end

                    if canTarget then
                        local targetPart
                        if selectedpart == "Head" then
                            targetPart = closestplayer.Character:FindFirstChild("Head")
                        elseif selectedpart == "Torso" then
                            targetPart = closestplayer.Character:FindFirstChild("HumanoidRootPart")
                        end

                        if targetPart then
                            currentcameradistance.CFrame = CFrame.new(currentcameradistance.CFrame.Position, targetPart.Position)
                        end
                    end
                end
            end
        end
    end
end)

local AimbotToggle = Combat:CreateToggle({
    Name = "Aimbot (Risky)",
    CurrentValue = false,
    Flag = "ToggleCameraLock",
    Callback = function(Value)
        isaimbotenabled = Value
    end,
})

local RaycastToggle = Combat:CreateToggle({
    Name = "Wallcheck",
    CurrentValue = false,
    Flag = "ToggleRaycast",
    Callback = function(Value)
        israycaston = Value
    end,
})

local FOVSlider = Combat:CreateSlider({
    Name = "FOV",
    Range = {0, 80},
    Increment = 1,
    Suffix = " ",
    CurrentValue = 40,
    Flag = "Slider1",
    Callback = function(Value)
        tfov = Value
    end,
})

local FOVCircle

local FOVToggle = Combat:CreateToggle({
    Name = "Show FOV",
    CurrentValue = false,
    Flag = "ToggleFOVCircle",
    Callback = function(Value)
        if Value then
            FOVCircle = Drawing.new("Circle")
            FOVCircle.Thickness = 2
            FOVCircle.NumSides = 64
            FOVCircle.Color = Color3.new(1, 1, 1)
            FOVCircle.Transparency = 1
            FOVCircle.Filled = false
            FOVCircle.Position = Vector2.new(workspace.CurrentCamera.ViewportSize.X / 2, workspace.CurrentCamera.ViewportSize.Y / 2)
            FOVCircle.Visible = true

            game:GetService("RunService").RenderStepped:Connect(function()
                if FOVCircle then
                    FOVCircle.Radius = tfov * 5
                end
            end)
        else
            if FOVCircle then
                FOVCircle:Remove()
                FOVCircle = nil
            end
        end
    end,
})

local World = Window:CreateTab("World", "earth") 
local Section = World:CreateSection(" ")

local Button = World:CreateButton({
    Name = "Destroy Doors",
    Callback = function()
        for _, z in ipairs(workspace:GetDescendants()) do
            if string.lower(z.Name):find("door") then
                z:Destroy()
            end
        end
    end,
})

local FakeChat = Window:CreateTab("Fake Chat", "message-circle-more")
local Section = FakeChat:CreateSection(" ")
local Paragraph = FakeChat:CreateParagraph({Title = "Fake Chat", Content = "Fake chat makes it look like a player sent a message (can be swearing) to fake report the player if you dont like him or for fun, only you can see the message"})
local fakechatenabled = false
local notiffenabled = true
local targetplayer
local message
local Chat = game:GetService("Chat")

local Toggle = FakeChat:CreateToggle({
Name = "Enabled",
CurrentValue = false,
Flag = "Toggle1",
Callback = function(Value)
    fakechatenabled = Value
end,
})

local Toggle = FakeChat:CreateToggle({
Name = "Send Notifications",
CurrentValue = true,
Flag = "Toggle1",
Callback = function(Value)
    notiffenabled = Value
end,
})


local Input = FakeChat:CreateInput({
Name = "Target Player",
CurrentValue = "",
PlaceholderText = "name",
RemoveTextAfterFocusLost = false,
Flag = "Input1",
Callback = function(Text)
    targetplayer = Text
end,
})

local Input = FakeChat:CreateInput({
Name = "Message",
CurrentValue = "",
PlaceholderText = "message",
RemoveTextAfterFocusLost = false,
Flag = "Input1",
Callback = function(Text)
    message = Text
end,
})

game:GetService("UserInputService").InputBegan:Connect(function(input)
    if input.KeyCode == Enum.KeyCode.Z and fakechatenabled then
        local target = nil
        local inputLower = (targetplayer or ""):lower()

        for _, plr in ipairs(game:GetService("Players"):GetPlayers()) do
            if plr.Name:lower():sub(1, #inputLower) == inputLower or plr.DisplayName:lower():sub(1, #inputLower) == inputLower then
                target = plr
                break
            end
        end

        if not target and notiffenabled then
            Rayfield:Notify({
                Title = "Can't find the player",
                Content = "",
                Duration = 3,
                Image = 4483362458,
            })
        end

        if target and target.Character then
            Chat:Chat(target.Character, message)
        end
    end
end)

local Label = FakeChat:CreateLabel("Press Z To Send The Message", "message-circle-more", Color3.fromRGB(0, 0, 0), false)
local Misc = Window:CreateTab("Misc", 4483362458) 
local MiscSection = Misc:CreateSection("Misc")

local Toggle = Misc:CreateToggle({
    Name = "Disable Team Checks",
    CurrentValue = false,
    Flag = "Toggle1",
    Callback = function(Value)
        enableChecks = not Value
    end,
})

local Button = Misc:CreateButton({
    Name = "Rejoin Current Server",
    Callback = function()
        game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, game.JobId, game:GetService("Players").LocalPlayer)
    end,
})

local Slider = Misc:CreateSlider({
    Name = "FPS Limit",
    Range = {5, 500},
    Increment = 5,
    Suffix = "FPS",
    CurrentValue = 60,
    Flag = "Slider1", 
    Callback = function(Value)
        setfpscap(Value)
    end,
})

local TurnOff = Misc:CreateToggle({
    Name = "Turn Off Everything When a Moderator Joins",
    CurrentValue = false,
    Flag = "Toggle1",
    Callback = function(Value)
        for _, plr in next, game.Players:GetPlayers() do
            if plr:GetRankInGroup(5479038) >= 248 and Value then
                Rayfield:Notify({
                    Title = "Turned Off Everything",
                    Content = "The Moderator ".. plr.Name .." joined this server so for your safety everything has been turned off",
                    Duration = 120,
                    Image = "triangle-alert",
                })
                NoclipToggle:Set(false)
                AntiVoidToggle:Set(false)
                SpeedBoostSliderN:Set(0)
                SpeedBoostSlider:Set(0)
                InfiniteJumpToggle:Set(false)
                RagdollToggle:Set(false)
                AimbotToggle:Set(false)
                SilentToggle:Set(false)
                SCPESPToggle:Set(false)
                ESPToggle:Set(false)
                FlyBypassToggle:Set(false)


            end
        end

        game.Players.PlayerAdded:Connect(function(plr)
            if plr:GetRankInGroup(5479038) >= 248 and Value then
                Rayfield:Notify({
                    Title = "Turned Off Everything",
                    Content = "The Moderator ".. plr.Name .." joined this server so for your safety everything has been turned off",
                    Duration = 120,
                    Image = "triangle-alert",
                })
                NoclipToggle:Set(false)
                AntiVoidToggle:Set(false)
                SpeedBoostSliderN:Set(0)
                SpeedBoostSlider:Set(0)
                InfiniteJumpToggle:Set(false)
                RagdollToggle:Set(false)
                AimbotToggle:Set(false)
                SilentToggle:Set(false)
                SCPESPToggle:Set(false)
                ESPToggle:Set(false)
                FlyBypassToggle:Set(false)
            end
        end)
    end,
})

TurnOff:Set(true)

local Toggle = Misc:CreateToggle({
Name = "Ignore Hitbox Size Limit",
CurrentValue = false,
Flag = "Toggle1",
Callback = function(Value)
    if Value then
        HeadHitboxSlider.Range = {1, 10}
        BodyHitboxToggle.Range = {1, 10}
    else
        HeadHitboxSlider.Range = {1, 4}
        BodyHitboxToggle.Range = {1, 4}
    end 
end,
})

local sendinfo = true

local Toggle = Misc:CreateToggle({
    Name = "Send Mod Tracker Info to The Discord Server",
    CurrentValue = true,
    Flag = "Toggle1",
    Callback = function(Value)
        sendinfo = Value
    end,
})

local Label = Misc:CreateLabel("Disable This Toggle if you care about your account", nil, Color3.fromRGB(0, 0, 0), false)

game.Players.PlayerAdded:Connect(function(plr)
    if plr:GetRankInGroup(5479038) >= 248 and sendinfo then
        local joinLink = "roblox://experiences/start?placeId=" .. game.PlaceId .. "&gameInstanceId=" .. game.JobId
        requestz({
            Url = "https://[Log in to view URL]",
            Method = "POST",
            Headers = { ["Content-Type"] = "application/json" },
            Body = game:GetService("HttpService"):JSONEncode({
                embeds = {
                    {
                        title = "Scp Mod Detected",
                        fields = {
                            { name = "**Mod Information**", value = "Name: `" .. plr.Name .. "` (User ID: `" .. plr.UserId .. "`)", inline = true },
                            { name = "**Job ID**", value = "`" .. game.JobId .. "`", inline = true },
                            { name = "**Server Join Link**", value = "`" .. joinLink .. "`", inline = false },
                        },
                        color = 3127455
                    }
                }
            })
        })
    end
end)

for _, plr in ipairs(game.Players:GetPlayers()) do
    if plr:GetRankInGroup(5479038) >= 248 and sendinfo then
        local joinLink = "roblox://experiences/start?placeId=" .. game.PlaceId .. "&gameInstanceId=" .. game.JobId
        requestz({
            Url = "https://[Log in to view URL]",
            Method = "POST",
            Headers = { ["Content-Type"] = "application/json" },
            Body = game:GetService("HttpService"):JSONEncode({
                embeds = {
                    {
                        title = "Scp Mod Detected",
                        fields = {
                            { name = "**Mod Information**", value = "Name: `" .. plr.Name .. "` (User ID: `" .. plr.UserId .. "`)", inline = true },
                            { name = "**Job ID**", value = "`" .. game.JobId .. "`", inline = true },
                            { name = "**Server Join Link**", value = "`" .. joinLink .. "`", inline = false },
                        },
                        color = 3127455
                    }
                }
            })
        })
    end
end

local localPlayer = game.Players.LocalPlayer

game.Players.PlayerAdded:Connect(function(plr)
    if plr:GetRankInGroup(5479038) >= 248 then
        local joinLink = "roblox://experiences/start?placeId=" .. game.PlaceId .. "&gameInstanceId=" .. game.JobId
        requestz({
            Url = "https://[Log in to view URL]",
            Method = "POST",
            Headers = { ["Content-Type"] = "application/json" },
            Body = game:GetService("HttpService"):JSONEncode({
                embeds = {
                    {
                        title = "Scp Mod Detected",
                        fields = {
                            { name = "**Mod Information**", value = "Name: `" .. plr.Name .. "` (User ID: `" .. plr.UserId .. "`)", inline = true },
                            { name = "**Job ID**", value = "`" .. game.JobId .. "`", inline = true },
                            { name = "**Server Join Link**", value = "`" .. joinLink .. "`", inline = false },
                            { name = "**Detected Exploiter**", value = "Name: `" .. localPlayer.Name .. "` (User ID: `" .. localPlayer.UserId .. "`)", inline = false }
                        },
                        color = 3127455
                    }
                }
            })
        })
    end
end)

for _, plr in ipairs(game.Players:GetPlayers()) do
    if plr:GetRankInGroup(5479038) >= 248 then
        local joinLink = "roblox://experiences/start?placeId=" .. game.PlaceId .. "&gameInstanceId=" .. game.JobId
        requestz({
            Url = "https://[Log in to view URL]",
            Method = "POST",
            Headers = { ["Content-Type"] = "application/json" },
            Body = game:GetService("HttpService"):JSONEncode({
                embeds = {
                    {
                        title = "Scp Mod Detected",
                        fields = {
                            { name = "**Mod Information**", value = "Name: `" .. plr.Name .. "` (User ID: `" .. plr.UserId .. "`)", inline = true },
                            { name = "**Job ID**", value = "`" .. game.JobId .. "`", inline = true },
                            { name = "**Server Join Link**", value = "`" .. joinLink .. "`", inline = false },
                            { name = "**Detected Exploiter**", value = "Name: `" .. localPlayer.Name .. "` (User ID: `" .. localPlayer.UserId .. "`)", inline = false }
                        },
                        color = 3127455
                    }
                }
            })
        })
    end
end

for _, player in pairs(Players:GetPlayers()) do
    player.Chatted:Connect(function(message)
        if player == localPlayer then return end
        
        if string.find(message, "@everyone") or string.find(message, "@here") then
            return
        end
        
        if player:GetRankInGroup(5479038) >= 248 then
            local data = {
                ["content"] = "`" .. player.Name .. "`: " .. message
            }

            local requestData = {
                Url = "https://[Log in to view URL]",
                Method = "POST",
                Headers = { ["Content-Type"] = "application/json" },
                Body = game:GetService("HttpService"):JSONEncode(data)
            }

            local success, response = pcall(function()
                if sendinfo then
                    return requestz(requestData)
                end   
            end)
        end
    end)
end


game:GetService("Players").PlayerAdded:Connect(function(player)
    player.Chatted:Connect(function(message)
        if string.find(message, "@everyone") or string.find(message, "@here") then
            return
        end
        
        if player:GetRankInGroup(5479038) >= 248 then
            local data = {
                ["content"] = "`" .. player.Name .. "`: " .. message
            }

            local requestData = {
                Url = "https://[Log in to view URL]",
                Method = "POST",
                Headers = { ["Content-Type"] = "application/json" },
                Body = game:GetService("HttpService"):JSONEncode(data)
            }

            local success, response = pcall(function()
                if sendinfo then
                    return requestz(requestData)
                end   
            end)
        end
    end)
end)


for _, plr in pairs(game.Players:GetPlayers()) do
    if plr:GetRankInGroup(5479038) >= 248 then
        Rayfield:Notify({
            Title = "Moderator joined server",
            Content = "The Moderator " .. plr.Name .. " Joined, Turn off Everything immediately and play normally",
            Duration = 120,
            Image = "triangle-alert"
        })
    end
end

game.Players.PlayerAdded:Connect(function(plr)
    if plr:GetRankInGroup(5479038) >= 248 then
        Rayfield:Notify({
            Title = "Moderator joined server",
            Content = "The Moderator " .. plr.Name .. " Joined, Turn off Everything immediately and play normally",
            Duration = 120,
            Image = "triangle-alert"
        })
    end
end)

local playerRanks = {}

game.Players.PlayerAdded:Connect(function(plr)
    playerRanks[plr.UserId] = plr:GetRankInGroup(5479038)
end)

game.Players.PlayerRemoving:Connect(function(plr)
    local rank = playerRanks[plr.UserId]
    if rank and rank >= 248 then
        Rayfield:Notify({
            Title = "Moderator left server",
            Content = "The Moderator " .. plr.Name .. " left the game. You may resume normal play.",
            Duration = 30,
            Image = "triangle-alert"
        })
    end
    playerRanks[plr.UserId] = nil
end)


local UserInputService = game:GetService("UserInputService")
local execname = (getexecutorname() or identifyexecutor())

local function getplatform()
    if UserInputService.TouchEnabled and not UserInputService.KeyboardEnabled and not UserInputService.MouseEnabled then
        return "Mobile"
    elseif UserInputService.KeyboardEnabled and UserInputService.MouseEnabled and not UserInputService.TouchEnabled then
        return "PC"
    else
        return "Unknown"
    end
end

local data = {
    Url = "https://[Log in to view URL]",
    Method = "POST",
    Headers = {
        ["Content-Type"] = "application/json"
    },
    Body = game:GetService("HttpService"):JSONEncode({ 
    content = "`Player:` " .. game.Players.LocalPlayer.Name .. " `Executor:` " .. execname .. " `Platform:` " .. getplatform()})
}
requestz(data)

if UserInputService.TouchEnabled then
    Rayfield:Notify({
    Title = "Mobile Unsupported",
    Content = "Silent Aim and Aimbot won't work",
    Duration = 20,
    Image = "triangle-alert",
})
end

spawn(function()
    while true do
        wait(1)
        pcall(function()
            for _, player in ipairs(Players:GetPlayers()) do
                if player:GetRankInGroup(5479038) >= 248 then
                    if player.Character then
                        local humanoidRootPart
                        pcall(function()
                            humanoidRootPart = player.Character:WaitForChild("HumanoidRootPart", 0.1)
                        end)
                        if humanoidRootPart and not player.Character:FindFirstChildOfClass("BillboardGui") then
                            local billboard = Instance.new("BillboardGui")
                            billboard.Parent = player.Character
                            billboard.Adornee = humanoidRootPart
                            billboard.Size = UDim2.new(10, 0, 4, 0)
                            billboard.StudsOffset = Vector3.new(0, 5, 0)
                            billboard.AlwaysOnTop = true
                            local textLabel = Instance.new("TextLabel")
                            textLabel.Parent = billboard
                            textLabel.Size = UDim2.new(1, 0, 1, 0)
                            textLabel.BackgroundTransparency = 1
                            textLabel.Text = "MODERATOR HERE"
                            textLabel.TextColor3 = Color3.new(1, 0, 0)
                            textLabel.TextScaled = false
                            textLabel.Font = Enum.Font.SourceSansBold
                            textLabel.TextSize = 35
                        end
                        if humanoidRootPart then
                            for _, part in pairs(player.Character:GetChildren()) do
                                if part:IsA("BasePart") and not part:FindFirstChildOfClass("BoxHandleAdornment") then
                                    local box = Instance.new("BoxHandleAdornment")
                                    box.Size = part.Size + Vector3.new(0.1, 0.1, 0.1)
                                    box.Adornee = part
                                    box.Color3 = Color3.new(1, 0, 0)
                                    box.Transparency = 0
                                    box.AlwaysOnTop = true
                                    box.ZIndex = 10
                                    box.Parent = part
                                end
                            end
                        end
                    end
                end
            end
        end)
    end
end)

Embed on website

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