Last active
December 27, 2023 00:06
-
-
Save Midnightific/52974670822f02186a73c9ff9302f309 to your computer and use it in GitHub Desktop.
GameRelatedFunctions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true do | |
local CurrentTime = os.time() | |
local GMTOffset = 8 -- Change this to your timezone offset | |
local Seconds = CurrentTime % 60 | |
local Minutes = CurrentTime / 60 | |
local Hours = Minutes / 60 | |
Minutes = math.floor(Minutes % 60) | |
Hours = math.floor(Hours % 24) + GMTOffset | |
print(`Current time is {Hours}:{Minutes}:{Seconds}`) | |
task.wait(1) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment