prevent player from moving roblox code example
Example: roblox how to to disable walking
local Controls = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule")):GetControls()---GetControls
Controls:Disable() -----Disable Controls
--To Enable The Controls just use:
Controls:Enable()