Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is Tick()? And how do i use it? (Not request for script | Just education/general idea)

Asked by
Delude_d 112
6 years ago

I'd like to know what tick() is and how you use it.

0
Could you just, er. Make that an answer so i can finish this off Delude_d 112 — 6y
0
tick() can be used for scripts if you wanted to charge? cherrythetree 130 — 6y

1 answer

Log in to vote
2
Answered by 6 years ago
Edited 6 years ago

You're probably asking what tick() returns, right? Well, tick() is a ROBLOX built-in function that returns the number of seconds that have elapsed since the UNIX epoch (January 1st, 1970), on your computer. What do I mean with on your computer.? This will depend on how your computer's date is set. If you're looking for starting on with stuff like for example a daily reward system, you should check os.time() instead. using tick() will cause unwanted results as people can change their date to receive the reward and going on and on.

Links of the wiki:

tick()

os.time()

0
tick is actually a Roblox function. hiimgoodpack 2009 — 6y
0
my bad, sorry SulaymanArafat 230 — 6y
Ad

Answer this question