|
| 12 Oct 2013 02:23 AM |
So basically, I want to create a script or a way for a gui to follow my mouse and act like a cursor, but I have no idea where to start. If there's a way to attach a gui object to your mouse, that would be splendid. Heck, even a roblox wiki page would be helpful, because if there is one I can't seem to find it.
Any and all help is appreciated, thanks. |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2013 02:49 AM |
| I'm suprised nobody has replied yet. I'll just assume there is no way to make a GUI object into a mouse cursor, and I'll have to upload 2 seprate icons for both the hitmarker, and the default cursor. I COULD force fps and just place the gui in the center of the screen but I'm not sure I want to do that for the entire game... |
|
|
| Report Abuse |
|
|
Geodesic
|
  |
| Joined: 02 Jun 2013 |
| Total Posts: 998 |
|
|
| 12 Oct 2013 03:08 AM |
local player = game.Players.LocalPlayer local mouse = player:GetMouse()
mouse.Move:connect(function() gui.Position = UDim2.new(0,mouse.X,0,mouse.Y) end) |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2013 09:33 PM |
Wow, that's so easy even a cave man could do it...
Thank you for your help kind sir. I now have multiple guis working beside the mouse cursor.
|
|
|
| Report Abuse |
|
|
spynaz
|
  |
| Joined: 17 Feb 2011 |
| Total Posts: 1326 |
|
|
| 12 Oct 2013 09:47 PM |
Extra loops = extra lag
Best way: player:GetMouse().Icon = "" --Put the texture id between the parenthesis |
|
|
| Report Abuse |
|
|