Open Asterune
Explosion

Explosion

Applies a blast once after the instance is parented.

Creatable
Instance.new("Explosion")
Inherits
Instance
Replication
Standard

Behavior

Explosion processes a blast once after it has a parent. Configure it before parenting. Processing applies impulses, breaks eligible joints, and reports hit parts. Character damage must be implemented separately. Destroy the instance when it is no longer needed.

Summary

Members6
Properties4
Methods1
Events1
  • Hit: RBXScriptSignalparallel read

    Fires for Parts affected by the explosion.

Properties

BlastPressure

Explosion.BlastPressure: number

The nonnegative pressure used to calculate impulses on unanchored parts. A value of 0 disables impulses. Hit reporting and joint processing still occur.

BlastRadius

Explosion.BlastRadius: number

The affected radius in studs, clamped to 0 through 100. Part bounds are considered when selecting affected parts.

DestroyJointRadiusPercent

Explosion.DestroyJointRadiusPercent: number

The fraction of BlastRadius used for joint processing, clamped to 0 through 1. Parts protected by a forcefield are excluded from joint breaking.

Position

Explosion.Position: Vector3

The center of the explosion in world space, in studs. Set this before parenting the explosion.

Methods

GetExecutionGroup

Explosion:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Events

Hit

Explosion.Hit: RBXScriptSignal

Fires for Parts affected by the explosion.

Inherited members

Inherited47

Example

Luau
local explosion = Instance.new("Explosion")
explosion.Position = Vector3.new(0, 5, 0)
explosion.BlastRadius = 10
explosion.Parent = workspace

BasePart · Debris · Instance