1 | function 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 |
9 | end |
I dont know why but when I use GetWayPoints() it returns Instance