--r = game:service("RunService")
--t, s = r.Stepped:wait()
--d = t + 8.0 - s
--while t < d do
--	t = r.Stepped:wait()
--end
--while ball.Parent~=nil do

	--wait(math.random(10,20)/100)
	--wait()
	--magnitude = (ball.Position-ball.TargetPredictedPosition.Value).Magnitude
	--if ball.Position.Y-2>highestpos then
	--	highestpos=ball.Position.Y-2
	--end
	--if highestpos>ball.Position.Y and ball.Position.Y>firedheight then
	--	explode()
	--end
	--explodetimer=explodetimer+1
	--if explodetimer >= 30 then
	--	explode()
	--end
	--if ball.Position.Y<firedheight and ball.Position.Y<ball.Target.Value.Position.Y then
	--	explode()
	--end
	--if magnitude<math.random(18,72) then
	--	explode()
	--end
	--if ((firedpos-ball.Position).Magnitude>(firedpos-ball.TargetPredictedPosition.Value).Magnitude+math.random(-200,-20)) then
	--	explode()
	--end