#solved Clock with topbarplus help

1 messages · Page 1 of 1 (latest)

inner saffron
#

I was trying to make a clock with topbarplus, but it didnt work.


local container  = script.Parent
local Icon = require(container.Icon)

local clock = Icon.new()
while true do
    clock:setLabel(time)
end```
timber onyx
#

NEVER do infinite while loops without a task.wait. If u dont use a task.wait itll run the while loop on the same frame and never go to next (until a timeout). @inner saffron

#

so just add a task.wait in it

#
while task.wait() do

end
#

just works

feral condor
#

Also, you're setting the variable time once, so you're just gonna end up setting the label to the same value forever.

So update time in the while loop.