In my game I want so if you want to earn a 'Skip', you can either buy it with Robux, OR you can watch a video ad and earn one for free, but I don't want players constantly watching ads to get unlimited amounts of Skips. Is their a way to limit the amount of ads shown to a player, like maybe 5 ads a day, etc?

  • NinjoOnline

3 comments

0

Probably use DataStore and store a list of os.time values for every time a person has watched a video ad, then if one value compared to the current os.time() is greater than 86,400 then remove that value from the table and reallow the person to watch the video ad.

0

I don't really understand os.time...

0

Os.time() gives you the amount of seconds from January 1, 1970 at 12:00 AM UTC. tick() will return the amount of seconds from that date and time from the server, however os.time() returns it from the actual time to current.