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: Door that opens/closes based on time of day

Previous Thread :: Next Thread 
nikky101 is not online. nikky101
Joined: 26 Jul 2009
Total Posts: 47
04 Jul 2014 10:26 PM
Okay so anyone have any idea how to make a sliding door that opens/closes based on the time of day?

So lets say you have a day/night script in your game and at 7am you want the gate to automatically open, but by 7pm you want it to close again and it wont re open till 7am.

How would I make this happen?

If anyone wants to make such thing for me ill give them 100 robux :D
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
04 Jul 2014 10:28 PM
while wait() do
if game.Lighting.TimeOfDay = TimeHere then
game.Workspace.Door.Position = Vector3.new(VectorNumbersHere)
end
end
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
04 Jul 2014 10:29 PM
Slight error, change = to ==
Report Abuse
nikky101 is not online. nikky101
Joined: 26 Jul 2009
Total Posts: 47
04 Jul 2014 10:58 PM
what do I put for vectors?
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
04 Jul 2014 11:00 PM
The direction that you would want the door to slide in, for instance,
Vector3.new(0,1,0)
The first 0 is the X axis
The first 1 is the Y axis
and the second and last number, which is zero, is the Z axis.
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