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: Need it Darker

Previous Thread :: Next Thread 
Gnash109 is not online. Gnash109
Joined: 15 Jul 2010
Total Posts: 20
21 Mar 2014 03:47 PM
I'm trying to make a game with a night/day script in it. So far it has worked. only thing is, That night is not dark enough. day is great nice and bright (Like day) But night is to bright. I've tried fog but the lighting doesn't work then. I'm stumped... Any one got a script? or want to write one? or is there an easyer fix???
Report Abuse
Voidition is not online. Voidition
Joined: 14 Jul 2012
Total Posts: 1849
21 Mar 2014 03:49 PM
[ Content Deleted ]
Report Abuse
Gnash109 is not online. Gnash109
Joined: 15 Jul 2010
Total Posts: 20
21 Mar 2014 03:52 PM
Ambient is 0,0,0... what do I change it to?
Report Abuse
Voidition is not online. Voidition
Joined: 14 Jul 2012
Total Posts: 1849
21 Mar 2014 03:53 PM
[ Content Deleted ]
Report Abuse
Gnash109 is not online. Gnash109
Joined: 15 Jul 2010
Total Posts: 20
21 Mar 2014 03:54 PM
that makes it dark at night yeah but day is also really dark.
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
21 Mar 2014 03:54 PM
while true do
for num=0, 24*60 do
game.Lighting:SetMinutesAfterMidnight(num+12*60)
wait(0.25)
end



--Remove 12*60 if script brakes and also change the wait for less if you want it smoother



--by zars15
Report Abuse
blueboy112 is not online. blueboy112
Joined: 15 Apr 2009
Total Posts: 802
21 Mar 2014 03:57 PM
@MT
He already has a day/night script, he needs something that changes the game's ambient.

Hire me! http://www.roblox.com/Forum/ShowPost.aspx?PostID=128214378
Report Abuse
Gnash109 is not online. Gnash109
Joined: 15 Jul 2010
Total Posts: 20
21 Mar 2014 04:00 PM
Yeah I have a day night script (Below). I just need it darker when its night time



l = game:service("Lighting")
r = game:service("RunService")

while true do
--Time and day
l:SetMinutesAfterMidnight(l:GetMinutesAfterMidnight()+0.2)
wait(.1)
end
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
21 Mar 2014 04:11 PM
but u said we could write one for you...
Report Abuse
Gnash109 is not online. Gnash109
Joined: 15 Jul 2010
Total Posts: 20
21 Mar 2014 04:15 PM
Yeah if you can right a day/night script that makes night darker then day. Darker then default night. Sorry for miscommunication on my end.
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
21 Mar 2014 04:18 PM
alright then

try adding

game.Lighting.OutdoorAmbient = (0, 0, 0)

--aTtention, this shall make every single thing in your game become a little darker.
Report Abuse
Gnash109 is not online. Gnash109
Joined: 15 Jul 2010
Total Posts: 20
21 Mar 2014 04:23 PM
Yeah Voidition got me to try that but it makes day look to dark. fix's night wrecks day.
Report Abuse
Voidition is not online. Voidition
Joined: 14 Jul 2012
Total Posts: 1849
21 Mar 2014 04:26 PM
[ Content Deleted ]
Report Abuse
Gnash109 is not online. Gnash109
Joined: 15 Jul 2010
Total Posts: 20
21 Mar 2014 04:28 PM
yeah that would be Awesome... but I don't know how to script -_-
Report Abuse
Gnash109 is not online. Gnash109
Joined: 15 Jul 2010
Total Posts: 20
21 Mar 2014 04:28 PM
yeah that would be Awesome... but I don't know how to script -_-
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
21 Mar 2014 04:30 PM
I read above... lemme see.

THIS HAS 99% CHANCE BEING WRONG!

try adding

if game.Lighting.TimeOfDay = 20:30:00 then
game.Lighting.OutdoorAmbient = (0, 0, 0)
else
game.Lighting.TimeOfDay = 5:45:00
if elseif game.Lighting.OutdoorAmbient = (--Test ambient and put it in here--)
end




GOTTA BE WRONG
Report Abuse
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
21 Mar 2014 04:32 PM
There are a couple checkboxes. I think one is called "GlobalShadows" Uncheck that one.
Report Abuse
Gnash109 is not online. Gnash109
Joined: 15 Jul 2010
Total Posts: 20
21 Mar 2014 04:34 PM
l = game:service("Lighting")
r = game:service("RunService")

while true do
--Time and day
l:SetMinutesAfterMidnight(l:GetMinutesAfterMidnight()+0.2)
wait(.1)
end

--->if game.Lighting.TimeOfDay = 20:30:00 then<--- this is red
game.Lighting.OutdoorAmbient = (0, 0, 0)
else
game.Lighting.TimeOfDay = 5:45:00
if elseif game.Lighting.OutdoorAmbient = (--Test ambient and put it in here--)
end

Script does not work

Report Abuse
Gnash109 is not online. Gnash109
Joined: 15 Jul 2010
Total Posts: 20
21 Mar 2014 04:37 PM
Global Shadows make everything dark including day
Report Abuse
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
21 Mar 2014 04:38 PM
Well, make it so it gets unchecked if it gets a certain time and then checked when it gets to a certain time.
Report Abuse
Gnash109 is not online. Gnash109
Joined: 15 Jul 2010
Total Posts: 20
21 Mar 2014 04:40 PM
Again that would be Awesome... but I don't know how to script -_-
Report Abuse
Gnash109 is not online. Gnash109
Joined: 15 Jul 2010
Total Posts: 20
21 Mar 2014 04:52 PM
Thank you all for your help but I am going to pay someone to make it for me. you have all been very helpfull
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
21 Mar 2014 04:53 PM
Gnash i forgot u need to make a string in time like
game.Lighting.TimeOfDay = "22:00:00"

And dude, you gotta edit the script where i putted --Test Ambient and put here--

What you need to do is:

In this to-do list your gonna learn what you need to do, but not how.

1. Set a proper hour that starts changing global Shadows or OutdoorAmbient.
2. Set the hour that starts changing Global Shadows again.



IF YOU DONT SCRIPT HIRE SOMEONE.
Report Abuse
Gnash109 is not online. Gnash109
Joined: 15 Jul 2010
Total Posts: 20
21 Mar 2014 05:01 PM
Yeah I cant script very well at all so I hired blueboy112 to do it for 145R$
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
21 Mar 2014 05:26 PM
China business, but ok ur the one who needs help.
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