I'm trying to have the surfacegui change the neon bricks color, so I implemented this script, however it is not changing the bricks color from white to gold. here is the script:
function onClick(clicked)
game.Workspace.DanceFloor.Light1.BrickColor = BrickColor.new("Gold") script.Parent.MouseButton1Down:connect(clicked)
https://prnt.sc/n5l3at --the link is for a visualization of what im trying to do.

2 comments
Is it in a server script or local script?
localscript