Old Player.Character disappears when you set the character to something else.
This is a big problem because I’m making a ragdoll script and I find the need to clone entire model (when you want ragdolls to stay in the game) ridiculous because 1. why, and it results in terrible performance and latency.
In contrast, converting an existing character to a ragdoll is extremely fast.
Actually, you could clone just the parts and humanoid, put them in a new model, and then wolla.
local new = Instance.new('Model')
for i,v in pairs(character:GetChildren()) do
if v:IsA('BasePart') or v:IsA('Humanoid') or v:IsA('Accessory') then
v:Clone().Parent = new
new.Parent = workspace
There is almost no delay with this method, so it has to be your script that is not optimised.
This solution gives me physics lag behavior where body parts could just glitch/spasm and it’s instable.
When it comes to latency, it’s about the same as with cloning the whole character and it cannot compare to near instant ragdoll that you get if you don’t try to get it saved from deletion upon respawn.
I’m still keeping this as a solution because it does keep the old character.
Thanks for the help but perhaps this is how Roblox wants things to be. Quite a shame.