Universal Script 📌
28.2k Views
55 Executions

Admin commands

Universal Script 📌
Glitchplayer20
Glitchplayer20Published 5
3 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

I made this script it has 2 commands lol

Updates

  1. Script edited: Create script

View Raw
-- 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)



Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!