Problem with PathFindingService

  1. What do you want to achieve? Keep it simple and clear!
    So i was making an yacht which swims from 1st waypoint to last one and then do that again

  2. What is the issue? Include screenshots / videos if possible!
    For some reason nothing just works. Every parts are welded and not anchored.
    image

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

My code:

local PathFindingService = game:GetService("PathfindingService")

local function Move()
	local Humanoid = script.Parent.Body:WaitForChild("Humanoid")
	
	local Waypoints = workspace.YachtWaypoints
	
	for waypoint = 1, #Waypoints:GetChildren() do
		Humanoid:MoveTo(Waypoints[waypoint].Position)
		Humanoid.MoveToFinished:Connect(function()
			waypoint = 1
		end)
	end
end

I checked everything, there is no anymore anchored parts

Don’t use PathFindingService for purposes like this, use an alternative

1 Like

What alternative i could use? Except Tween Position i wanna make smooth turning

Wait, you are trying to move the boat?

Yes i do (30 lettersssssssssss)

1 Like

Instead of using Humanoid consider using AlignPosition and AlignOrientation. The humanoid should only be used for actual characters in my opinion.

I see that you are not even using PathfindingService in the code, but if you wish to use it, make sure to add PathfindingModifier to every part, that way Pathfinding will see that the boat is not an obstacle.