PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

Gravity

Workspace

float

Determines the acceleration due to gravity applied to falling BasePart|BaseParts. This value is measured in studs per second squared and by default is set to 196.2 studs/second2. By changing this value, developers can simulate the effects of lower or higher gravity in game.


Code Samples


Low Gravity Button

This script creates a touch pad in the workspace that, when touched, will reduce the game’s gravity. Activating the pad again will switch back to normal gravity.