Ive been trying to fix it but the npc or model wont move and when it does it just stops can anyone do anything? The Error is at line 12 and the problem is with AI Path Finding please help im in desperate need.
local function getPath(Point) local PathfindingService = game:GetService("PathfindingService") local pathParams = { ["AgentHeight"] = 13, ["AgentRadius"] = 3, ["AgentCanJump"] = true } local path = PathfindingService:CreatePath(pathParams) path:ComputeAsync(Bot.HumanoidRootPart.Position, Point.Position) return path end local function walkTo(Point) local path = getPath(Point) if path.Status == Enum.PathStatus.Success then for index, waypoint in pairs(path:GetWaypoints()) do Humanoid:MoveTo(waypoint.Position) Humanoid.MoveToFinished:Wait()