Advertisement
Pukaciu

Untitled

Jul 31st, 2021
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. local Zinput = Instance.new("RemoteEvent", owner)
  2.  
  3. NLS([[
  4. -- We must get the UserInputService before we can use it
  5. local UserInputService = game:GetService("UserInputService")
  6.  
  7. -- A sample function providing one usage of InputBegan
  8. local function onInputBegan(input, gameProcessed)
  9. if input.KeyCode== Enum.KeyCode.Z then
  10. print("The left mouse button has been pressed!")
  11. Zinput:FireServer()
  12. end
  13. end
  14.  
  15. UserInputService.InputBegan:Connect(onInputBegan)
  16.  
  17.  
  18.  
  19. ]], owner.Backpack)
  20.  
  21. local function task(owner, input)
  22. print(owner.Name)
  23. end
  24.  
  25. Zinput.OnServerEvent:Connect(task)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement