I did this but the color doenst change only to black and white?
local playing = false local function Error() if playing == false then playing = true local label = script.Parent label.BackgroundColor3 = (Color3.new(0, 0, 0)) wait(0.5) label.BackgroundColor3 = (Color3.new(255, 1, 5)) wait(0.5) label.BackgroundColor3 = (Color3.new(0, 0, 0)) wait(0.5) label.BackgroundColor3 = (Color3.new(255, 1, 5)) wait(0.5) label.BackgroundColor3 = (Color3.new(0, 0, 0)) wait(0.5) label.BackgroundColor3 = (Color3.new(255, 1, 5)) wait(0.5) label.BackgroundColor3 = (Color3.new(0, 0, 0)) playing = false end end
Color3 isn't like RGB, instead of ranging from 0-255 it ranges from 0-1.
There are 2 ways to fix this, the easier one being using Color3.fromRGB instead of Color3.new:
Color3.fromRGB(255,1,5)
or you can divide every number by 255, so it's always a number between 0 and 1:
Color3.new(255/255,1/255,5/255)
Try this, if you need a different color just change the white or red to whatever the colors name is.
local playing = false local function Error() if playing == false then playing = true local label = script.Parent label.BrickColor = BrickColor.White() wait(0.5) label.BrickColor = BrickColor.Red() wait(0.5) label.BrickColor = BrickColor.White() wait(0.5) label.BrickColor = BrickColor.Red() wait(0.5) label.BrickColor = BrickColor.White()() wait(0.5) label.BrickColor = BrickColor.Red() wait(0.5) label.BrickColor = BrickColor.White() playing = false end end