MLPlayer.SetGravity(number gravityValue)⚓︎
Sets the players gravity value. This value changes the gravitational forces applied to the player. Use SetGravityAxis To set the gravitational directions. The value must be between [-50,50]. Default value is -10.
Parameters:⚓︎
Name | Type | Description |
---|---|---|
gravityValue | number | New gravity value. Must between -50 and 50. |
Usage⚓︎
---@type MLPlayer
local mlplayer;
---@type number
local gravityValue;
mlplayer.SetGravity(gravityValue)