|
| 20 May 2012 09:49 AM |
OK, so, the script named 'timeOfday' is the child of Lighting. The code it contains is:
script.Parent.TimeOfDay = 06:00:00 wait(1) script.Parent.TimeOfDay = 12:00:00 wait(1) script.Parent.TimeOfDay = 18:00:00 wait(1) script.Parent.TimeOfDay = 00:00:00 wait(1) return -- -CR
I even put outputs in there once, but it isn't even showing them. I put the times in "s, and it still wouldn't work. Any help? Thanks!
-CR |
|
|
| Report Abuse |
|
|
|
| 20 May 2012 09:50 AM |
while true do script.Parent.TimeOfDay = 06:00:00 wait(1) script.Parent.TimeOfDay = 12:00:00 wait(1) script.Parent.TimeOfDay = 18:00:00 wait(1) script.Parent.TimeOfDay = 00:00:00 wait(1) end |
|
|
| Report Abuse |
|
|
Penjuin3
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 175 |
|
|
| 20 May 2012 09:50 AM |
| Place it in workspace, change script.Parent to game:GetService("Lighting") and see what happens |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 May 2012 09:53 AM |
@MasterOfDeathOnes, Still not working. Lemme try the other guy's one (sorry I'm calling you 'the other guy', but I didn't read your username before I started this post :/) |
|
|
| Report Abuse |
|
|
|
| 20 May 2012 09:55 AM |
Output is reading as: 15:54:06 - Workspace.timeOfday:2: unexpected symbol near ':' |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
| |
|
Valone
|
  |
| Joined: 08 Feb 2012 |
| Total Posts: 4371 |
|
|
| 20 May 2012 09:56 AM |
Scripts do not run in lighting....but add this into workspace.
Time = 0 while wait(1) do Time = Time+6 if Time > 24 then Time = 0 end game.Lighting.TimeOfDay = tostring(Time)..":00:00" end |
|
|
| Report Abuse |
|
|
|
| 20 May 2012 10:12 AM |
@above, but I want it to happen more than once, so that wouldn't work. |
|
|
| Report Abuse |
|
|
Valone
|
  |
| Joined: 08 Feb 2012 |
| Total Posts: 4371 |
|
| |
|
|
| 20 May 2012 10:14 AM |
Val's would work. If you cannot script, test before criticizing.
-[ ɥsɐɯsɹǝƃuɐɹ ]- |
|
|
| Report Abuse |
|
|
|
| 20 May 2012 10:23 AM |
| You're implying that I can't script? |
|
|
| Report Abuse |
|
|
Valone
|
  |
| Joined: 08 Feb 2012 |
| Total Posts: 4371 |
|
|
| 20 May 2012 10:25 AM |
| Yes, because the majority of scripters would recognise that to be a continuous loop. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
| |
|
|
| 20 May 2012 10:28 AM |
| So you wouldn't forget that after 2 years of not playing, forgetting your login and then having to make another? |
|
|
| Report Abuse |
|
|
Valone
|
  |
| Joined: 08 Feb 2012 |
| Total Posts: 4371 |
|
|
| 20 May 2012 10:28 AM |
| I like to be precise with my instructions. |
|
|
| Report Abuse |
|
|
Valone
|
  |
| Joined: 08 Feb 2012 |
| Total Posts: 4371 |
|
|
| 20 May 2012 10:29 AM |
| @Clutch, no you would not. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 20 May 2012 10:30 AM |
but u laik insult lua cuz he can laik do it without tostring helpppp derppp
|
|
|
| Report Abuse |
|
|
Maradar
|
  |
| Joined: 06 Mar 2012 |
| Total Posts: 4478 |
|
|
| 20 May 2012 10:31 AM |
while true do script.Parent.TimeOfDay = 06:00:00 wait(1) script.Parent.TimeOfDay = 12:00:00 wait(1) script.Parent.TimeOfDay = 18:00:00 wait(1) script.Parent.TimeOfDay = 00:00:00 wait(1) return else end |
|
|
| Report Abuse |
|
|
|
| 20 May 2012 10:31 AM |
| @Valone - Your blurb is a lie. I know tons of female scripters. Most of them don't come on SH anymore, but the majority are still on ROBLOX nonetheless. :P |
|
|
| Report Abuse |
|
|
|
| 20 May 2012 10:31 AM |
| Val, you don't know what I forget and what I do not. |
|
|
| Report Abuse |
|
|
Valone
|
  |
| Joined: 08 Feb 2012 |
| Total Posts: 4371 |
|
|
| 20 May 2012 10:32 AM |
@Electric. I know a lot of female scripters who can do very little. But not the sort of scripting I am on about.
Although, if you can show me, I'd love to meet them. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 20 May 2012 10:33 AM |
If you forget that simple things you should either, a) quit trying to script b) hang yourself |
|
|
| Report Abuse |
|
|
rayoma
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 1911 |
|
|
| 20 May 2012 10:34 AM |
@clutch To make this easier on you, there's two methods in lighting known as `GetMinutesAfterMidnight()` and `SetMinutesAfterMidnight()` so you can easily make a working TimeOfDay script by just doing this :
local l=game.Lighting; while Wait() do l:SetMinutesAfterMidnight(l:GetMinutesAfterMidnight()+1); end |
|
|
| Report Abuse |
|
|
Maradar
|
  |
| Joined: 06 Mar 2012 |
| Total Posts: 4478 |
|
|
| 20 May 2012 10:35 AM |
@su8 "b) hang yourself"
Threatening much? |
|
|
| Report Abuse |
|
|