What does this even mean?

Alright so uhh i got this script

local ServerStorage = game:GetService("ServerStorage")
local MOB = {}
function MOB.Move(mob, map)
	local humanoid = mob:WaitForChild("Humanoid")
	local waypoints = workspace.WayPoints

	for waypoint=1, #waypoints:GetChildren() do
		mob.Humanoid:MoveTo(waypoints[waypoint].Position)
		mob.Humanoid.MoveToFinished:Wait()
	end
	
	mob:Destroy()
end
function MOB.Spawn(name, quantity, map)
	local mobExists = ServerStorage.MOBS:FindFirstChild(name)

	if mobExists then
		for i=1, quantity do
			task.wait(0.5)
			local newMob = mobExists:Clone()
			newMob.HumanoidRootPart.CFrame = workspace.MAP.ZombieSpawn.CFrame
			newMob.Parent = map.Mob

			coroutine.wrap(MOB.Move)(newMob, map)
		end
	else
		warn("idk")
	end
end

return MOB

and at the line 8 i get this error.
obraz

You are accessing it as though it is a table and trying to locate a child with the name of an index. You would either need to use a for i, waypoint in pairs(waypoints:GetChildren()) do OR you would need to reference waypoints:GetChildren()[waypoint] in your example above.

You could just do waypoints:FindFirstChild(waypoint), that will solve it?

Sorry that i didn’t respond for 10 hours, i was sleeping and stuff. So i’ve tried that and i got

“ServerScriptService.Main.MainModuleScript:24: Unable to cast Instance to Vector3”

So i’ve added “.Position” and i get this

" ServerScriptService.Main.MainModuleScript:8: attempt to index nil with ‘Position’"

i’ve just helped you with this in another post, so you should let others know that no help is required anymore here