Mryeetmemes

Local Script

Dec 9th, 2021
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local Tool = script.Parent;
  2.  
  3. enabled = true
  4. function onButton1Down(mouse)
  5. if not enabled then
  6. return
  7. end
  8. enabled = false
  9. wait()
  10. Tool.Handle.Fired.Volume = 1
  11. script.Parent:remove()
  12. end
  13.  
  14. function onEquippedLocal(mouse)
  15.  
  16. if mouse == nil then
  17. print("Mouse not found")
  18. return
  19. end
  20.  
  21. mouse.Icon = "http://www.roblox.com/asset/?id=2608850"
  22. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  23. end
  24.  
  25.  
  26.  
  27. Tool.Equipped:connect(onEquippedLocal)
Advertisement
Add Comment
Please, Sign In to add comment