Hello, I am making 15-20 NPCs walk randomly between points. But, after a few seconds, the movements get less smooth and jittery.
Code
for i, point in pairs(waypoints) do script.Parent:MoveTo(point.Position + Vector3.new(0,3,0)) local move = false script.Parent.MoveToFinished:Connect(function() move = true end) script.Parent.MoveToFinished:Wait() end
Any help is appreciated thanks
I found a workaround. If you set the waypoint distance to a higher number, and you use a line of code to wait just before the NPC gets to the destination, some stuttering happens but it is very minimal.