# Motor

Roblox Engine API class from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- Inherits from, nearest first: [JointInstance](https://rapi.sleaze.dev/classes/JointInstance.md), [Instance](https://rapi.sleaze.dev/classes/Instance.md), [Object](https://rapi.sleaze.dev/classes/Object.md)
- Subclasses: [Motor6D](https://rapi.sleaze.dev/classes/Motor6D.md)
- Memory category: BaseParts
- HTML page: https://rapi.sleaze.dev/classes/Motor/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/classes/Motor

Makes a movable [`JointInstance`](https://rapi.sleaze.dev/classes/JointInstance.md) between two parts.

## Properties

### CurrentAngle

```luau
Motor.CurrentAngle: number = 0
```

- Tags: Not replicated, Read capabilities: Physics, Load only

Displays the current rotation of the motor in radians.

### DesiredAngle

```luau
Motor.DesiredAngle: number = 0
```

- Tags: Read capabilities: Physics

The desired angle to turn the motor to in radians.

### MaxVelocity

```luau
Motor.MaxVelocity: number = 0
```

- Tags: Read capabilities: Physics

The maximum velocity the motor can use to reach [`Motor.DesiredAngle`](https://rapi.sleaze.dev/classes/Motor.md) measured in radians per physics frame (1/60th of a second).

### ReplicateCurrentAngle

```luau
Motor.ReplicateCurrentAngle: number = 0
```

- Tags: Hidden, Not scriptable, Roblox engine security, Read capabilities: Physics

## Methods

### SetDesiredAngle

```luau
Motor:SetDesiredAngle(value: number)
```

- Tags: Capabilities: Physics

Sets [`Motor.DesiredAngle`](https://rapi.sleaze.dev/classes/Motor.md) of the motor.

Parameters:

- `value`: The target angle, in radians, to set as the motor's [`Motor.DesiredAngle`](https://rapi.sleaze.dev/classes/Motor.md).

## Inherited members

- From [JointInstance](https://rapi.sleaze.dev/classes/JointInstance.md): `Active`, `Enabled`, `C0`, `C1`, `Part0`, `Part1`, `part1`
- From [Instance](https://rapi.sleaze.dev/classes/Instance.md): `Archivable`, `archivable`, `Attributes`, `AttributesReplicate`, `AttributesSerialize`, `HistoryId`, `Name`, `Parent`, `PredictionMode`, `PropertyStatusStudio`, `RobloxLocked`, `SerializedOverrides`, `SourceAssetId`, `Tags`, `UniqueId`, `numExpectedDirectChildren`, `DataCost`, `Capabilities`, `DefinesCapabilities`, `IsInSandbox`, `Sandboxed`, `AddTag`, `ClearAllChildren`, `Clone`, `Destroy`, `FindFirstAncestor`, `FindFirstAncestorOfClass`, `FindFirstAncestorWhichIsA`, `FindFirstChild`, `FindFirstChildOfClass`, `FindFirstChildWhichIsA`, `FindFirstDescendant`, `GetActor`, `GetAttribute`, `GetAttributeChangedSignal`, `GetAttributes`, `GetChildren`, `GetDebugId`, `GetDescendants`, `GetFullName`, `GetStyled`, `GetStyledPropertyChangedSignal`, `GetTags`, `HasTag`, `IsAncestorOf`, `IsDescendantOf`, `IsPropertyModified`, `QueryDescendants`, `RemoveTag`, `ResetPropertyToDefault`, `SetAttribute`, `WaitForChild`, `Remove`, `children`, `clone`, `destroy`, `findFirstChild`, `getChildren`, `isDescendantOf`, `remove`, `AncestryChanged`, `AttributeChanged`, `ChildAdded`, `ChildRemoved`, `DescendantAdded`, `DescendantRemoving`, `Destroying`, `StyledPropertiesChanged`, `childAdded`
- From [Object](https://rapi.sleaze.dev/classes/Object.md): `ClassName`, `className`, `GetPropertyChangedSignal`, `IsA`, `isA`, `Changed`
