Universal Script 📌
57.2k Views
19 Executions

In Game Time

Universal Script 📌
AdorbsxVibesPr3ppy
AdorbsxVibesPr3ppy100 followers
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Check the time In Roblox game

Updates

  1. Script edited: Create script

View Raw
-- Load Orion Library
local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()

-- Create Window
local Window = OrionLib:MakeWindow({Name = "Game Time Display", HidePremium = false, SaveConfig = true, ConfigFolder = "OrionConfig"})

-- Create Tab
local Tab = Window:MakeTab({
    Name = "Main",
    Icon = "rbxassetid://4483345998",
    PremiumOnly = false
})

-- Label to show time
local TimeLabel = Tab:AddLabel("Current In-Game Time: ")

-- Function to convert 24-hour time to 12-hour time
local function to12HourFormat(hour)
    local suffix = "AM"
    if hour >= 12 then
        suffix = "PM"
        if hour > 12 then
            hour = hour - 12
        end
    elseif hour == 0 then
        hour = 12
    end
    return hour, suffix
end

-- Function to update time
local function updateTime()
    while true do
        local time = game:GetService("Lighting").ClockTime
        local hour = math.floor(time)
        local minute = math.floor((time - hour) * 60)
        local hour12, suffix = to12HourFormat(hour)
        TimeLabel:Set(string.format("Current In-Game Time: %02d:%02d %s", hour12, minute, suffix))
        wait(1)
    end


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
5.2k
16.8k
Bumped 33 minutes ago
Script hub
116.4k
176.2k
Bumped 8 hours ago
Key System
Script hub
14.8k
73.1k
Bumped 8 hours ago
Universal Script 📌
35.6k
1.1M
Bumped 8 hours ago
Universal Script 📌
20.4k
206.5k
Bumped 9 hours ago