Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make the character not part of the player?

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

1 answer

✓ Accepted answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.