How would I make a sequence? (For example, whenever the function activates, it'll cycle through each variable, returning to the original.) Is this even possible?
function Colors()
local a = NumberSequence.new(1, 3)
if a == 1 then
print'one'
end
if a == 2 then
print'two'
end
if a == 3 then
print'three'
end
end

1 comment
Use a for loop inside a function.