Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UserInputService = game:GetService("UserInputService")
- UserInputService.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
- print("Computer")
- else
- if input.UserInputType == Enum.UserInputType.Touch then
- print("Touch device")
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement