of     2   
chevron_rightchevron_rightchevron_right

simonnater
#36122091Thursday, October 28, 2010 10:50 AM GMT

hi I would like to know how to make it night and day without any buttons .. do you need a timer for it or i dunno can some one help me out ? Because on some games it turn night automaticly then morning again i would like that on my game .
bloob827
#36122102Thursday, October 28, 2010 10:51 AM GMT

Script: game.Lighting.TimeOfDay = 10:00:00 -- change the numbers to whatever the timeofday u want it to be.
crazyman32
#36122106Thursday, October 28, 2010 10:51 AM GMT

Do you want it to loop, like a realistic day/night cycle?
simonnater
#36122381Thursday, October 28, 2010 11:10 AM GMT

hi yes i would like to be morning afternoon the dusk ( night)
bloob827
#36122426Thursday, October 28, 2010 11:13 AM GMT

while true do game.Lighting.TimeOfDay = 14:00:00 wait(30) game.Lighting.TimeOfDay = 07:00:00 -- not sure if this is afternoon :/ wait(30) game.Lighting.TimeOfDay = 01:00:00 wait(30) end
Aerideyn
#36122483Thursday, October 28, 2010 11:16 AM GMT

for i = 0,24 do for j = 0,60 do game.Lighting.TimeOfDay = i..":"..j"..:00" wait(1) end end that will make time pass at 1 minute for each real life second.
Aerideyn
#36122521Thursday, October 28, 2010 11:18 AM GMT

correction for i = 0,24 do for j = 0,60 do game.Lighting.TimeOfDay = i..":"..j"..":00" wait(1) end end
simonnater
#36122533Thursday, October 28, 2010 11:18 AM GMT

humm, what do i do where do i put all those numbers ? and when i know where to put em do i have to wait in between ? like 1 minutefor morning 2 minutes for afternoon 1 minute for night and how do i hend do i just pres stop ? so i have to press play and at the end i press pause ?
Aerideyn
#36122543Thursday, October 28, 2010 11:19 AM GMT

not doing well am i... for i = 0,24 do for j = 0,60 do game.Lighting.TimeOfDay = i..":"..j..":00" wait(1) end end
simonnater
#36123437Thursday, October 28, 2010 12:10 PM GMT

for i = 0,24 do ( what does i stand for and where do i insert 0.24) ??
MrNicNac
#36123574Thursday, October 28, 2010 12:21 PM GMT

Use this, it is with the proper functions: local l = Game["Lighting"] while wait() do l:SetMinutesAfterMidnight(l:GetMinutesAfterMidnight() + .5) end
simonnater
#36128322Thursday, October 28, 2010 4:27 PM GMT

i dont get it
BloxBuilder900
#36128336Thursday, October 28, 2010 4:28 PM GMT

Just put that in a script in workspace. it works.
simonnater
#36128579Thursday, October 28, 2010 4:36 PM GMT

hi i pasted this 'Use this, it is with the proper functions: local l = Game["Lighting"] while wait() do l:SetMinutesAfterMidnight(l:GetMinutesAfterMidnight() + .5) end' in my script nothing ...
simonnater
#36164153Friday, October 29, 2010 7:56 AM GMT

bump ...
AgentFirefox
Top 100 Poster
#36165104Friday, October 29, 2010 10:26 AM GMT

Do you want REAL time? So the server is night when it's night outside? If so, you can use this (by the way, I don't know the Lighting methods... I'll have to play around with them later): function getTime() second_of_day = math.floor(tick() % 86400) hour = math.floor(second_of_day / 60 / 60) - 12 min = math.floor((second_of_day / 60 / 60 - hour)*60)-720 sec = math.floor(second_of_day - (min+720 + hour*60)*60) return {hour = math.abs(hour + 12), minute = min, second = sec} end repeat wait(4) local TIME = getTime() game.Lighting.TimeOfDay = TIME.hour..":"..TIME.minute..":"..TIME.second until false
simonnater
#36166057Friday, October 29, 2010 11:22 AM GMT

no i just want it so that its morning ffor 2 minutes then afternoon for2 minute then night for like 3 minutes not in real life you get what i am saying ? and once you have done it do i just put the stuff in a script and it starts to work ?
simonnater
#36171033Friday, October 29, 2010 3:38 PM GMT

Bump1
simonnater
#36173478Friday, October 29, 2010 5:20 PM GMT

Bump2 ...
CrazyJ114
#36175054Friday, October 29, 2010 6:15 PM GMT

This is not a request forum, it's for help, but I'll tell you these 2 functions. :SetMinutesAfterMidnight() :GetMinutesAfterMidnight() Those functions are for lighting, and you can put the getminutes inside the set minutes parenthesies, and add a plus and...er......it's hard to explain......
simonnater
#36217058Saturday, October 30, 2010 10:23 AM GMT

i dont get it -_- .... do i just put that in a script and there we go ?
bloob827
#36217404Saturday, October 30, 2010 10:53 AM GMT

Yes...
simonnater
#36230033Saturday, October 30, 2010 4:22 PM GMT

dont i modifie anything ? in the "() do i put a number ?
Spectrumw
#36230200Saturday, October 30, 2010 4:25 PM GMT

Simon, please, leave the forum and learn how to script.
simonnater
#36243242Saturday, October 30, 2010 7:40 PM GMT

how do i learn how to script .... im a veteran for 2 years i got the visors to proov it but im not a scripter but a great builder ..

    of     2   
chevron_rightchevron_rightchevron_right