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