So I have this script, but don't know how I would go about making time on a text box? Any help?
local Lighting = game:GetService("Lighting")
local button = script.Parent.TextLabal
local hourRaw = tonumber(Lighting.TimeOfDay:match("^%d+"))
local hour12h = math.floor(hourRaw % 12)
local isPM = (hour / 12) >= 1
if hour12h == 0 then
hour12h = 12
end
