Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

help with MouseBehavior?

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

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

This discussion is preserved as it was. New answers, comments, and votes are closed.