coroutine.wrap(function()
    repeat 

        task.wait()
    until false  
end)()
-- replace print('works') with your script
print('works')