|
| 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 |
|
|
|
| 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
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
|
| 08 Mar 2015 03:09 PM |
| I don't think GetMouse() is a real event. |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2015 03:09 PM |
I am pretty sure it is.
[Haydebug2003] [LMaDer] |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|