Skip to content

Explosion

Inherits Dynamic

Explosion is a deadly explosion killing players and applying force to parts at the given position.

Properties

Radius : number

Determines the radius of this explosion

Force : number

Determines the force of this explosion that will be applied to affected hits

AffectAnchored : boolean

Determines if this explosion should affect anchored parts or not

Damage : number

Damage that is affected to player

AffectPredicate : function

A predicate function deciding whenever this part should be accepted or not

Example usage:

explosion.AffectPredicate = function(hit)
  -- always explode
  return true
end

Events

Hitted

Parameters: hit [ Instance ]

Fires when this explosion affects a hit