Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make an admin script?

Asked by 10 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 — 10y

2 answers

Log in to vote
0
Answered by 10 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
Ad
Log in to vote
-1
Answered by
Rurith 10
10 years ago

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.

Answer this question