i want to make a script making random value for every servers.
for exalmple, print same random value on all servers at every 5:00A.M.
i want to make a script making random value for every servers.
for exalmple, print same random value on all servers at every 5:00A.M.
Use message service on the servers then
https://developer.roblox.com/en-us/api-reference/class/MessagingService
Then write some code that make a random value (you knew it alr)
its also possible to do it like this if you don’t want to send messages between servers
-- some random numbers to stop hackers from guessing the next random number this number needs to be the same on all servers
local antiHack = 98734
-- this time needs to be the same on all servers
local timeOfNextEvent = os.time({year=2022, month=5, day=2, hour=5, min=0, sec=0})
-- use the time and antihack as a seed
local seed = timeOfNextEvent - antiHack
-- make a random using the seed
local rand = Random.new(seed)
-- all servers should print the same number if they all used the same seed
print(rand:NextNumber())
it can’t be solution for automatically generating value.
If there are multiple servers, not only the generated value but also the message will be generated as many as the number of servers.