PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. Instead, you should go to our new and improved documentation. You can also learn more about the future of documentation.
Collapse Sidebar

GetMass

GetMass returns the value of the read-only BasePart/Mass|Mass property.

This function predates the Mass property. It remains supported for backward-compatibility; you should use the Mass property directly.

Returns

Return Type Summary

The part’s mass


Code Samples


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 …