function getGameFramework() for _, v in next, getgc(true) do if type(v) == 'table' and rawget(v, 'SetAutoplay') then return v end end end local framework = getGameFramework() if framework then spawn(function() while true do framework.SetAutoplay(true) wait(1) -- adjust the interval to whatever time you want end end) end