Admin commands
Key RequiredUniversal

Admin commands

Universal ScriptGlitchplayer20Glitchplayer20 28.2K views 34 executesUpdated Apr 18, 2024
0.0/ 5(1 votes)
010% Positive
Lua Script•38 lines (1361 chars)
-- Get necessary Roblox services
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")

-- Define GUI elements
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local title = Instance.new("TextLabel")
title.Text = "Type 'float' or 'fly' to float or fly"
title.Size = UDim2.new(0, 200, 0, 30)
title.Position = UDim2.new(0.5, -100, 0.5, -100)
title.Parent = screenGui

local textBox = Instance.new("TextBox")
textBox.Size = UDim2.new(0, 200, 0, 30)
textBox.Position = UDim2.new(0.5, -100, 0.5, -50)
textBox.Parent = screenGui

-- Define function to handle user input
local function onInput(enteredText)
    local text = enteredText:lower()
    if text == "float" then
        game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
        game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(0, 50, 0)
    elseif text == "fly" then
        game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
        game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(0, 100, 0)
    end
end

-- Connect input event
textBox.FocusLost:Connect(function(enterPressed)
    if enterPressed then
        onInput(textBox.Text)
        textBox.Text = ""  -- Clear text box after input
    end
end)

Features & Information

I made this script it has 2 commands lol
#Exploit

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts