I am manually loading the character and then when the character dies for the first time, it freezes the server for a second. However, all deaths after that are perfect. It does not replicate outside of Roblox Studio. I suspect it is a niche issue of Roblox Studio.
Expected behavior
The server should not freeze when the character first dies. That is what I would expect to happen.
There are no for loops or anything wrong with the code. It does not replicate outside of Roblox Studio. It is an engine error. Therefore, I have sent the bug to staff so the studio engineers can see it.