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)
function lighting() game:GetService("StarterGui").WorkingOnGui.CeilingLight.Control.Visible = true end script.Parent.MouseButton1Click:connect(lighting)
Or
function lighting() local Control = game:GetService("StarterGui").WorkingOnGui.CeilingLight Control.Visible = true end script.Parent.MouseButton1Click:connect(lighting)
You're being too broad. Comment to me what you are trying to do. You can't just slap on a script and say, "Hey, fix this."