Im new to scripting and am wanting to create a script that changes colors after 0.5 seconds. But the one I made seemed not to work? Can someone please tell me what I did wrong here?
local CB = script.Parent CB.Color = BrickColor.Red() wait(0.5) CB.Color = BrickColor.Blue() wait(0.5) CB.Color = BrickColor.Green() wait(0.5)
Thanks In advance
This is what you'd want to do:
local CB = script.Parent CB.BrickColor = BrickColor.new("Really Red") wait(0.5) CB.BrickColor = BrickColor.new("Really Blue") wait(0.5) CB.BrickColor = BrickColor.new("Lime Green") wait(0.5) --You can use the color palette to find which colors suit what you want
You want to use
BrickColor because that is the part's property for color.
BrickColor.new can also be constructed from a number value, but I usually use color names.
Hope this helped!