This is supposed to change Light (LightBulb) to yellow and then back to its original color (Institutional white) after one second. Is there another way to change it back to white after one second without saying Light.BrickColor = BrickColor.new("Institutional white") ?
Button = script.Parent
Light = game.Workspace.Part2
Button.ClickDetector.MouseClick:connect(function()
Light.BrickColor = BrickColor.new("New Yeller")
wait(1)
Light.BrickColor = BrickColor.new("Institutional white")
end)

2 comments
Can you use code block it's easier to read
Code looks fine to me. That's how I'd do it.