Self Destruct

script.Parent.MouseButton1Click:Connect(function()

game.ReplicatedStorage.BombEvent:FireServer()

end)


game.ReplicatedStorage:WaitForChild('BombEvent').OnServerEvent:Connect(function(plr)

if plr.Character.Humanoid.Health > 0 then

local explosion = Instance.new('Explosion')

explosion.Parent = game.Workspace

explosion.Position = plr.Character.HumanoidRootPart.Position

end

end)