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

Previous Thread :: Next Thread 
Autreus is not online. Autreus
Joined: 27 Feb 2015
Total Posts: 290
15 Oct 2016 07:28 AM
how do i make a script that chooses a random color from Really red, Really blue, Lime green and Black?


Dominus Autreus
Report Abuse
Autreus is not online. Autreus
Joined: 27 Feb 2015
Total Posts: 290
15 Oct 2016 07:47 AM
1


Dominus Autreus
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
15 Oct 2016 08:02 AM
put em in a table and choose a random thing from that table.


Report Abuse
JoshRBX is not online. JoshRBX
Joined: 19 May 2012
Total Posts: 8778
15 Oct 2016 08:08 AM
colours={"Really red","Really blue","Lime green","Black"} math.randomseed(tick())
while true do
wait(1)
colourChosen = colours[math.random(#colours)]
end


Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
15 Oct 2016 08:28 AM
You'd probably want the values in the table to be actual brickcolors though, that way you're not creating a new brickcolor value every time it chooses one. More efficient


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