How do I freeze the moveTo for a player when they jump?

I want to make a script in StarterCharacterScript that prevents the player from walking when they jump and if they were previously walking their moveToPoint would freeze until they land. I made the script prevent the player from walking when they jump but I do not know how to freeze the moveToPoint.

Current Script:

local humanoid = script.Parent.Humanoid

humanoid:GetPropertyChangedSignal("Jump"):Connect(function()
	local Controls = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule")):GetControls()---GetControls
	Controls:Disable()
	task.wait(0.6)
	Controls:Enable()
end)
1 Like

Cant you just make one single part in the player anchored like HumanoidRootPart and the animations would still run

2 Likes

that would freeze the player and I don’t want to do that. I want the player to jump and not be able to walk while mid-air, and if they were walking and then jumped they would continue walking until they land.

When the player jumps you could try setting his MoveTo() Direction to his current position, then when he lands MoveTo() Back to the Position he wants