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)