SHOW:
|
|
- or go back to the newest paste.
| 1 | local function explode() | |
| 2 | local explosionEffect = shockWave:Clone() | |
| 3 | explosionEffect.Parent = game.Workspace | |
| 4 | explosionEffect.Position = bomb.Position | |
| 5 | local explosionEffect2 = shockWave2:Clone() | |
| 6 | explosionEffect2.Parent = game.Workspace | |
| 7 | explosionEffect2.Position = bomb.Position | |
| 8 | ||
| 9 | local explosion = Instance.new("Explosion", game.Workspace)
| |
| 10 | explosion.Position = bomb.Position | |
| 11 | explosion.BlastRadius = explosionRadius | |
| 12 | explosion.BlastPressure = 1 | |
| 13 | explosion.Visible = false | |
| 14 | explosion.Hit:Connect(function(hitPart) | |
| 15 | if hitPart.Anchored == false then | |
| 16 | hitPart:Destroy() | |
| 17 | end | |
| 18 | end) | |
| 19 | end |