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: Random

Previous Thread :: Next Thread 
hyyt8 is not online. hyyt8
Joined: 02 May 2007
Total Posts: 1760
17 Jul 2011 03:47 AM
:GetChildren():random() will work right? :D
Report Abuse
Fl0x is not online. Fl0x
Joined: 06 Aug 2010
Total Posts: 5169
17 Jul 2011 03:54 AM
"random" is not a valid method. (A nil value)
Report Abuse
hyyt8 is not online. hyyt8
Joined: 02 May 2007
Total Posts: 1760
17 Jul 2011 04:03 AM
:findFirstChild(random)?
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
17 Jul 2011 04:08 AM
p = game.Workspace:GetChildren()
r = math.random(1, #p)

print(p[r].Name)
Report Abuse
hyyt8 is not online. hyyt8
Joined: 02 May 2007
Total Posts: 1760
17 Jul 2011 04:12 AM
Thanks
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