can some one help me please
local button = script.Parent
local ExplosionOutOfBarrel = script.Parent.Parent.Partofexplode.Explosion
local ExplosionSoundOutofThebarrel = script.Parent.Parent.Partofexplode.ExplosionSound
local ExplodsionLight = script.Parent.Parent.Partofexplode.ExplosionLight
local SmokeyBoi = script.Parent.Parent.Partofexplode.Smoke
local AmountOfBombsleft = script.Parent.AmountOfBombs
local GuiOfBombs = game.StarterGui.ScreenGui.ShowBombs
local Xplode1 = script.Parent.Parent.ExplosionPart1.Explosion1
local Xplode2 = script.Parent.Parent.ExplosionPart2.Explosion2
local PartThatOofs = script.Parent.Parent.PartThatGoesBoom
local function BombGoOff()
local plr = game.Players.LocalPlayer
local GuiOfBombs = plr.PlayerGui.ScreenGui.ShowBombs
ExplosionSoundOutofThebarrel:Play()
Xplode1.Visible = true
PartThatOofs.Transparency = 1
PartThatOofs.CanCollide = false
AmountOfBombsleft.Value = AmountOfBombsleft.Value - 1
GuiOfBombs.Text = ""..GuiOfBombs.."Bombs left"
end
local function MakeSureItisntBelow()
if AmountOfBombsleft.Value == 0 then
game.Players:ClearAllChildren()
end
end
script.Parent.ClickDetector.MouseClick:Connect(function()
BombGoOff()
MakeSureItisntBelow()
end)
