Unable to Cast To Dictionary with CreatePath

So basically I am making a pathfinding npc, but the params for the CreatePath function are not working. Say I did this:

local path = pathfindingservice:CreatePath(2, 5, true)

It says in the output that it is unable to cast to a dictionary and I’m totally confused.

Any help is appreciated.

I fixed it. Here is the solution for people that have the same problem.

local params = {AgentRadius = 2, AgentHeight = 5, AgentCanJump = true}
2 Likes