Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to make the character not part of the player?

Asked by
EthanFins 104
5 years ago

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

Log in to vote
1
Answered by
Gojinhan 353 Moderation Voter
5 years ago
Edited 5 years ago

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)
Ad

Answer this question