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: :GetMouse()?

Previous Thread :: Next Thread 
haydebug2003 is not online. haydebug2003
Joined: 21 Jan 2012
Total Posts: 5302
08 Mar 2015 03:06 PM
I am trying to locate a players mouse position. How would I do it?
Is it like this?
game.Players.LocalPlayer:GetMouse().Position


[Haydebug2003] [LMaDer]
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
08 Mar 2015 03:07 PM
X,Y Format: mouse.Hit (i think?)

To find the block: mouse.Target

To find the CFrame: mouse.Hit.p
Report Abuse
Bitwyl is not online. Bitwyl
Joined: 15 Nov 2014
Total Posts: 7276
08 Mar 2015 03:09 PM
I don't think GetMouse() is a real event.
Report Abuse
haydebug2003 is not online. haydebug2003
Joined: 21 Jan 2012
Total Posts: 5302
08 Mar 2015 03:09 PM
I am pretty sure it is.


[Haydebug2003] [LMaDer]
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
08 Mar 2015 03:09 PM
@Bit

yes it is.
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
08 Mar 2015 03:11 PM
Its not an event, its a method or function (idk mucha bout terms)

anyway


mouse.X
mouse.Y -- On the screen

mouse.Hit -- in the game
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
08 Mar 2015 03:13 PM
local Mouse = game.Players.LocalPlayer:GetMouse()

local MouseX, MouseY = Mouse.X, Mouse.Y -- 2D position on screen (Like GUIs)
local MouseCFrame = Mouse.Hit -- 3D position in world (CFrame)
local MouseVector3 = Mouse.Hit.p -- Vector3 of 3d position in world
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