I have tried to make a game where when your player dies and if that player leaves the game the player's character will still be there in ragdoll. I got the ragdoll, I just need a way to separate the player from the character so they are no longer attached.
I have tried 2 ways: Setting players character to nil setting players character to a different cloned character
but both of these ways result in the player's character getting destroyed
Note: It's only supposed to detach the character on death
thank you
maybe try PlayerRemoving() event and cloning the players model?
e.g:
samplehumanoid.Died:connect(function() rag = samplecharacter:Clone() end) game.Players:PlayerRemoving:conenct(function(player) rag.Parent = workspace end)