How to tween a whole character using the HumanoidRootPart

I am trying to make a humanoid rig turn to face another person. I am currently trying to change the orientation of the HumanoidRootPart with a Tween, but only the HumanoidRootPart is turning, not the entire rig. All of the parts are welded together, and the only part that is anchored is the HumanoidRootPart. What am I doing wrong?

1 Like

Instead of the Orientation you should change the Cframe because it changes both position and Orientation. It should change the orientation and position of the welded parts to.

Tweening HumanoidRootPart’s CFrame isn’t enough if it is anchored. Instead, tween the whole model by using a CFrameValue.

image

local TS = game:GetService("TweenService")
local Info = TweenInfo.new() -- all defaults

local Dummy = workspace.Dummy
local TV: CFrameValue = Dummy.TweenValue

local Tween = TS:Create(TV, Info, {Value = Dummy:GetPivot()*CFrame.Angles(0, math.pi/2, 0)})

TV.Value = Dummy:GetPivot() -- assign initial position

TV.Changed:Connect(function()
	Dummy:PivotTo(TV.Value)
end)

Tween:Play()
1 Like