|
| 20 Apr 2015 02:40 PM |
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)
|
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 20 Apr 2015 02:43 PM |
Do this:
function lighting() game:GetService("StarterGui").WorkingOnGui.CeilingLightControl.Visible = true end
script.Parent.MouseButton1Down:connect(lighting)
You cannot assign a variable and change a value on the same line in the way you were doing it. |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2015 02:47 PM |
| I have just figured that out, but it's not a local script which I could try. |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2015 02:48 PM |
:GetService("StarterGui")
Uhh, How has nobody caught that you can't edit the StarterGui |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2015 02:50 PM |
| Tried it in a local script, but it still doesn't work. Any other solutions? |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Apr 2015 04:31 PM |
Ewwwwwwwwwwwwwwww who edits a gui from the starter gui. *COUGH* PlayerGui *COUGH*
script.Parent.MouseButton1Down:connect(function(lighting) p = game.Players.LocalPlayer p.PlayerGui.WorkingOnGui.CeilingLightControl.Visible = true end)
~ All you need to know is that I'm an otaku |
|
|
| Report Abuse |
|
|