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: Help please?

Previous Thread :: Next Thread 
andre09 is not online. andre09
Joined: 09 Aug 2008
Total Posts: 85
21 Jan 2012 04:49 PM
Brick = script.Parent
door = script.Parent.Parent.Door
function onClicked()
Brick.BrickColor = BrickColor.new("Bright green")
door.CanCollide = false
wait(2)
Brick.BrickColor = BrickColor.new = ("Bright red")
door.CanCollide = true
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

With this script, i am trying to make the brick named "Brick" turn a certain color while making the brick named "Door" transperany? What am i doing wrong?
Report Abuse
andre09 is not online. andre09
Joined: 09 Aug 2008
Total Posts: 85
21 Jan 2012 04:50 PM
Sorry There is an equal sign when stating the brick color.
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
21 Jan 2012 05:04 PM
I dont think you need an "end"
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
21 Jan 2012 05:06 PM
@Wow Why would you not need one?

† KMXD †
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
21 Jan 2012 05:07 PM
Brick = script.Parent
door = script.Parent.Parent.Door

function onClicked()
Brick.BrickColor = BrickColor.new("Bright green")
door.CanCollide = false
wait(2)
Brick.BrickColor = BrickColor.new("Bright red")
door.CanCollide = true
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)


?
† KMXD †
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
21 Jan 2012 05:08 PM
Epic fail, i didnt see the function xD.
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