GSmGpE6CwX2y9JjB25B8
我们使用此网站上的 Cookie 增强您的用户体验
Collapse Sidebar

InputType

InputType

The InputType Enum controls the SurfaceInputs of Part. Several parameters here are left-overs from 2005, before Roblox was a multiplayer game, and have no known functionality.

Example

Below is an animation of the Sin InputType:
Animation of the Sin InputType


Enums

Name Value Description

NoInput

0

Behaves like a weld, and does absolutely nothing.

Constant

12

Rotate at a constant velocity of /BasePart ParamB.

Sin

13

Rotate at a velocity of:

ParamA * math.sin(game.Workspace.DistributedGameTime * ParamB).

/BasePart ParamA will determine the maximum speed at which the part will spin, and BasePart ParamB will determine how frequently it changes direction.

Referenced by

  • BasePart/TopSurfaceInput
  • BasePart/BackSurfaceInput
  • BasePart/BottomSurfaceInput
  • BasePart/FrontSurfaceInput
  • BasePart/LeftSurfaceInput
  • BasePart/RightSurfaceInput