|
| 01 Oct 2013 04:48 AM |
game.Players.PlayerAdded:connect(function(plyr) script:FindFirstChild("WelcomeXenox"):Clone().Parent = plyr.PlayerGui end)
The error I got is that PlayerGui is not a valid member of Player, this is in a normal script. Does anyone know why this is happening? Oh, the script is also in Workspace. There is more to this script and I need it to only show once, so don't tell me to put it in StarterGui. |
|
|
| Report Abuse |
|
|
Marolex
|
  |
| Joined: 17 Dec 2012 |
| Total Posts: 1785 |
|
|
| 01 Oct 2013 04:50 AM |
| This means the player has not fully loaded yet, use the :WaitForChild function. or just throw some random wait time in there... |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2013 04:51 AM |
| Ok, thought that might be it. I'll add that and see if it works. |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2013 04:57 AM |
I need to access the CurrentCamera in the same script, so I moved it to a LocalScript, but now the GUI doesn't show and there are no errors.
What would I need to change to make it work in a LocalScript? |
|
|
| Report Abuse |
|
|
Marolex
|
  |
| Joined: 17 Dec 2012 |
| Total Posts: 1785 |
|
|
| 01 Oct 2013 05:00 AM |
| Anything with "game.something" is not a local process so i would convert that if i where you then |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2013 05:02 AM |
| Most events don't function properly in localscripts because they get replicated. |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2013 05:04 AM |
| What about game.Players.LocalPlayer? |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2013 05:04 AM |
| Oh, so I might make it into 2 scripts.... |
|
|
| Report Abuse |
|
|
Marolex
|
  |
| Joined: 17 Dec 2012 |
| Total Posts: 1785 |
|
| |
|
|
| 01 Oct 2013 05:18 AM |
The normal script works, but now I'm having trouble with the CurrentCamera. No output but it doesn't change the camera at all. I can't use an event of course, so what do I do?
wait() Workspace.CurrentCamera.CameraSubject = Workspace.CoPart Workspace.CurrentCamera.Focus = Workspace.FocusPart.CFrame Workspace.CurrentCamera.CameraType = "Scriptable" Workspace.CurrentCamera.CoordinateFrame = Workspace.CoPart.CFrame Workspace.CurrentCamera.FieldOfView = 30 |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2013 05:19 AM |
| Do I need to use CoordinateFrame instead of Focus because the CameraType is scriptable? |
|
|
| Report Abuse |
|
|
Marolex
|
  |
| Joined: 17 Dec 2012 |
| Total Posts: 1785 |
|
|
| 01 Oct 2013 05:22 AM |
| Thats editing the workspaces camera not the local players camera... |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2013 05:23 AM |
| *facepalm* I used the Workspace when testing. XD |
|
|
| Report Abuse |
|
|
Marolex
|
  |
| Joined: 17 Dec 2012 |
| Total Posts: 1785 |
|
|
| 01 Oct 2013 05:25 AM |
| Oops i read that wrong sorry, Make sure it tracks the coords |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2013 05:29 AM |
| Not sure what you mean by that.... Could you give an example? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|