Skip to main content

PlayerLocomotion.ToggleLocomotion(boolean value)

Enables or disables all the locomotion for player. Disabling and enabling does not override previously set individual values.

Parameters:

NameTypeDescription
valuebooleanTrue to enable, false to disable.

Usage

---@type PlayerLocomotion
local playerlocomotion;

---@type boolean
local value;


playerlocomotion.ToggleLocomotion(value)