BTW, there is already a community tutorial on this, check it out and see if it works. And yeah you can use os.time for this but another method may be to use an external timing system like google which may be more accurate.
I know that this will also probably work fine with using os.time(), but I’ve seen several reports of it being inaccurate and out of sync up to 3-5 minutes  in different servers. I don’t know if this is fixed now, but I use a module which retrieves time externally which eliminates the possibility of anything being out of sync.
 
 
  
  
    [image]  
Do you also want rarity to be taken into account with the items generated? Then this is the tutorial for you! A few weeks ago, I had a lot of trouble trying to figure out how to do this, but thanks to the help of @VitalWinter  and the code I had already, I was able to make it happen perfectly! 
 
 
             
            
              2 Likes