fps = 0 time = os.time() while true do if os.time() - time > 1 then print (fps) break end fps = fps + 1 end