The GetMass function returns the
This can vary depending on the part’s
BasePart/Material|material and the size. The
Enum/Material| material enum page contains a table of all materials and their densities. Parts made of materials with greater densities have more mass than equally sized parts made of materials with lesser densities.
Note that a part’s density differs from the densities listed on the material page if the part’s
BasePart/CustomPhysicalProperties property is set.
You can also determine location of the part’s center of mass via the
The part’s mass
Finding a Part's Mass
This example creates a new part, myPart, in the game’s Workspace, with dimensions 4x6x4 studs. The part is also anchored.
Then, myMass is set to equal the mass of the new part. The mass of the part is printed at the end of the print statement:
My part’s mass is …