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