Help with time script + getting players timezone

Im getting this error

 Players.Player.PlayerGui.WII_MENU.MAIN_FRAME.BACKGROUND.TIME.TIME_CONTROL:2: invalid argument #1 to 'time' (table expected, got string)  -  Client - TIME_CONTROL:2

Heres my script

task. Spawn(function()
	script.Parent.Text = os.time("%H:%M")
	task. Wait(1)
end)

What am I doing wrong?

  • On a side question, anybody know how I can get the players timezone? Im making this time script (as you just saw and then I have this date script. So what can I do? Thanks
task. Spawn(function()
	script.Parent.Text = os.date("%b %d/%m")
	task. Wait(1)
end)