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
 

is this the best way to do this

Previous Thread :: Next Thread 
Vercron is not online. Vercron
Joined: 18 Sep 2010
Total Posts: 9418
12 Mar 2017 08:56 AM
assume the command is the following: :respawn player,player,player Playerlist: Player1 Player2 Player3 command is already broken down and whats left is a table with the targets (1 = player) (2 = player) (3 = player) ########## ## a table from game.Players:GetPlayers() and inserted into the allPlayers table targetTableName is an argument in the function and contains the targets that were named earlier in this thread (1 = player etc) for i=1, #allPlayers do if targetTableName[i] then if string.sub(string.lower(allPlayers[i]),1,string.len(targetTableName[i])) == string.sub(string.lower(targetTableName[i]),1,string.len(targetTableName[i])) then table.insert(potTargets,allPlayers[i]) end end end So what I want to do is when someone types :respawn player then player is not detailed enough since player has 3 potential targets and you will have to type player1 in order to actually respawn player1
Report Abuse
Vercron is not online. Vercron
Joined: 18 Sep 2010
Total Posts: 9418
12 Mar 2017 08:56 AM
nevermind cba with roblox filtering ill find out myself


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