This is the latest and newest EZ Pathfinding module. It incorporates OOP and is much more efficient, pleasing to the eyes, and better performance wise. It even has more functionality than the other modules. And of course, this will be updated frequently in honor of bugs and suggestions.
Setup
In order to use this module, you will need to download the rbxm file or insert a script with the downloaded .lua file. Once the module is inserted into your game, you can require it using require(path.to.module). Now read through the documentation (link at top of post). You are now able to freely use the module.
Information
This module is still in its early stages so I expect there to be bugs. Please report them to me immediately via DMs or the GitHub issues page. Please be patient with me as I will try my best to fix all bugs reported. Refer to the GitHub link for extra information on this module. If you have any questions, just PM me.
Youâre clogging the category & losing the views and likes that you had on the previous thread.
If you feel that this module is too different, then adopt the semantic versioning style - MAJOR.MINOR.PATCH.
Actually I had previously thought about this but the older versions didnât have properly structured GitHub repositories. If I made one post, it wouldnât make sense for documentation of each version to be scattered everywhere. I know for a fact that most people still are using older versions of the series, and removing the information would hurt those people.
I am running the sample server script code on an NPC in the workspace but getting the error below, can you help, please
Do you have an example?
ââ
local mod = require(game.ReplicatedStorage:WaitForChild(âMainModuleâ))
local path = mod.new(game.Workspace.NPC, Vector3.new(24,0.5,66))
path.Play()
â Error Position is not a valid member of Vector3 - Server - MainModule:156
ââ
Thanks for the help, I still canât figure out the Vector3 part still says invalid.
wait(5)
local WorkSpace = game:GetService(âWorkspaceâ)
local mod = require(WorkSpace:FindFirstChild(âPathfindingV5â))
local goalPos = workspace.Goal
local npc = script.Parent
local path = mod.new (npc, Vector3.new(goalPos.Position.X,goalPos.Position.Y,goalPos.Position.Y))
path.Move()
With pathfinding, it finds a path where it avoids touching specific objects. I suppose you could try it but this module is outdated and hasnât been updated in a while.
Sorry to bump this, but what would be the most efficient way to continuously check the position of a part and create a new path if the position has changed? I have thought about using the module for a monster ai, which would target players, which are always moving. I have put this into a while loop, but each time it creates a new path it just turns around and runs back and forth.