Hi, I am not quite sure about this script. But it just not working, I tried testing this as a local script and tested in-game and in test server. Still couldn't work!
Can you figure this script out?
function lighting() local Control = game:GetService("StarterGui").WorkingOnGui.CeilingLightControl.Visible = true end script.Parent.MouseButton1Down:connect(lighting)
I know that I have tried tweaking the script by myself, but what I have tweaked is below.
function lighting() game:GetService("StarterGui").WorkingOnGui.CeilingLightControl.Visible = true -- The difference between the old and the new script is that I have taken out "local Control = ". end script.Parent.MouseButton1Down:connect(lighting)
But the script didn't work, so what I did is that I tried it as an Local Script - but that didn't work either!
Is there any other solutions?
Thanks!
You need to access the player gui by going through:-
game.Players.[player name].PlayerGui.WorkingOnGui.CeilingLightControl.Visible = true
Hope this helps