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


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)
