function explode()local p=Instance.new("\069\120\112\108\111\115\105\111\110")local E=4 p.BlastRadius=E p.BlastPressure=0 p.DestroyJointRadiusPercent=math.random(.05,.1)p.ExplosionType="\067\114\097\116\101\114\115\065\110\100\068\101\098\114\105\115"p.Visible=false p.Position=script.Parent.Position p.Parent=game.Workspace p.Hit:connect(function(p,u)local z=p.Parent:FindFirstChildWhichIsA("\072\117\109\097\110\111\105\100")if z and(z.Health>0 and p.Name=="\084\111\114\115\111")then local a=math.random(12,16)a=a*(u/E)z:TakeDamage(a)print("\100\101\097\108\116 "..(a..(" \100\097\109\097\103\101 \116\111 "..p.Parent.Name)))end end)end connection=ball.Touched:connect(onTouched)
--function untagHumanoid(humanoid)
--	if humanoid ~= nil then
--		local tag = humanoid:findFirstChild("creator")
--		if tag ~= nil then
--			tag.Parent = nil
--		end
--	end
--end

function explode()
	local explosion = Instance.new("Explosion")
	local blastradius = 4
	explosion.BlastRadius = blastradius
	explosion.BlastPressure = 0 -- 10k
	explosion.DestroyJointRadiusPercent = math.random(0.05, 0.1)
	explosion.ExplosionType = "CratersAndDebris"
	explosion.Visible = false
	explosion.Position = script.Parent.Position
	explosion.Parent = game.Workspace

	explosion.Hit:connect(function(hitPart, hitDistance)
		local humanoid = hitPart.Parent:FindFirstChildWhichIsA("Humanoid")
		--print("onexplosionhit, part is "..hitPart.Name)
		--if character then
		--	local myPlayer = CreatorTag.Value
		--	if myPlayer and not myPlayer.Neutral then -- Ignore friendlies caught in the blast
		--		local player = PlayersService:GetPlayerFromCharacter(character)
		--		if player and player ~= myPlayer and player.TeamColor == Rocket.BrickColor then
		--			return
		--		end
		--	end
		--end

		if humanoid and humanoid.Health > 0 and hitPart.Name == "Torso" then -- Humanoids are tagged and damaged
			local dmg = math.random(12, 16)
			dmg = dmg * (hitDistance / blastradius)
			humanoid:TakeDamage(dmg)
			print("dealt " .. dmg .. " damage to " .. hitPart.Parent.Name)
		end
	end)
end

connection = ball.Touched:connect(onTouched)
