In May, I made a Path-Finding Module Script and made a Youtube Video showcasing it. Now I will share it to the Dev-Forum
This is a Module-Script used to make Path-Finding AI’s really quickly. This is the First Version of the Module-Script. So there isn’t really that much, and will get more updates.
How to Use
This is a video. I’ve made in May. Teaching how to use it. If you want to learn the API Quickly. I would recommend watching this.
If you want an API now here it is:
API
Note: Require the Module before using it
PFS:New()
Creates a New Path-Finder (Recommended)
Returns the Path-Finder
local PF = PFS:New()
PF:CreatePath()
Parameters
Start Position
End Position
Humanoid
Note that the AI will start to walk on the path you created when you make that line of code.
Other Information
The Module-Script is Open-Source so you can see what is inside of the Module-Script
This is all that Noob’s Path-Finding Module Script can do. If you want more features. Please reply to this Post. I will make some updates. When I get feedback in the Replies. Thank you for using my Module-Script
Ok I read your reply wrong. Here is what I should say.
I think you should use this because making a Path-Finding AI without this Module is longer than what you have to do simply.
This is what a Path-Finding AI would be by just using the PathFindingService
local PFS = game:GetSerice("PathFindingService")
local path = PFS:CreatePath()
path:ComputeAsync(startPosition,endPosition)
local waypoints = path:GetWaypoints()
for _,waypoint in pairs(waypoints) do
if waypoint.Action == Enum.PathWaypointAction.Jump then
humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end
humanoid:MoveTo(waypoint.Position)
humanoid.MoveToFinished:Wait()
end
But, in my Module. You just need to put 3 Lines of Code.