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 » Game Design
Home Search
 

Re: what's wrong with this script

Previous Thread :: Next Thread 
missyblue is not online. missyblue
Joined: 23 Oct 2009
Total Posts: 372
10 May 2015 12:04 PM
while true do
wait(1)
script.Parent.BrickColor = BrickColor.Random()
end

if script.Parent.BrickColor.Number (1004) == true then
wait(0.01)
script.Parent.Transparency = 1
end

What is suppose to happen, is that when the color of the Part is "Really red", it will make the part's transparency 1. For some reason that's not working, can anyone point me in the right way?
Report Abuse
coolzzzzzz is not online. coolzzzzzz
Joined: 19 Jun 2007
Total Posts: 138
10 May 2015 12:08 PM
1 Transparency is really hard to notice. Bump it to 10 and you might see results.
Report Abuse
missyblue is not online. missyblue
Joined: 23 Oct 2009
Total Posts: 372
10 May 2015 12:16 PM
Prettyyyy sureee 1 is noticeable. 0.1 isn't but 1 issss
Report Abuse
Parkderp1 is not online. Parkderp1
Joined: 19 Jan 2014
Total Posts: 139
10 May 2015 12:18 PM
put the if statement in the loop
Report Abuse
missyblue is not online. missyblue
Joined: 23 Oct 2009
Total Posts: 372
10 May 2015 12:37 PM
Doesn't work either
Report Abuse
GhostSailor is not online. GhostSailor
Joined: 02 Jul 2010
Total Posts: 1913
10 May 2015 12:43 PM
while wait(1) do
script.Parent.BrickColor = BrickColor.Random()
print(script.Parent.BrickColor)
if script.Parent.BrickColor == BrickColor.new("Really red") then
wait(.01)
script.Parent.Transparency = 1
else
script.Parent.Transparency = 0
end
end

Lord of all things, breaded and unbreaded.
Report Abuse
missyblue is not online. missyblue
Joined: 23 Oct 2009
Total Posts: 372
10 May 2015 12:52 PM
Dang, thank you
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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