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
|
  |
| 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
|
  |
| Joined: 19 Apr 2012 |
| Total Posts: 202 |
|
|
| 08 May 2017 05:46 AM |
| That plugin is ineffective. |
|
|
| Report Abuse |
|
|
|
| 08 May 2017 05:55 AM |
| Are you like the person who commented in one of spooksHD's vids? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|