--Handles the ball being touched.

local function SlingshotBallHit(TouchPart)
	if TouchPart.Name == "Handle" or not TouchPart.Parent then return end
	
	local HitHumanoid = TouchPart.Parent:FindFirstChild("Humanoid")
	if HitHumanoid and HitHumanoid.Parent ~= LastHitCharacter then
		if SLINGSHOT_START_DAMAGE == CurrentDamage and TouchPart.Parent == FiredCharacter then 
			return 
		end
		
		LastHitCharacter = HitHumanoid.Parent
		PlayerDamager:DamageHumanoid(GetReflectedByPlayer() or FiredPlayer,HitHumanoid,CurrentDamage,GetDamageName())
	else
		if not TouchPart.CanCollide then return end
		CurrentDamage = CurrentDamage/1.42
		
		if CurrentDamage < 1 and TouchConnection then
			TouchConnection:disconnect()
			TouchConnection = nil
			SlingshotBall:Destroy()
		end
	end
end


