I have a problem with this script

This script has a warning but it doesn’t show me, but theres a mark on the same line as line 23. What causes this?

1 Like

sorry for mistake on line 31, ignore it

1 Like

Change
Character.Humanoid.HumanoidRootPart.Position
to:
Character.HumanoidRootPart.Position

1 Like

Add a wait() right after your while true do.

Also, on line 23, try swapping for _, Player in pairs(game.Players:GetChildren()) do for for _, Player in pairs(game.Players:GetPlayers()) do.

1 Like

theres a delay when it is moving, your solution does not work but your second solution still works

theres still the orange though

1 Like

What does the orange error message say?

1 Like

nothing, just none

wasdwasdwasdwasdwasd

1 Like

Can you send a screenshot? I am very confused.

1 Like

image
by the way theres this weird script timeout too

1 Like

That script timeout is because you aren’t putting a wait() after your while true do. Without a wait(), it will keep repeating at a very fast rate, causing the error to occur.

Also, I’m pretty sure it stops the script’s functionality after that

1 Like

i already said that, it would delay how the zombie would move, and it will be annoying in the future + the script timeout for load is this:

1 Like

also i just found out the orange problem was on line 41, its probably because of the character[_]

1 Like