Skip to content

Api > MLStation > GetInput()


MLStation.GetInput()⚓︎

Returns the current players controller inputs. Note that this function returns the controller inputs for the local player, so only the client which the current player is local can access the inputs.

Returns:⚓︎

type Description
UserInput Controller inputs of the current player if it is local for the client. Nil otherwise.

Usage⚓︎

---@type MLStation
local mlstation;


local val0 = mlstation.GetInput()