I get an error when 2 people are in the same server. I get the error "Workspace.Zombie.Follow:6: attempt to index global 'Torso' (a nil value)". I think I understand why, but I don't know how to fix it. Any help?
while wait() do
local Humanoid = script.Parent.Humanoid
for i, v in pairs(game.Players:GetPlayers()) do
Torso = v.Character:WaitForChild("Torso")
end
Humanoid:MoveTo(Torso.Position)
end
The script just moves the zombie to the players torso. It's located in the "Zombie" model in workspace.
