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: randomly choose from a table

Previous Thread :: Next Thread 
smartlegomaniac is not online. smartlegomaniac
Joined: 16 Jun 2012
Total Posts: 411
18 Nov 2016 03:49 PM
I want to choose one of the values in the table and store it in a string value. It's probably pretty simple, but I couldn't find it on the wiki.

names = {"a","b","c","d","e"}
Report Abuse
Real_Spooky is not online. Real_Spooky
Joined: 23 Oct 2013
Total Posts: 3149
18 Nov 2016 03:50 PM
table[math.random(#table)]
Report Abuse
greninja70 is online. greninja70
Joined: 04 Sep 2014
Total Posts: 3
06 Feb 2017 07:28 PM
So what do I do to fix my mistake on this? it says error on:'Workspace.Player1:WaitForChild("Torso")
Report Abuse
XCVlll is not online. XCVlll
Joined: 23 Oct 2008
Total Posts: 963
06 Feb 2017 07:29 PM
math.random is never truly random
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
06 Feb 2017 07:31 PM
"math.random is never truly random"
No kidding!
That has nothing to do with this thread.
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