|
| 21 Nov 2013 05:39 PM |
My current method is when the player joins, copy a localscript into his playergui, enable said script, and there is a line of code inside the localscript that sets its parent to the currentcamera. This method appears to work, but I get this error:
18:37:28.367 - Something unexpectedly tried to set the parent of c_main to NULL while trying to set the parent of c_main. Current parent is Camera.
Any ideas? |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 21 Nov 2013 05:40 PM |
| Make an ObjectValue and make it's value to the camera then do the rest from there? |
|
|
| Report Abuse |
|
|
|
| 21 Nov 2013 05:41 PM |
Local script line 1 repeat wait(0.03) until script.Parent ~= nil wait(0.03) |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 21 Nov 2013 05:45 PM |
sry I need help.
What is the event?
player.PlayerAdded:connect (function when they join, is this the proper event? |
|
|
| Report Abuse |
|
|
|
| 21 Nov 2013 05:54 PM |
@scriptural
I still get the error, even though the script works fine... |
|
|
| Report Abuse |
|
|
|
| 21 Nov 2013 06:02 PM |
Oh that error, if you still wanna fix it repeat wait(0.03) until script.Parent:IsA("PlayerGui") wait(0.03) |
|
|
| Report Abuse |
|
|
|
| 21 Nov 2013 06:15 PM |
| :( still gives me the error |
|
|
| Report Abuse |
|
|
|
| 21 Nov 2013 06:21 PM |
| Make the last wait(0.03) to wait(1) |
|
|
| Report Abuse |
|
|