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
 

if true the brick color changes

Previous Thread :: Next Thread 
awesomewiloliam123 is not online. awesomewiloliam123
Joined: 19 Aug 2012
Total Posts: 366
15 Jan 2014 03:27 PM
while true do
if (Script.Parent.Parent.part2.BrickColor == Green) then
Script.Parent.BrickColor = BrickColor.Red()
end
if (Script.Parent.Parent.part1.BrickColor == Red) then
Script.Parent.BrickColor = BrickColor.Green()
end
end

It isnt working. I checked if it was right too....
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
15 Jan 2014 03:33 PM
Obviously didn't check if it was right, because it's not.

if (Script.Parent.Parent.part2.BrickColor == Green) then
should be

if (Script.Parent.Parent.part2.BrickColor == BrickColor.new("Green"))then
And I don't even think green is a ROBLOX colour.
Report Abuse
awesomewiloliam123 is not online. awesomewiloliam123
Joined: 19 Aug 2012
Total Posts: 366
15 Jan 2014 03:39 PM
thank you
Green is a roblox color
Report Abuse
iWasted1000Robux is not online. iWasted1000Robux
Joined: 26 Oct 2013
Total Posts: 813
15 Jan 2014 03:53 PM
while true do without a wait()?
gg.

#nerdsunited
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
15 Jan 2014 04:03 PM
Put some waits on there or it will crash.
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