Connection mysteriously disconnecting

image

Here is a sample code and output

There are no :Disconnect( ) functions, so I have no clue what is disconnecting them, anyone have a clue?

You call newItem:Destroy() on line 203 which destroys both it and all of its children, thus disconnecting the connection.

2 Likes

For some reason the fix was just to add a wait(0.05) before making connection 3, weird

The connection object is a player object. It will be disconnected from the server if the player leaves the game.