while wait(1) do
local pos = Vector3.new(0, 0, 0)
for _, plr in pairs(Game:GetService("Players"):GetPlayers()) do
if plr.Character.Humanoid then
plr.Character.Humanoid:MoveTo(pos)
end
end
end
So i'm making everyone walk to a point on the map, but when a player has no humanoid, the script gives an error and stops running (Also yes, i don't want to tp them, i'm making them walk)
Now this doesn't make sense as it checks for the humanoid and if it's there it runs below it, any way to fix this error?

2 comments
fortnite
what's the error?