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

My character dies when changing Humanoid.Parent to a custom Model, why it die?

Asked by 3 years ago
Edited 3 years ago

Video

What I'm trying to do is change the model to another without reloading character

(ux, uy, uz) are UpperTorso position of the default character

--titan

    titan = titanModel:Clone()
    titan.Parent = game.Workspace
    titan.UpperTorso.Position = Vector3.new(ux, uy + 15, uz)
    character.Humanoid.Parent = titan
    localPlayer.Character = titan

--

I'm trying to solve this for an entire week, a there is no solution on internet :(

0
ayy someone who also watches aot 3wdo 198 — 3y
0
The Humanoid Instance details the state of the Rig it belongs to, detaching it will unfocus several significant aspects, ultimately causing "death" in this case. Ziffixture 6913 — 3y

1 answer

Log in to vote
0
Answered by
3wdo 198
3 years ago

I'm not sure if you have localPlayer as a variable but im assuming so.

you dont change the players humanoid, you change its character

local PlayerPos = localPlayer.Character:GetPrimaryPartCFrame()
Player.Character = titan
titan.Parent = workspace
titan:SetPrimaryPartCFrame(PlayerPos)

this should work because i used this same script to change a players character

Ad

Answer this question