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: Some help with this script?

Previous Thread :: Next Thread 
Haxcler is not online. Haxcler
Joined: 17 Mar 2015
Total Posts: 6
23 Aug 2015 11:54 AM
I'm trying to make the text change when the TimeOfDay is 7:00:00
but when I do it don't some help?
This is the script I make and don't work:

while true do
if game.Lighting.TimeOfDay and "7:00:00" then
do
script.Parent.Text = "SomeTextHere"
end
end

end
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
23 Aug 2015 11:56 AM
while wait() do
if game.Lighting.TimeOfDay == "7:00:00" then
script.Parent.Text = "Some text here"
end
end
Report Abuse
tanlord173 is not online. tanlord173
Joined: 25 Nov 2009
Total Posts: 3916
23 Aug 2015 11:57 AM
Why would it be while wait() do? Is it because a while true do loop wouldn't work, as it would be time based or...?
Report Abuse
robloxer8282 is not online. robloxer8282
Joined: 25 Dec 2012
Total Posts: 819
23 Aug 2015 12:10 PM
@tan while true do would crash your game without a wait()
and thats what while wait() do does
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
23 Aug 2015 12:16 PM
while wait() do
end

is, for intents and purposes, identicle to

while true do
wait()
end

I wouldn't use 'while wait() do' if I needed an actual condition for the while/do loop.

while x == 1 do
wait()
end
Report Abuse
Haxcler is not online. Haxcler
Joined: 17 Mar 2015
Total Posts: 6
23 Aug 2015 01:52 PM
Thanks for the help :D
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