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 » Scripters
Home Search
 

Re: Is there a way to detect mouse hover on a part?

Previous Thread :: Next Thread 
ex350 is not online. ex350
Joined: 25 Mar 2014
Total Posts: 11
07 Nov 2017 11:34 AM
Im making a game, and i'm wondering how i make so a code runs when i hover over a brick
Report Abuse
jaden2blox is not online. jaden2blox
Joined: 11 Dec 2011
Total Posts: 3057
07 Nov 2017 11:36 AM
@ex350

I know there is a way to do that, but I'm not exactly sure how.
Report Abuse
Valyrian_Advisor is not online. Valyrian_Advisor
Joined: 13 Apr 2013
Total Posts: 1703
07 Nov 2017 11:43 AM
Use .Move() event to detect when the mouse has been moved by the user, and check if the target is the brick you want with:
if mouse.Target.Name == "Name of the brick" then
--do things
end


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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