Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

help with MouseBehavior?

Asked by
qwrn12 85
8 years ago

i have a question does

game:GetService("UserInputService").MouseBehavior = Enum.MouseBehavior.LockCenter
game:GetService("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)
--Got this from wiki

this calculate what direction you move the mouse?

1 answer

Log in to vote
0
Answered by 8 years ago

If you got his from the wiki, you should probably read the whole wiki page. It probably tells you what it does.

Ad

Answer this question