#Giving a loop a timer for 10 seconds

10 messages · Page 1 of 1 (latest)

mint folio
#
local count = 0
while true do 
    wait(1)
    count += 1
    humanoid.Health += 10

    if count == 10 then
        break
    end
end
#

but

dim jay
#

but

mint folio
#

i would use for loop

#
for i = 1, 10 do
  humanoid.Health += 10
  task.wait(1)
end
dim jay
#

thanks bro 💯 🦍

mint folio
#

you can choose any of them

#

no difference but i think for loop is easier

mint folio
twin venture