Advertisement
Sungmingamerpro13

New ToolScript with Stacks (Break In Style)

Jan 11th, 2025 (edited)
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.00 KB | None | 0 0
  1. local Tool = script.Parent;
  2.  
  3. enabled = true
  4.  
  5. function onActivated()
  6.     if not enabled  then
  7.         return
  8.     end
  9.  
  10.     enabled = false
  11.     Tool.GripForward = Vector3.new(-0.976,0,-0.217)
  12.     Tool.GripPos = Vector3.new(.95,-0.76,1.4)
  13.     Tool.GripRight = Vector3.new(0.217,0, 0.976)
  14.     Tool.GripUp = Vector3.new(0,1,0)
  15.     Tool.Handle.DrinkSound:Play()
  16.     wait(.8)
  17.     local h = Tool.Parent:FindFirstChild("Humanoid")
  18.     if (h ~= nil) then
  19.         if (h.MaxHealth > h.Health + 1.6) then
  20.             h.Health = h.Health + 1.6
  21.         else   
  22.             h.Health = h.MaxHealth
  23.             if Tool:WaitForChild("stacks") and Tool.stacks.Value > 1 then
  24.                 Tool.stacks.Value -= 1
  25.             else
  26.                 Tool:Destroy()
  27.             end
  28.         end
  29.     end
  30.     Tool.GripForward = Vector3.new(-0.976,0,-0.217)
  31.     Tool.GripPos = Vector3.new(0.3,0,0)
  32.     Tool.GripRight = Vector3.new(0.217,0,-0.976)
  33.     Tool.GripUp = Vector3.new(0,1,0)
  34.     enabled = true
  35.  
  36. end
  37.  
  38. function onEquipped()
  39.     Tool.Handle.OpenSound:play()
  40. end
  41.  
  42. script.Parent.Activated:connect(onActivated)
  43. script.Parent.Equipped:connect(onEquipped)
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement