i am trying to make a current time gui but what seems to happen is it just shows the 24 hour ratio is it possible to create a script that will find the Am/Pm time?
my code:
while wait() do
data = os.date('*t')
script.Parent.Text = data.hour..':'..data.min
end

11 comments
The output i get is
i:i 1oh u trying to print it?
no i am trying to show it
on a textlabel right?
yes
well that script works for me
https://www.roblox.com/games/2544410242/Learn-to-code?refPageId=0de3a3e1-dc39-4273-b689-6d493296df9c
its in that game
just copy paste the script in a localscrip in the textlabel
ok thanks
did that work?