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
The nonnegative pressure used to calculate impulses on unanchored parts.
The affected radius in studs, clamped to 0 through 100.
The fraction of BlastRadius used for joint processing, clamped to 0 through 1.
The center of the explosion in world space, in studs.
Returns this instance if it is an ExecutionGroup.
Fires for Parts affected by the explosion.
Properties
BlastPressure
Explosion.BlastPressure: numberThe 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: numberThe affected radius in studs, clamped to 0 through 100. Part bounds are considered when selecting affected parts.
DestroyJointRadiusPercent
Explosion.DestroyJointRadiusPercent: numberThe 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: Vector3The 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: RBXScriptSignalFires for Parts affected by the explosion.
Inherited members
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying
Example
local explosion = Instance.new("Explosion")
explosion.Position = Vector3.new(0, 5, 0)
explosion.BlastRadius = 10
explosion.Parent = workspace