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: is there an event that triggers when a person spawns?

Previous Thread :: Next Thread 
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
19 Dec 2013 09:55 AM
[ Content Deleted ]
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
19 Dec 2013 09:56 AM
CharacterAdded?
Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
19 Dec 2013 09:57 AM
[ Content Deleted ]
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
19 Dec 2013 10:01 AM
I usually do this:

game.Players.PlayerAdded:connect(function(Plr)
Plr.Changed:connect(function(C)
if C == "Character" then
--blahblah
end
end)
end)

Not sure what the difference is, CharacterAdded never seems to work for me though.
Report Abuse
MightyWanderer is not online. MightyWanderer
Joined: 17 Jan 2011
Total Posts: 1110
19 Dec 2013 10:07 AM
Yeah, CharacterAdded fires whenever a player spawns. But you need to use it like this:

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
--code
end)
end)

Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
19 Dec 2013 01:32 PM
CharacterAdded()

Not the same as PlayerAdded()
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