Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. local Tool = script.Parent;
  2.  
  3. enabled = true
  4.  
  5.  
  6.  
  7.  
  8. function onActivated()
  9. if not enabled then
  10. return
  11. end
  12.  
  13. enabled = true
  14. Tool.GripForward = Vector3.new(-.857,0,-.514)
  15. Tool.GripPos = Vector3.new(0,1.5,-.4)
  16. Tool.GripRight = Vector3.new(0,1,0)
  17. Tool.GripUp = Vector3.new(-.514,0,.857)
  18.  
  19.  
  20. Tool.Handle.DrinkSound:Play()
  21.  
  22. wait(.8)
  23.  
  24. local h = Tool.Parent:FindFirstChild("Humanoid")
  25. if (h ~= nil) then
  26. if (h.MaxHealth > h.Health + 1.6) then
  27. h.Health = h.Health + 1.6
  28. else
  29. h.Health = h.MaxHealth
  30. end
  31. end
  32.  
  33. Tool.GripForward = Vector3.new(-1,0,0)
  34. Tool.GripPos = Vector3.new(0,0,1.4)
  35. Tool.GripRight = Vector3.new(0,1,0)
  36. Tool.GripUp = Vector3.new(0,0,1)
  37.  
  38.  
  39. enabled = true
  40.  
  41. end
  42.  
  43. function onEquipped()
  44. Tool.Handle.OpenSound:play()
  45. end
  46.  
  47. script.Parent.Activated:connect(onActivated)
  48. script.Parent.Equipped:connect(onEquipped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement