I want to make this script stop working when the generators health is less than 10000. The script works but when the health of the generator changes and isn't 10000 the script dosen't stop? Solutions.
while game.Workspace.Generator.Generator.Health == 10000 do
wait(40)
script.Parent.Text = "20"
wait(1)
script.Parent.Text = "19"
wait(1)
script.Parent.Text = "18"
end

2 comments
Try Humanoid.Health
I renamed the humanoid