AimAssistOptions
How the aim assist helps a finger aim: which entities count, how near the
crosshair a target helps, and how strongly each of its three methods acts.
Each method runs from 0, off, to 1, Roblox’s AimAssistController’s
Friction, Tracking and Centering.
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
centering? |
number |
0.3 |
How fast the camera turns toward a target’s nearest edge while the look moves toward it, as a share of 30 degrees a second. It stops at the edge, so it never pulls the crosshair to a body’s middle or off a head. |
friction? |
number |
0.5 |
How much the player’s look slows while a target is held: a drag turns 1 - friction as far inside the inner margin. |
innerMarginRadians? |
number |
MathUtils.degToRad(1) |
Radians past what a shot meets, a target’s capsule or any of its hit zones, within which the assist helps whole, 0 or more. |
outerMarginRadians? |
number |
MathUtils.degToRad(3) |
Radians past it at which the help has faded to nothing, at least innerMarginRadians. |
targetPlayers? |
boolean |
false |
Whether hostile players’ characters count too. Off, since a desktop browser can emulate touch, and the room cannot tell a finger from a mouse. |
targets? |
readonly Trait[] |
undefined |
Traits made with defineTrait: an entity counts when it holds any one of them, has health above 0 and is no ally the shot would pass through. Left out, a target is a body the character controller moves, CharacterCapsuleTrait, that is no other player’s character, so a crate or a door with health is no target. |
tracking? |
number |
0.4 |
How much of a held target’s motion about the character the camera follows. |
weakSpotFriction? |
number |
0.7 |
friction while the crosshair’s ray strikes one of the held target’s weak spots, a hit zone whose multiplier is above 1. |