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

TopParamA

BasePart

float

The TopParamA property is relevant when a part’s /BasePart/TopSurface is set to Motor or SteppingMotor and /BasePart/TopSurfaceInput is set to Sin. It determines the amplitude of the motor’s rotational velocity, using the following formula:

MotorVelocity = ParamA * math.sin(workspace.DistributedGameTime * ParamB)

In no other cases is this property used.


Code Samples


Motor Control

This code sample demonstrates how surface properties can be set using only a NormalId (Top, Front, etc). It switches a motor’s -SurfaceInput from NoInput, Constant and Sin to show how each work using -ParamA and -ParamB properties.