My explosion isn't exploding?
I don't understand what I'm doing wrong, I created a bomb that explodes and it works except for one thing. The explosion itself just doesn't work, it doesn't explode even though I destroyed it and set its position. Please do help.
01 | local TimeF = math.random( 1 ) |
02 | local Intermission = workspace.Elevator [ "Elevator Door" ] .OpenandClose.Intermission |
05 | Intermission.Changed:Connect( function () |
06 | if Intermission.Value = = 1 then |
07 | script.parent.Floors.Value + = 1 |
08 | if script.parent.Floors.Value = = TimeF then |
09 | local explosionPart = script.parent.base |
10 | local explosion = Instance.new( "Explosion" ,game.Workspace) |
11 | explosion.Position = explosionPart.Position |
12 | explosion.Visible = true |
13 | explosion.DestroyJointRadiusPercent = 1 |
14 | explosion.BlastRadius = 4 |
15 | explosion.BlastPressure = 500000 |
17 | script.parent.base.explode:Play() |
18 | script.parent.base.Transparency = 1 |
19 | script.parent.Part.Transparency = 1 |
20 | script.parent.Part 2. Transparency = 1 |
22 | script.parent:Destroy() |