Do not die without torso or head

Hello! I have a sword that deletes limbs. But I don’t like how the players are instantly dying when the head or torso. Is their a way to stop players from dying without torso or head or a way to make this script not remove heads or torsos.

function onTouched(hit)

if game:GetService("Players"):GetPlayerFromCharacter(hit.Parent) then

else
hit:BreakJoints()

end

end

connection = script.Parent.Touched:connect(onTouched)

Well you can check if the hit part is not the torso or head then break the joints
So something like:

if hit.Parent.Name ~= “Torso” and hit.Parent.Name ~= “Head” then
hit:BreakJoints()
end

it isnt breaking any limbs anymore

I think there is a property in the humanoid called RequiresNeck. You could turn that off so that the player doesn’t die without their head.

Ok ty! How do i close this topic?

You don’t need to close the topic. Just press Solution next to the answer that helped you the most.