Command Bar cmd bar
Key RequiredUniversal

Command Bar cmd bar

Universal ScriptEpicalBringerEpicalBringer 1.5K views 649 executesUpdated Jan 5, 2026
Unrated
00
Lua Script•190 lines (12186 chars)
local Players = game:GetService("Players")
local LP = Players.LocalPlayer
local CoreGui = game:GetService("CoreGui")
local RunService = game:GetService("RunService")
local StarterGui = game:GetService("StarterGui")
local Lighting = game:GetService("Lighting")

if CoreGui:FindFirstChild("CommandsBar_v13_7") then CoreGui.CommandsBar_v13_7:Destroy() end

local ScreenGui = Instance.new("ScreenGui", CoreGui)
ScreenGui.Name = "CommandsBar_v13_7"
ScreenGui.ResetOnSpawn = false

local COLORS = {
    BG = Color3.fromRGB(20, 20, 20), 
    Accent = Color3.fromRGB(220, 40, 40), 
    Secondary = Color3.fromRGB(10, 10, 10),
    Text = Color3.new(1, 1, 1)
}

-- [ PERSISTENT GLOBAL STATES ] --
local states = {
    noclip = false, flinging = false, flySpeed = 50,
    godTargets = {}, flyStates = {}, loopKill = {}, jailList = {},
    disco = false, earthquake = false, activeOrb = nil, currentHint = nil
}

-- [ UTILITIES ] --
local function getRoot(p)
    if not p or not p.Character then return nil end
    return p.Character:FindFirstChild("HumanoidRootPart") or p.Character:FindFirstChild("Torso") or p.Character:FindFirstChild("UpperTorso")
end
local function getHum(p) return p and p.Character and p.Character:FindFirstChildOfClass("Humanoid") end

-- [ MAIN ENGINE LOOP ] --
RunService.Heartbeat:Connect(function()
    pcall(function()
        if LP.Character and (states.noclip or states.flinging) then 
            for _, v in pairs(LP.Character:GetDescendants()) do if v:IsA("BasePart") then v.CanCollide = false end end 
        end
        for p, _ in pairs(states.loopKill) do if getHum(p) then getHum(p).Health = 0 end end
        for p, _ in pairs(states.godTargets) do if getHum(p) then getHum(p).Health = 100 end end
        for p, cage in pairs(states.jailList) do
            local r = getRoot(p)
            if r and cage then r.CFrame = cage.CFrame end
        end
        if states.disco then Lighting.Ambient = Color3.new(math.random(), math.random(), math.random()) end
        if states.earthquake then
            local shake = Vector3.new(math.random(-1,1), math.random(-1,1), math.random(-1,1)) * 0.5
            workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.new(shake)
        end
    end)
end)

-- [ UI BUILD ] --
local MainFrame = Instance.new("Frame", ScreenGui)
MainFrame.BackgroundColor3 = COLORS.BG; MainFrame.Position = UDim2.new(0.5, -200, 0.5, -125); MainFrame.Size = UDim2.new(0, 400, 0, 250); MainFrame.Active, MainFrame.Draggable = true, true

local TextBox = Instance.new("TextBox", MainFrame)
TextBox.Size = UDim2.new(1, -145, 0, 165); TextBox.Position = UDim2.new(0, 140, 0, 35)
TextBox.MultiLine, TextBox.PlaceholderText = true, "Commands..."
TextBox.BackgroundColor3, TextBox.TextColor3 = Color3.fromRGB(240, 240, 240), Color3.new(0,0,0)
TextBox.Font, TextBox.TextSize = Enum.Font.Code, 18; TextBox.ClearTextOnFocus = false
TextBox.TextXAlignment, TextBox.TextYAlignment = "Left", "Top"; TextBox.Text = ""

local SideList = Instance.new("ScrollingFrame", MainFrame)
SideList.Position = UDim2.new(0, 5, 0, 30); SideList.Size = UDim2.new(0, 130, 1, -40); SideList.BackgroundColor3 = COLORS.Secondary; SideList.AutomaticCanvasSize = "Y"
local Layout = Instance.new("UIListLayout", SideList); Layout.SortOrder = Enum.SortOrder.LayoutOrder

local sidebar_cmds = {"bring", "btools", "clip", "clone", "cmds", "console", "disco", "undisco", "earthquake", "unequake", "exec", "explode", "ff", "unff", "fire", "unfire", "fling", "float", "unfloat", "fly", "unfly", "freeze", "unfreeze", "god", "ungod", "goto", "hint", "unhint", "invisible", "visible", "iorb", "uniorb", "jail", "unjail", "jump", "kill", "loopkill", "unloopkill", "message", "noclip", "rocket", "sit", "smoke", "unsmoke", "sparkles", "unsparkles", "speed", "sword", "view", "unview"}
table.sort(sidebar_cmds)

for _, c in pairs(sidebar_cmds) do
    local b = Instance.new("TextButton", SideList); b.Name = c; b.Size = UDim2.new(1, 0, 0, 25); b.BackgroundColor3 = Color3.fromRGB(45, 45, 45); b.TextColor3 = COLORS.Text; b.Text = c; b.BorderSizePixel = 0
    b.MouseButton1Click:Connect(function()
        local cur = TextBox.Text
        TextBox.Text = (cur ~= "" and cur:gsub("%s*$", "") .. " && " or "") .. c .. " "
        TextBox:CaptureFocus()
    end)
end

-- [ MASTER ENGINE ] --
local function run(input)
    local raw = string.gsub(input, "^%s*", "")
    local args = string.split(raw, " ")
    local cmd = args[1] and args[1]:lower() or ""
    local fullText = raw:sub(#cmd + 2)

    -- Static Commands
    if cmd == "hint" then
        if states.currentHint then states.currentHint:Destroy() end
        states.currentHint = Instance.new("Hint", workspace)
        states.currentHint.Text = fullText
        return
    elseif cmd == "unhint" then if states.currentHint then states.currentHint:Destroy(); states.currentHint = nil end return
    elseif cmd == "disco" then states.disco = true return
    elseif cmd == "undisco" then states.disco = false; Lighting.Ambient = Color3.new(0.5, 0.5, 0.5) return
    elseif cmd == "earthquake" then states.earthquake = true return
    elseif cmd == "unequake" then states.earthquake = false return
    elseif cmd == "cmds" then StarterGui:SetCore("DevConsoleVisible", true) return
    elseif cmd == "message" then local m = Instance.new("Message", workspace); m.Text = fullText; task.wait(3); m:Destroy(); return
    elseif cmd == "exec" then pcall(function() loadstring(fullText)() end); return
    elseif cmd == "console" then StarterGui:SetCore("DevConsoleVisible", true); return
    elseif cmd == "iorb" then 
        if states.activeOrb then states.activeOrb:Destroy() end
        local o = Instance.new("Part", workspace); o.Shape, o.Size, o.Anchored, o.Color = "Ball", Vector3.new(2,2,2), true, COLORS.Accent
        Instance.new("Fire", o); states.activeOrb = o; local r = 0
        RunService.Heartbeat:Connect(function() if states.activeOrb and getRoot(LP) then r = r + 0.05 o.CFrame = getRoot(LP).CFrame * CFrame.Angles(0,r,0) * CFrame.new(7,2,0) end end)
        return
    elseif cmd == "uniorb" then if states.activeOrb then states.activeOrb:Destroy(); states.activeOrb = nil end; return
    elseif cmd == "noclip" then states.noclip = true; return
    elseif cmd == "clip" then states.noclip = false; return
    end

    -- Targeter
    local targetInput = args[2] or "me"
    local targs = {}
    if targetInput == "me" then table.insert(targs, LP)
    elseif targetInput == "all" or targetInput == "others" then 
        for _, p in pairs(Players:GetPlayers()) do if targetInput == "all" or p ~= LP then table.insert(targs, p) end end
    elseif targetInput == "random" then table.insert(targs, Players:GetPlayers()[math.random(1, #Players:GetPlayers())])
    else
        for _, p in pairs(Players:GetPlayers()) do 
            if p.Name:lower():sub(1, #targetInput) == targetInput:lower() or p.DisplayName:lower():sub(1, #targetInput) == targetInput:lower() then 
                table.insert(targs, p) break 
            end 
        end
    end

    -- Execution
    for _, p in pairs(targs) do pcall(function()
        local char, root, hum = p.Character, getRoot(p), getHum(p)
        if not root then return end

        if cmd == "freeze" then root.Anchored = true
        elseif cmd == "unfreeze" then root.Anchored = false
        elseif cmd == "clone" then char.Archivable = true; local cl = char:Clone(); cl.Parent = workspace; cl:MoveTo(getRoot(LP).Position + Vector3.new(3,0,0))
        elseif cmd == "speed" then hum.WalkSpeed = tonumber(args[3]) or 16
        elseif cmd == "jump" then hum.JumpPower = tonumber(args[3]) or 50; hum.UseJumpPower = true
        elseif cmd == "kill" then hum.Health = 0
        elseif cmd == "loopkill" then states.loopKill[p] = true
        elseif cmd == "unloopkill" then states.loopKill[p] = nil
        elseif cmd == "god" then states.godTargets[p] = true
        elseif cmd == "ungod" then states.godTargets[p] = nil
        elseif cmd == "bring" then root.CFrame = getRoot(LP).CFrame
        elseif cmd == "goto" then getRoot(LP).CFrame = root.CFrame
        elseif cmd == "view" then workspace.CurrentCamera.CameraSubject = hum
        elseif cmd == "unview" then workspace.CurrentCamera.CameraSubject = getHum(LP)
        elseif cmd == "sit" then hum.Sit = true
        elseif cmd == "ff" then Instance.new("ForceField", char)
        elseif cmd == "unff" then for _,v in pairs(char:GetChildren()) do if v:IsA("ForceField") then v:Destroy() end end
        elseif cmd == "fire" then Instance.new("Fire", root)
        elseif cmd == "unfire" then for _,v in pairs(root:GetChildren()) do if v:IsA("Fire") then v:Destroy() end end
        elseif cmd == "smoke" then Instance.new("Smoke", root)
        elseif cmd == "unsmoke" then for _,v in pairs(root:GetChildren()) do if v:IsA("Smoke") then v:Destroy() end end
        elseif cmd == "sparkles" then Instance.new("Sparkles", root)
        elseif cmd == "unsparkles" then for _,v in pairs(root:GetChildren()) do if v:IsA("Sparkles") then v:Destroy() end end
        elseif cmd == "invisible" then for _,v in pairs(char:GetDescendants()) do if v:IsA("BasePart") or v:IsA("Decal") then v.Transparency = 1 end end
        elseif cmd == "visible" then for _,v in pairs(char:GetDescendants()) do if v:IsA("BasePart") or v:IsA("Decal") then v.Transparency = 0 end end
        elseif cmd == "jail" then if states.jailList[p] then states.jailList[p]:Destroy() end; local c = Instance.new("Part", workspace); c.Size, c.Anchored, c.Material = Vector3.new(10,10,10), true, "ForceField"; c.CFrame = root.CFrame; states.jailList[p] = c
        elseif cmd == "unjail" then if states.jailList[p] then states.jailList[p]:Destroy(); states.jailList[p] = nil end
        elseif cmd == "explode" then Instance.new("Explosion", workspace).Position = root.Position
        elseif cmd == "sword" then pcall(function() game:GetObjects("rbxassetid://125013769")[1].Parent = p.Backpack end)
        elseif cmd == "rocket" then pcall(function() game:GetObjects("rbxassetid://4842186817")[1].Parent = p.Backpack end)
        elseif cmd == "btools" then for i=1,4 do Instance.new("HopperBin", p.Backpack).BinType = i end
        elseif cmd == "float" then local bv = Instance.new("BodyVelocity", root); bv.Name = "FloatV"; bv.Velocity = Vector3.new(0,0,0); bv.MaxForce = Vector3.new(0, 9e9, 0)
        elseif cmd == "unfloat" then if root:FindFirstChild("FloatV") then root.FloatV:Destroy() end
        elseif cmd == "fly" then
            if states.flyStates[p] then states.flyStates[p]:Disconnect() end
            local bv = Instance.new("BodyVelocity", root); bv.Name = "FlyV"; bv.MaxForce = Vector3.new(9e9,9e9,9e9)
            states.flyStates[p] = RunService.Heartbeat:Connect(function() if hum then hum.PlatformStand = true end; bv.Velocity = workspace.CurrentCamera.CFrame.LookVector * states.flySpeed end)
        elseif cmd == "unfly" then if states.flyStates[p] then states.flyStates[p]:Disconnect(); states.flyStates[p] = nil; hum.PlatformStand = false; if root:FindFirstChild("FlyV") then root.FlyV:Destroy() end end
        elseif cmd == "fling" then states.flinging = true; local v = Instance.new("BodyAngularVelocity", getRoot(LP)); v.AngularVelocity = Vector3.new(0,99999,0); v.MaxTorque = Vector3.new(9e9,9e9,9e9); task.wait(0.5); v:Destroy(); states.flinging = false
        end
    end) end
end

-- [ EXECUTE ] --
local ExecBtn = Instance.new("TextButton", MainFrame)
ExecBtn.Size, ExecBtn.Position, ExecBtn.BackgroundColor3 = UDim2.new(1, -145, 0, 40), UDim2.new(0, 140, 1, -45), COLORS.Accent
ExecBtn.TextColor3, ExecBtn.Text, ExecBtn.BorderSizePixel = COLORS.Text, "EXECUTE", 0
ExecBtn.MouseButton1Click:Connect(function() 
    local content = TextBox.Text; TextBox.Text = ""
    for _, segment in pairs(content:split("&&")) do run(segment) end
end)

local Toggle = Instance.new("TextButton", ScreenGui)
Toggle.Size, Toggle.Position, Toggle.BackgroundColor3 = UDim2.new(0, 60, 0, 30), UDim2.new(0, 10, 0.5, 0), COLORS.Accent
Toggle.TextColor3, Toggle.Text, Toggle.BorderSizePixel = COLORS.Text, "MENU", 0
Toggle.MouseButton1Click:Connect(function() MainFrame.Visible = not MainFrame.Visible end)

Features & Information

Command Bar that has 10+ commands and trolling

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts