Center a humanoid with pathfinding service

So I’ve been recently experimenting with ROBLOX’s pathfinding service, and I have created a basic script that makes a player move to a location.

ezgif-2-4ca2710b7f67

The issue is, I want it to be more centered if that makes sense, I don’t like how it edges up against walls. It makes it seem like its goal is to get there as fast as possible, yet I would prefer if it took time to walk a little to stay centered between walls. Not sure if there is much I can do to achieve this with pathfinding service on its own other then adding invisible walls.

Think of it as I want it to have padding between walls, so it has to be a few studs away from each wall.

I have attempted invisible walls but It’s very tedious and would also affect an actual player unless I changed collision groups but as I said, tedious.

This is my goal

Any ideas would be appreciated.

Thanks,
Boogle

I found a method using AgentRadius, I should have read a bit more before posting.

1 Like