local part = script.Parent local Health = part.Health
while true do if Health.Value <= 0 then print("Test") end wait() end
local part = script.Parent local Health = part.Health
while true do if Health.Value <= 0 then print("Test") end wait() end
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
is "Health" a value instance or an attribute?
likely a value. Attributes would be fetched differently for some users. It is possible that the health could be changing from the client and this script could be a server script.
well in that case, even though that script is pretty innifficient, it should work
Do some print debugging, print out Health.Value every iteration and see what the script sees.