0% found this document useful (0 votes)
3K views2 pages

Roblox Admin Command Script

Uploaded by

junior111kucing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views2 pages

Roblox Admin Command Script

Uploaded by

junior111kucing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

-- Admin Command Script (ServerScriptService)

local Players = game:GetService("Players")

-- List of admins (add your Roblox username here)


local Admins = {
"YourUsernameHere", -- replace with your username
}

-- Helper: check if player is admin


local function isAdmin(player)
for _, name in ipairs(Admins) do
if [Link] == name then
return true
end
end
return false
end

-- Commands
local function runCommand(player, msg)
if not isAdmin(player) then return end

local args = [Link](msg, " ")


local cmd = [Link](args[1])

if cmd == "!speed" and args[2] then


local speed = tonumber(args[2])
if [Link] and [Link]:FindFirstChild("Humanoid") then
[Link] = speed
end

elseif cmd == "!jump" and args[2] then


local power = tonumber(args[2])
if [Link] and [Link]:FindFirstChild("Humanoid") then
[Link] = power
end

elseif cmd == "!kill" and args[2] then


local targetName = args[2]
local target = Players:FindFirstChild(targetName)
if target and [Link] and
[Link]:FindFirstChild("Humanoid") then
[Link] = 0
end

elseif cmd == "!tp" and args[2] then


local targetName = args[2]
local target = Players:FindFirstChild(targetName)
if target and [Link] and
[Link]:FindFirstChild("HumanoidRootPart") then
if [Link] and
[Link]:FindFirstChild("HumanoidRootPart") then
[Link] =
[Link] + [Link](2,0,0)
end
end
end
end
-- Hook chat
[Link]:Connect(function(player)
[Link]:Connect(function(msg)
runCommand(player, msg)
end)
end)

You might also like