Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 03 Apr 2015 12:28 PM |
script.Parent.MouseButton1Click:connect(function(plr) pcall(function() game.Lighting.Scripts.Test:clone().Parent = plr.PlayerGui end) end)
The script works till it gets to "game.Lighting....." I used print("") to check the Dev Console to where the script stops. I want the script to clone a GUI into the characters PlayerGui, The button is in a Surface GUI. Any help on how to fix this? |
|
|
| Report Abuse |
|
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
| |
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
| |
|
AntiFiter
|
  |
| Joined: 14 May 2009 |
| Total Posts: 12290 |
|
|
| 03 Apr 2015 02:57 PM |
| what's the output and what is the problem |
|
|
| Report Abuse |
|
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 03 Apr 2015 03:23 PM |
| The output says nothing and the problem is that it won't clone into the Player's PlayerGui. |
|
|
| Report Abuse |
|
|
AntiFiter
|
  |
| Joined: 14 May 2009 |
| Total Posts: 12290 |
|
|
| 03 Apr 2015 03:32 PM |
| replace the pcall with print'hello' and tell me the output |
|
|
| Report Abuse |
|
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 03 Apr 2015 04:11 PM |
Hello and trying to index local 'plr' (nil value)
with a local script nothing appears. |
|
|
| Report Abuse |
|
|
AntiFiter
|
  |
| Joined: 14 May 2009 |
| Total Posts: 12290 |
|
|
| 03 Apr 2015 04:14 PM |
Wait, where is the surface gui?
And I don't think mousebutton1down is an event of it |
|
|
| Report Abuse |
|
|
mycheeze
|
  |
| Joined: 27 Jun 2011 |
| Total Posts: 6748 |
|
|
| 03 Apr 2015 04:18 PM |
| >Stop using lighting as a folder, and use the ServerStorage service instead, it will only load information about it once it is no longer in the service, whereas lighting is like having a duplicate workspace, but having any children being invisible. |
|
|
| Report Abuse |
|
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 03 Apr 2015 04:24 PM |
At @AntiFilter, The surface gui is in Workspace.
@mycheeze, I know but moving the Test GUI isn't going to help the script to clone it into the PlayerGui |
|
|
| Report Abuse |
|
|