Ragdoll system only working on npcs

I’ve been programming a ragdoll system for my battlegrounds game, but it only works on NPCs and not on players.

Video:


(players are stuck to the ground for some reason but NPCs are not)