Advertisement
replic8

Untitled

Jul 1st, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. Tool = script.Parent
  2. enabled = true
  3. function onButton1Down(mouse)
  4. if not enabled then
  5. return
  6. end
  7. enabled = false
  8. mouse.Icon="rbxasset://textures\\GunWaitCursor.png"
  9. eye=script.Parent:FindFirstChild("Handle")
  10. eye=eye:FindFirstChild("Script")
  11. if eye~=nil then
  12. eyeclone=eye:clone()
  13. eyeclone.Parent=script.Parent:FindFirstChild("Handle")
  14. if eye.Disabled==true then
  15. eye.Disabled=false
  16. end end
  17. wait(2)
  18. mouse.Icon="rbxasset://textures\\GunCursor.png"
  19. enabled = true
  20. end
  21. function onEquippedLocal(mouse)
  22. if mouse==nil then
  23. print("Mouse not found")
  24. return
  25. end
  26. mouse.Icon= "rbxasset://textures\\GunCursor.png"
  27. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  28. end
  29. Tool.Equipped:connect(onEquippedLocal)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement