Model not tweening

I’m adding a fun nuke troll to my game, and have made a bomber fly across the map to drop it, however when I try to tween the bomber, it doesn’t move and stays stuck in one position. Everything has been welded to the primarypart of the parented model and set to unanchored, however the plane still won’t move and simply stays in place at the beginning of its tween, and also has its orientation incorrect, making the plane appear nose-down as opposed to horizontal.

The following is the code related to tweening the bomber:

	local function generatebomber()
		local startPos = Vector3.new(1886.25, 422.062, -501.109)
		local endPos = Vector3.new(-1499.75, 420.775, -501.745)

		local Bomber = Storage.McBomber:Clone() -- bomber copied from a folder in serverstorage
		Bomber.Parent = workspace

		Bomber:SetPrimaryPartCFrame(CFrame.new(startPos)) -- primarypart is around the center of the bomber

		local tweenInfo = TweenInfo.new(5, Enum.EasingStyle.Linear)
		local tweenGoal = {CFrame = CFrame.new(endPos)}

		local tween = TS:Create(Bomber.PrimaryPart, tweenInfo, tweenGoal)
		tween:Play()

		tween.Completed:Connect(function()
			dropnuke()
		end)
	end

The function looks fine.
Try:

  1. Make sure the function is actually called
  2. Make sure the bomb exists
  3. See if tween plays
  4. Check TweenService variables
  5. Check PrimaryPart
1 Like