Info box on mouse hover


When I have a item and I want the player to receive info about that info so they know what they will buy. So the easiest way to do this is to have a GUI box that follows the cursor when you hover over the other GUI button. So if you know how to do this, please tell me!


Also, please write the script in JS.

To check if your mouseposition is on a certain GUITexture/GUIText, use the HitTest Here, Then just set the GUI textlocation the same as the Mouse position, using this.

The PixelInset is tricky, make sure to set the objects Transform.position to (0, 0, x), because x and y (min: 0, max: 1) are relative to your screenposition, while pixelInset makes a margin from the relative position!