here is my script
local button = script.Parent local color = button.BackgroundColor3 color = Color3.new(255,0,0) script.Parent.MouseButton1Click:Connect(function () if color == Color3.new(255,0,0) then color = Color3.new(4,255,0) end if color == Color3.new(4,255,0) then color = Color3.new(255,0,0) end end)
You need to add a wait in-between the color script because it runs so fast you dont get to see the change
local button = script.Parent local color = button.BackroundColor3 color = Color3.new(255, 0, 0) script.Parent.MouseClick:Connect(function() if color == Color3.new(255, 0, 0) then wait(.5) color = Color3.new(4, 255, 0) end if color == Color3.new(255, 0, 0) then wait(.5) color = Color3.new(4, 255, 0) end end)