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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 18 Jun 2008 |
| Total Posts: 7386 |
|
|
| 18 Jan 2015 11:44 AM |
| It is game.Players.PlayerRemoving |
|
|
| Report Abuse |
|
|