All Humanoid.MoveToFinished:Wait() have stopped working, any solution? (HELP NEEDED)

Hi, since a few days ago, ROBLOX has pushed out some kind of update that has been breaking my game and has been making me lose players.

It happens sporadically, I yield the scripts until the Humanoid of an NPC has finished moving. But that, as of late, has been somehow broken. The game will just keep waiting for the Humanoid.MoveToFinished:Wait() and will practically freeze my game.

It is not replicable in every server and, as I said, happens sporadically. You can try it out for your self here, if you are lucky enough for the glitch to occur.

Does anybody have any fix for this? Maybe turning off a feature? Thanks!

EDIT: It is the same issue as displayed here, any solutions?

I’ve thought of a possible solution, and it works like this:

while (humanoid.Position - targetPosition).Magnitude > threshold do
wait()
end

Hi, what is the value of threshold?

Hi, sorry for the huge delay.

The threshold is a small number like 0.5 or 1 which helps determine how close the humanoid needs to be to the target position before the script moves on.