iiNemo
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 2380 |
|
|
| 15 Aug 2016 08:42 PM |
PlayerGui is not a valid member of player -- Thats the error... --Script for i, v in pairs (game.Players:GetChildren()) do m = script.Parent.Music:Clone() m.Parent = v.PlayerGui -- Error, How??? end
This is not the whole script but this is a part thats for some reason not working, anyone help me please? |
|
|
| Report Abuse |
|
|
iiNemo
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 2380 |
|
| |
|
|
| 15 Aug 2016 09:03 PM |
If you're using a LocalScript, you can only access the LocalPlayer's PlayerGui.
|
|
|
| Report Abuse |
|
|
iiNemo
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 2380 |
|
|
| 15 Aug 2016 09:03 PM |
I fixed it but, this is an error?
if t:findFirstChild("PlayerGui").Music.Playing == false then attempt to index a nil value? |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2016 09:04 PM |
PlayerGui is nil so ".Music" doesn't work.
|
|
|
| Report Abuse |
|
|
iiNemo
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 2380 |
|
|
| 15 Aug 2016 09:12 PM |
| So then how would I access everyones playergui? |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2016 09:13 PM |
From a Script. You can use a RemoteEvent if you need to.
http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial
|
|
|
| Report Abuse |
|
|