Advertisement
Sungmingamerpro13

New ToolScript (Script) Break In Style

Feb 3rd, 2025 (edited)
137
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.    
  16.     wait(.8)
  17.  
  18.     local Humanoid = Tool.Parent:FindFirstChild("Humanoid")
  19.     if (Humanoid ~= nil) then
  20.         if (Humanoid.MaxHealth > Humanoid.Health + 1.6) then
  21.             Humanoid.Health = Humanoid.Health + 1.6
  22.         else   
  23.             if Humanoid.Health == Humanoid.MaxHealth then
  24.                 if Tool:WaitForChild("stacks") and Tool.stacks.Value > 1 then
  25.                     Tool.stacks.Value = Tool.stacks.Value - 1
  26.                     script.Parent.heal:Play()
  27.                 else
  28.                     Tool:Destroy()
  29.                 end
  30.             end
  31.         end
  32.     end
  33.    
  34.     Tool.GripForward = Vector3.new(-0.976,0,-0.217)
  35.     Tool.GripPos = Vector3.new(0.3,0,0)
  36.     Tool.GripRight = Vector3.new(0.217,0,-0.976)
  37.     Tool.GripUp = Vector3.new(0,1,0)
  38.  
  39.     enabled = true
  40.  
  41. end
  42.  
  43. script.Parent.Activated:connect(onActivated)
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement