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 you find out if a day has gone by?

Previous Thread :: Next Thread 
PennsylvaniaRoadGeek is not online. PennsylvaniaRoadGeek
Joined: 06 Jan 2012
Total Posts: 417
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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
01 Apr 2017 03:30 PM
if os.time() - savedTime >= 86400 then return true end


Report Abuse
PennsylvaniaRoadGeek is not online. PennsylvaniaRoadGeek
Joined: 06 Jan 2012
Total Posts: 417
01 Apr 2017 03:47 PM
What is savedTime?
Report Abuse
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
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
PennsylvaniaRoadGeek is not online. PennsylvaniaRoadGeek
Joined: 06 Jan 2012
Total Posts: 417
01 Apr 2017 03:52 PM
I'm good. I want to script my own! Thanks though!
Report Abuse
Waffloid is not online. 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
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
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
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
01 Apr 2017 03:57 PM
The only sentence i understanded was you telling me to shut up
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
01 Apr 2017 04:00 PM
...or ########### but it's unnecessary because it's just a daily reward
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
01 Apr 2017 04:00 PM
hypertext transfer protocol service


Report Abuse
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
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
PennsylvaniaRoadGeek is not online. PennsylvaniaRoadGeek
Joined: 06 Jan 2012
Total Posts: 417
01 Apr 2017 04:02 PM
What is savedTime?
Report Abuse
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
01 Apr 2017 04:02 PM
But you can teach me
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
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
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
01 Apr 2017 04:03 PM
I'd rather use a free model like the rest of most rbx devs
Report Abuse
Robloxinaterr is not online. Robloxinaterr
Joined: 26 Jul 2014
Total Posts: 14824
01 Apr 2017 04:05 PM
I still know a little bit of coding


Workspace.Part.Cancollide = false


See it worked
Report Abuse
PennsylvaniaRoadGeek is not online. PennsylvaniaRoadGeek
Joined: 06 Jan 2012
Total Posts: 417
01 Apr 2017 04:05 PM
I have to create a Data Store right?
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
01 Apr 2017 04:06 PM
"I have to create a Data Store right?"

yes


Report Abuse
tallajay11 is not online. tallajay11
Joined: 03 Jan 2012
Total Posts: 2274
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
PennsylvaniaRoadGeek is not online. PennsylvaniaRoadGeek
Joined: 06 Jan 2012
Total Posts: 417
01 Apr 2017 04:42 PM
Can't I use AccountAge? It gives you money if the AccountAge changes?
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
01 Apr 2017 04:42 PM
That's not reliable.


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