(Help) AStar Pathfinding Script Getting My Game To Timeout The script Without to Understand The Error!

Can you show me a project file that works with a dummy?

alright, give me a few minutes

since the place file that worked for me is currently a test from things I’ve tested before. If that’s okay.

AStarPathfinding.rbxl (96.2 KB)

If your wondering if the script is not like the code I gave you is because some changes were giving the execution time error for something (I don’t know why)

Yes i have a similar one, i will post it tomorrow morning im working on it right now. i found out the issue that caused the crash, it seems like the workspace:getPartBoundsInRadius(neighbor, 0.2) > 0 did include the ai character and that made it infinite loop since the first part was blocked.

I mean if the A* included the ai which is the NPC it wouldn’t detect walls just the NPC itself.

also you included “Params.FilterType = Enum.RaycastFilterType.Exclude” in your loop which could be assign at the top. that causes a little bit lag

if you were talking about my Script

No its my script but i did found some things that cause lag and jitter

well sorry if my script caused them, again I got help on the person that helped me with it. But I hope my script works well and also solved the problem. (I think)

also I did see if the A* can see if it would detect the goal on a higher part on the obstacle, it wouldn’t. lol

also another thing to point out sometimes if the goal is like in a very long path sometimes it would lag. From the debug.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.