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 » Scripting Helpers
Home Search
 

Re: PlayerAdded Event Not Working.

Previous Thread :: Next Thread 
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
08 Jun 2013 12:56 PM
game.Players.PlayerAdded:connect(function(player)
Instance.new("IntValue", player).Name = "GC"
player.PlayerGui.ScreenGui.Frame.Visible = true
end)

now i have no idea why its not working -_-

p.s this is for a personal build server, idk if that changes anything.
Report Abuse
LightedRoblox is not online. LightedRoblox
Joined: 16 Apr 2010
Total Posts: 6235
08 Jun 2013 12:58 PM
I just made a thread asking why "PlayerAdded" function isn't working in test mode. It used to work then I updated my studio. Now it doesn't work.. I have no idea why.
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
08 Jun 2013 12:59 PM
yes i have been wondering around in the forums all day -_- and for me this isnt just test mode this sometimes happens in online mode after i just updated a game.
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
08 Jun 2013 05:25 PM
is this fixed yet?

#impatient
Report Abuse
icanxlr8 is not online. icanxlr8
Joined: 25 Feb 2009
Total Posts: 3686
08 Jun 2013 05:28 PM
I just realized it isn't working. I have a game, and I didn't realize the newPlayer.Name.." has become a pirate!" wasn't workin.

~ican't think of a good siggy~
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
08 Jun 2013 05:28 PM
lol just a bit late :3
Report Abuse
2unknown2 is not online. 2unknown2
Joined: 30 Oct 2011
Total Posts: 9351
08 Jun 2013 05:29 PM
Wont work for me too.

Please put "Send OneBillionFriends a friend request" as your profile description.Thanks if you do.
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
08 Jun 2013 05:57 PM
@Lighted,
I guess you didn't read the Wiki footnote on the 'PlayerAdded' event.

"Note: This method does not work as expected in solo mode, because the player is created before scripts that connect to PlayerAdded run."

@Others,
If you're talking about 'Play Solo' then read the above, if you're not I've got no clue since it's working fine for me.
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
08 Jun 2013 05:59 PM
nope im fully aware that solo is wierd but this is happening online in my games, also yesterday playeradded was working fine in solo/test for me.
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
08 Jun 2013 06:03 PM
@Prest,
I do not know why it wouldn't be working online for you, as it's working perfectly fine for me, and I'm sure it's also working for the majority of other people. PlayerAdded, in solo, works in a peculiar manner as it doesn't always work, but it does sometimes on the odd chance or sometimes even consistently.
Report Abuse
Skythen is not online. Skythen
Joined: 31 May 2013
Total Posts: 432
08 Jun 2013 06:03 PM
Thats why my script isnt working...
Report Abuse
shayan414 is not online. shayan414
Joined: 11 Aug 2008
Total Posts: 8090
08 Jun 2013 06:03 PM
There have been various complaints regarding the PlayerAdded event recently.

I would hang in there for the moment and wait till ROBLOX gets a possible fix for this.
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
08 Jun 2013 06:10 PM
been waiting hours
Report Abuse
shayan414 is not online. shayan414
Joined: 11 Aug 2008
Total Posts: 8090
08 Jun 2013 06:26 PM
It's not going to happen that fast.
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
08 Jun 2013 06:28 PM
i guess i can lurk around sh for a few more days.
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
09 Jun 2013 07:52 AM
STILL NOT WORKING!!!!!

well for me anyway.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
09 Jun 2013 07:54 AM

game.Players.PlayerAdded:connect(function(plyr)
repeat wait() until plyr
a = Instance.new("IntValue", plyr)
a.Name = "GC"
plyr.PlayerGui.ScreenGui.Frame.Visible = true
end)
Report Abuse
pauljkl is not online. pauljkl
Joined: 23 Oct 2008
Total Posts: 9364
09 Jun 2013 09:02 AM
PlayerGui takes a short while after the player has been added to create itself. just add this:
player:WaitForChild("PlayerGui") before trying to reference PlayerGui
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
09 Jun 2013 09:12 AM
I prefer repeat wait() until plyr.PlayerGui

But everyone is different
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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