generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Where to start?

Previous Thread :: Next Thread 
PurelyMystic is not online. PurelyMystic
Joined: 24 May 2010
Total Posts: 931
24 May 2017 09:56 AM
I want to make some admin commands. I know there are already some but I want to do it for learning experience. Where do I start off with? I already know the basics but I want to achieve multiple commands at once like ":kill player :kick player" and etc,.


Report Abuse
poppeyhead is not online. poppeyhead
Joined: 19 Aug 2015
Total Posts: 96
24 May 2017 10:00 AM
First start off with your admins. I suggest making a script like "plr= game.Players.LocalPlayer" "if plr.UserId= 'userid 1', 'user id 2' then
local accepted= true" "if accepted= true then
(admin stuff here)" Admin stuff here should include functions of your admin and on player chat functions. Hope that helped c;
Report Abuse
PurelyMystic is not online. PurelyMystic
Joined: 24 May 2010
Total Posts: 931
24 May 2017 10:01 AM
I already know how to make it so if your name is in the list... I just need the commands part. But thanks for trying.


Report Abuse
CelluloidCats is not online. CelluloidCats
Joined: 11 Aug 2015
Total Posts: 841
24 May 2017 10:03 AM
gmatch incoming command to a table of commands and use the remaining parts of the commands to gmatch to players or relevant information for the execution


Report Abuse
PurelyMystic is not online. PurelyMystic
Joined: 24 May 2010
Total Posts: 931
24 May 2017 12:04 PM
How would I convert string.gmatch into a number for positioning with sub?


Report Abuse
CelluloidCats is not online. CelluloidCats
Joined: 11 Aug 2015
Total Posts: 841
24 May 2017 12:11 PM
wiki.roblox.com/index.php?title=String_pattern


Report Abuse
CelluloidCats is not online. CelluloidCats
Joined: 11 Aug 2015
Total Posts: 841
24 May 2017 12:12 PM
if you wanna go a step beyond any of the current admin scripts. Build a function that searches through a string that was a chatted that identifies all the key elements regardless of order.


Report Abuse
CelluloidCats is not online. CelluloidCats
Joined: 11 Aug 2015
Total Posts: 841
24 May 2017 12:12 PM
you'll need a lot of error checking however. Which within the chat you can just return something to the player saying "nuh uh mate not everything was there."


Report Abuse
PurelyMystic is not online. PurelyMystic
Joined: 24 May 2010
Total Posts: 931
24 May 2017 05:13 PM
string.pattern, big help but how do I skip to a sub. Say like to get to the second ##### like this in sub ":string :string :string" the second :string it takes to sub it. So it would be amountofchars to reach the ##### within sub.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image