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 » Scripting Helpers
Home Search
 

Re: if and else

Previous Thread :: Next Thread 
Xkrew is not online. Xkrew
Joined: 06 Dec 2013
Total Posts: 1044
08 Jun 2014 09:58 AM
this script dont work


if game.Lighting.TimeOfDay = 00:00:00 then
script.Parent.SpotLight.Enabled = true
script.Parent.Light.Enabled = true
end
else
if game.Lighting.TimeOfDay = 12:00:00 then
script.Parent.SpotLight.Enabled = false
script.Parent.Light.Enabled = false
end
Report Abuse
Xkrew is not online. Xkrew
Joined: 06 Dec 2013
Total Posts: 1044
08 Jun 2014 10:00 AM
bump
Report Abuse
Xkrew is not online. Xkrew
Joined: 06 Dec 2013
Total Posts: 1044
08 Jun 2014 10:03 AM
bump plz this is so easy
Report Abuse
planesoldier is not online. planesoldier
Joined: 26 Sep 2010
Total Posts: 533
08 Jun 2014 10:04 AM
If its so easy then why dont you fix it yourself?
And whats the error?
Report Abuse
Xkrew is not online. Xkrew
Joined: 06 Dec 2013
Total Posts: 1044
08 Jun 2014 10:08 AM
if game.Lighting.TimeOfDay = 00:00:00 then
script.Parent.SpotLight.Enabled = true
script.Parent.Light.Enabled = true
end
elseif
if game.Lighting.TimeOfDay = 12:00:00 then
script.Parent.SpotLight.Enabled = false
script.Parent.Light.Enabled = false
end

tnen expected near '='
Report Abuse
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
08 Jun 2014 10:12 AM
if game.Lighting.TimeOfDay == "00:00:00" then
script.Parent.SpotLight.Enabled = true
script.Parent.Light.Enabled = true
elseif game.Lighting.TimeOfDay == "12:00:00" then
script.Parent.SpotLight.Enabled = false
script.Parent.Light.Enabled = false
end
end
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
08 Jun 2014 10:13 AM
if game.Lighting.TimeOfDay == 00:00:00 then

if game.Lighting.TimeOfDay == 12:00:00 then
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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