Is there anyway to run a function at a certain date & time?

Hello!

Is there anyway to run a function at a certain date and time? For example, the game would run a certain function in 5 days and then would not run the function again after that point in time.

Any help is good. Feel free to ask questions!

Thank you!

1 Like

You could use os.time or tick() for the real time, here are some articles:

https://developer.roblox.com/en-us/api-reference/lua-docs/os

Use tick() or os.time() to set up a function to be working in N days, here is a tutorial from AlvinBlox -

The linked tutorial will help you figure out how to make real-time events, with some configuration, you can set up a function to occur in N days/hours ,etc.

3 Likes