Advertisement
Pukaciu

Untitled

Jul 31st, 2021
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. NLS([[
  2. -- We must get the UserInputService before we can use it
  3. local UserInputService = game:GetService("UserInputService")
  4.  
  5. -- A sample function providing one usage of InputBegan
  6. local function onInputBegan(input, gameProcessed)
  7. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  8. print("The left mouse button has been pressed!")
  9. end
  10. end
  11.  
  12. UserInputService.InputBegan:Connect(onInputBegan)
  13.  
  14.  
  15.  
  16. ]])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement