NPC stutters when moving to points on the map?

Hello everyone!

I know this might be a bit too late to ask (i apologize), but I am having problems with my NPC when it starts to move into certain points on the map.

For example, when the NPC moves to a point, its movement starts to stutter for a bit and then slow the NPC down. Usually, the NPC would go back to normal after that, which is a good thing, but the bad thing is that I want this glitch to not happen frequently than it does now. Is there anyway to fix this glitch, or is it just ROBLOX’s programming language that kind of messes up the whole thing?

Here is my code, might that be the problem?:

(Server script, is inside of a model.)

local Model = script.Parent
local dummy = Model.oldermary
local point = Model.point
local point2 = Model.point2

wait(10)

coroutine.resume(coroutine.create(function()
	dummy.Humanoid:MoveTo(point.Position)
	dummy.Humanoid.MoveToFinished:Wait()

	dummy.Humanoid:MoveTo(point2.Position)
end))

I have provided a video proving what I am experiencing below:
robloxapp-20230408-2341242.wmv (1.1 MB)

(if you cannot download the video file, then let me know.)

All guidance is appreciated.

1 Like

could you maybe upload the model to roblox so i can test it because i tried replicating it and it works fine for me

Never mind, I have found my solution.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.