Issue with morphing some kind of sliding and wrong orientation

Never seen this in my life. I need if possible quick fix. I tried multiple possibilities:
Welding,
Pivot (idk but I tried),
Welding legs to the white plastic part, …

None of them solved

Screenshot 2024-04-07 151926
Script:

local model = script.Parent
local prompt = model.Prompt.ProximityPrompt

prompt.Triggered:Connect(function(player)
	local oldCharacter = player.Character
	local morphModel = model:FindFirstChildOfClass("Model")
	local newCharacter = morphModel:Clone()

    for _, v in pairs(newCharacter:GetChildren()) do
        print(v.Name)
        if v.ClassName == "Part" then
            print('Part detected [ngMorph]'.. v.Name)
            v.Anchored = false
        elseif v.ClassName == "UnionOperation" then
            print('Union detected [ngMorph]'.. v.Name)
            v.Anchored = false
        elseif v.ClassName == "MeshPart"  then
            print('MeshPart detected [ngMorph]'.. v.Name)
            v.Anchored = false    
        elseif v.ClassName == "Humanoid" then
            print('Humanoid detected [ngMorph]'.. v.Name)
        end
    end


    newCharacter:SetPrimaryPartCFrame(oldCharacter.PrimaryPart.CFrame)
    
	player.Character = newCharacter
    newCharacter.Parent = workspace
    
    newCharacter:MoveTo(Vector3.new(0, 100, 0))
    
end)

Video:
robloxapp-20240407-1515039.wmv (1.4 MB)

1 Like