Os.date() update every second

can’t seem to make this work with os.date() and its pretty bugging me out as I have been searching for a solution around Dev Forum already </3 Any help is aprpeciated, here’s the code:

-- Local Script
local text = script.Parent:WaitForChild("TimeText")
local change = text
local date = os.date("%a %b %d || %I:%M:%S %p")

while wait(1) do
	change.Text = "Today is "..(date)
end

the issue is it won’t update every second

You need to put local date = os.date("%a %b %d || %I:%M:%S %p") inside the while loop for it to update

1 Like

oh my god, thank u so much its working as intended

I feel so stupid :sob:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.