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: Troubleshoot?

Previous Thread :: Next Thread 
Tempestatem is not online. Tempestatem
Joined: 12 Nov 2010
Total Posts: 1618
23 Dec 2013 08:54 PM
if script.Parent.BrickColor==BrickColor.new"Really red" then
game.Workspace.EmergencyLight.Part1.SpotLight.Enabled=true
game.Workspace.EmergencyLight.Part2.SpotLight.Enabled=true

elseif script.Parent.BrickColor==BrickColor.new"Bright blue" then
game.Workspace.EmergencyLight.Part1.SpotLight.Enabled=false
game.Workspace.EmergencyLight.Part2.SpotLight.Enabled=false
end




Basically, if the scripts parents color is really red then the spotlight is enabled

but if it is bright blue, it is disabled (Turned off)

Help?
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
23 Dec 2013 08:59 PM
Give me a gun and I'll help troubleshoot.

"U BROKE THE TV U IDIOT!" - CeaselessSoul
Report Abuse
Tempestatem is not online. Tempestatem
Joined: 12 Nov 2010
Total Posts: 1618
23 Dec 2013 09:20 PM
Bump
Report Abuse
Tempestatem is not online. Tempestatem
Joined: 12 Nov 2010
Total Posts: 1618
25 Dec 2013 01:25 PM
Bump
Report Abuse
Vaporation is not online. Vaporation
Joined: 08 Jun 2011
Total Posts: 1397
25 Dec 2013 01:26 PM
BrickColor.new("Bright blue")
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