generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Wierd Error?

Previous Thread :: Next Thread 
iiNemo is not online. 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 is not online. iiNemo
Joined: 22 Jul 2013
Total Posts: 2380
15 Aug 2016 08:54 PM
B1923840U41390421903213
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
15 Aug 2016 09:03 PM
If you're using a LocalScript, you can only access the LocalPlayer's PlayerGui.


Report Abuse
iiNemo is not online. 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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
15 Aug 2016 09:04 PM
PlayerGui is nil so ".Music" doesn't work.


Report Abuse
iiNemo is not online. iiNemo
Joined: 22 Jul 2013
Total Posts: 2380
15 Aug 2016 09:12 PM
So then how would I access everyones playergui?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image