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: Need a gui that comes up when your mouse hovers over a part

Previous Thread :: Next Thread 
GamerX2O is not online. GamerX2O
Joined: 29 Nov 2013
Total Posts: 93
19 Jan 2016 08:09 PM
So there was a new game that came out called The Forest. In it all the plants and rocks and basically anything you could pick up had a little Hand GUI floating above it. I looked up as much as I could but could not figure out how to do this. Another example would be when you insert a humanoid into an object a name appears above the object. I want to be able to do this but make the name not be a name but rather an image. And have this only happen when the mouse hovers over the part. If you have any questions on what I am asking for, ask away
Report Abuse
NecroBumpism is not online. NecroBumpism
Joined: 25 Nov 2015
Total Posts: 534
19 Jan 2016 08:10 PM
game.Players.LocalPlayer:GetMouse().Target
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
19 Jan 2016 08:11 PM
You could either:
Use a ScreenGui and LocalScript within each player and continuously check to see if the player is pointing at an applicable object.
Or use a ClickDetector and use the MouseHover (or something similar) event and execute it that way.
Report Abuse
GamerX2O is not online. GamerX2O
Joined: 29 Nov 2013
Total Posts: 93
19 Jan 2016 08:12 PM
The only problem is the Local Player. I have had an issue with this where LocalPlayer only works in studio, not online
Report Abuse
GamerX2O is not online. GamerX2O
Joined: 29 Nov 2013
Total Posts: 93
19 Jan 2016 08:13 PM
Thanks, i'll try this and if it doesnt work then i'll tell you. Please follow thread and help me later if i need it! :D that would be nice
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
19 Jan 2016 08:13 PM
http://wiki.roblox.com/index.php?title=API:Class/ClickDetector
MouseHoverEnter, MouseHoverLeave.

Or use Mouse.Target
Report Abuse
GamerX2O is not online. GamerX2O
Joined: 29 Nov 2013
Total Posts: 93
19 Jan 2016 08:15 PM
Ok this is all good. But this makes a screen gui yes? I want a gui that hovers over the part. Like a name tag hovers over an AI
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
19 Jan 2016 08:16 PM
In that case use a Billboard Gui.
Report Abuse
GamerX2O is not online. GamerX2O
Joined: 29 Nov 2013
Total Posts: 93
19 Jan 2016 08:21 PM
How do you make a Billboard GUI stop showing once you are at a certain distance? And when there are multiple people?
Report Abuse
NecroBumpism is not online. NecroBumpism
Joined: 25 Nov 2015
Total Posts: 534
19 Jan 2016 08:23 PM
use of (vector1-vector2).magnitude and Players.NumPlayers
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