How do i test how long something takes?
like
for i = 1, 100, -1 -- codes end print() -- prints how much long it took for i to finish
Check the difference in tick from before and after you run the loop:
local StartTick = tick() for i = 1, 100, -1 -- codes end print(tick() - StartTick) -- prints how much long it took for i to finish
I explain how this works better here.