zCrxtix
(zavier)
November 3, 2021, 10:11pm
#1
I was bored, so I made this quick time converter. It doesn’t support multi-digit numbers, and its format is similar to a discord bots’ mute command.
ShortTime.rbxl (32.8 KB)
Example:
local st = require(script.Parent.ShortTime).new("9s"):read()
print("test")
wait(st)
print("done waiting")
I thought the concept was cool, but it could definitely use some improvement.
cxmeels
(cxmeels)
November 3, 2021, 10:28pm
#2
Seems like an awfully long-winded way of going about wait(9)
? Not entirely sure it warrants an entire class, but rather just a function (or set of).
zCrxtix
(zavier)
November 3, 2021, 10:30pm
#3
It was an example , and the idea is making it easier to type, for example, “3d” for 3 days, instead of having to look up 259200.
I dont really see a use for this since shorter times such as seconds since task.wait exists. Longer times such as minutes and hours can be done manually as well by simply typing in task.wait(60 / numberOfMinutes)
and vice versa.