How to make a button turn green when you click it?
messing around with click detectors and i made a button. Im trying to make it turn green when you press it and stay green.
01 | local cd = script.Parent |
02 | local light = game.Workspace.WarningLight |
03 | local Button = game.Workspace.Button.Buttn |
04 | cd.MouseHoverEnter:Connect( function () |
05 | Button.BrickColor = BrickColor.new ( "Bright red" ) |
07 | cd.MouseHoverLeave:Connect( function () |
08 | Button.BrickColor = BrickColor.new ( "Institutional white" ) |
10 | cd.MouseClick:Connect( function () |
11 | light.BrickColor = BrickColor.new ( "Institutional white" ) |
12 | game.Workspace.WarningLight:Destroy() |
13 | Button.BrickColor = BrickColor.new ( "Lime green" ) |
Trying to make it stay green