Resolved ( Ignore )

I have a ban system using tick( ) + BanLength to ban players, however it seems tick( ) is returning results that are incorrect ( I assume that all roblox servers run on the same time zone? ):

Notice how there is more then 1000 seconds difference in those, yet they are mere minutes apart, each was taken from a new Play server

Try using os.time() instead Documentation - Roblox Creator Hub

I was about to try that, however as far back as I remember tick( ) has been returning within the same timezone for servers so I was wondering if maybe this was a bug or was there some change in the servers

tick() returns the timezone for the current server or client (local time)
os.time() returns the time- will be the same for each call- different servers and different clients in different timezones

Yeah, I know that, I just always thought the servers were in the same timezones.

Either way, it’s not a bug so I’ll change this post

Just put [Resolved] in the title, don’t change the title to something completely else.
It’s very useful if someone who has a similar problem can find this thread.

2 Likes