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
|
  |
| Joined: 14 Jul 2012 |
| Total Posts: 1849 |
|
| |
|
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
|
  |
| Joined: 14 Jul 2012 |
| Total Posts: 1849 |
|
| |
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 14 Jul 2012 |
| Total Posts: 1849 |
|
| |
|
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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 21 Mar 2014 04:32 PM |
| There are a couple checkboxes. I think one is called "GlobalShadows" Uncheck that one. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 15 Jul 2010 |
| Total Posts: 20 |
|
|
| 21 Mar 2014 04:37 PM |
| Global Shadows make everything dark including day |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|