So, im want to make animal AI (im already have Animals models).
Just walking around the map, in random coordinates and not going to water. So i dont know how i can realize it. If u can help somehow, please, do it.
-------What im tryed------------
Pathfiniding (dunno GetWaypoints - roblox studio said this is a nil)
MoveTo waypoint (stupid and long)
Body force, Body vector (too stupid)
Im can make attacks and etc. im just need to know how i can make it*
PathfindingService is probably your best option. Just be aware that CreatePath() returns a thing Roblox calls a “Path”, but really it’s a configured pathfinder instance, not the path itself. There will be no waypoints available until after Path:ComputeAsync() has been called with your starting and ending points, and then only if a route between them is actually found. ComputeAsync can fail for a bunch of different reasons, so you have to check Path.Status to know if GetWaypoints will have any data for you to use.
After that, using Humanoid:MoveTo() is the easiest way to make NPCs follow the path, by targeting each waypoint in order.