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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: help pls

Previous Thread :: Next Thread 
1000knives is online. 1000knives
Joined: 29 Sep 2012
Total Posts: 341
14 Nov 2017 03:06 PM
I used for i, v in pairs to get the strings in a table. If the players ID doesn't match one of the strings in the table, then they die. The problem is is that they will die anyways because their ID isn't equal to all of the strings in the table. Is there a way I can avoid them dying? blicky got the ###### uh
Report Abuse
JJ_ooteJ is not online. JJ_ooteJ
Joined: 29 Jun 2016
Total Posts: 66
14 Nov 2017 03:52 PM
Why are all ID's in the table same?
Report Abuse
gunter5 is not online. gunter5
Joined: 15 Mar 2011
Total Posts: 737
14 Nov 2017 04:11 PM
could be because once it finds their id. It allows them to live, but the i,v in pairs loop continues on till it finishes. so what happens is, It finds their id. then it continues to the next id and trys to match it with theirs then when it doesnt match it ##### #### anyways. so try adding a break. ex: if (id) == (table) then (allow to live) break end
Report Abuse
1000knives is online. 1000knives
Joined: 29 Sep 2012
Total Posts: 341
14 Nov 2017 04:57 PM
######## still kills the player because there are multiple ID's, and before the correct ID would be different strings. So I keep dying bump .
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