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: HOW DO I GET THE MOUSE CURSOR'S POSITION

Previous Thread :: Next Thread 
Uiom19 is not online. Uiom19
Joined: 17 Mar 2015
Total Posts: 144
17 Apr 2017 11:36 AM
i want to have a gui the position of the time of the mouse cursor
Report Abuse
QuantumNexsus is not online. QuantumNexsus
Joined: 09 Nov 2014
Total Posts: 2451
17 Apr 2017 11:36 AM
Mouse.Hit.p


R$1,097
Report Abuse
AxonMega is online. AxonMega
Joined: 29 Aug 2014
Total Posts: 2403
17 Apr 2017 11:36 AM
mouse.X and mouse.Y
Report Abuse
odem074 is not online. odem074
Joined: 02 Jun 2013
Total Posts: 277
17 Apr 2017 11:37 AM
mouse.hit or mouse.hit.p


#code
Report Abuse
Uiom19 is not online. Uiom19
Joined: 17 Mar 2015
Total Posts: 144
17 Apr 2017 11:37 AM
wait what im confused which one it is
Report Abuse
RogueMage is not online. RogueMage
Joined: 28 Jan 2012
Total Posts: 1235
17 Apr 2017 11:37 AM
Axon's is right


Person above him might have misunderstood (it gives world coordinates, not screen coordinates)
Report Abuse
AxonMega is online. AxonMega
Joined: 29 Aug 2014
Total Posts: 2403
17 Apr 2017 11:38 AM
mouse.Hit.p gives 3D coordinates in studs, mouse.X and mouse.Y give screen coordinates in pixels.
Report Abuse
QuantumNexsus is not online. QuantumNexsus
Joined: 09 Nov 2014
Total Posts: 2451
17 Apr 2017 11:43 AM
I forgot about that lol Use axons method.


R$1,097
Report Abuse
Uiom19 is not online. Uiom19
Joined: 17 Mar 2015
Total Posts: 144
17 Apr 2017 11:46 AM
i set it to that but the gui appears way lower than the cursor how do i fix this?
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
17 Apr 2017 11:48 AM
that is only in studio because of it being glitchy
try it in game
Report Abuse
thebayou is not online. thebayou
Joined: 21 Dec 2014
Total Posts: 628
17 Apr 2017 11:54 AM
You messed up offset and scale.


||THEBAYOU|| - Almost famous dude
Report Abuse
sockhouse is not online. sockhouse
Joined: 02 Apr 2017
Total Posts: 52
17 Apr 2017 11:59 AM
UDim2.new(0, game.Players.LocalPlayer:GetMouse().X, 0, game.Players.LocalPlayer:GetMouse().Y)

thats what i did
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
17 Apr 2017 12:30 PM
read what i said
Report Abuse
sockhouse is not online. sockhouse
Joined: 02 Apr 2017
Total Posts: 52
17 Apr 2017 12:43 PM
still doesnt work do u think its because the size of the textlabel is 0,0,0,0?
Report Abuse
TheCaptainTeach is online. TheCaptainTeach
Joined: 11 Jul 2015
Total Posts: 3846
17 Apr 2017 01:02 PM
local mouse = game.Players.LocalPlayer:getMouse()
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