Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.inputEndedConnection = userInputService.InputEnded:connect(function(inputObject, gameProcessedEvent)
- if inputObject.UserInputType == Enum.UserInputType.Gamepad1 then
- if inputObject.KeyCode == Enum.KeyCode.Thumbstick2 then
- self.deltaAngleX = 0
- self.deltaAngleY = 0
- end
- elseif inputObject.UserInputType == Enum.UserInputType.MouseMovement then
- self.deltaAngleX = 0
- self.deltaAngleY = 0
- end
- end)
Add Comment
Please, Sign In to add comment