Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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 :(

2 comments

0

ayy someone who also watches aot

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.

1 answer

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.