-- have a timer on the bomb X
-- make the bomb change colours X
-- have explosion instance create when timer reaches 0 X
-- if it is not == to zero then continue counting down and change colours X


explode = Instance.new("Explosion")
explode.BlastPressure = 1000000
explode.BlastRadius = 25
bombTimer = 10

function spawnBomb()
	while bombTimer >= 0 do
		if bombTimer == 0 then
			explode.Position = script.Parent.Position
			explode.Parent = game.Workspace.Bomb
			wait(0.15)
			script.Parent:Destroy()
		else
			wait(0.5)
			script.Parent.BrickColor = BrickColor.new("Really red")
			wait(0.5)
			script.Parent.BrickColor = BrickColor.new("Black")
			print("the bomb will explode in ".. bombTimer)
			bombTimer = bombTimer - 1
		end
	end
end

script.Parent.Touched:Connect(function()
	spawnBomb()
end)
