Skip to content

Chaser

Makes the part or model it’s in chase the nearest player in range and hurt them on touch.

  • Inherits: Behavior → Instance
  • Creatable: Yes: new Chaser(), or Instance.new('Chaser', parent).
  • Replication: Server only: it, and everything inside it, is never sent to clients.

Chases the nearest player in range along the ground (2D games: left and right), hurts them on touch, and goes back home when nobody’s in range.

Type: number · Default: 10 · Range: 0 to 200 (clamped) · Access: read/write · Replicates: no

Studs per second (players walk at 16).

Type: number · Default: 40 · Range: 0 to 1,000 (clamped) · Access: read/write · Replicates: no

How close a player must be for it to chase them, in studs.

Type: number · Default: 10 · Range: 0 to 1,000,000 (clamped) · Access: read/write · Replicates: no

Health it takes per hit.

Type: number · Default: 1 · Range: 0 to 60 (clamped) · Access: read/write · Replicates: no

Seconds between hits on the same player.

Type: Character | null · Access: read-only

The character it’s chasing, or null.

Inherited from Behavior: enabled, running

Inherited from Instance: name, archivable, id, className, parent, destroyed

Inherited from Behavior: activate

Inherited from Instance: getPropertyChangedSignal, setAttribute, getAttribute, getAttributes, getAttributeChangedSignal, getChildren, getDescendants, findFirstChild, findFirstChildOfClass, findFirstChildWhichIsA, findFirstAncestor, findFirstAncestorWhichIsA, waitForChild, isA, isDescendantOf, isAncestorOf, getFullName, clearAllChildren, destroy, clone, toString

Inherited from Instance: changed, childAdded, childRemoved, descendantAdded, descendantRemoving, ancestryChanged, destroying, attributeChanged