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: What is wrong with this color changing script?

Previous Thread :: Next Thread 
fuzzyman337 is not online. fuzzyman337
Joined: 13 Apr 2017
Total Posts: 8
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
fuzzyman337 is not online. fuzzyman337
Joined: 13 Apr 2017
Total Posts: 8
13 Jun 2017 04:52 PM
Also the colors are weird I know, got them off some ###############################################################
Report Abuse
fuzzyman337 is not online. fuzzyman337
Joined: 13 Apr 2017
Total Posts: 8
13 Jun 2017 04:53 PM
########
Report Abuse
Cuyler is not online. 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
fuzzyman337 is not online. fuzzyman337
Joined: 13 Apr 2017
Total Posts: 8
13 Jun 2017 05:04 PM
Because then the colors are out of order and include colors like brown and white.
Report Abuse
Cuyler is not online. 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 is not online. Cuyler
Joined: 27 Feb 2006
Total Posts: 3784
13 Jun 2017 05:10 PM
pastebin /BbZkdxfX


Report Abuse
fuzzyman337 is not online. fuzzyman337
Joined: 13 Apr 2017
Total Posts: 8
13 Jun 2017 05:20 PM
It didn't work.
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
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
fuzzyman337 is not online. fuzzyman337
Joined: 13 Apr 2017
Total Posts: 8
13 Jun 2017 05:36 PM
Thank you so much!

Report Abuse
fuzzyman337 is not online. fuzzyman337
Joined: 13 Apr 2017
Total Posts: 8
13 Jun 2017 05:36 PM
Thanks for your help, means a lot.
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