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: Mouse position on TextButton

Previous Thread :: Next Thread 
TheTerminator01 is not online. TheTerminator01
Joined: 05 May 2009
Total Posts: 97
16 Aug 2013 11:53 PM
How do I found out the mouse's position when it's on/dragging a textbutton?
Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
16 Aug 2013 11:54 PM
[ Content Deleted ]
Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
16 Aug 2013 11:55 PM
[ Content Deleted ]
Report Abuse
TheTerminator01 is not online. TheTerminator01
Joined: 05 May 2009
Total Posts: 97
16 Aug 2013 11:59 PM
Can you give me an example of the mouse hover event? I can't find anything on the wiki about it.
Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
17 Aug 2013 12:01 AM
[ Content Deleted ]
Report Abuse
TheTerminator01 is not online. TheTerminator01
Joined: 05 May 2009
Total Posts: 97
17 Aug 2013 12:10 AM
No dice, tried this but it said it wasn't a valid member of TextButton.

b = script.Parent.Frame.Button
hover = false

b.MouseHover:connect(function(x,y)
if not hover then
hover = true
print(x)
print(y)
end
delay(2, function()
hover = false
end)
end)
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 12:13 AM
There is no such thing as "MouseHover" that's why.
Report Abuse
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
17 Aug 2013 12:14 AM
^Hes right Its MouseEnter and MouseLeave
Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
17 Aug 2013 12:15 AM
[ Content Deleted ]
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 12:15 AM
^He is also right x3
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 12:16 AM
NOO Y U COMMENT NOA I SUND RETURDED q.q


-- my last post was supposed to be for the person above the girl :p --
Report Abuse
TheTerminator01 is not online. TheTerminator01
Joined: 05 May 2009
Total Posts: 97
17 Aug 2013 12:16 AM
Are their parameters on the MouseEnter and MouseLeave events that I can use to find the mouse's location?
Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
17 Aug 2013 12:17 AM
[ Content Deleted ]
Report Abuse
TheTerminator01 is not online. TheTerminator01
Joined: 05 May 2009
Total Posts: 97
17 Aug 2013 12:18 AM
Why does this have to be so hard, I just wanna make a simple button move along another textbutton without it going over the boundaries. >:(
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 12:19 AM
http://wiki.roblox.com/index.php/Origin_(Property)

http://wiki.roblox.com/index.php/Hit_(Property)

http://wiki.roblox.com/index.php/X_(Property)

http://wiki.roblox.com/index.php/Y_(Property)


Although it's not on the gui, I believe you can use those to get the Mouse location.
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 12:19 AM
http://wiki.roblox.com/index.php/Origin_(Property)

http://wiki.roblox.com/index.php/Hit_(Property)

http://wiki.roblox.com/index.php/X_(Property)

http://wiki.roblox.com/index.php/Y_(Property)


Although it's not on the gui, I believe you can use those to get the Mouse location.
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 12:20 AM
Double post.. fml
Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
17 Aug 2013 12:21 AM
[ Content Deleted ]
Report Abuse
TheTerminator01 is not online. TheTerminator01
Joined: 05 May 2009
Total Posts: 97
17 Aug 2013 12:23 AM
Thanks, those wiki links actually helped. Just one more question (I probably sound like an idiot now), can I use those properties on a TextButton or other stuff like that?
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 12:26 AM
No those properties are for mouse only (meaning you'll have to put the in the playergui or backpack) of them(Local too okay).

But you can probably find some way for it to work the way you want it.


Or you can use this: http://wiki.roblox.com/index.php/MouseMoved_(Event)

Which are made to work for textbuttons and is an event that is fired when the mouse is moved. :P
Report Abuse
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
17 Aug 2013 12:28 AM
^Lol, u r knot rtard to me c:
Report Abuse
TheTerminator01 is not online. TheTerminator01
Joined: 05 May 2009
Total Posts: 97
17 Aug 2013 12:29 AM
Thanks for the help!
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
17 Aug 2013 12:30 AM
All in a days work ^.^
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