|
| 01 Apr 2017 03:29 PM |
| I'm making a daily money bonus script and I need to know how to find out if a day has passed. |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 03:30 PM |
if os.time() - savedTime >= 86400 then return true end
|
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Apr 2017 03:50 PM |
| Ignore the guy above you he has no idea what he is talking about, just search daily prize in toolbox. |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 03:52 PM |
| I'm good. I want to script my own! Thanks though! |
|
|
| Report Abuse |
|
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
|
| 01 Apr 2017 03:52 PM |
| what are you talking about? ^ his method was correct, the savedTime value is a value you'd want to save using datastores. this value is set either the first time they've played or the value is over ###### (once it passes this number, do bonus stuff too). the reason it is ##### is because it is 24 * 60 * 60 which is how many seconds there are in 24 hours, with os.time being in seconds. |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 03:53 PM |
| ####### he isnt using a datastore he wants a gui and you and that subtelling guy aint helping |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 03:56 PM |
"Ignore the guy above you he has no idea what he is talking about, just search daily prize in toolbox."
No, get out, you're incompetent. We're all aware that you can't script.
`savedTime` is the saved integer that os.time returns, and you need to compare it with the current one when the player joins. If the difference in seconds is greater than or equal to 86,400 (one day in seconds), then return true.
|
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 03:57 PM |
| The only sentence i understanded was you telling me to shut up |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 03:58 PM |
Exactly, because you're an idiot. If you're going to help then actually contribute instead of saying that the best solution is incorrect.
Find me a method of time comparison for daily rewards that doesn't use data stores or data persistence.
|
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 04:00 PM |
| ...or ########### but it's unnecessary because it's just a daily reward |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 04:00 PM |
hypertext transfer protocol service
|
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 04:01 PM |
| I dont know what protocol or anything your saying like xcsgsksh.owbsia,service,kakajaos,datastore i dont understand any of that and i probably wont ever because i wasnt raised a script kiddie |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 01 Apr 2017 04:02 PM |
No, you're just being stupid again. The original name of the service is filtered.
If you don't know what you're talking about, don't post at all. That means everything you've said in this thread.
|
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 04:03 PM |
"What is savedTime?"
Hypothetical name of last time the reward was given to the player in seconds from UNIX epoch
|
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 04:03 PM |
| I'd rather use a free model like the rest of most rbx devs |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 04:05 PM |
I still know a little bit of coding
Workspace.Part.Cancollide = false
See it worked |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 04:05 PM |
| I have to create a Data Store right? |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 04:05 PM |
No, it wouldn't work. It's irrelevant to the thread anyway. If you're going to be stupid then go be stupid elsewhere, there's a lot of skiddie forums that exist
|
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 04:06 PM |
"I have to create a Data Store right?"
yes
|
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 04:33 PM |
| Roblox, he was right, also all I see you doing is encouraging people to turn to free models. |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2017 04:42 PM |
| Can't I use AccountAge? It gives you money if the AccountAge changes? |
|
|
| Report Abuse |
|
|
| |
|