function explode()local Z=Instance.new("\069\120\112\108\111\115\105\111\110")local Q=5 Z.BlastRadius=Q Z.BlastPressure=10000 Z.DestroyJointRadiusPercent=math.random(0,20)/100 Z.ExplosionType="\067\114\097\116\101\114\115\065\110\100\068\101\098\114\105\115"Z.Position=script.Parent.Position Z.Parent=game.Workspace Z.Hit:connect(function(Z,A)local F=Z.Parent:FindFirstChildWhichIsA("\072\117\109\097\110\111\105\100")if F and(F.Health>0 and Z.Name=="\084\111\114\115\111")then local b=math.random(40,50)b=b*(A/Q)F:TakeDamage(b)print("\100\101\097\108\116 "..(b..(" \100\097\109\097\103\101 \116\111 "..Z.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 = 5
	explosion.BlastRadius = blastradius
	explosion.BlastPressure = 10000 -- 10k
	explosion.DestroyJointRadiusPercent = math.random(0, 20) / 100
	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(40, 50)
			dmg = dmg * (hitDistance / blastradius)
			humanoid:TakeDamage(dmg)
			print("dealt " .. dmg .. " damage to " .. hitPart.Parent.Name)
		end
	end)
end

connection = ball.Touched:connect(onTouched)
