# Explosion

Roblox Engine API class from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- Inherits from, nearest first: [Instance](https://rapi.sleaze.dev/classes/Instance.md), [Object](https://rapi.sleaze.dev/classes/Object.md)
- Memory category: Instances
- HTML page: https://rapi.sleaze.dev/classes/Explosion/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/classes/Explosion

Applies force to `BaseParts` within the explosion's [`Explosion.BlastRadius`](https://rapi.sleaze.dev/classes/Explosion.md). Breaks `JointInstances` and `WeldConstraints` between parts and kills [`Humanoid`](https://rapi.sleaze.dev/classes/Humanoid.md) characters not protected by a [`ForceField`](https://rapi.sleaze.dev/classes/ForceField.md).

## Properties

### BlastPressure

```luau
Explosion.BlastPressure: number = 500000
```

- Tags: Read capabilities: AvatarBehavior

Used to determine the amount of force applied to `BaseParts` caught in the [`Explosion.BlastRadius`](https://rapi.sleaze.dev/classes/Explosion.md).

### BlastRadius

```luau
Explosion.BlastRadius: number = 4
```

- Tags: Read capabilities: AvatarBehavior

This property determines the radius of the [`Explosion`](https://rapi.sleaze.dev/classes/Explosion.md), in studs. This radius determines the area of effect of the explosion, not the size of the explosion's visuals.

### DestroyJointRadiusPercent

```luau
Explosion.DestroyJointRadiusPercent: number = 1
```

- Tags: Read capabilities: AvatarBehavior

Used to set the proportion of the [`Explosion.BlastRadius`](https://rapi.sleaze.dev/classes/Explosion.md), between 0 and 1, within which all joints will be destroyed. Anything outside of this range will only have the [`Explosion`](https://rapi.sleaze.dev/classes/Explosion.md) force applied to it.

### ExplosionType

```luau
Explosion.ExplosionType: Enum.ExplosionType = Enum.ExplosionType.Craters
```

- Tags: Read capabilities: AvatarBehavior

This property determines how the [`Explosion`](https://rapi.sleaze.dev/classes/Explosion.md) will interact with [`Terrain`](https://rapi.sleaze.dev/classes/Terrain.md). Used to set if explosions will cause damage to the terrain or not.

### LocalTransparencyModifier

```luau
Explosion.LocalTransparencyModifier: number = 0
```

- Tags: Hidden, Not replicated, Read capabilities: AvatarBehavior

A multiplier for the transparency of the [`Explosion`](https://rapi.sleaze.dev/classes/Explosion.md) visual effect that is only visible to the local client.

### Position

```luau
Explosion.Position: Vector3 = Vector3.zero
```

- Tags: Read capabilities: AvatarBehavior

This property is the position of the center of the [`Explosion`](https://rapi.sleaze.dev/classes/Explosion.md). It is defined in world-space and not influenced by the [`Explosion`](https://rapi.sleaze.dev/classes/Explosion.md) parent.

### TimeScale

```luau
Explosion.TimeScale: number = 1
```

- Tags: Read capabilities: AvatarBehavior

Value between 0 and 1 that controls the speed of the particle effect.

### Visible

```luau
Explosion.Visible: boolean = true
```

- Tags: Read capabilities: AvatarBehavior

This property determines whether or not the visual effect of an [`Explosion`](https://rapi.sleaze.dev/classes/Explosion.md) is shown or not.

## Events

### Hit

```luau
Explosion.Hit: RBXScriptSignal<(part: BasePart, distance: number)>
```

- Tags: Capabilities: AvatarBehavior

Fires when the [`Explosion`](https://rapi.sleaze.dev/classes/Explosion.md) hits a [`BasePart`](https://rapi.sleaze.dev/classes/BasePart.md) within its [`Explosion.BlastRadius`](https://rapi.sleaze.dev/classes/Explosion.md). Returns the part hit along with the distance of the part from [`Explosion.Position`](https://rapi.sleaze.dev/classes/Explosion.md).

## Inherited members

- From [Instance](https://rapi.sleaze.dev/classes/Instance.md): `Archivable`, `archivable`, `Attributes`, `AttributesReplicate`, `AttributesSerialize`, `HistoryId`, `Name`, `Parent`, `PredictionMode`, `PropertyStatusStudio`, `RobloxLocked`, `SerializedOverrides`, `SourceAssetId`, `Tags`, `UniqueId`, `numExpectedDirectChildren`, `DataCost`, `Capabilities`, `DefinesCapabilities`, `IsInSandbox`, `Sandboxed`, `AddTag`, `ClearAllChildren`, `Clone`, `Destroy`, `FindFirstAncestor`, `FindFirstAncestorOfClass`, `FindFirstAncestorWhichIsA`, `FindFirstChild`, `FindFirstChildOfClass`, `FindFirstChildWhichIsA`, `FindFirstDescendant`, `GetActor`, `GetAttribute`, `GetAttributeChangedSignal`, `GetAttributes`, `GetChildren`, `GetDebugId`, `GetDescendants`, `GetFullName`, `GetStyled`, `GetStyledPropertyChangedSignal`, `GetTags`, `HasTag`, `IsAncestorOf`, `IsDescendantOf`, `IsPropertyModified`, `QueryDescendants`, `RemoveTag`, `ResetPropertyToDefault`, `SetAttribute`, `WaitForChild`, `Remove`, `children`, `clone`, `destroy`, `findFirstChild`, `getChildren`, `isDescendantOf`, `remove`, `AncestryChanged`, `AttributeChanged`, `ChildAdded`, `ChildRemoved`, `DescendantAdded`, `DescendantRemoving`, `Destroying`, `StyledPropertiesChanged`, `childAdded`
- From [Object](https://rapi.sleaze.dev/classes/Object.md): `ClassName`, `className`, `GetPropertyChangedSignal`, `IsA`, `isA`, `Changed`
