Best Way To Change Character?

So my goal is that I need to change the player’s character into a different character. I have code that works well already, but the problem is that guis break. They don’t show up at all.

Code sample:

CharacterEvent.OnServerEvent:Connect(function(Player)
          Player.Character = ReplicatedStorage.Character
          wait(.1)
          Player.Character:Destroy()
end)

The character is just one meshpart, no bones or anything. There are multiple ragdoll pieces attached though.

It does a good job, besides the guis breaking. And the guis are pretty essential for the game, so yeah any help would be appreciated. Thank you for your time.

1 Like

one option is to use

https://developer.roblox.com/en-us/api-reference/function/Humanoid/ApplyDescription

with a HumanoidDescription you can set what you want each part to look like

another option is to use

https://developer.roblox.com/en-us/api-reference/function/Humanoid/ReplaceBodyPartR15

this will let you replace 1 part at a time

1 Like

Well this isn’t the usual character, it’s just one mesh. It’s not a mesh deformation rig either, just a single mesh (but it also has ragdoll pieces since it falls apart when dying)

This would usually work. And I thank you for the reply, but it’s not really what I’m looking for. I probably should have specified the details of the rig in the post, sorry abt that!

1 Like

You can set the player.Character = myModel just make sure it has a humanoid in it. That’s what I used for a prop hunt system (I think lol)

1 Like

That’s what I did, but the problem is that the guis completely break. Don’t know why.

1 Like

So it turns out my problem is the character I was changing to didn’t have all the necessary parts, [Pretty sure it was missing a head and some other stuff lol sorry for the waste of time.]

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.