Base Utility
Key RequiredUniversal

Base Utility

Universal Scriptmartinvaris34martinvaris34 1.9K views 3.9K executesUpdated Mar 21, 2026
5.0/ 5(2 votes)
20100% Positive
Lua Scriptโ€ข285 lines (16023 chars)
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local TeleportService = game:GetService("TeleportService")
local Lighting = game:GetService("Lighting")
local Stats = game:GetService("Stats")
local TestService = game:GetService("TestService")
 
local player = Players.LocalPlayer
local camera = workspace.CurrentCamera
local mouse = player:GetMouse()
 
-- // SETTINGS & STATES // --
local FLY_SPEED, FLYING = 50, false
local NOCLIP, ESP_ENABLED, INF_JUMP = false, false, false
local FULLBRIGHT, AUTO_CLICK, CLICK_DELAY = false, false, 0.1
local IS_MINIMIZED = false
local CONTROL_SETTINGS = {fwd = 0, bck = 0, lft = 0, rgt = 0, up = 0, dwn = 0}
 
-- // GUI SETUP // --
local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
screenGui.Name = "UtilityMenu_V17_6"
screenGui.ResetOnSpawn = false
 
local mainFrame = Instance.new("Frame", screenGui)
mainFrame.Size = UDim2.new(0, 440, 0, 780)
mainFrame.Position = UDim2.new(0.5, -220, 0.05, 0)
mainFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 18)
mainFrame.BorderSizePixel = 0
mainFrame.Active, mainFrame.Draggable = true, true
Instance.new("UICorner", mainFrame).CornerRadius = UDim.new(0, 12)
local mainStroke = Instance.new("UIStroke", mainFrame)
mainStroke.Color = Color3.fromRGB(45, 45, 55); mainStroke.Thickness = 1.5
 
local contentFrame = Instance.new("Frame", mainFrame)
contentFrame.Size = UDim2.new(1, -30, 1, -80)
contentFrame.Position = UDim2.new(0, 15, 0, 70)
contentFrame.BackgroundTransparency = 1
 
-- Header
local title = Instance.new("TextLabel", mainFrame)
title.Size = UDim2.new(0, 100, 0, 50); title.Position = UDim2.new(0, 20, 0, 10)
title.BackgroundTransparency = 1; title.Text = "MENU"; title.TextColor3 = Color3.fromRGB(200, 200, 200)
title.Font = Enum.Font.GothamBold; title.TextSize = 22; title.TextXAlignment = 0
 
local perfLabel = Instance.new("TextLabel", mainFrame)
perfLabel.Size = UDim2.new(0, 200, 0, 20); perfLabel.Position = UDim2.new(0, 20, 0, 42)
perfLabel.BackgroundTransparency = 1; perfLabel.TextColor3 = Color3.fromRGB(100, 100, 110)
perfLabel.Font = Enum.Font.Code; perfLabel.TextSize = 12; perfLabel.TextXAlignment = 0
 
-- Window Controls
local closeBtn = Instance.new("TextButton", mainFrame)
closeBtn.Size = UDim2.new(0, 28, 0, 28); closeBtn.Position = UDim2.new(1, -40, 0, 15)
closeBtn.BackgroundColor3 = Color3.fromRGB(180, 50, 50); closeBtn.Text = "ร—"; closeBtn.TextColor3 = Color3.new(1,1,1)
Instance.new("UICorner", closeBtn).CornerRadius = UDim.new(1,0)
 
local minBtn = Instance.new("TextButton", mainFrame)
minBtn.Size = UDim2.new(0, 28, 0, 28); minBtn.Position = UDim2.new(1, -75, 0, 15)
minBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 45); minBtn.Text = "โ€”"; minBtn.TextColor3 = Color3.new(0.8,0.8,0.8)
Instance.new("UICorner", minBtn).CornerRadius = UDim.new(1,0)
 
-- // UI HELPERS // --
local function createSection(name, pos, height)
    local frame = Instance.new("Frame", contentFrame)
    frame.Size = UDim2.new(1, 0, 0, height); frame.Position = pos; frame.BackgroundColor3 = Color3.fromRGB(22, 22, 26)
    Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 8)
    local lab = Instance.new("TextLabel", frame)
    lab.Size = UDim2.new(1, -20, 0, 25); lab.Position = UDim2.new(0, 10, 0, 5); lab.BackgroundTransparency = 1
    lab.Text = name:upper(); lab.TextColor3 = Color3.fromRGB(80, 140, 255); lab.Font = Enum.Font.GothamBold; lab.TextSize = 10; lab.TextXAlignment = 0
    return frame
end
 
local function createToggle(parent, text, pos)
    local btn = Instance.new("TextButton", parent)
    btn.Size = UDim2.new(0, 125, 0, 32); btn.Position = pos; btn.BackgroundColor3 = Color3.fromRGB(30, 30, 35)
    btn.Text = text; btn.TextColor3 = Color3.fromRGB(160, 160, 160); btn.Font = Enum.Font.GothamBold; btn.TextSize = 10
    Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6)
    return btn
end
 
local function createInput(parent, placeholder, pos, size)
    local box = Instance.new("TextBox", parent)
    box.Size = size; box.Position = pos; box.BackgroundColor3 = Color3.fromRGB(15, 15, 18); box.PlaceholderText = placeholder
    box.Text = ""; box.TextColor3 = Color3.new(1,1,1); box.Font = Enum.Font.GothamMedium; box.TextSize = 11
    Instance.new("UICorner", box).CornerRadius = UDim.new(0, 4); Instance.new("UIStroke", box).Color = Color3.fromRGB(40, 40, 50)
    return box
end
 
-- // SECTIONS // --
local modWorld = createSection("Movement & World", UDim2.new(0,0,0,0), 140)
local flyBtn = createToggle(modWorld, "FLY (F)", UDim2.new(0,10,0,35))
local noclipBtn = createToggle(modWorld, "NOCLIP (N)", UDim2.new(0,142,0,35))
local jumpBtn = createToggle(modWorld, "INF JUMP (J)", UDim2.new(0,274,0,35))
local flySpeedInp = createInput(modWorld, "Fly Speed", UDim2.new(0,10,0,75), UDim2.new(0,125,0,30))
local walkSpeedInp = createInput(modWorld, "Walk Speed", UDim2.new(0,142,0,75), UDim2.new(0,125,0,30))
local gravInp = createInput(modWorld, "Gravity", UDim2.new(0,274,0,75), UDim2.new(0,125,0,30))
 
local modUtil = createSection("Utility & Visuals", UDim2.new(0,0,0,150), 110)
local espBtn = createToggle(modUtil, "ESP (B)", UDim2.new(0,10,0,35))
local brightBtn = createToggle(modUtil, "BRIGHT (L)", UDim2.new(0,142,0,35))
local autoBtn = createToggle(modUtil, "AUTO-CLICK", UDim2.new(0,274,0,35))
local clickDelayInp = createInput(modUtil, "Click Delay (s)", UDim2.new(0,10,0,75), UDim2.new(0,195,0,30))
local fovInp = createInput(modUtil, "Field of View", UDim2.new(0,215,0,75), UDim2.new(0,185,0,30))
 
local modPlayers = createSection("Teleport Player List", UDim2.new(0,0,0,270), 400)
local searchInp = createInput(modPlayers, "Search players...", UDim2.new(0,10,0,35), UDim2.new(1,-20,0,35))
local scroll = Instance.new("ScrollingFrame", modPlayers)
scroll.Size = UDim2.new(1, -20, 1, -90); scroll.Position = UDim2.new(0, 10, 0, 80); scroll.BackgroundTransparency = 1; scroll.ScrollBarThickness = 2
Instance.new("UIListLayout", scroll).Padding = UDim.new(0, 6)
local rejoinBtn = createToggle(modPlayers, "REJOIN SERVER", UDim2.new(0,10,1,-40))
rejoinBtn.Size = UDim2.new(1,-20,0,32); rejoinBtn.BackgroundColor3 = Color3.fromRGB(60, 30, 30)
 
-- // FUNCTIONS // --
 
local function clearESP()
    for _, v in pairs(Players:GetPlayers()) do
        if v.Character then
            local h = v.Character:FindFirstChild("EliteHigh")
            if h then h:Destroy() end
            local hrp = v.Character:FindFirstChild("HumanoidRootPart")
            if hrp then
                local t = hrp:FindFirstChild("EliteTag")
                if t then t:Destroy() end
            end
        end
    end
end
 
local function toggleFullbright()
    FULLBRIGHT = not FULLBRIGHT
    brightBtn.BackgroundColor3 = FULLBRIGHT and Color3.fromRGB(255, 200, 0) or Color3.fromRGB(30, 30, 35)
    if FULLBRIGHT then
        Lighting.Ambient = Color3.new(1, 1, 1)
        Lighting.OutdoorAmbient = Color3.new(1, 1, 1)
        Lighting.Brightness = 2
        for _, v in pairs(Lighting:GetChildren()) do
            if v:IsA("Atmosphere") or v:IsA("Sky") or v:IsA("Clouds") then v.Parent = TestService end
        end
    else
        Lighting.Ambient = Color3.new(0.5, 0.5, 0.5)
        Lighting.OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
        Lighting.Brightness = 1
        for _, v in pairs(TestService:GetChildren()) do
            if v:IsA("Atmosphere") or v:IsA("Sky") or v:IsA("Clouds") then v.Parent = Lighting end
        end
    end
end
 
local function toggleFly()
    FLYING = not FLYING
    flyBtn.BackgroundColor3 = FLYING and Color3.fromRGB(0, 120, 255) or Color3.fromRGB(30, 30, 35)
    local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
    if not hrp then return end
    if FLYING then
        local bg = Instance.new("BodyGyro", hrp); bg.Name = "FlyGyro"; bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
        local bv = Instance.new("BodyVelocity", hrp); bv.Name = "FlyVel"; bv.MaxForce = Vector3.new(9e9,9e9,9e9)
        player.Character.Humanoid.PlatformStand = true
    else
        if hrp:FindFirstChild("FlyGyro") then hrp.FlyGyro:Destroy() end
        if hrp:FindFirstChild("FlyVel") then hrp.FlyVel:Destroy() end
        player.Character.Humanoid.PlatformStand = false
    end
end
 
-- // CORE LOGIC // --
 
UserInputService.JumpRequest:Connect(function()
    if INF_JUMP then
        local hum = player.Character and player.Character:FindFirstChildOfClass("Humanoid")
        if hum then hum:ChangeState(Enum.HumanoidStateType.Jumping) end
    end
end)
 
task.spawn(function()
    while true do
        if AUTO_CLICK then
            pcall(function()
                local tool = player.Character and player.Character:FindFirstChildOfClass("Tool")
                if tool then tool:Activate() end
            end)
        end
        task.wait(math.max(CLICK_DELAY, 0.01))
    end
end)
 
RunService.RenderStepped:Connect(function(dt)
    perfLabel.Text = "FPS: "..math.floor(1/dt).." | PING: "..math.floor(tonumber(Stats.Network.ServerStatsItem["Data Ping"]:GetValueString()) or 0).."MS"
    if ESP_ENABLED then
        for _, v in pairs(Players:GetPlayers()) do
            if v ~= player and v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
                local char = v.Character
                local hrp = char.HumanoidRootPart
                local high = char:FindFirstChild("EliteHigh") or Instance.new("Highlight", char)
                high.Name = "EliteHigh"; high.FillColor = Color3.fromRGB(0, 160, 255)
                local tag = hrp:FindFirstChild("EliteTag") or Instance.new("BillboardGui", hrp)
                tag.Name = "EliteTag"; tag.AlwaysOnTop = true; tag.Size = UDim2.new(0,200,0,50)
                local lbl = tag:FindFirstChild("TextLabel") or Instance.new("TextLabel", tag)
                lbl.Size = UDim2.new(1,0,1,0); lbl.BackgroundTransparency = 1; lbl.TextColor3 = Color3.new(1,1,1); lbl.TextSize = 13
                lbl.Text = v.DisplayName .. " ["..math.floor((hrp.Position - player.Character.HumanoidRootPart.Position).Magnitude).."m]"
            end
        end
    end
end)
 
RunService.Stepped:Connect(function()
    if player.Character then
        if NOCLIP then for _, v in pairs(player.Character:GetDescendants()) do if v:IsA("BasePart") then v.CanCollide = false end end end
        local hrp = player.Character:FindFirstChild("HumanoidRootPart")
        if FLYING and hrp and hrp:FindFirstChild("FlyVel") then
            hrp.FlyGyro.CFrame = camera.CFrame
            local moveDir = camera.CFrame.LookVector * (CONTROL_SETTINGS.fwd + CONTROL_SETTINGS.bck) + camera.CFrame.RightVector * (CONTROL_SETTINGS.lft + CONTROL_SETTINGS.rgt) + Vector3.new(0, CONTROL_SETTINGS.up + CONTROL_SETTINGS.dwn, 0)
            hrp.FlyVel.Velocity = moveDir.Magnitude > 0 and moveDir.Unit * FLY_SPEED or Vector3.new(0,0,0)
        end
    end
end)
 
-- // INPUT BINDINGS // --
UserInputService.InputBegan:Connect(function(i, p)
    if p then return end
    if i.KeyCode == Enum.KeyCode.F then toggleFly()
    elseif i.KeyCode == Enum.KeyCode.L then toggleFullbright()
    elseif i.KeyCode == Enum.KeyCode.B then 
        ESP_ENABLED = not ESP_ENABLED; espBtn.BackgroundColor3 = ESP_ENABLED and Color3.fromRGB(0, 180, 120) or Color3.fromRGB(30, 30, 35)
        if not ESP_ENABLED then clearESP() end
    elseif i.KeyCode == Enum.KeyCode.N then 
        NOCLIP = not NOCLIP; noclipBtn.BackgroundColor3 = NOCLIP and Color3.fromRGB(255, 120, 0) or Color3.fromRGB(30, 30, 35)
        if not NOCLIP and player.Character then
            for _, v in pairs(player.Character:GetDescendants()) do if v:IsA("BasePart") then v.CanCollide = true end end
        end
    elseif i.KeyCode == Enum.KeyCode.J then 
        INF_JUMP = not INF_JUMP; jumpBtn.BackgroundColor3 = INF_JUMP and Color3.fromRGB(150, 50, 255) or Color3.fromRGB(30, 30, 35)
    elseif i.KeyCode == Enum.KeyCode.LeftAlt then mainFrame.Visible = not mainFrame.Visible
    end
end)
 
-- Fly Controls (WASD)
UserInputService.InputBegan:Connect(function(i)
    if i.KeyCode == Enum.KeyCode.W then CONTROL_SETTINGS.fwd = 1 elseif i.KeyCode == Enum.KeyCode.S then CONTROL_SETTINGS.bck = -1
    elseif i.KeyCode == Enum.KeyCode.A then CONTROL_SETTINGS.lft = -1 elseif i.KeyCode == Enum.KeyCode.D then CONTROL_SETTINGS.rgt = 1
    elseif i.KeyCode == Enum.KeyCode.Space then CONTROL_SETTINGS.up = 1 elseif i.KeyCode == Enum.KeyCode.LeftShift then CONTROL_SETTINGS.dwn = -1 end
end)
UserInputService.InputEnded:Connect(function(i)
    if i.KeyCode == Enum.KeyCode.W then CONTROL_SETTINGS.fwd = 0 elseif i.KeyCode == Enum.KeyCode.S then CONTROL_SETTINGS.bck = 0
    elseif i.KeyCode == Enum.KeyCode.A then CONTROL_SETTINGS.lft = 0 elseif i.KeyCode == Enum.KeyCode.D then CONTROL_SETTINGS.rgt = 0
    elseif i.KeyCode == Enum.KeyCode.Space then CONTROL_SETTINGS.up = 0 elseif i.KeyCode == Enum.KeyCode.LeftShift then CONTROL_SETTINGS.dwn = 0 end
end)
 
-- // BUTTON CONNECTIONS // --
flyBtn.MouseButton1Click:Connect(toggleFly)
noclipBtn.MouseButton1Click:Connect(function() NOCLIP = not NOCLIP; noclipBtn.BackgroundColor3 = NOCLIP and Color3.fromRGB(255, 120, 0) or Color3.fromRGB(30, 30, 35) end)
jumpBtn.MouseButton1Click:Connect(function() INF_JUMP = not INF_JUMP; jumpBtn.BackgroundColor3 = INF_JUMP and Color3.fromRGB(150, 50, 255) or Color3.fromRGB(30, 30, 35) end)
espBtn.MouseButton1Click:Connect(function() ESP_ENABLED = not ESP_ENABLED; espBtn.BackgroundColor3 = ESP_ENABLED and Color3.fromRGB(0, 180, 120) or Color3.fromRGB(30, 30, 35); if not ESP_ENABLED then clearESP() end end)
brightBtn.MouseButton1Click:Connect(toggleFullbright)
autoBtn.MouseButton1Click:Connect(function() AUTO_CLICK = not AUTO_CLICK; autoBtn.BackgroundColor3 = AUTO_CLICK and Color3.fromRGB(0, 180, 200) or Color3.fromRGB(30, 30, 35) end)
rejoinBtn.MouseButton1Click:Connect(function() TeleportService:TeleportToPlaceInstance(game.PlaceId, game.JobId, player) end)
closeBtn.MouseButton1Click:Connect(function() screenGui:Destroy() end)
minBtn.MouseButton1Click:Connect(function() 
    IS_MINIMIZED = not IS_MINIMIZED
    mainFrame:TweenSize(IS_MINIMIZED and UDim2.new(0, 440, 0, 70) or UDim2.new(0, 440, 0, 780), "Out", "Quad", 0.3, true)
    contentFrame.Visible = not IS_MINIMIZED; minBtn.Text = IS_MINIMIZED and "+" or "โ€”"
end)
 
-- Inputs
flySpeedInp.FocusLost:Connect(function() FLY_SPEED = tonumber(flySpeedInp.Text) or 50 end)
walkSpeedInp.FocusLost:Connect(function() if player.Character:FindFirstChild("Humanoid") then player.Character.Humanoid.WalkSpeed = tonumber(walkSpeedInp.Text) or 16 end end)
gravInp.FocusLost:Connect(function() workspace.Gravity = tonumber(gravInp.Text) or 196.2 end)
clickDelayInp.FocusLost:Connect(function() CLICK_DELAY = tonumber(clickDelayInp.Text) or 0.1 end)
fovInp.FocusLost:Connect(function() if tonumber(fovInp.Text) then camera.FieldOfView = math.clamp(tonumber(fovInp.Text), 30, 120) end end)
 
-- Player List
local function refreshPlayers()
    for _, v in pairs(scroll:GetChildren()) do if v:IsA("TextButton") then v:Destroy() end end
    for _, p in pairs(Players:GetPlayers()) do
        if p ~= player and (p.Name:lower():find(searchInp.Text:lower()) or p.DisplayName:lower():find(searchInp.Text:lower())) then
            local b = Instance.new("TextButton", scroll); b.Size = UDim2.new(1, 0, 0, 40); b.BackgroundColor3 = Color3.fromRGB(30, 30, 38)
            b.Text = "   "..p.DisplayName; b.TextColor3 = Color3.new(0.8,0.8,0.8); b.TextXAlignment = 0; b.Font = 3; b.TextSize = 13
            Instance.new("UICorner", b).CornerRadius = UDim.new(0, 6)
            b.MouseButton1Click:Connect(function() pcall(function() player.Character:MoveTo(p.Character.HumanoidRootPart.Position) end) end)
        end
    end
    scroll.CanvasSize = UDim2.new(0, 0, 0, #scroll:GetChildren() * 46)
end
 
searchInp:GetPropertyChangedSignal("Text"):Connect(refreshPlayers)
Players.PlayerAdded:Connect(refreshPlayers); Players.PlayerRemoving:Connect(refreshPlayers); refreshPlayers()

Features & Information

๐Ÿš€ Movement Features Fly (F): Smooth, physics-based flight with WASD + Shift/Space controls. Noclip (N): Pass through any wall instantly. Features a Smart-Cleanup to restore collisions when toggled off. Infinite Jump (J): A high-reliability bypass that lets you jump mid-air without hitting the ground. Gravity & WalkSpeed: Fully adjustable via the input boxes. ๐Ÿ‘๏ธ Visuals & World Elite ESP (B): Clean highlights and BillboardGuis that show Player Names and Distance. Advanced Fullbright (L): Not just a brightness boostโ€”it moves Atmospheres and Clouds to a temporary service to give you 100% clear vision. Fixed FOV: Forced override logic. Set your Field of View once and it stays there, even if the game tries to zoom you in/out. Time Changer: Instantly shift the world clock to Day or Night. ๐Ÿ› ๏ธ Utility & UI Glass UI: Modern, draggable, and dark-themed interface. Color-Coded Toggles: Buttons change to unique colors (Blue, Orange, Purple, Green, Yellow) so you know exactly what is active at a glance. Performance Monitor: Real-time FPS and Ping counter in the header. Player Teleport: Searchable player listโ€”click a name to instantly teleport to them. LeftAlt Toggle: Hide the entire menu instantly with a hotkey. ๐Ÿ“ Instructions: Execute the script. Use LeftAlt to show/hide the menu. Click "X" to fully remove the GUI or "โ€”" to minimize it to the top of the screen. Use the Reset All button in Settings if you want to clear all active cheats at once.

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts