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 » Scripters
Home Search
 

Re: Question Client/Server based.

Previous Thread :: Next Thread 
igunaa is not online. 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 is online. WoolHat
Joined: 19 May 2013
Total Posts: 1873
24 Mar 2016 08:53 PM
It can.
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
24 Mar 2016 08:53 PM
why dont u try it?
Report Abuse
igunaa is not online. 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 is online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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