yamanohera155233

Untitled

Jun 18th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 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 = false
  14. Tool.GripForward = Vector3.new(-0.976,0,-0.217)
  15. Tool.GripPos = Vector3.new(.95,-0.76,1.4)
  16. Tool.GripRight = Vector3.new(0.217,0, 0.976)
  17. Tool.GripUp = Vector3.new(0,1,0)
  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(-0.976,0,-0.217)
  34. Tool.GripPos = Vector3.new(0.3,0,0)
  35. Tool.GripRight = Vector3.new(0.217,0,-0.976)
  36. Tool.GripUp = Vector3.new(0,1,0)
  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)
Add Comment
Please, Sign In to add comment