Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Start = tick()
- Array = {}
- ArrayN = 0
- ArrayLimit = 1200 -- Change this value to improve speed.
- PreviousTick = tick()
- Previous = 1200
- ArrayLimitChange = 50 -- Change this value to change big of an arraylimit change you want
- Current = 0
- for i = 0, 4000000, 1 do
- if i % 3 == 0 or i % 5 == 0 then
- Array[ArrayN + 1] = i
- ArrayN = ArrayN + 1
- end
- if #Array == ArrayLimit then
- Current = Current + ArrayLimit
- print(table.concat(Array, ";"))
- if (tick() - PreviousTick) > 1 then -- This makes script adapt to your computer Capability.
- if Previous > Current then
- ArrayLimit = ArrayLimit + ArrayLimitChange
- else
- ArrayLimit = ArrayLimit - ArrayLimitChange
- end
- Previous = Current
- Current = 0
- PreviousTick = tick()
- end
- ArrayN = 0
- Array = {}
- wait()
- end
- end
- print(table.concat(Array, ";"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement