Create Path not Working

So I was working on an update for my EZ Pathfinding V2 open-sourced module. I had this great plan to make tweening parts, however some reason creating the path doesn’t work and I am unsure why. Here is the script:

local params = {AgentRadius = self.AR, AgentHeight = self.AH, AgentCanJump = self.ACJ}
	local path = pfservice:CreatePath(params)
	wait(0.5)
	path:ComputeAsync(part.Position, endpart.Position)
	wait(1)
	partwaypoints = path:GetWaypoints()
	print(partwaypoints)
	
	for i = 0, 1, 0.05 do
		local Goal = {Position = partwaypoints[partwaypoint].Position}
	
	local tween = tservice:Create(part, tweeninfo, Goal)
		tween:Play()
		print("played")
			end

It ends up printing {
,
,
,
,
,
,
,
,
,
}

Any help is appreciated!

1 Like

have you confirmed that the input is good. ie self.AR etc

1 Like

I fixed it. It was quite weird and I just had to copy and paste it multiple times.