BThorn
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 421 |
|
|
| 04 Jan 2012 12:54 PM |
if game.Lighting.TimeOfDay == "19:00:00" then game.Workspace.Part.Transparency = 1 end |
|
|
| Report Abuse |
|
|
wow75
|
  |
| Joined: 16 Jan 2009 |
| Total Posts: 951 |
|
|
| 04 Jan 2012 12:56 PM |
| Nothing, at least it looks that way to me... |
|
|
| Report Abuse |
|
|
BThorn
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 421 |
|
|
| 04 Jan 2012 12:58 PM |
| Well, I actually made a script that changes day into night that worked and I'm trying to figure out how this doesn't work. |
|
|
| Report Abuse |
|
|
wow75
|
  |
| Joined: 16 Jan 2009 |
| Total Posts: 951 |
|
|
| 04 Jan 2012 12:59 PM |
| Hmm, may i see the night to day script? |
|
|
| Report Abuse |
|
|
BThorn
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 421 |
|
| |
|
wow75
|
  |
| Joined: 16 Jan 2009 |
| Total Posts: 951 |
|
|
| 04 Jan 2012 01:05 PM |
| Where'd you put the failing script inside your night and day one? |
|
|
| Report Abuse |
|
|
BThorn
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 421 |
|
|
| 05 Jan 2012 10:42 AM |
| Ohh no I've not made a model of that yet I'll make one now. |
|
|
| Report Abuse |
|
|
BThorn
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 421 |
|
|
| 05 Jan 2012 10:48 AM |
Here's the model.
http://www.roblox.com/Needed-help-with-this-item?id=69396309 |
|
|
| Report Abuse |
|
|
BThorn
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 421 |
|
| |
|
Bubby4j
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 1831 |
|
| |
|
BThorn
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 421 |
|
|
| 06 Jan 2012 10:01 AM |
Its supposed to make the brick change transparency to 1 and cancollide to false. I've added cancollide to the model below and the day and night script.
That's it there - http://www.roblox.com/Needed-help-with-this-item?id=69396309 |
|
|
| Report Abuse |
|
|
BThorn
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 421 |
|
|
| 06 Jan 2012 01:12 PM |
| Bump I need this for a new game I'm making. |
|
|
| Report Abuse |
|
|
Bubby4j
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 1831 |
|
|
| 06 Jan 2012 01:59 PM |
I PM'd you the fix.
Btw, next time you ask for help in the forum, provide the entire script.
Also, people aren't likely to get a model, and open roblox studio, just to see the script. |
|
|
| Report Abuse |
|
|
Tkdriverx
|
  |
| Joined: 27 May 2008 |
| Total Posts: 235 |
|
|
| 06 Jan 2012 02:25 PM |
In output language:
> You can't index a nil value to string.
You can't check time like that, you have to do:
game.Lighting:GetMinutesAfterMidnight()
This returns a double (a number) in minutes after the time 00:00:00. But if you want it to do hours do this:
game.Lighting:GetMinutesAfterMidnight() * 60
This is simple, and easy to use. Good luck dude!
~ Tkdriverx ~ |
|
|
| Report Abuse |
|
|
Tkdriverx
|
  |
| Joined: 27 May 2008 |
| Total Posts: 235 |
|
|
| 06 Jan 2012 02:35 PM |
Fix to my last post, last code sample:
game.Lighting:GetMinutesAfterMidnight() / 60
~ Tkdriverx ~ |
|
|
| Report Abuse |
|
|