Roblox freezes in-game but not in-Studio

Let me know if I should change the category or topic; I didn’t know what exactly to put this under or if this is an engine bug.

I’ve been working on a game with a friend for the past week and a half. Everything has looked fine until we started testing today. The game freezes almost (not always) in-game and in-Studio when there are multiple clients (including team test and local servers).

We’ve tried everything we can think of - reverting to the last time team test/local servers worked, checking for infinite loops (although this would break the game in solo mode I would assume), publishing the game to a new experience - yet nothing works. If anyone has any idea as to why this is happening, please let me know. Thanks!

2 Likes

Did you use any free models? :grinning_face_with_smiling_eyes:

1 Like

Nope. I think I figured out the issue, though.

I have a problem like that but i fixed it. I have a loop which is while true do. I put a wait() at it fixed.

2 Likes

I also met the same problem. How did you solve it?

1 Like

I was firing a RemoteEvent every second for a countdown to every player in the game. I have no clue why that was too much for the game to handle, but only firing the RemoteEvent once and handling the rest of the countdown on the client fixed it.

because the roblox server maybe weaker than your pc because when your in test mode, your pc is the server and client.

1 Like

or its because of the network traffic that could be slowing you down. because its all on your computer in studio, it doesnt have to fire over the internet.

3 Likes

This makes more sense than your first reason. I highly doubt Roblox’s servers are worse than my cheap laptop.

It has the same effect as loops. It might stop after about 4,500 prints but ingame it will just crash or freeze.

1 Like

It was only firing once per second.

2 Likes

Usually it would stop give a output warning; “Script Exhaust”,but sometimes it would randomly just freeze the game like how exploiters can fire a server and freeze the server.

2 Likes