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: Why isn't this script wrking!!???

Previous Thread :: Next Thread 
robloxboy54 is not online. robloxboy54
Joined: 20 Nov 2010
Total Posts: 286
04 Jun 2013 03:34 PM
b=game.Workspace.Brick

if b.Reflectance==0 then
b.Anchored=false
wait(3)
b.Anchored=true --we're changing the boolvalue to true so it will stop falling after 3 seconds.
else
b.BrickColor = BrickColor.new("Bright red")
end


It's good and all but if the reflectance isn't "0", than isn't the brick supposed to turn Bright red? It doesn't do that, it just stays the same.Why is that?
Report Abuse
robloxboy54 is not online. robloxboy54
Joined: 20 Nov 2010
Total Posts: 286
04 Jun 2013 03:38 PM
Hello? Anyone?
Report Abuse
Saodo is not online. Saodo
Joined: 26 Jul 2011
Total Posts: 1206
04 Jun 2013 03:41 PM
if game.Workspace.Brick.Reflectance ==0 then
game.Workspace.Brick.Anchored = false
wait(3)
game.Workspace.Brick.Anchored = true

else
game.Workspace.Brick.BrickColor = BrickColor.new ("Bright red")
end


This script works. Place it in the "Workspace"
Report Abuse
Saodo is not online. Saodo
Joined: 26 Jul 2011
Total Posts: 1206
04 Jun 2013 03:44 PM
b=game.Workspace.Brick

if b.Reflectance ==0 then
b.Anchored = false
wait(3)
b.Anchored = true

else
b.BrickColor = BrickColor.new ("Bright red")
end


This script also works. Remember to put it in "Workspace"
Report Abuse
Saodo is not online. Saodo
Joined: 26 Jul 2011
Total Posts: 1206
04 Jun 2013 03:45 PM
Use this script if you want to place the script inside the "Brick"

b=script.Parent

if b.Reflectance ==0 then
b.Anchored = false
wait(3)
b.Anchored = true

else
b.BrickColor = BrickColor.new ("Bright red")
end
Report Abuse
robloxboy54 is not online. robloxboy54
Joined: 20 Nov 2010
Total Posts: 286
04 Jun 2013 06:23 PM
k thx
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