Reference/Classes/Workspace
Class

Workspace

since 0.3.0c-alpha

The 3D world container. Holds every physical part in the running place.

InheritsInstance

Properties

4
NameTypeAccessDescription
CurrentCameraInstanceread

The Camera currently rendering the workspace for the local player.

since 1.6.9-2-alphaRoblox ↗
Gravitynumberreadwrite

The downward acceleration applied to unanchored parts, in studs per second squared.

since 0.3.0c-alphaRoblox ↗
FallenPartsDestroyHeightnumberreadwrite

The Y height below which falling parts are automatically destroyed.

since 0.3.0c-alphaRoblox ↗
FallHeightEnabledbooleanread

Whether FallenPartsDestroyHeight is active (false when it is set to a non-finite/disabled value).

since 0.3.0c-alpha

Methods

2

#Workspace:GetRealPhysicsFPS() → number

since 0.3.0c-alpha

Returns the rate, in steps per second, at which the physics engine is currently running.

Errors

  • VMException read failure -- Failed to read backing memory while executing this method.

#Workspace:SetRealPhysicsFPS(number) → ()

since 0.3.0c-alpha

Sets the rate, in steps per second (0-240), at which the physics engine runs.

Errors

  • VMException read failure -- Failed to read backing memory while executing this method.
  • VMException out of range -- Requested physics FPS was outside the supported 0-240 band.