Why does Roblox Studio freeze/stop responding after I stop testing my game?

Hey!

I’m making a game on Roblox and my game works well but if you stop testing Roblox Studio may stop responding/freeze for a bit but then it goes back to normal. How can I fix this? I’ve tried removing some while true do loops, is it caused by that? If not, what is?

That’s normal, when you stop testing it typically hangs for a bit (relative to your computer’s performance). It should last at most 5 seconds though, unless your computer is under heavy load / is very slow