Removing the player’s character as soon as it loaded was the problem. It would remove the Head, which was supposed to be the model’s PrimaryPart, and would crash the client when ROBLOX’s character system would call :GetPrimaryCFrame() on the nonexistant character.
Resolution:
Don’t remove the player’s character as soon as it loads with the .CharacterAdded event.[/quote]
I don’t know if this is related or not, but my game Multi Pong, that I haven’t updated in 3 months, has started to shut down as soon as you join the game. I haven’t really been paying much attention to it, as I’ve been busy working on completely remaking it, but apparently it’s been happening since 2 weeks ago.
Comments expressing that other people have been affected as well:
The last screenshot you posted tells you the exact problem. You can’t call :GetPrimaryCFrame() when the primary part isn’t set. Obviously, this shouldn’t cause a crash, but it sounds like you should take a look at your code and figure out how it’s happening because this doesn’t happen in every game, just yours and a few others.
ding ding ding - that’s what I was just checking. What I did was I removed the player’s character as soon as it loaded with the .CharacterAdded event. I disabled the script that did that and I can join the game locally. Haven’t tested online yet.
Edit:
So it seems that removing the player’s character as soon as it loaded was the problem. It would remove the Head, which was supposed to be the model’s PrimaryPart, and would crash the client when ROBLOX’s character system would call :GetPrimaryCFrame() on the nonexistant character.
That didn’t work, but I ended up using a repeat loop to wait until the character was parented to workspace, then I removed it. Works just like it used to. Thanks for the suggestions and troubleshooting, though! You’ve been a huge help in my past two threads.
That didn’t work, but I ended up using a repeat loop to wait until the character was parented to workspace, then I removed it. Works just like it used to. Thanks for the suggestions and troubleshooting, though! You’ve been a huge help in my past two threads.[/quote]
This seems like a band-aid fix, if you set the CharacterAutoLoads property to false on the Players object will that satisfy the needs of the game? I have done this before and then manually set the Character property to the model I wanted or an empty model and it worked fine.
Suddenly getting disconnected from all games after around 20-30 minutes playtime. My internet is fine, turned anti-virus off but now just keep getting disconnected