Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What exactly does tick() and time() do?

1 answer

✓ Accepted answer

Hi yhatayhatahoohoo,

So, your question is really simple and wiki explains it pretty well but, I guess uses a bit of high-end language. Anyways, I will explain each below.

#Tick()

###This is how many seconds have passed since January 1st, 1970. At least, that's what it means according to wiki.

#Time()

###This is how many seconds have passed since the game has started running. So, basically, the amount of time the server has been running.

#Both Tick() and Time()

###These are both measurements of time and can be used for things like a double-click activation if you were to record how much time elapsed since the last click. You can also use these two for things like daily awards but, I think os.time() is better for that seeing how it's not that specific. So, you can get the difference between one second to another to see if this much time has elapsed(passed) before this happened. And that's how you can use it for daily rewards and double-clicks.

##Well, anyways, that's the gist of it. I hope I helped and have a wonderful day/night.

Thanks,

Best regards,

~~ KingLoneCat

This discussion is preserved as it was. New answers, comments, and votes are closed.