Skip to content

Instantly share code, notes, and snippets.

@Midnightific
Last active December 27, 2023 00:06
Show Gist options
  • Save Midnightific/52974670822f02186a73c9ff9302f309 to your computer and use it in GitHub Desktop.
Save Midnightific/52974670822f02186a73c9ff9302f309 to your computer and use it in GitHub Desktop.
GameRelatedFunctions
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