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: Chatted Event of Player Disconnecting on its Own

Previous Thread :: Next Thread 
ChaosEspeon is not online. ChaosEspeon
Joined: 02 Jan 2009
Total Posts: 4578
07 Jul 2014 12:33 AM
game.Players.PlayerAdded:connect(function(plr)
plr.Chatted:connect(function(msg, rec) PlayerChat(msg, rec, plr) end)
end)


I have a chat GUI that connects users' chats to it through those three lines of code. For some reason that I don't know, a player's chat will just disconnect from the chat GUI for a reason I don't know. Could anyone tell me why from those three lines of code? Or could something in the function cause it to be disconnecting?
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
07 Jul 2014 12:36 AM
There shouldn't be a problem with that, the event should remain connected until you call :disconnect() on it, or they leave. Since neither is occurring my guess is that PlayerChat hosts the problem.
Report Abuse
ChaosEspeon is not online. ChaosEspeon
Joined: 02 Jan 2009
Total Posts: 4578
07 Jul 2014 12:40 AM
Anything you can think of that could cause a problem like that? The function is pretty lengthy, and would be annoying to read here.
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