Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there a way that I can have a value exist and change without being inside of a running place?

Asked by 5 years ago

For a game that I am making, I need a value to change once every hour for a map rotation system that involves multiple places. This would be easy if it wasn't for the fact that multiple places in the game need to detect the change, even when one of the places is currently not open, which is often the case for the hub. I know that this would normally be a job for datastores but if there are multiple instances of the same map running then each area would update the timer causing the hour to become shortened further by each instance of each area. I just want to know if there is a way to acomplish this or something similar to this, and if so how would I do it?

0
Will you be able to articulate this? It would be a big help to your problem. :) lazycoolboy500 597 — 5y
0
use os.time and divide it out by hours then use a custom random seed (or list) to go by so they are all the same (remember because they would probaly be off in time by a tiny bit round down with the random seed so they end up the same) xxDuckKingxx 0 — 5y

Answer this question