so basically what im saying is i wanna make an event happen across all servers in a certain day every year
can someone explain to me how to do it cuz im confused
so basically what im saying is i wanna make an event happen across all servers in a certain day every year
can someone explain to me how to do it cuz im confused
I don’t think you can do it, most people just make the event a few days before the day and make it so that it is ready on the day. Well probably someone else is going to find a solution, but I personally don’t think it is possible. Also have you checked the DevForum for any similar posts to yours?
i found some, they were a certain day but not every year.
You can using os.date to set it specifically
But it would require if statements and getting the values of the dictionary from os date
It depends on what you’re trying to achieve.
If you want to make an entire update (map change, new items, etc.) then that wouldn’t really be possible. That requires you to publish a new update to the game which can only be done manually
If you’re trying to make a small change then you can use a script that checks the date and makes the change on that specific day.
oh wait now i understand i just remove the year and only check for the month and day im so dumb xd
To be fair your right if its large he can do it manually or use OpenCloud Api but thats a longer process were he would need an api key and an active script running concurrently in a different programming language such as javascript were it can communicate with a roblox server script.
Check the date … if true, go event.
function Eventday(month, day)
local t = os.date("*t")
return t.month == month and t.day == day
end
print(Eventday(3, 21))
--ServerScript = server's timezone
--LocalScript = client's device timezone
local events = {
["04-12"] = 1,
["07-18"] = 2,
["10-08"] = 3,
["03-20"] = 4,
["03-21"] = 5,
["03-22"] = 6
}
function EventCheck()
return events[os.date("%m-%d")]
end
local event = EventCheck()
if event then print(event)
end
--UTC Universal time alternative ..
--return events[string.format("%02d-%02d", os.date("!*t").month, os.date("!*t").day)]
yes, just realized lol
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.