Custom Rig is floating in air

– PLEASE TELL ME IF IM POSTING THIS IN THE WRONG CATEGORY –

Anyhow, I have a custom rig in my game that is more or less a bigger and more robotic looking roblox character. I have made an animation for it that should display it sitting on the ground:

image

However, in game it displays this:
image

As you can see, the character somehow snaps to the HumanoidRootPart’s position, and I have no idea why. (Of course I have a rough idea that this is the rig’s fault, but I can’t tell what is causing it)

-- a single line of code that sets its position

animatronic:PivotTo(newPoint.CFrame * CFrame.new(0, animatronic:GetAttribute("PosOffsetY"), 0))

Any help appreciated!

EDIT: I’ve changed the HipHeight of the rig, since it was constantly being set by because of the AutomaticScalingEnabled property on the humanoid. It still didn’t solve my issue. Please help me!

animatronic:PivotTo(newPoint.CFrame * CFrame.new(0, animatronic:GetAttribute("PosOffsetY")-5, 0))

change “-5” to another number if needed