local menuActive = true
local menuDuration = 60
local startTime = os.time()
function checkMenuExpiry()
local currentTime = os.time()
if currentTime - startTime >= menuDuration then
menuActive = false
print("Menu has expired.")
end
end
while true do
checkMenuExpiry()
if menuActive then
print("Menu is active.")
else
break
end
os.execute("sleep 1") -- Sleep for 1 second (on Linux/Mac)
-- For Windows, use: os.execute("timeout /t 1 > nul")
end