I hope you are having a great day! 
Well, what I want to make is a VHS Timer like the one you see at the bottom right of the screen.
The only problem is that I have no knowledge of anything to do with scripting.
[Video] Blank VHS Tape with Play Overlay Footage | Free Download - YouTube
2 Likes
ifkpop
(ifkpop)
2
Below is a simple code which will allow you to do this.
local secondsPassed = 0
function numToTime(seconds)
local hours = math.floor(seconds / 3600)
seconds -= hours * 3600
local minutes = math.floor(seconds / 60)
seconds -= minutes * 60
print(string.format("%02d:%02d:%02d", hours, minutes, seconds)
end
while true do
secondsPassed += task.wait(1)
print(numToTime(seconds))
end
Edit: This function would also do the trick:
function numToTime(seconds)
return os.date("%X", seconds)
end
1 Like