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: Function for when a player leaves?

Previous Thread :: Next Thread 
sloomingbla is not online. sloomingbla
Joined: 28 Jun 2008
Total Posts: 1109
30 Mar 2015 02:00 PM
Cannot believe I forgot this. What event is it that is fired when a player leaves? Is it CharacterRemoving? I'm not sure if that's it.
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
30 Mar 2015 02:02 PM
Go to:
http://wiki.roblox.com/index.php?title=Players

And scroll down to "Events" and you'll find this jewel:


http://wiki.roblox.com/index.php?title=API:Class/Players/PlayerRemoving
Report Abuse
sloomingbla is not online. sloomingbla
Joined: 28 Jun 2008
Total Posts: 1109
30 Mar 2015 02:05 PM
Ah, many thanks.
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
30 Mar 2015 02:08 PM
game.Players.PlayerRemoving:connect(function(plr)
print(plr + "has left the game")
end)

Thread By, Coinman001
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