Issue with tweening a model

Hey there, so when I tween my primary part in a model, the rest of the model doesn’t follow it and eventually just falls into oblivion, anyone know how to fix this?

Details:

  • All parts are welded
  • Primary Part is anchored, rest isn’t

Code:

local TweenItem = TweenService:Create(ItemCloned.PrimaryPart, TweenInfo.new(.1), {Position = Vector3.new(math.floor(MouseTarget.X) + (ItemCloned.PrimaryPart.Size.X * 0.5), math.floor(MouseTarget.Y) + (ItemCloned.PrimaryPart.Size.Y * 0.5), math.floor(MouseTarget.Z) + (ItemCloned.PrimaryPart.Size.Z * 0.5))})

TweenItem:Play()

Video demonstrating:


This is because Tweens don’t actually move the entire model even if it sets the primary part’s cframe. You will have to use another method, such as BodyPosition or manually setting the CFrame every frame. I would prefer the 2nd as it is less buggy and you don’t have to perfect the values.

1 Like

What do you mean by setting the CFrame every frame? Also, are you sure there is no way to do a tween like way of doing this?

Use align orientation and position to tween it