How to stop a renderstepped loop in lua