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
 

Is this possible?

Previous Thread :: Next Thread 
thombot2 is not online. thombot2
Joined: 15 Oct 2008
Total Posts: 104
16 Jul 2013 02:21 PM
Say I have a hopperbin tool selected. I click a brick and the color of it is blue. Is it possible to make the tool do something depending on the color of the brick it clicks?
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
16 Jul 2013 02:26 PM
Yeah.
Use the Target property of the mouse.
Check to see if it exists, then you know for sure that it is the BasePart that you clicked on.
Compare the BrickColor property to a BrickColor value, such as BrickColor.new("Bright red") or something.

http://wiki.roblox.com/index.php/Target_(Property)/mouse
Report Abuse
thombot2 is not online. thombot2
Joined: 15 Oct 2008
Total Posts: 104
16 Jul 2013 03:28 PM
Thank you.
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