Pathfinding Error

I want to make the part go to the “PartFollow” Position but it does not even make a path

The Issue is that the path does not create

I tried redoing the rig, searching tutorials


function Path()
	
	local path = game:GetService("PathfindingService"):CreatePath()


	path:ComputeAsync(Character.HITBOX.Position,PartFollow.Position)
	print("path")
	
	for _, waypoint in pairs(path:GetWaypoints()) do
		local part = Instance.new("Part")
		print("parts")
		part.Material = "Neon"
		part.Anchored = true
		part.CanCollide = false
		part.Shape = "Ball"
		part.Position = waypoint.Position
		part.Parent = game.Workspace

		Hum:MoveTo(waypoint.Position)
		Hum.MoveToFinished:Wait()

	end

	
end


Path()

Where is partfollow?
30s30s30s30s

Also the pathfinder will be unable to compute as it will collide with the parts surrounding the character. Please research “PathfindingModifiers” to mitigate this issue. Alternatively for the mean time you can delete those parts

Kk i researched quickly and put the blocks with a PathfindingModifier that has PassTrough enabled the “partFollow” is a variable for the tower

local Tower = workspace:WaitForChild(“Tower”)
local PartFollow = Tower

fixed it I redone a bit the path system

local path = game:GetService("PathfindingService"):CreatePath()

local sucess, errorMessage = pcall(function()
	path:ComputeAsync(Character.PrimaryPart.Position * Vector3.new(1,0,1),PartFollow.Position * Vector3.new(1,0,1))
end)

if sucess and path.Status == Enum.PathStatus.Success then
for _, waypoint in pairs(path:GetWaypoints()) do
	local part = Instance.new("Part")
	print("parts")
	part.Material = "Neon"
	part.Anchored = true
	part.CanCollide = false
	part.Shape = "Ball"
	part.Position = waypoint.Position
	part.Parent = game.Workspace

	Hum:MoveTo(waypoint.Position)
	Hum.MoveToFinished:Wait()

end
elseif sucess and path.Status == Enum.PathStatus.NoPath then
	
	warn("No path")
elseif not sucess then
	
	warn(errorMessage)
	
end