0

# How do you make an admin script?

Asked by 6 years ago

I am new to scripting, and I really want to make a successful place without using free models. I know it will take a lot of time to get used to, but how do I create an admin script? And with the commands for messaging, flying, dying, banning, all of that.

0
If you want to make games without FM's, I would suggest starting somewhere small. Admin commands are pretty advanced if you haven't even started learning scripting. I would suggest CodeTheorem Roblox's youtube channel, and the 'Game Development' playlist. systematicaddict 295 — 6y

0
Answered by 6 years ago

You have to use .Chatted example:

plr = game.Players.SilenceCore

plr.Chatted:connect(function(msg) --msg is the thing that the player says.
if msg == "reset" then --checks if plr said "reset" has to be perfectly same.
if plr.Character then --Checks if the player's character exist if it does then kill it.
plr.Character.Humanoid.Health = 0 --makes the health 0 which kills it.
end
elseif msg:sub(1,5) == "kill/" then --if the player said kill/
if game.Players:FindFirstChild(string.sub(msg,6)) then --checks if the name exists by sub
if game.Players[string.sub(msg,6)].Character then --if it's character exist
game.Players[string.sub(msg,6].Character.Health = 0 --now it kills it xD
end
end
end
end