We use cookies on this site to enhance your user experience

PhysicsService

PhysicsService

The PhysicsService is responsible for handling the physics of Roblox.
It allows you to establish part collision groups, where certain parts are able to collide with each other while others can’t.


Functions

Name Type Description
bool

Returns whether the part is in the collision group.

void

Sets the collision status between two groups.

bool

Returns whether the two groups will collide.

int

Creates a new collision group with the given name, and returns the id of the created group.

int

Returns the id of the group with the specified name.

string

Returns the name of the group with the corresponding id.

Array

Returns a table with info on all of the place’s collision groups.

int

Returns the maximum number of collision groups.

void

Removes the collision group with the given name.

void

Renames specified collision group.

void

Sets the collision group of a part.

Inherited from Instance

ClearAllChildren Clone Destroy FindFirstAncestor FindFirstAncestorOfClass FindFirstAncestorWhichIsA FindFirstChild FindFirstChildOfClass FindFirstChildWhichIsA GetChildren GetDebugId GetDescendants GetFullName GetPropertyChangedSignal IsA IsAncestorOf IsDescendantOf WaitForChild