|
| 23 Apr 2017 01:14 PM |
Like, left/right/top/bottom
The game is first person.
Please help me I've been stuck with this for 2 days now
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
Isosta
|
  |
| Joined: 10 May 2015 |
| Total Posts: 14729 |
|
|
| 23 Apr 2017 01:35 PM |
UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter UserInputService.InputChanged:connect(function(inputObject) if inputObject.UserInputType == Enum.UserInputType.MouseMovement then print("delta is (" .. tostring(inputObject.Delta.x) .. ", " .. tostring(inputObject.Delta.y) .. ")") end end)
if x is negative, then it moved to the left, if it moved to the right, then x is positive. positive y == up negative y == down.
or you can use lookvectors.
|
|
|
| Report Abuse |
|
|
| |
|
Isosta
|
  |
| Joined: 10 May 2015 |
| Total Posts: 14729 |
|
| |
|