Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

PathfindingService:CreatePath() Returns Instance ?

Asked by 3 years ago
1function DynamicSoftware.GetPath(destination)
2    local path = PFS:CreatePath()
3    if typeof(destination) == "Instance" then
4        path:ComputeAsync(Jenny.HumanoidRootPart.Position,destination.HumanoidRootPart.Position)
5    else
6        path:ComputeAsync(Jenny.HumanoidRootPart.Position,destination)
7    end
8    return path
9end

I dont know why but when I use GetWayPoints() it returns Instance

Answer this question