Change a player's character without removing the original character

Basically I wish for a specific player to be able to change their character into any dummy etc, without their previous character despawning. I want to do this so the player will be able to switch between 2 characters the server assigns to the player. One of the characters will be their original avatar another will be a dummy which I will reference with Dummy.

I have tried using the following, but this removed the player’s original character after changing it.

-- Setting the player's character
player.Character = Dummy

-- Switching network owners:
for _, inst in pairs(Dummy:GetDescendants()) do
   inst:SetNetworkOwner(player)
end

I have looked through any previous solution on the devforum with no luck, if anyone could help it would be appreciated!

TL;DR: I want the player to be able to switch from 1 character to another character without the characters getting destroyed after switching.

2 Likes

This is interesting. Where do you want the character to go that they switch from? I’m assuming this is some sort of body swapping game?
What you can try is to simply clone their character model before switching and set the CFrame to the same position. Will that achieve what you wanted?

2 Likes

Basically, yes.

Have not thought of that I will try it, thanks for the responds either way

1 Like