Here my script
while true do
script.Parent.BrickColor = BrickColor.new(0, 255, 0)
wait(2)
script.Parent.BrickColor = BrickColor.new(255, 0, 0)
end
Here my script
while true do
script.Parent.BrickColor = BrickColor.new(0, 255, 0)
wait(2)
script.Parent.BrickColor = BrickColor.new(255, 0, 0)
end
###The problem is very simple. After the second change on line 4, you didn't add another wait call after it, so it instantly went to line 2 and made it seem like it didn't change. The fix is to add a call to the wait function after line 4.
while true do
script.Parent.BrickColor = BrickColor.new(0, 255, 0)
wait(2)
script.Parent.BrickColor = BrickColor.new(255, 0, 0)
wait(2)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
Oh.... Yeah, i forgot it ;_;
By the way, say you're trying to make something red. Don't you do something like BrickColor.new("Really red") instead of an RGB value?
That's perfectly fine.