I'm pretty sure it's impossible to do parallel things like this in Lua, but you can achieve a similar effect like this:
print("Hello!")
local timeUntilGoodbye = 5 * 60 -- Seconds * frames per second
event.register(event.tick, function()
if timeUntilGoodbye == 0 then
print("goodbye")
end
timeUntilGoodbye = timeUntilGoodbye - 1
end)
idk lua but this somewhat reminds me of python , which gladly has wait library