Detecting Humanoid Health

Is it possible to detect humanoid health? without using local script i was making a temporary ragdoll when your humanoid health is 1 then it ragdolls you

You can connect a function that will check every time the health changes with Humanoid.HealthChanged

Humanoid.HealthChanged:Connect(function(value)
    if value <= 1 then
        -- ragdoll code
    end
end)
1 Like