tried to make my npc ai wander around to waypoints
here was this script:
local function wander()
local waypoints = workspace:WaitForChild("Waypoints"):GetChildren()
local randomNum = math.random(1, #waypoints)
hum:MoveTo(waypoints[randomNum].Position)
end
while task.wait(0.2) do
wander()
end
everytime i run, the npc takes the first step and then it breaks and giving me this error
** You are now Level 7! **