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.
put the script inside the gui make it a server script (normal script) and do this instead
script.Parent.MouseButton1Click:Connect(function()--activates the function once you click script.Parent.Parent.Parent.Parent.BrickColor = BrickColor.new("Gold")--changes the brickcolor to gold end)
the picture you provided did help