generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: how do I make a daily reward script using os.time?

Previous Thread :: Next Thread 
KZskychi is not online. KZskychi
Joined: 19 Apr 2012
Total Posts: 202
07 May 2017 12:22 PM
Alright, so when a player joins, it gives the player a daily reward, let's say 100.

the next time the player joins, and if it has been or is more than 24 hours, it should give the player 200.

How do I sum this all into a script?
Report Abuse
PlayRev is not online. PlayRev
Joined: 04 Mar 2013
Total Posts: 36
07 May 2017 12:33 PM
I believe someone created a plugin for that.


-PlayRev
Report Abuse
KZskychi is not online. KZskychi
Joined: 19 Apr 2012
Total Posts: 202
08 May 2017 05:46 AM
That plugin is ineffective.
Report Abuse
szkiller_dev is not online. szkiller_dev
Joined: 07 Oct 2016
Total Posts: 3572
08 May 2017 05:55 AM
Are you like the person who commented in one of spooksHD's vids?
Report Abuse
Diligent_Coder is not online. Diligent_Coder
Joined: 20 Jul 2011
Total Posts: 1314
08 May 2017 07:27 AM
local ds = game:GetService("DataStoreService"):GetDataStore("Daily") local lastTime = ds:GetAsync("Last") or os.time() - ##### ##### ## = os.time() - lastTime if CT ## ##### then print"reward" else print"not yet" end
Report Abuse
Diligent_Coder is not online. Diligent_Coder
Joined: 20 Jul 2011
Total Posts: 1314
08 May 2017 07:28 AM
Rip
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image