|
| 18 Mar 2012 12:17 PM |
Disconnection ( bool lostConnection )
is there a way to use that ^^^ to announce a player has lost there connection to the game? |
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
|
| 18 Mar 2012 12:21 PM |
| Lost connection or left the game? |
|
|
| Report Abuse |
|
|
|
| 18 Mar 2012 12:22 PM |
| Like actually lost connection. In the wiki i says "Fired when the NetworkReplicator's client disconnects from the server " but that would also mean the left wouldnt it? |
|
|
| Report Abuse |
|
|
voidStd
|
  |
| Joined: 16 Mar 2012 |
| Total Posts: 7 |
|
|
| 18 Mar 2012 12:43 PM |
You can use the .PlayerRemoving event to announce that someone has left the game.
game:GetService("Players").PlayerRemoving:connect(function(playerInstance) local hintInstance = Instance.new("Hint", game.Workspace) hintInstance.Text = playerInstance.Name .. " has left the server." wait(5) hintInstance:Destroy() end)
{ Shoot me a private message if you're having trouble debugging your code. } |
|
|
| Report Abuse |
|
|