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 » Scripting Helpers
Home Search
 

Re: Multiple Players Error.

Previous Thread :: Next Thread 
peoplemove12 is not online. peoplemove12
Joined: 11 Feb 2010
Total Posts: 1442
08 Aug 2014 06:55 PM
Okay so, this works fine when its one person, but multiple players it does not flow right. The line where it says "Tag.Value = Names[random]" goes nil. This script is suppose to make it so every player get a random name with a character. But, when I try to make that nil so no one else ends up with the same name. This does not work right.

for i = 1, #Players do
if Players[i] ~= nil then
random = math.random(#Names)
Tag.Value = Names[random] --ERROR LINE--
Names[random] = nil
Players[i].Alive.Value = true
Report Abuse
peoplemove12 is not online. peoplemove12
Joined: 11 Feb 2010
Total Posts: 1442
08 Aug 2014 07:04 PM
No one knows the problem?
Report Abuse
peoplemove12 is not online. peoplemove12
Joined: 11 Feb 2010
Total Posts: 1442
08 Aug 2014 07:27 PM
Someone, please!
Report Abuse
peoplemove12 is not online. peoplemove12
Joined: 11 Feb 2010
Total Posts: 1442
08 Aug 2014 07:59 PM
Bump.
Report Abuse
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
08 Aug 2014 08:02 PM
math.Random() can take a single argument, but in your case, it's not supposed to.

instead of math.Random(#Names), do math.Random(1, #Names)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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