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: connection

Previous Thread :: Next Thread 
textmasterthe9th is not online. textmasterthe9th
Joined: 03 Oct 2008
Total Posts: 752
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 is not online. TwoBoo
Joined: 08 Feb 2011
Total Posts: 10790
18 Mar 2012 12:21 PM
Lost connection or left the game?
Report Abuse
textmasterthe9th is not online. textmasterthe9th
Joined: 03 Oct 2008
Total Posts: 752
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 is not online. 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
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