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 color changer?

Previous Thread :: Next Thread 
xXLiLxJXx is not online. xXLiLxJXx
Joined: 15 Mar 2012
Total Posts: 687
07 Jul 2014 07:19 PM
I got this so far, but how can I make the color changing random?

colors = "Really red", "Really black", "Lime green", "Institutional white"

while wait() do
for x = 1,57 do
script.Parent.Parent[tostring(x)].BrickColor = BrickColor.new("Really red")
end
end
Report Abuse
xXLiLxJXx is not online. xXLiLxJXx
Joined: 15 Mar 2012
Total Posts: 687
07 Jul 2014 07:59 PM
20 views as of now, no really knows? D:
Report Abuse
Vuva is not online. Vuva
Joined: 22 Jan 2010
Total Posts: 1102
07 Jul 2014 08:00 PM
colors ={"Really red", "Really black", "Lime green", "Institutional white"}--You forgot brackets

while true do --You want the wait() inside of the for loop to make all the colors changes noticeable
for x = 1,57 do
script.Parent.Parent[tostring(x)].BrickColor = colors[math.random(1,#colors)]--accessing a random element in the table.
wait()
end
end
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