Why does player lag when died

I’m currently having an issue with my game, whenever the player gets shot and dies the player doesn’t get fling as far when the player just gets shot and doesn’t die

i dont have events such as character.humanoid.died
and i looked into this and this didn’t help me

here’s a video of player getting shot and get flung

and here’s a video where the player getting shot and dies, and doesn’t get flung

i’ve made a place to test it out
flingragdoll.rbxl (48.6 KB)

1 Like

Are you changing the network ownership of any part in the character when they get shot? If you are, that’s the problem.

no I am not, I am basically flinging the player using apply impulse, however when the player dies it somehow lags

if you use this code in an empty place you’ll notice tiny bit lag from the character

make sure to also disable break joints on death

--replace my username with yours
workspace.IceCreamPickels.HumanoidRootPart:ApplyImpulse(Vector3.new(0,5000,0)) --launches the player into the air
workspace.IceCreamPickels.Humanoid.Health = 0 -- kills the player

however if you take out the humanoid.health = 0 it wont lag