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: table math.random problem

Previous Thread :: Next Thread 
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
22 Mar 2017 06:16 AM
this is really simple and ik im dumb for not knowing but


local gamemodes = {"Test","Test2"}

while true do
wait(3)
script.Parent.Value = math.random(#gamemodes(1))
end


whats gonna work, teamwork!
Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
22 Mar 2017 06:19 AM
b


whats gonna work, teamwork!
Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
22 Mar 2017 06:21 AM
b2


whats gonna work, teamwork!
Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
22 Mar 2017 06:31 AM
um i tried this and it makes it values 1 and 2 and not the things in my table

script.Parent.Value = math.random(1,#gamemodes)


whats gonna work, teamwork!
Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
22 Mar 2017 06:37 AM
pls


whats gonna work, teamwork!
Report Abuse
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
22 Mar 2017 06:38 AM
gamemodes[math.random(1,#gamemodes)]
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