When I make admins scripts, I start them like this but it doesn't work right. If I were to add an FF command and say it, it would give everyone a FF in the server. Even If I say something like ff/Jacobrw01. I don't know why. Here is how I start though;
local admins = {
["Jacobrw01"] = true;
["nws18"] = true;
["JEFFREY0770"] = true;
}
game.Players.PlayerAdded:connect(function(plr)
if admins[plr.Name] then
plr.Chatted:connect(function(m)
if m:sub(1,5)=="kill/" then
m:sub(1,6)
for i,v in pairs(game.Players:GetChildren()) do
v.Character:BreakJoints()
end
end
end)
end
end)
This is roughly how I set it up on all my commands.

1 comment
h