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.
COMMUNITY QUESTION
How do you make an admin script?
2 answers
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
Okay, these are how admin scripts work.
When you say a specific word like ":Kill All", there is a mini-script in the script that responds to that chatted command to kill all players.
So, it basically responds to your command. For TP all, there is a mini-script that makes all the people TP to you.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
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.