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: When player leaves server

Previous Thread :: Next Thread 
Aj7Fish is not online. Aj7Fish
Joined: 30 Dec 2014
Total Posts: 500
18 Jan 2015 11:40 AM
The other day I learned how to activate scripts when player's join the server. Can any of you please tell me the code of line used or send me the wiki for when a player leaves the server, a script activates?
Report Abuse
tecno15 is not online. tecno15
Joined: 10 Sep 2009
Total Posts: 1372
18 Jan 2015 11:42 AM
game.Players.Changed:connect(function()
if game.Players:FindFirstChild("Player") == nil then
print('hes gone jim')
end
end)
Report Abuse
SLY3 is not online. SLY3
Joined: 10 Jul 2008
Total Posts: 1700
18 Jan 2015 11:43 AM
game.Players.PlayerRemoving:connect(function(player)
print(player.Name)
end)
Report Abuse
LucasLua is not online. LucasLua
Joined: 18 Jun 2008
Total Posts: 7386
18 Jan 2015 11:44 AM
It is game.Players.PlayerRemoving
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