Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I fix the while loop problem, I think the problem is "then"?

while Humanoid.Health >= 10000 then
		wait(0.5)
		while Humanoid.Health < Humanoid.MaxHealth do
		wait(0.1)
		Humanoid.Health = Humanoid.Health + 0.1

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.