Try this, not tested.
local config = {
storage = 291,
time = 2
}
function removex()
Game.setStorageValue(config.storage, 0)
end
function happyshit()
Game.setStorageValue(config.storage, 1)
addEvent(removex, config.time * 1000)
end
function onTime(interval)
if os.date('%A')...