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: Changed Instance

Previous Thread :: Next Thread 
TheLlamaOfGB is not online. TheLlamaOfGB
Joined: 14 Apr 2009
Total Posts: 92
28 Aug 2014 12:49 PM
Hi,
I'm trying to make lights change colour on a bool value that is in workspace.

Cooling = game.Workspace.Cooling
Light = script.Parent.SpotLight

function Cooling.Changed:connect
if (Cooling == false) then
Light.Color = Color3.new (170,0,0)
else
Light.Color = Color3.new (255, 247, 187)
end
end


Above is what I have so far, but I'm unfamiliar with using functions, or Changed, so I'm somewhat in the dark, could anyone offer any assistance?

Help is much appreciated.
Report Abuse
TheLlamaOfGB is not online. TheLlamaOfGB
Joined: 14 Apr 2009
Total Posts: 92
28 Aug 2014 12:52 PM
(Worth noting: The issue displayed currently is as follows:
if (Cooling == false) then
"'(' expected near 'If'"
Report Abuse
TheLlamaOfGB is not online. TheLlamaOfGB
Joined: 14 Apr 2009
Total Posts: 92
28 Aug 2014 01:20 PM
Edit: I changed to Cooling.Value
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