I'm trying to make the cop light on top of a cop car and I want it so if you click on the light it flickers between Really Read and Deep Blue with 1.5 waits between and it continues untill clicked for the second time and it turns white and becomes disabled. If not possible the way I want it then whatever is closest. I have a part with a ClickDetector and these scripts
RedtoBlue (Disabled Script)
while true do
script.Parent.BrickColor = BrickColor.new(Color3.new(255, 1, 1))
wait(1.5)
script.Parent.BrickColor = BrickColor.new(Color3.new(33, 84, 185))
end
RedtoBlue Enable
local function onMouseClick(player)
script.Parent.RedtoBlue.Disabled=false
end
script.Parent.ClickDetector.MouseClick:connect(onMouseClick)
RedtoBlue Disable
local function onMouseClick(player)
script.Parent.RedtoBlue.Disable=true
script.Parent.BrickColor = BrickColor.new(Color3.new(255, 255, 255))
end
script.Parent.ClickDetector.MouseClickRight:connect(onMouseClick)
Please help, not working.

2 comments
So what is the problem?
Not sure, colors not changing, MouseClickRight isn't a real function, and I'm sure theres more wrong.