Functions won't trigger

The only function of the three that triggers is ragdollCharacter and I don’t know why.

There’s something wrong with the if statements, but I don’t know what.

		radiusBall.Touched:Connect(function(touchedPart)
			if touchedPart:IsA("BasePart") and touchedPart.Parent:FindFirstChild("Humanoid") then
				local touchedCharacter = touchedPart.Parent
				local torso = touchedCharacter:FindFirstChild("Torso")
				local brokenLimbs = touchedCharacter:WaitForChild("BrokenLimbs")

				print(touchedPart.Name)

				if not playersDamaged[touchedCharacter.Name] then					
					playersDamaged[touchedCharacter.Name] = true

					ragdollCharacter(touchedCharacter, torso, brokenLimbs, radiusBall.Position)

					if touchedPart.Name == "Torso" then
						damagePlayer(touchedCharacter, torso, radiusBall.Position)
					elseif touchedPart.Name == "Right Leg" or touchedPart.Name == "Left Leg" or touchedPart.Name == "Right Arm" or touchedPart.Name == "Left Arm" then
						breakLimb(touchedCharacter, touchedPart, brokenLimbs, radiusBall.Position)
					end			
				end	
			end

			if touchedPart.Name == "HitBox" and touchedPart.Parent ~= mineModel then
				touchedPart.Parent.StartDetonation.Value = true
			end
		end)

its probably just yielding within your ragdollCharacter script

Try replacing

ragdollCharacter(touchedCharacter, torso, brokenLimbs, radiusBall.Position)

with

task.spawn(ragdollCharacter, touchedCharacter, torso, brokenLimbs, radiusBall.Position)

Didn’t work. I was actually planning on trying coroutines, which also wouldn’t work.

I should’ve mentioned that I’ve tried putting the two functions before the last one and it still didn’t work.

There’s got to be something wrong with my if statements, but I don’t know what. I’ve tried printing things through the if statements but it does nothing.