Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Script that makes a brick transition color not working?

Asked by 4 years ago

I am trying to make is so that a brick switches between two colours but it's not working

brick = script.Parent
while true do
brick.BrickColor = BrickColor("Bright Orange")
wait(0.5)
brick.BrickColor = BrickColor("Neon Orange")
end

i would also appreciate it if someone could tell me how to make it fade between the colors instead of switching

0
also if you want to make it fade you have to have a RGB Script thing i dont know yet Vortex_Vasne 89 — 4y

1 answer

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

Use

brick = script.parent
while true do
brick.brickcolor = brickcolor.new("Bright Orange")
wait(0.5)
brick.brickcolor = brickcolor.new("Neon Orange")
end

to change it to a specifi color use .new

0
you need to add another wait after line 5 Despayr 505 — 4y
0
ok thank you DraconianSG 58 — 4y
Ad

Answer this question