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 |
|
|
|
| 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 |
|
|
|
| 04 Jul 2014 10:29 PM |
| Slight error, change = to == |
|
|
| Report Abuse |
|
|
nikky101
|
  |
| Joined: 26 Jul 2009 |
| Total Posts: 47 |
|
|
| 04 Jul 2014 10:58 PM |
| what do I put for vectors? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|