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 |
|
|
|
| 19 Jan 2016 08:10 PM |
| game.Players.LocalPlayer:GetMouse().Target |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 19 Jan 2016 08:16 PM |
| In that case use a Billboard Gui. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 19 Jan 2016 08:23 PM |
| use of (vector1-vector2).magnitude and Players.NumPlayers |
|
|
| Report Abuse |
|
|