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: Whats wrong with this?

Previous Thread :: Next Thread 
BThorn is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. BThorn
Joined: 07 Apr 2010
Total Posts: 421
04 Jan 2012 12:59 PM
Ye, Its in my models.
Report Abuse
wow75 is not online. 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 is not online. 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 is not online. 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 is not online. BThorn
Joined: 07 Apr 2010
Total Posts: 421
05 Jan 2012 02:37 PM
bump can you help me?
Report Abuse
Bubby4j is not online. Bubby4j
Joined: 25 Dec 2008
Total Posts: 1831
05 Jan 2012 02:43 PM
What's it supposed to do?
Report Abuse
BThorn is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
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