im trying to make a cool seamless phase 2 to a boss that requires you to fully empty its health-bar before it does a cool cutscene and actually phase 2s
only issue is: i have LITERALLY no idea how to detect a lethal blow and stop it from well, being lethal, because if you empty a health bar; well, the health is empty, which means the boss DIES
local connection = {}
connection[1] = Boss.Humanoid.HealthChanged:Connect(function(health: number)
if health <= 0 then
Boss.Humanoid.Health = 0.0001 -- or some number
-- do cutscene
connection[1]:Disconnect()
end
end)