Lock/Unlock Player Movements

Hi, is there a simple script or another way to completely block the player's movement? I would like to prevent them from moving and then unlock their movements again later.
Thanks!
What can they do instead of moving? What's the gameplay going on during that time?

Using an autorun event will block player input except to scroll through messages and choices and such, if you're trying to make a cutscene.
If MV is the same as MZ, if I want to freeze a player while say a parallel event is running, then I use the Set Movement Route for player to no movements, repeat, no wait. That freezes the player in place until you do another Set Movement Route for the player with no movements and no repeat.

I use that all the time.
If MV is the same as MZ, if I want to freeze a player while say a parallel event is running, then I use the Set Movement Route for player to no movements, repeat, no wait. That freezes the player in place until you do another Set Movement Route for the player with no movements and no repeat.
Why not just use an autorun event instead of parallel? I'd rather have the input blocked at the engine level than have it constantly running an extra process.

I'm trying to figure out the usage situation for this.
@ATT_Turan I have parallel events that are running continuously checking for things, like key presses or selecting pictures on the screen. These parallel events often call Common Events. When these are used for mini games, I don’t want the player to move.

I have never tried using Autorun events for the same thing. If they work the same, that is certainly an option.
@ZombieKidzRule Gotcha.

Not knowing how you implement your games, a common method would be to have them contained within their own scene, which would prevent any key presses from moving the character on the map. But if you don't want to get into that, your method is fine.

I just shy away from anything that adds continual processes to the game on general principle, but one thing that doesn't actually execute any commands isn't going to affect its performance.
Thank you so much guys, I'll try both of your methods and let you know.
Thanks everyone, I managed to do what I wanted. In the end, the automatic event option turned out to be the best for my case.

Original thread: https://forums.rpgmakerweb.com/threads/lock-unlock-player-movements.156176/