Jump to content

Loops


Recommended Posts

Posted

Quick question for a future project I am working on: how can I create a loop which only loops 10 times?

For example:

  
local example = 0 
for index, val in ipairs do 
    example + 1 
end 
  

So in theory, example would end at 10. How would I do this?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...