MovementAn NPC's walk toward a target, which you get back from Npc:move_to so you can wait for it or cancel it.
Movement:waitmethod#Pauses the script until the walk ends, and says whether the NPC arrived, got blocked or was cancelled.Movement:wait() -> "arrived" | "blocked" | "cancelled"examplelocal result = movement:wait()Use it forletting a guide finish walking before it starts talking.
Movement:cancelmethod#Stops the NPC's walk before it gets there.Movement:cancel() -> ()examplemovement:cancel()Use it forstopping a guard's patrol when a player gets close.