Model tweening not working

Tweening a models PrimaryPart should make it move, which it does, but the tween just stops before reaching the goal for no reason. It at -220 on the Y, and is supposed to move to -20, but it stops at -116 for some reason

local StartCFrame = self.CurrentBoss:GetPivot()
print(StartCFrame.Position)

-- Spawn below water
self.CurrentBoss:PivotTo(StartCFrame - Vector3.new(0, 200, 0))
print(self.CurrentBoss:GetPivot().Position)
self.CurrentBoss.Parent = BossContainer

print(StartCFrame.Position)
local TweenUp = TweenService:Create(
    self.CurrentBoss.PrimaryPart,
    TweenInfo.new(3),
    {
        CFrame = StartCFrame
    }
)
TweenUp:Play()
TweenUp.Completed:Wait()

print(self.CurrentBoss:GetPivot().Position)

image

Have you tried seeing what the CFrame property of the PrimaryPart is printing when the tween is done? I’m wondering if there’s some weird difference between the value returned from GetPivot and the physical CFrame value on the PrimaryPart.

Just now realised what might be causing it. The pivot point has been changed on the model to be the bottom of the model so it positions correctly (I need it for other areas of the code structure)

1 Like