Hi. I was testing out the SurfaceGui button so that when someone clicks on it - a screen GUI should appear on the players screen by clicking on it. But I how do I fix this?
I have the following code from the script to make it work, but I think I am not right with this!
function lighting()script.Parent.Parent.Parent.Parent.Parent.StarterGui.WorkingOnGui.CeilingLight
Control.Visible = true
end
script.Parent.MouseButton1Click:connect(lighting)

4 comments
Well. I am trying to do is that when a player clicks on a SurfaceGui, the GUI from the StarterGui would popup on the player's screen.
Well then both of the scripts should work.
Is there any other scripts that I can try. Also the "CeilingLight.Control" is wrong, it should be "CeilingLightControl". :)
Just change it yourself, and that's about it.