I need help with a script I'm making, everytime I click on a brick I'd like it to go through the table at the top 1 by 1. So first click on the brick it would print 1, second click it would print 2.. ect. Any help will be appreciated!
This just prints every time I click, I need it to wait for another click and not print the code before it, I just want the one table value that its currently on
Table = {1,2,3,4,5}
function Click ()
for i = 1,1 do
print (i)
for i = 2,2 do
print (i)
for i = 3,3 do
print (i)
for i = 4,5 do
print (i)
for i = 5,5 do
end
end
end
end
end
