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(), orInstance.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.
Properties
Section titled “Properties”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.
damage
Section titled “damage”Type: number · Default: 10 · Range: 0 to 1,000,000 (clamped) · Access: read/write · Replicates: no
Health it takes per hit.
cooldown
Section titled “cooldown”Type: number · Default: 1 · Range: 0 to 60 (clamped) · Access: read/write · Replicates: no
Seconds between hits on the same player.
chasing
Section titled “chasing”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
Methods
Section titled “Methods”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
Events
Section titled “Events”Inherited from Instance: changed, childAdded, childRemoved, descendantAdded, descendantRemoving, ancestryChanged, destroying, attributeChanged