Hello!
I was making a monthly leaderboard and made it reset every month using os.date(“%M”). Whenever I do this the month keeps on going up even though it has not been a month.
part of the script:
local Month = os.date("%M")
local DataStoreService = game:GetService("DataStoreService")
local DataStore = DataStoreService:GetOrderedDataStore("MonthlyReignLeaderboard V:"..Month)
local SurfaceGui = script.Parent.LeaderboardGui
local Sample = game.ReplicatedStorage.ReignLeaderboardFrame
local ItemsFrame = SurfaceGui.Holder
local RetrievedData