The admin command script you'd use on Roblox depends on which commands you want. Below is a well-known command script created by a user named Person299. It's a large Lua script, so it's reproduced here for reference.
To set it up, replace "USERNAME HERE" in the adminlist with the names of the people you want to have command access, and optionally set a shirt texture ID if you want a specific t-shirt to grant admin. The full command list is documented within the script itself.
adminlist = {"USERNAME HERE","USERNAME HERE","USERNAME HERE"}--Add the names of people allowed to use the command script here.
bannedlist = ""
texture = "SHIRT TEXTURE ID HERE"--Optional: t-shirt texture that grants admin.
--[[ Commands (Examples):
commands - Shows a list of all commands
superjump/Person299 - makes Person299 superjump
dance/Person299 - makes Person299 dance
fix - fixes the script if it breaks
kill/Person299 - kills Person299
loopkill/Person299 - repeatedly kills Person299 on respawn
unloopkill/Person299 - undoes loopkill
heal/Person299 - returns Person299 to full health
damage/Person299/50 - deals 50 damage to Person299
health/Person299/999999 - sets Person299's MaxHealth and Health to 999999
kick/Person299 - removes Person299 from the game
ban/Person299 - removes and prevents Person299 from reentering
bannedlist - shows everyone banned
unban/Person299 - unbans Person299
explode/Person299 - explodes Person299's character
rocket/Person299 - straps a rocket onto Person299
removetools/Person299 - removes all of Person299's tools
givetools/Person299 - gives Person299 all StarterPack tools
givebtools/Person299 - gives Person299 the building tools
sit/Person299 - makes Person299 sit
part/4/1/2 - spawns a part with given dimensions above you
respawn/Person299 - respawns Person299
jail/Person299 - creates a jail cell around Person299
unjail/Person299 - undoes jail
punish/Person299 - puts Person299 in game.Lighting
unpunish/Person299 - undoes punish
merge/Person299/Farvei - makes Person299 control Farvei's character
teleport/Person299/nccvoyager - teleports Person299 to nccvoyager
control/Person299 - makes you control Person299's character
change/Person299/Money/999999 - sets a leaderstat value
tools - lists available tools
give/Person299/Tool - gives Person299 a tool
time/15.30 - sets TimeOfDay to 15:30
ambient/255/0/0 - sets Ambient lighting
maxplayers/20 - sets MaxPlayers to 20
nograv/Person299 - makes Person299 nearly weightless
antigrav/Person299 - gives antigravity
grav/Person299 - restores normal gravity
highgrav/Person299 - makes Person299 heavier
setgrav/Person299/-196 - sets gravity
trip/Person299 - makes Person299 trip
walkspeed/Person299/99 - sets WalkSpeed to 99 (16 is average)
invisible/Person299 - makes Person299 invisible
visible/Person299 - undoes invisible
freeze/Person299 - prevents Person299 from moving
thaw/Person299 - undoes freeze
unlock/Person299 - unlocks Person299
lock/Person299 - locks Person299
ff/Person299 - gives a ForceField
unff/Person299 - undoes ff
sparkles/Person299 - makes Person299 sparkly
unsparkles/Person299 - undoes sparkles
shield/Person299 - destructive shield around Person299
unshield/Person299 - undoes shield
god/Person299 - makes Person299 godish
ungod/Person299 - undoes god
zombify/Person299 - makes Person299 an infecting zombie
admin/Person299 - grants command access
adminlist - shows the adminlist
unadmin/Person299 - revokes command access
shutdown - shuts the server down
m/message here - displays a 2-second on-screen message
h/hint here - displays a 2-second hint
c/script here - creates a script from the given source
clear - removes c/ scripts and jails
Capitalisation doesn't matter, and name input can be abbreviated.
Almost any name input can be replaced with multiple names separated by commas, or: me, all, others, guests, admins, nonadmins, random, or team teamname.
--]]
namelist = { }
variablelist = { }
flist = { }
local source = script:FindFirstChild("source")
if source ~= nil then
sbbu = script.source:clone()
sbbu.Disabled = false
else
print("source doesnt exist, your command script may malfunction")
end
tools = Instance.new("Model")
c = game.Lighting:GetChildren()
for i=1,#c do
if c[i].className == "Tool" then
tools:clone()
end
-- Replace Control22 with your nameKeep in mind this is a legacy script from an older version of Roblox, so it may need updating to run on the current platform.