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 » Scripting Helpers
Home Search
 

Re: How to initiate a script on a specific day.

Previous Thread :: Next Thread 
Builder123ABC is not online. Builder123ABC
Joined: 13 Feb 2010
Total Posts: 1050
15 Aug 2013 07:28 PM
I have this script for my fort. But I want to set it so it will only work after a particular day. Is there a way to do that?

-RTM Commander
Report Abuse
Saviorofdragons is not online. Saviorofdragons
Joined: 10 Jan 2013
Total Posts: 489
15 Aug 2013 07:29 PM
No, there is not. Unless you can count the seconds till that day, and someone is on the game 24/7.
Report Abuse
Builder123ABC is not online. Builder123ABC
Joined: 13 Feb 2010
Total Posts: 1050
15 Aug 2013 07:32 PM
Is there a way to get the date or time?

-RTM Commander
Report Abuse
Saviorofdragons is not online. Saviorofdragons
Joined: 10 Jan 2013
Total Posts: 489
15 Aug 2013 07:34 PM
There may be, but I am 95 percent sure there isn't.
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
15 Aug 2013 07:34 PM
You can use the Ticket property of NetworkClient to tell the date when someone joins.
http://wiki.roblox.com/index.php/Ticket

Another way would be using tick(). tick() is the number of seconds passed from January 1, 1970. Using basic logic, you can do this:
1. Go into studio and type print(tick())
2. There are 86400 seconds in a day. Therefore, you add 86400 * x number of days
3. It will now be available in x number of days

However, the problem with both of these methods is that the person using your script can simply remove the portion of your script that checks the date.

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
15 Aug 2013 07:36 PM
Of course, you'll still need to add the portion of the script that checks if the time is right. But you could have whoever scripted that for you (or yourself) do that portion for you.

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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