|
| 13 Jun 2017 04:51 PM |
I'm currently attempting to make a block go from red to orange to yellow to green etc. (The Rainbow Kinda) I have a script but it does not seem to be working, it would mean a lot if someone could help. Thanks!
Here's The Script:
brick = script.Parent while true do brick.BrickColor = BrickColor.ReallyRed() wait(0.5) brick.BrickColor = BrickColor.DeepOrange() wait(0.5) brick.BrickColor = BrickColor.NewYeller() wait(0.5) brick.BrickColor = BrickColor.LimeGreen() wait(0.5) brick.BrickColor = BrickColor.Teal() wait(0.5) brick.BrickColor = BrickColor.ElectricBlue() wait(0.5) brick.BrickColor = BrickColor.RoyalPurple() wait(0.5) brick.BrickColor = BrickColor.Magenta() wait(0.5) brick.BrickColor = BrickColor.HotPink() wait(0.5) end |
|
|
| Report Abuse |
|
|
|
| 13 Jun 2017 04:52 PM |
| Also the colors are weird I know, got them off some ############################################################### |
|
|
| Report Abuse |
|
|
| |
|
Cuyler
|
  |
| Joined: 27 Feb 2006 |
| Total Posts: 3784 |
|
|
| 13 Jun 2017 04:55 PM |
Why not just do this:
local Brick = script.Parent;
while (wait(0.5)) do Brick.BrickColor = BrickColor.Random(); end
|
|
|
| Report Abuse |
|
|
|
| 13 Jun 2017 05:04 PM |
| Because then the colors are out of order and include colors like brown and white. |
|
|
| Report Abuse |
|
|
Cuyler
|
  |
| Joined: 27 Feb 2006 |
| Total Posts: 3784 |
|
|
| 13 Jun 2017 05:10 PM |
| Oh sorry, I didn't read the entire thing. Try this: local Brick = script.Parent; local Color_Table = { BrickColor.new("Really red"), BrickColor.new("Deep orange"), BrickColor.new("New Yeller"), BrickColor.new("Lime green"), BrickColor.new("Teal"), BrickColor.new("Electric blue"), BrickColor.new("Royal purple"), BrickColor.new("Magenta"), BrickColor.new("Hot pink") }; while (true) do for i = ## ############ do Brick.BrickColor = Color_Table[i]; wait(0.5); end end |
|
|
| Report Abuse |
|
|
Cuyler
|
  |
| Joined: 27 Feb 2006 |
| Total Posts: 3784 |
|
| |
|
| |
|
|
| 13 Jun 2017 05:26 PM |
brick = script.Parent colors = {"Really red","Deep orange","New Yeller","Lime green","Teal","Electric blue","Royal purple","Magenta","Hot pink"} while true do for _,v in next,colors do brick.BrickColor = BrickColor.new(v) wait(0.5) end end |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Jun 2017 05:36 PM |
| Thanks for your help, means a lot. |
|
|
| Report Abuse |
|
|