PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

SurfaceType

SurfaceType

Used to determine how a surface should be displayed on a part and how automatic surface joints should behave.

Surface behavior

When surface joining is on, all planar touching flat sides of parts will weld together, regardless of SurfaceType. (This does not affect Hinge, Motor, SteppingMotor)

  • Glue, Studs, Inlets, Universal, Weld, and Smooth surfaces will all create Weld instances
  • Spheres will not surface-weld to anything. The rounded sides of cylinders will not surface-weld, but the flat end sides will.

Surface appearance

Stud, Inlet, Universal, Weld, and Glue Surface textures only appear on plastic material parts, both in-game and in Studio.

See also

  • Workspace/JoinToOutsiders, creates joints between the specified parts and any touching parts depending on the parts’ surfaces and the specified joint creation mode
  • Enum/JointCreationMode, the way joints are created between two surfaces

Enums

Name Value Description

Smooth

0

Makes the side appear without any surface detail (except for outlines)

Glue

1

Makes the side appear with thick diagonal "X"s

Weld

2

Makes the side appear with thick diagonal "X"s

Studs

3

Makes the side appear with square studs

Inlet

4

Makes the side appear with holes where studs would be

Universal

5

Makes the side appear with both Studs and Inlets in a checker pattern

Hinge

6

Makes the side appear with a yellow hinge. Any part connected to this hinge will stick to the side and rotate using physics, however, using HingeConstraint to join parts is preferred

Motor

7

Acts the same as a Hinge, but has a grey ring around it and automatically rotates any part connected to it, however, using HingeConstraint to join parts is preferred

SteppingMotor

8

Functions identically to a motor. It may have functioned differently in the past, but that functionality no longer seems to exist

SmoothNoOutlines

10

Same as Smooth, but removes the outlines of the surface

Referenced by:

  • BasePart/BackSurface
  • BasePart/BottomSurface
  • BasePart/FrontSurface
  • BasePart/LeftSurface
  • BasePart/RightSurface
  • BasePart/TopSurface