Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to check if when enemy reaches a certain amount of health?

Asked by 3 years ago
Edited 3 years ago

Today Ive been trying to make a boss fight for my game, everything's fine but theres one problem.

Im trying to check when the boss HP goes down to 50, and then itll enter phase 2 and have a new set of attacks.

if humanoid.Health == 50 then
    -- stuff
end

This is what I tried doing, didn't work obviously. Could I get some help with this? Sorry for my newbieness by the way, pretty new to this kind of stuff.**

0
You're only checking when it's only 50, however you should check when it's 50 OR below 50 NotZuraax 68 — 3y

Answer this question