Attempt to index bool with intvalue

i have a int value and im trying to check the value of it. Heres the piece checking:

if HasEng.DestroyedAmount.Value == 0 then

Destroyedamount is a intvalue:
image

And last time i checked “0” is not a boolean

Thanks for any help!

omg i just realized haseng is a bool… im dumb im sorry

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.