igunaa
|
  |
| Joined: 15 Sep 2010 |
| Total Posts: 2588 |
|
|
| 24 Mar 2016 08:52 PM |
Can a script running on a Gui of a Player get the TimeOfDay property of Lighting? Or I`d have to make a other way round?
Said the wise. |
|
|
| Report Abuse |
|
|
WoolHat
|
  |
| Joined: 19 May 2013 |
| Total Posts: 1873 |
|
| |
|
| |
|
igunaa
|
  |
| Joined: 15 Sep 2010 |
| Total Posts: 2588 |
|
|
| 24 Mar 2016 08:54 PM |
I am, I`m trying to use the .Changed event to fire a time change on a Gui, as here
t = script.Parent.T.H.Text -- This is a TextLabel Text property.
game.Lighting.Changed:connect(function (TimeOfDay) if game.Lighting.TimeOfDay == "08:00:00" then t = "8 AM" end end) |
|
|
| Report Abuse |
|
|
WoolHat
|
  |
| Joined: 19 May 2013 |
| Total Posts: 1873 |
|
|
| 24 Mar 2016 08:58 PM |
t = script.Parent.T.H -- This is a TextLabel Text property.
game.Lighting.Changed:connect(function (TimeOfDay) if game.Lighting.TimeOfDay == "08:00:00" then t.Text = "8 AM" -- the .Text was your problem here. end end) |
|
|
| Report Abuse |
|
|
igunaa
|
  |
| Joined: 15 Sep 2010 |
| Total Posts: 2588 |
|
|
| 24 Mar 2016 09:01 PM |
Thanks, I never knew that I couldn`t assing a property as a variable.
Said the wise. |
|
|
| Report Abuse |
|
|