If type(v) = 'number' and player.UserId = v thenĮlseif type(v) = 'string' and player.Name = v then
Roblox war tycoon admin commands code#
Your code should now look line this: local Admins = Now we need to finish up, by setting the WalkSpeed.įinishing up = args If string.sub(string.lower(player.Name), 1, string.len(args)) =string.lower(args) then for _,player in pairs(game:GetService("Players"):GetPlayers()) do But like we did with the message, we want to make the player’s name not case-sensitive. Now we need to set the player’s WalkSpeed to the second argument. Setting up WalkSpeed command if args = Prefix."walkspeed" then
Roblox war tycoon admin commands how to#
In this tutorial, I’ll show you how to make a WalkSpeed command. Now we can ACTUALLY start making commands. Local args = string.split(loweredString," ")
The following code will make your command not case-sensitive. Now with that set, we can finally start making commands! But, what if we don’t want the commands to be case-sensitive? Well, that’s easy. Now that we got that out of the way, we need to detect when a player joins, and if they are an admin, detect when they chat.Ĭode :Connect(function(plr) I assume you have a basic understanding of scripting in Roblox, so with that, let’s set out variables. It’s fairly simple once you understand the most parts. Anyways, my goal here is to help people achieve making their own chat commands. This is my first community tutorial, so please leave your feedback below. :rainbowify kohl - Turns the player into a rainbowĥ4.Hello. :infect kohl - Turns the player into a zombieĥ3. :kick kohl - Removes the player from the gameĥ2. :change kohl kills 1337 - Changes a player's statĥ1. :teleport kohl potato - Teleports the playerĥ0. :stopmusic - Will stop all music playing in the serverĤ9. :team kohl Raiders - Changes the player's teamĤ8. :unname kohl - Remove the player's nameĤ7. :name kohl potato - Changes the player's nameĤ6. :speed kohl 1337 - Changes the player's walkspeedĤ5. :health kohl 1337 - Changes the player's healthĤ4. :nograv kohl - Makes the player have 0 gravityĤ3. :setgrav kohl 100 - Sets the player's gravityĤ2. :grav kohl - Sets the player's gravity to normalĤ1. :give kohl sword - Gives the player a toolĤ0. :btools kohl - Gives the player building toolsģ8. :removetools kohl - Removes all tools from the playerģ7. :ungod kohl - Makes the player have 100 healthģ0. :god kohl - Makes the player have infinite healthĢ9. :unpunish kohl - Unpunishes the playerĢ8. :unff kohl - Removes the forcefield from the playerĢ4. :ff kohl - Adds a forcefield to the playerĢ2. :unsparkles kohl - Removes sparkles from the playerĢ1. :sparkles kohl - Adds sparkles to the playerĢ0. :unsmoke kohl - Removes smoke from the playerġ9. :smoke kohl - Adds smoke to the playerġ8. :unfire kohl - Removes fire from the playerġ7. :explode kohl - Makes the player explodeġ5. :visible kohl - Makes the player visibleġ4. :invisible kohl - Makes the player invisibleġ3. :m Hello People - This commands will let you shout a message to everyone on the serverġ2. :clear - Will remove all scripts/localscripts and jailsĤ. :ls print("Hello World") - Lets you script in localscriptsģ. :s print("Hello World") - Lets you script normallyĢ. clean - Is a command anyone can use to remove hats/tools lagging up the placeġ.
You can also use a variety commands for different people Ġ. With this admin you can do a command on multiple people at a time Local FunCommands = true - Set to false if you only want the basic commands (For Strict Places)
Local GroupRank = 0 - Sets what rank and above a person has to be in the group to have admin Local GroupId = 0 - Sets the group id that can have admin Local GroupAdmin = false - If a certain group can have admin Local AutoUpdate = true - Set to false if you don't want it to automatically updat Local prefix = "" - If you wanna change how your commands start ':'kill noob