You could use tick() or os.time() for it, they are very useful.
os.time()
Tick()
Examples
tick()
local current_time = tick()
task.Wait(300) -- 300 seconds = 5 minutes
print(tick()-current_time) -- would print 300
You could use tick() or os.time() for it, they are very useful.
Examples
tick()
local current_time = tick()
task.Wait(300) -- 300 seconds = 5 minutes
print(tick()-current_time) -- would print 300