Bug?
So this is the only script for top bar v3.0.2, only one icon.new() and it duplicates?
local Icon = require(game:GetService("ReplicatedStorage").Icon)
Icon.new()
:setName("hi")
local function MilitaryToStandard(hour)
return if hour > 12 then hour - 12 else hour, if hour > 12 then true else false
end
local function ConvertTo2Digit(digit)
return if #tostring(digit) < 2 then 0 .. digit else digit
end
local res
local icon = Icon.getIcon("hi")
while true do
local date = os.date("!*t", os.time() + (3600 * -4))
local min = ConvertTo2Digit(date.min)
local hour, isPM = MilitaryToStandard(date.hour)
local sec = ConvertTo2Digit(date.sec)
local result = "EST TIME ".. hour .. ":" .. min ..":" .. sec
res = result
icon:setLabel(result)
icon:align("Right")
icon:lock()
wait(.000001)
end
I really need this fixed, feel free to message me or reply if you have a fix or question!