i wanted to make leaderboard join year script but it keeps showing in days. anyone know how to fix? i want it to show like joined 2016
game.Players.PlayerAdded:Connect(function(plr) local mytable = os.date("*t", os.time()) local year = mytable.year local difference = year - 1970 local dayelapsed = difference * 365 local restday = dayelapsed - plr.AccountAge local joinyear = math.floor(1970 + (restday / 365) + 0.5) local Folder = Instance.new("Folder") Folder.Name = "leaderstats" Folder.Parent = plr local Value = Instance.new("IntValue") Value.Name = "AccAge" Value.Value = plr.AccountAge Value.Parent = Folder end)
Closed as Not Constructive by JesseSong
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?