Heya! Stumbled across this module today, wanted to ask for some help regarding the “AbilitiesTable”
The ability is not running at all for me. And upon play testing it
gives me this error:
ServerStorage.Pathfinder.PathfinderClass:141: attempt to perform arithmetic (add) on number and nil - Studio
23:27:12.448 Stack Begin - Studio
23:27:12.448 Script 'ServerStorage.Pathfinder.PathfinderClass', Line 141 - function checkAbilities - Studio
23:27:12.448 Script 'ServerStorage.Pathfinder.PathfinderClass', Line 211 -
My code:
local p = Pathfinder.new(PrimaryPart.Parent, {
Target = target,
MovingTarget = false,
MovingTargetTrackingRange = 100,
DebugMode = true,
RandomMove = false,
DebugWaypoint = true,
AgentParameters = {
AgentRadius = 4,
AgentHeight = 6,
AgentCanJump = false,
AgentCanClimb = false,
PathSettings = {
SupportPartialPath = true
},
Costs = {
-- PathfindAvoid = 9999,
-- Truss = 1
}
},
AbilitiesTable = {
{
ActivationRange = 9,
ActiveTime = 5,
CooldownTime = 10,
CustomConditions = function(t)
warn("owowwo")
return true
end, -- optional
Callback = function(t)
warn(1234, t)
-- t.Character, t.Target and t.Distance are available
end,
}
} :: PathfinderAbilities
})
p:Run()


