ThePhisics101 0 Posted October 10, 2017 Share Posted October 10, 2017 I need to keep running a loop in the background while further code is executing... while true do -- code os.sleep(0.5) end print("I want this to run while the loop is running") How would i do that without loosing much performance? Quote Link to post Share on other sites
1 Molinko 43 Posted October 11, 2017 Share Posted October 11, 2017 I imagine there is more to do than just printing a line so I'll assume the Thread library is what you're looking for. Quote Link to post Share on other sites
I need to keep running a loop in the background while further code is executing...
How would i do that without loosing much performance?
Link to post
Share on other sites