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 Cursor Help

Previous Thread :: Next Thread 
ZeroSpectrum is not online. ZeroSpectrum
Joined: 02 Mar 2011
Total Posts: 315
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
ZeroSpectrum is not online. ZeroSpectrum
Joined: 02 Mar 2011
Total Posts: 315
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 is not online. 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
ZeroSpectrum is not online. ZeroSpectrum
Joined: 02 Mar 2011
Total Posts: 315
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 is online. 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
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