My friend and I were testing my game out, but we ran into a bug. When you hit someone, some knockback is inflicted onto their character. When you respawn, you get a message that the gameplay is paused. It appears that you have been flung into the sky.
I have a script running on the client, that checks if the humanoidrootpart’s velocity is higher than 65. If the humanoidrootpart’s velocity is higher than 65, then we set the velocity to Vecter3.new(0, 0, 0). After the fix, we still encountered the problem.
When does gameplay paused happen? Why does it happen? Should I lower the knockback? What other measures could I make to prevent gameplay paused?