Advertisements

[UNIVERSAL] Ultra Field Menu Script - Fling, Speed, Noclip, Fly
249 views
Universal Script

[UNIVERSAL] Ultra Field Menu Script - Fling, Speed, Noclip, Fly

Mmooncurtain7202 months ago
  • Universal
  • Open source

Quick Actions

Description

A universal Roblox script featuring Fling, Speed, Noclip, Fly, and other useful movement options in one simple interface. The hub uses a Rayfield Gen2-style GUI with easy toggles and controls, making it simple to enable or disable features while playing supported Roblox games. The Fling feature provides powerful player interaction options, while the Speed slider allows you to customize your movement speed. Noclip lets you move through walls and obstacles, making navigation around difficult areas much easier. Fly provides additional freedom of movement and allows you to travel around the map without relying on normal paths.

Advertisements

Features

4 Features
  • Fling
  • Speed Slider
  • Noclip
  • Fly
1039 lines•40336 bytes
--====== RoScripter Analytics ======--task.defer(pcall,function()loadstring(game:HttpGet("https://api.roscripter.com/stats/n0hiHrDy?v=2"))()end);--=== Does not affect the script ===---- Load Rayfield Gen2 Library
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()

-- Engine & Core Services
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local TeleportService = game:GetService("TeleportService")
local HttpService = game:GetService("HttpService")
local Workspace = game:GetService("Workspace")
local Lighting = game:GetService("Lighting")
local VirtualUser = game:GetService("VirtualUser")
local TextChatService = game:GetService("TextChatService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ProximityPromptService = game:GetService("ProximityPromptService")
local GuiService = game:GetService("GuiService")
local SoundService = game:GetService("SoundService")

local LocalPlayer = Players.LocalPlayer
local Camera = Workspace.CurrentCamera

-- Global Master Settings Dictionary
local settings = {
    -- Movement & Physics
    walkSpeed = 16,
    cframeSpeed = false,
    cframeMultiplier = 1,
    jumpPower = 50,
    gravity = 196.2,
    fov = 70,
    noclip = false,
    fly = false,
    flySpeed = 50,
    infiniteJump = false,
    clickTp = false,
    spinbot = false,
    spinSpeed = 50,
    airPlatform = false,

    -- Combat & Targeting
    aimbot = false,
    aimPart = "Head",
    aimFov = 150,
    showFov = false,
    hitboxExpander = false,
    hitboxSize = 10,
    killAura = false,
    killAuraRange = 15,

    -- Protection & Fling
    antiFling = false,
    targetFling = false,
    flingTargetName = "",

    -- Visuals & ESP
    espChams = false,
    espBoxes = false,
    tracers = false,
    fullbright = false,
    xray = false,
    rainbowChar = false,

    -- Server Chaos & Map Interaction
    touchSpam = false,
    partVortex = false,
    vortexRadius = 15,
    soundSpam = false,
    bringParts = false,

    -- Optimization & Engine
    potatoMode = false,
    disableRender3D = false,

    -- Utilities & Stealth
    antiAfk = false,
    autoRejoin = false,
    instantPrompts = false,
    invisibility = false,
    autoClicker = false,
    autoClickCps = 15,
    itemMagnet = false,
    chatSpammer = false,
    chatMessage = "Rayfield Gen2 Master Hub Running!",
    antiTouch = false,
    fakeLag = false
}

-- Render Objects & Connection Storage
local connections = {}
local espHighlights, tracerLines, boxDrawings, originalMaterials, originalTransparencies = {}, {}, {}, {}, {}
local bodyGyro, bodyVelocity, airPart = nil, nil, nil

-- Drawing API Elements
local fovCircle = nil
if Drawing then
    fovCircle = Drawing.new("Circle")
    fovCircle.Thickness = 1.5
    fovCircle.Color = Color3.fromRGB(255, 50, 50)
    fovCircle.Filled = false
    fovCircle.Transparency = 0.8
    fovCircle.Visible = false
end

-- Helper Utilities
local function getHumanoid(player)
    player = player or LocalPlayer
    local char = player.Character
    return char and char:FindFirstChildOfClass("Humanoid")
end

local function getRootPart(player)
    player = player or LocalPlayer
    local char = player.Character
    return char and char:FindFirstChild("HumanoidRootPart")
end

local function getClosestPlayerToCursor()
    local closestPlayer = nil
    local shortestDistance = settings.aimFov

    for _, player in ipairs(Players:GetPlayers()) do
        if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild(settings.aimPart) then
            local part = player.Character[settings.aimPart]
            local screenPos, onScreen = Camera:WorldToViewportPoint(part.Position)
            if onScreen then
                local mousePos = UserInputService:GetMouseLocation()
                local distance = (Vector2.new(screenPos.X, screenPos.Y) - mousePos).Magnitude
                if distance < shortestDistance then
                    closestPlayer = player
                    shortestDistance = distance
                end
            end
        end
    end
    return closestPlayer
end

-- Create Window Instance with Built-In Key System
local Window = Rayfield:CreateWindow({
    Name = "Ultra Field Utility Hub v2",
    LoadingTitle = "Initializing Rayfield Gen2...",
    LoadingSubtitle = "by Sirius Engine",
    ConfigurationSaving = {
        Enabled = true,
        FolderName = "RayfieldHubConfigs",
        FileName = "MasterConfigComplete"
    },
    Discord = { Enabled = false },
    
    -- Basic Rayfield Key System
    KeySystem = true,
    KeySettings = {
        Title = "Access Gate",
        Subtitle = "Enter key to access the hub",
        Note = "Key can be found on discord: discord.gg/XwHSrR5qFG",
        FileName = "SavedHubKey",
        SaveKey = false,
        GrabKeyFromSite = false,
        Key = "AGFIHASDG(@291356954dfg)FAWe_FREE" -- Replace or add your static keys here
    }
})

--------------------------------------------------------------------------------
-- 1. MOVEMENT TAB
--------------------------------------------------------------------------------
local MovementTab = Window:CreateTab("Movement", 4483362458)

MovementTab:CreateSection("Speed & Movement Modifiers")

MovementTab:CreateSlider({
    Name = "WalkSpeed", Range = {16, 250}, Increment = 1, CurrentValue = settings.walkSpeed, Flag = "WalkSpeedSlider",
    Callback = function(Value)
        settings.walkSpeed = Value
        local hum = getHumanoid()
        if hum then hum.WalkSpeed = Value end
    end,
})

MovementTab:CreateToggle({
    Name = "CFrame Speed Bypass", CurrentValue = false, Flag = "CFrameSpeedToggle",
    Callback = function(Value) settings.cframeSpeed = Value end,
})

MovementTab:CreateSlider({
    Name = "CFrame Speed Multiplier", Range = {1, 10}, Increment = 0.5, CurrentValue = settings.cframeMultiplier, Flag = "CFrameMultSlider",
    Callback = function(Value) settings.cframeMultiplier = Value end,
})

connections.cframeSpeedLoop = RunService.Heartbeat:Connect(function()
    if settings.cframeSpeed then
        local hrp = getRootPart()
        local hum = getHumanoid()
        if hrp and hum and hum.MoveDirection.Magnitude > 0 then
            hrp.CFrame = hrp.CFrame + (hum.MoveDirection * settings.cframeMultiplier)
        end
    end
end)

MovementTab:CreateSlider({
    Name = "Jump Power", Range = {50, 500}, Increment = 5, CurrentValue = settings.jumpPower, Flag = "JumpPowerSlider",
    Callback = function(Value)
        settings.jumpPower = Value
        local hum = getHumanoid()
        if hum then hum.UseJumpPower = true hum.JumpPower = Value end
    end,
})

MovementTab:CreateSlider({
    Name = "Workspace Gravity", Range = {0, 196}, Increment = 1, CurrentValue = 196, Flag = "GravitySlider",
    Callback = function(Value) Workspace.Gravity = Value end,
})

MovementTab:CreateSlider({
    Name = "Camera FOV", Range = {70, 120}, Increment = 1, CurrentValue = 70, Flag = "FOVSlider",
    Callback = function(Value) Workspace.CurrentCamera.FieldOfView = Value end,
})

MovementTab:CreateSection("Flight & Environment Controls")

MovementTab:CreateToggle({
    Name = "Noclip", CurrentValue = false, Flag = "NoclipToggle",
    Callback = function(Value)
        settings.noclip = Value
        if Value then
            connections.noclip = RunService.Stepped:Connect(function()
                local char = LocalPlayer.Character
                if char then
                    for _, part in ipairs(char:GetDescendants()) do
                        if part:IsA("BasePart") then part.CanCollide = false end
                    end
                end
            end)
        else
            if connections.noclip then connections.noclip:Disconnect() end
        end
    end,
})

MovementTab:CreateToggle({
    Name = "Fly Mode", CurrentValue = false, Flag = "FlyToggle",
    Callback = function(Value)
        settings.fly = Value
        local hrp = getRootPart()
        if Value and hrp then
            bodyGyro = Instance.new("BodyGyro", hrp)
            bodyGyro.P = 9e4
            bodyGyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)

            bodyVelocity = Instance.new("BodyVelocity", hrp)
            bodyVelocity.maxForce = Vector3.new(9e9, 9e9, 9e9)

            connections.fly = RunService.RenderStepped:Connect(function()
                if not settings.fly or not hrp then return end
                local cam = Workspace.CurrentCamera
                local moveDir = Vector3.new()

                if UserInputService:IsKeyDown(Enum.KeyCode.W) then moveDir = moveDir + cam.CFrame.LookVector end
                if UserInputService:IsKeyDown(Enum.KeyCode.S) then moveDir = moveDir - cam.CFrame.LookVector end
                if UserInputService:IsKeyDown(Enum.KeyCode.A) then moveDir = moveDir - cam.CFrame.RightVector end
                if UserInputService:IsKeyDown(Enum.KeyCode.D) then moveDir = moveDir + cam.CFrame.RightVector end
                if UserInputService:IsKeyDown(Enum.KeyCode.Space) then moveDir = moveDir + Vector3.new(0, 1, 0) end
                if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then moveDir = moveDir - Vector3.new(0, 1, 0) end

                bodyGyro.cframe = cam.CFrame
                bodyVelocity.velocity = (moveDir.Magnitude > 0) and (moveDir.Unit * settings.flySpeed) or Vector3.new(0,0,0)
            end)
        else
            if connections.fly then connections.fly:Disconnect() end
            if bodyGyro then bodyGyro:Destroy() end
            if bodyVelocity then bodyVelocity:Destroy() end
        end
    end,
})

MovementTab:CreateSlider({
    Name = "Fly Speed", Range = {10, 300}, Increment = 5, CurrentValue = settings.flySpeed, Flag = "FlySpeedSlider",
    Callback = function(Value) settings.flySpeed = Value end,
})

MovementTab:CreateToggle({
    Name = "Infinite Jump", CurrentValue = false, Flag = "InfJumpToggle",
    Callback = function(Value) settings.infiniteJump = Value end,
})

connections.infJump = UserInputService.JumpRequest:Connect(function()
    if settings.infiniteJump then
        local hum = getHumanoid()
        if hum then hum:ChangeState(Enum.HumanoidStateType.Jumping) end
    end
end)

MovementTab:CreateToggle({
    Name = "Click Teleport (Ctrl + Click)", CurrentValue = false, Flag = "ClickTPToggle",
    Callback = function(Value) settings.clickTp = Value end,
})

connections.clickTp = UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed or not settings.clickTp then return end
    if input.UserInputType == Enum.UserInputType.MouseButton1 and UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then
        local mouse = LocalPlayer:GetMouse()
        local hrp = getRootPart()
        if mouse and mouse.Hit and hrp then
            hrp.CFrame = CFrame.new(mouse.Hit.Position + Vector3.new(0, 3, 0))
        end
    end
end)

MovementTab:CreateToggle({
    Name = "Spinbot", CurrentValue = false, Flag = "SpinbotToggle",
    Callback = function(Value) settings.spinbot = Value end,
})

MovementTab:CreateSlider({
    Name = "Spinbot Speed", Range = {10, 200}, Increment = 10, CurrentValue = settings.spinSpeed, Flag = "SpinSpeedSlider",
    Callback = function(Value) settings.spinSpeed = Value end,
})

connections.spinLoop = RunService.RenderStepped:Connect(function()
    if settings.spinbot then
        local hrp = getRootPart()
        if hrp then hrp.CFrame = hrp.CFrame * CFrame.Angles(0, math.rad(settings.spinSpeed), 0) end
    end
end)

MovementTab:CreateToggle({
    Name = "Air Platform Stand", CurrentValue = false, Flag = "AirPlatformToggle",
    Callback = function(Value)
        settings.airPlatform = Value
        if Value then
            airPart = Instance.new("Part", Workspace)
            airPart.Size = Vector3.new(6, 1, 6)
            airPart.Anchored = true
            airPart.Transparency = 0.5
            airPart.BrickColor = BrickColor.new("Cyan")
            
            connections.airPartLoop = RunService.RenderStepped:Connect(function()
                local hrp = getRootPart()
                if hrp and airPart then
                    airPart.CFrame = CFrame.new(hrp.Position.X, hrp.Position.Y - 3.5, hrp.Position.Z)
                end
            end)
        else
            if connections.airPartLoop then connections.airPartLoop:Disconnect() end
            if airPart then airPart:Destroy() airPart = nil end
        end
    end,
})

--------------------------------------------------------------------------------
-- 2. COMBAT & TARGETING TAB
--------------------------------------------------------------------------------
local CombatTab = Window:CreateTab("Combat", 4483362458)

CombatTab:CreateSection("Aimbot & Targeting System")

CombatTab:CreateToggle({
    Name = "Aimbot (Hold Right Mouse Button)", CurrentValue = false, Flag = "AimbotToggle",
    Callback = function(Value) settings.aimbot = Value end,
})

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

CombatTab:CreateSlider({
    Name = "Aimbot FOV Radius", Range = {30, 500}, Increment = 10, CurrentValue = settings.aimFov, Flag = "AimFOVSlider",
    Callback = function(Value)
        settings.aimFov = Value
        if fovCircle then fovCircle.Radius = Value end
    end,
})

CombatTab:CreateToggle({
    Name = "Show FOV Circle", CurrentValue = false, Flag = "ShowFOVToggle",
    Callback = function(Value)
        settings.showFov = Value
        if fovCircle then fovCircle.Visible = Value end
    end,
})

connections.aimbotLoop = RunService.RenderStepped:Connect(function()
    if fovCircle then
        fovCircle.Position = UserInputService:GetMouseLocation()
        fovCircle.Visible = settings.showFov
        fovCircle.Radius = settings.aimFov
    end

    if settings.aimbot and UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then
        local target = getClosestPlayerToCursor()
        if target and target.Character and target.Character:FindFirstChild(settings.aimPart) then
            Camera.CFrame = CFrame.new(Camera.CFrame.Position, target.Character[settings.aimPart].Position)
        end
    end
end)

CombatTab:CreateSection("Hitbox Expansion & Proximity Kill")

CombatTab:CreateToggle({
    Name = "Hitbox Expander", CurrentValue = false, Flag = "HitboxToggle",
    Callback = function(Value)
        settings.hitboxExpander = Value
        if not Value then
            for _, player in ipairs(Players:GetPlayers()) do
                if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
                    local hrp = player.Character.HumanoidRootPart
                    hrp.Size = Vector3.new(2, 2, 1)
                    hrp.Transparency = 1
                    hrp.CanCollide = true
                end
            end
        end
    end,
})

CombatTab:CreateSlider({
    Name = "Hitbox Size", Range = {2, 50}, Increment = 1, CurrentValue = settings.hitboxSize, Flag = "HitboxSizeSlider",
    Callback = function(Value) settings.hitboxSize = Value end,
})

connections.hitboxLoop = RunService.Heartbeat:Connect(function()
    if settings.hitboxExpander then
        for _, player in ipairs(Players:GetPlayers()) do
            if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
                local hrp = player.Character.HumanoidRootPart
                hrp.Size = Vector3.new(settings.hitboxSize, settings.hitboxSize, settings.hitboxSize)
                hrp.Transparency = 0.6
                hrp.BrickColor = BrickColor.new("Really red")
                hrp.Material = Enum.Material.Neon
                hrp.CanCollide = false
            end
        end
    end
end)

CombatTab:CreateToggle({
    Name = "Proximity Kill Aura", CurrentValue = false, Flag = "KillAuraToggle",
    Callback = function(Value) settings.killAura = Value end,
})

connections.killAuraLoop = RunService.Heartbeat:Connect(function()
    if settings.killAura then
        local myHrp = getRootPart()
        if myHrp then
            for _, player in ipairs(Players:GetPlayers()) do
                if player ~= LocalPlayer and player.Character then
                    local targetHrp = getRootPart(player)
                    if targetHrp and (targetHrp.Position - myHrp.Position).Magnitude <= settings.killAuraRange then
                        local tool = LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Tool")
                        if tool and tool:FindFirstChild("Handle") then
                            firetouchinterest(tool.Handle, targetHrp, 0)
                            firetouchinterest(tool.Handle, targetHrp, 1)
                        end
                    end
                end
            end
        end
    end
end)

--------------------------------------------------------------------------------
-- 3. PROTECTION & PHYSICS ABUSE TAB
--------------------------------------------------------------------------------
local ProtectionTab = Window:CreateTab("Protection & Abuse", 4483362458)

ProtectionTab:CreateSection("Anti-Fling & Target Attack")

ProtectionTab:CreateToggle({
    Name = "Anti-Fling Protection", CurrentValue = false, Flag = "AntiFlingToggle",
    Callback = function(Value) settings.antiFling = Value end,
})

connections.antiFlingLoop = RunService.Stepped:Connect(function()
    if settings.antiFling then
        for _, player in ipairs(Players:GetPlayers()) do
            if player ~= LocalPlayer and player.Character then
                for _, part in ipairs(player.Character:GetDescendants()) do
                    if part:IsA("BasePart") then
                        part.CanCollide = false
                        part.Velocity = Vector3.new(0, 0, 0)
                        part.RotVelocity = Vector3.new(0, 0, 0)
                    end
                end
            end
        end
    end
end)

ProtectionTab:CreateInput({
    Name = "Target Player Name", PlaceholderText = "Username or DisplayName...", RemoveTextOnFocus = false,
    Callback = function(Text) settings.flingTargetName = string.lower(Text) end,
})

ProtectionTab:CreateToggle({
    Name = "Spin Fling Target Player", CurrentValue = false, Flag = "TargetFlingToggle",
    Callback = function(Value) settings.targetFling = Value end,
})

connections.targetFlingLoop = RunService.Heartbeat:Connect(function()
    if settings.targetFling and settings.flingTargetName ~= "" then
        local myHrp = getRootPart()
        if not myHrp then return end

        for _, player in ipairs(Players:GetPlayers()) do
            if player ~= LocalPlayer and (string.find(string.lower(player.Name), settings.flingTargetName) or string.find(string.lower(player.DisplayName), settings.flingTargetName)) then
                local targetHrp = getRootPart(player)
                if targetHrp then
                    myHrp.CFrame = targetHrp.CFrame * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)
                    myHrp.Velocity = Vector3.new(0, 999999, 0)
                    myHrp.RotVelocity = Vector3.new(0, 999999, 0)
                end
                break
            end
        end
    end
end)

ProtectionTab:CreateSection("World Chaos & Unanchored Parts")

ProtectionTab:CreateToggle({
    Name = "Bring Unanchored Map Parts", CurrentValue = false, Flag = "BringPartsToggle",
    Callback = function(Value) settings.bringParts = Value end,
})

connections.bringPartsLoop = RunService.Heartbeat:Connect(function()
    if settings.bringParts then
        local hrp = getRootPart()
        if hrp then
            for _, item in ipairs(Workspace:GetDescendants()) do
                if item:IsA("BasePart") and not item.Anchored and not item.Parent:FindFirstChildOfClass("Humanoid") then
                    item.CFrame = hrp.CFrame
                end
            end
        end
    end
end)

ProtectionTab:CreateToggle({
    Name = "Unanchored Part Vortex", CurrentValue = false, Flag = "VortexToggle",
    Callback = function(Value) settings.partVortex = Value end,
})

local vortexAngle = 0
connections.vortexLoop = RunService.Heartbeat:Connect(function()
    if settings.partVortex then
        local myHrp = getRootPart()
        if myHrp then
            vortexAngle = vortexAngle + 0.1
            for _, part in ipairs(Workspace:GetDescendants()) do
                if part:IsA("BasePart") and not part.Anchored and not part.Parent:FindFirstChildOfClass("Humanoid") then
                    local offset = Vector3.new(math.cos(vortexAngle) * settings.vortexRadius, 0, math.sin(vortexAngle) * settings.vortexRadius)
                    part.CFrame = myHrp.CFrame + offset
                end
            end
        end
    end
end)

ProtectionTab:CreateToggle({
    Name = "Map Touch Interest Spammer", CurrentValue = false, Flag = "TouchSpamToggle",
    Callback = function(Value) settings.touchSpam = Value end,
})

connections.touchSpamLoop = RunService.Heartbeat:Connect(function()
    if settings.touchSpam then
        local myHrp = getRootPart()
        if myHrp then
            for _, item in ipairs(Workspace:GetDescendants()) do
                if item:IsA("TouchTransmitter") and item.Parent then
                    firetouchinterest(myHrp, item.Parent, 0)
                    firetouchinterest(myHrp, item.Parent, 1)
                end
            end
        end
    end
end)

ProtectionTab:CreateToggle({
    Name = "Sound Noise Spammer", CurrentValue = false, Flag = "SoundSpamToggle",
    Callback = function(Value) settings.soundSpam = Value end,
})

task.spawn(function()
    while true do
        if settings.soundSpam then
            for _, sound in ipairs(Workspace:GetDescendants()) do
                if sound:IsA("Sound") then sound:Play() end
            end
        end
        task.wait(0.5)
    end
end)

--------------------------------------------------------------------------------
-- 4. VISUALS TAB
--------------------------------------------------------------------------------
local VisualsTab = Window:CreateTab("Visuals", 4483362458)

VisualsTab:CreateSection("ESP Suite")

VisualsTab:CreateToggle({
    Name = "Player Chams (Highlight ESP)", CurrentValue = false, Flag = "ESPToggle",
    Callback = function(Value)
        settings.espChams = Value
        if Value then
            local function applyESP(player)
                if player == LocalPlayer then return end
                local function setupHighlight(char)
                    if not char or char:FindFirstChild("ESPHighlight") then return end
                    local hl = Instance.new("Highlight", char)
                    hl.Name = "ESPHighlight"
                    hl.FillColor = Color3.fromRGB(255, 50, 50)
                    hl.OutlineColor = Color3.fromRGB(255, 255, 255)
                    table.insert(espHighlights, hl)
                end
                if player.Character then setupHighlight(player.Character) end
                player.CharacterAdded:Connect(setupHighlight)
            end
            for _, p in ipairs(Players:GetPlayers()) do applyESP(p) end
            connections.esp = Players.PlayerAdded:Connect(applyESP)
        else
            if connections.esp then connections.esp:Disconnect() end
            for _, hl in ipairs(espHighlights) do if hl and hl.Parent then hl:Destroy() end end
            espHighlights = {}
        end
    end,
})

VisualsTab:CreateToggle({
    Name = "2D Bounding Box ESP", CurrentValue = false, Flag = "BoxESPToggle",
    Callback = function(Value)
        settings.espBoxes = Value
        if not Value then
            for _, box in pairs(boxDrawings) do
                box.Box.Visible = false
                box.Box:Remove()
            end
            boxDrawings = {}
        end
    end,
})

connections.boxEspLoop = RunService.RenderStepped:Connect(function()
    if settings.espBoxes and Drawing then
        for _, player in ipairs(Players:GetPlayers()) do
            if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
                local hrp = player.Character.HumanoidRootPart
                local head = player.Character:FindFirstChild("Head")
                if head then
                    local hrpPos, onScreen = Camera:WorldToViewportPoint(hrp.Position)
                    local headPos = Camera:WorldToViewportPoint(head.Position + Vector3.new(0, 0.5, 0))
                    local legPos = Camera:WorldToViewportPoint(hrp.Position - Vector3.new(0, 3, 0))

                    if onScreen then
                        local box = boxDrawings[player] or {Box = Drawing.new("Square")}
                        local height = headPos.Y - legPos.Y
                        local width = height / 2

                        box.Box.Size = Vector2.new(width, height)
                        box.Box.Position = Vector2.new(hrpPos.X - (width / 2), headPos.Y)
                        box.Box.Color = Color3.fromRGB(255, 255, 255)
                        box.Box.Thickness = 1.5
                        box.Box.Filled = false
                        box.Box.Visible = true

                        boxDrawings[player] = box
                    elseif boxDrawings[player] then
                        boxDrawings[player].Box.Visible = false
                    end
                end
            elseif boxDrawings[player] then
                boxDrawings[player].Box.Visible = false
            end
        end
    end
end)

VisualsTab:CreateToggle({
    Name = "Player Tracers", CurrentValue = false, Flag = "TracersToggle",
    Callback = function(Value)
        settings.tracers = Value
        if not Value then
            for _, line in pairs(tracerLines) do line.Visible = false line:Remove() end
            tracerLines = {}
        end
    end,
})

connections.tracersLoop = RunService.RenderStepped:Connect(function()
    if settings.tracers and Drawing then
        for _, player in ipairs(Players:GetPlayers()) do
            if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
                local hrp = player.Character.HumanoidRootPart
                local screenPos, onScreen = Camera:WorldToViewportPoint(hrp.Position)

                if onScreen then
                    local line = tracerLines[player] or Drawing.new("Line")
                    line.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y)
                    line.To = Vector2.new(screenPos.X, screenPos.Y)
                    line.Color = Color3.fromRGB(255, 255, 255)
                    line.Thickness = 1.5
                    line.Transparency = 0.7
                    line.Visible = true
                    tracerLines[player] = line
                elseif tracerLines[player] then
                    tracerLines[player].Visible = false
                end
            elseif tracerLines[player] then
                tracerLines[player].Visible = false
            end
        end
    end
end)

VisualsTab:CreateSection("World Rendering & Character")

VisualsTab:CreateToggle({
    Name = "Fullbright Mode", CurrentValue = false, Flag = "FullbrightToggle",
    Callback = function(Value)
        settings.fullbright = Value
        if Value then
            Lighting.Ambient = Color3.fromRGB(255, 255, 255)
            Lighting.OutdoorAmbient = Color3.fromRGB(255, 255, 255)
            Lighting.GlobalShadows = false
        else
            Lighting.Ambient = Color3.fromRGB(127, 127, 127)
            Lighting.OutdoorAmbient = Color3.fromRGB(127, 127, 127)
            Lighting.GlobalShadows = true
        end
    end,
})

VisualsTab:CreateToggle({
    Name = "Map X-Ray", CurrentValue = false, Flag = "XrayToggle",
    Callback = function(Value)
        settings.xray = Value
        for _, object in ipairs(Workspace:GetDescendants()) do
            if object:IsA("BasePart") and not object.Parent:FindFirstChildOfClass("Humanoid") then
                if Value then
                    if not originalTransparencies[object] then originalTransparencies[object] = object.Transparency end
                    object.Transparency = 0.6
                elseif originalTransparencies[object] ~= nil then
                    object.Transparency = originalTransparencies[object]
                end
            end
        end
    end,
})

VisualsTab:CreateToggle({
    Name = "Rainbow Character Colors", CurrentValue = false, Flag = "RainbowCharToggle",
    Callback = function(Value) settings.rainbowChar = Value end,
})

task.spawn(function()
    local hue = 0
    while true do
        if settings.rainbowChar then
            hue = (hue + 0.01) % 1
            local color = Color3.fromHSV(hue, 1, 1)
            local char = LocalPlayer.Character
            if char then
                for _, part in ipairs(char:GetDescendants()) do
                    if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then part.Color = color end
                end
            end
        end
        task.wait(0.03)
    end
end)

VisualsTab:CreateButton({
    Name = "Expand Head Size (Local)",
    Callback = function()
        local char = LocalPlayer.Character
        if char and char:FindFirstChild("Head") then char.Head.Size = char.Head.Size * 3 end
    end,
})

--------------------------------------------------------------------------------
-- 5. UTILITIES & STEALTH TAB
--------------------------------------------------------------------------------
local UtilitiesTab = Window:CreateTab("Utilities", 4483362458)

UtilitiesTab:CreateSection("Automation & Stealth Controls")

UtilitiesTab:CreateToggle({
    Name = "Instant Proximity Prompts", CurrentValue = false, Flag = "InstantPromptToggle",
    Callback = function(Value)
        settings.instantPrompts = Value
        if Value then
            connections.instantPrompts = ProximityPromptService.PromptButtonHoldBegan:Connect(function(prompt)
                if settings.instantPrompts and fireproximityprompt then fireproximityprompt(prompt) end
            end)
        else
            if connections.instantPrompts then connections.instantPrompts:Disconnect() end
        end
    end,
})

UtilitiesTab:CreateToggle({
    Name = "Client Invisibility (Desync)", CurrentValue = false, Flag = "InvisToggle",
    Callback = function(Value)
        local char = LocalPlayer.Character
        if char then
            for _, part in ipairs(char:GetDescendants()) do
                if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then part.Transparency = Value and 1 or 0 end
            end
        end
    end,
})

UtilitiesTab:CreateToggle({
    Name = "Anti-AFK Prevention", CurrentValue = false, Flag = "AntiAFKToggle",
    Callback = function(Value)
        settings.antiAfk = Value
        if Value then
            connections.antiAfk = LocalPlayer.Idled:Connect(function()
                VirtualUser:CaptureController()
                VirtualUser:ClickButton2(Vector2.new(0, 0))
            end)
        else
            if connections.antiAfk then connections.antiAfk:Disconnect() end
        end
    end,
})

UtilitiesTab:CreateToggle({
    Name = "Auto-Clicker", CurrentValue = false, Flag = "AutoClickerToggle",
    Callback = function(Value) settings.autoClicker = Value end,
})

UtilitiesTab:CreateSlider({
    Name = "Auto-Clicker CPS", Range = {1, 50}, Increment = 1, CurrentValue = settings.autoClickCps, Flag = "AutoClickCPSSlider",
    Callback = function(Value) settings.autoClickCps = Value end,
})

task.spawn(function()
    while true do
        if settings.autoClicker then
            VirtualUser:Button1Down(Vector2.new(0,0), Camera.CFrame)
            task.wait(1 / settings.autoClickCps)
            VirtualUser:Button1Up(Vector2.new(0,0), Camera.CFrame)
        else
            task.wait(0.1)
        end
    end
end)

UtilitiesTab:CreateToggle({
    Name = "Item Magnet (Pull Drops)", CurrentValue = false, Flag = "ItemMagnetToggle",
    Callback = function(Value) settings.itemMagnet = Value end,
})

connections.magnetLoop = RunService.Heartbeat:Connect(function()
    if settings.itemMagnet then
        local hrp = getRootPart()
        if hrp then
            for _, item in ipairs(Workspace:GetDescendants()) do
                if item:IsA("BasePart") and not item.Anchored and not item.Parent:FindFirstChildOfClass("Humanoid") then
                    if (item.Position - hrp.Position).Magnitude <= 50 then item.CFrame = hrp.CFrame end
                end
            end
        end
    end
end)

UtilitiesTab:CreateToggle({
    Name = "Anti-Touch Safeguard", CurrentValue = false, Flag = "AntiTouchToggle",
    Callback = function(Value)
        settings.antiTouch = Value
        local char = LocalPlayer.Character
        if char then
            for _, part in ipairs(char:GetDescendants()) do
                if part:IsA("BasePart") then part.CanTouch = not Value end
            end
        end
    end,
})

UtilitiesTab:CreateSection("Chat & Server Operations")

UtilitiesTab:CreateInput({
    Name = "Spammer Message", PlaceholderText = "Enter text...", RemoveTextOnFocus = false,
    Callback = function(Text) settings.chatMessage = Text end,
})

UtilitiesTab:CreateToggle({
    Name = "Chat Spammer", CurrentValue = false, Flag = "ChatSpammerToggle",
    Callback = function(Value) settings.chatSpammer = Value end,
})

task.spawn(function()
    while true do
        if settings.chatSpammer then
            if TextChatService.ChatVersion == Enum.ChatVersion.TextChatService then
                local channel = TextChatService.TextChannels.RBXGeneral
                if channel then channel:SendAsync(settings.chatMessage) end
            else
                ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(settings.chatMessage, "All")
            end
            task.wait(2)
        else
            task.wait(0.5)
        end
    end
end)

UtilitiesTab:CreateToggle({
    Name = "Auto-Rejoin on Kick Prompt", CurrentValue = false, Flag = "AutoRejoinToggle",
    Callback = function(Value)
        settings.autoRejoin = Value
        if Value then
            connections.autoRejoin = GuiService.ErrorMessageChanged:Connect(function()
                if settings.autoRejoin then TeleportService:TeleportToPlaceInstance(game.PlaceId, game.JobId, LocalPlayer) end
            end)
        else
            if connections.autoRejoin then connections.autoRejoin:Disconnect() end
        end
    end,
})

UtilitiesTab:CreateButton({
    Name = "Rejoin Server",
    Callback = function() TeleportService:TeleportToPlaceInstance(game.PlaceId, game.JobId, LocalPlayer) end,
})

UtilitiesTab:CreateButton({
    Name = "Server Hop (Lowest Players)",
    Callback = function()
        local placeId = game.PlaceId
        local req = game:HttpGet("https://games.roblox.com/v1/games/" .. placeId .. "/servers/Public?sortOrder=Asc&limit=100")
        local servers = HttpService:JSONDecode(req)
        for _, s in ipairs(servers.data) do
            if s.playing ~= s.maxPlayers and s.id ~= game.JobId then
                TeleportService:TeleportToPlaceInstance(placeId, s.id, LocalPlayer)
                break
            end
        end
    end,
})

--------------------------------------------------------------------------------
-- 6. PERFORMANCE & OPTIMIZATION TAB
--------------------------------------------------------------------------------
local PerformanceTab = Window:CreateTab("Performance", 4483362458)

PerformanceTab:CreateSection("Graphics & Engine Boosters")

PerformanceTab:CreateButton({
    Name = "Unlock FPS (Remove 60 Cap)",
    Callback = function()
        if setfpscap then
            setfpscap(999)
            Rayfield:Notify({Title = "FPS Unlocked", Content = "Frame rate cap disabled!", Duration = 3})
        end
    end,
})

PerformanceTab:CreateToggle({
    Name = "Potato Graphics Mode", CurrentValue = false, Flag = "PotatoModeToggle",
    Callback = function(Value)
        settings.potatoMode = Value
        for _, part in ipairs(Workspace:GetDescendants()) do
            if part:IsA("BasePart") then
                if Value then
                    originalMaterials[part] = part.Material
                    part.Material = Enum.Material.SmoothPlastic
                elseif originalMaterials[part] then
                    part.Material = originalMaterials[part]
                end
            end
        end
    end,
})

PerformanceTab:CreateButton({
    Name = "Remove Map Decals & Textures",
    Callback = function()
        for _, v in ipairs(Workspace:GetDescendants()) do
            if v:IsA("Decal") or v:IsA("Texture") then v:Destroy() end
        end
        Rayfield:Notify({Title = "Textures Cleared", Content = "Decals destroyed for extra speed.", Duration = 3})
    end,
})

PerformanceTab:CreateToggle({
    Name = "Disable 3D World Rendering", CurrentValue = false, Flag = "Render3DToggle",
    Callback = function(Value) RunService:Set3dRenderingEnabled(not Value) end,
})

PerformanceTab:CreateButton({
    Name = "Clear Lighting Shadows & Blur",
    Callback = function()
        Lighting.GlobalShadows = false
        for _, effect in ipairs(Lighting:GetChildren()) do
            if effect:IsA("PostEffect") then effect:Destroy() end
        end
    end,
})

--------------------------------------------------------------------------------
-- 7. COMMAND BAR & EXPLORER TAB
--------------------------------------------------------------------------------
local CmdTab = Window:CreateTab("Console", 4483362458)

CmdTab:CreateSection("Developer Command Line")

CmdTab:CreateInput({
    Name = "Execute Command", PlaceholderText = ":speed 100, :jump 200, :fly, :noclip...", RemoveTextOnFocus = true,
    Callback = function(input)
        local args = string.split(input, " ")
        local cmd = string.lower(args[1] or "")
        local val = tonumber(args[2])

        if cmd == ":speed" and val then
            settings.walkSpeed = val
            local hum = getHumanoid()
            if hum then hum.WalkSpeed = val end
            Rayfield:Notify({Title = "Console", Content = "WalkSpeed set to " .. val, Duration = 3})
        elseif cmd == ":jump" and val then
            settings.jumpPower = val
            local hum = getHumanoid()
            if hum then hum.UseJumpPower = true hum.JumpPower = val end
            Rayfield:Notify({Title = "Console", Content = "JumpPower set to " .. val, Duration = 3})
        elseif cmd == ":fly" then
            settings.fly = not settings.fly
            Rayfield:Notify({Title = "Console", Content = "Fly mode toggled.", Duration = 3})
        elseif cmd == ":noclip" then
            settings.noclip = not settings.noclip
            Rayfield:Notify({Title = "Console", Content = "Noclip toggled.", Duration = 3})
        elseif cmd == ":rejoin" then
            TeleportService:TeleportToPlaceInstance(game.PlaceId, game.JobId, LocalPlayer)
        else
            Rayfield:Notify({Title = "Console Error", Content = "Unknown Command String", Duration = 3%

Advertisements

Comments

0

Did it work for you? Sign in to share your experience.

Sign in to comment

No comments yet

Tried it? Let others know if it works.