Advertisement
SmokeDelsin

giant

May 25th, 2015
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. Tool = script.Parent
  2.  
  3. local stillEquipped = false
  4.  
  5. function onEquippedLocal(mouse)
  6. stillEquipped = true
  7. if mouse == nil then
  8. print("Mouse not found")
  9. return
  10. end
  11. while stillEquipped do
  12. print("Setting Mouse to go")
  13. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  14. while Tool.Enabled and stillEquipped do
  15. wait(0.01)
  16. end
  17. print("Setting Mouse to wait")
  18. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  19. while not Tool.Enabled and stillEquipped do
  20. wait(0.01)
  21. end
  22. end
  23. end
  24.  
  25.  
  26. function onUnequippedLocal()
  27. stillEquipped = false
  28. end
  29.  
  30. Tool.Equipped:connect(onEquippedLocal)
  31. Tool.Unequipped:connect(onUnequippedLocal)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement