Need help with moving boat

SO… Here is a topic: Moving an entire model from Point A to Point B where I was wanting to move an entire model from Point A to B, as said in the title.

Now I’m here again and I need help.

I’m scripting a boat to move, and here is everything you need to know:

wait(2)

local TweenService = game:GetService("TweenService")

local PanelRoot = script.Parent.PrimaryPart

local PanelSlideInfo = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0) -- Let's use all defaults here

local tween1 = TweenService:Create(PanelRoot,PanelSlideInfo,{
	CFrame = CFrame.new(workspace.Waypoint1.CFrame.Position),
	Rotation = Vector3.new(0,0,0)
})

local tween2 = TweenService:Create(PanelRoot,PanelSlideInfo,{
	CFrame = CFrame.new(workspace.Waypoint2.CFrame.Position)
})

local finalTween = TweenService:Create(PanelRoot,PanelSlideInfo,{
	CFrame = CFrame.new(workspace.FinalWaypoint.CFrame.Position),
	Rotation = Vector3.new(0,-90,0)
})

while true do
	tween1:Play()
	tween1.Completed:Wait()
	wait(1)
	tween2:Play()
	tween2.Completed:Wait()
	wait(1)
	finalTween:Play()
	finalTween.Completed:Wait()
end


Thanks a lot!

1 Like

Could you describe your problem by any chance?

Ok so when the boat moves back to the starting point the primary part turns a full 90 degrees while the other parts don’t.

1 Like