while Humanoid.Health >= 10000 then
wait(0.5)
while Humanoid.Health < Humanoid.MaxHealth do
wait(0.1)
Humanoid.Health = Humanoid.Health + 0.1
✓ ANSWER ACCEPTED
How can I fix the while loop problem, I think the problem is "then"?
1 answer
✓ Accepted answer
Add the ends to your script and replace "then" with "do".
while Humanoid.Health >= 10000 do
wait(0.5)
while Humanoid.Health < Humanoid.MaxHealth do
wait(0.1)
Humanoid.Health = Humanoid.Health + 0.1
end
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
