Advertisement
Sungmingamerpro13

ToolScript Update (LocalScript + Stacks)

Nov 14th, 2024 (edited)
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.30 KB | None | 0 0
  1. local Tool = script.Parent
  2.  
  3. local player = game.Players.LocalPlayer
  4.  
  5. Tool.Activated:Connect(function()
  6.     Tool.stacks.Value -= 1
  7.  
  8.     while wait() do
  9.         if Tool:WaitForChild("stacks").Value == 0 then
  10.             Tool:Destroy()
  11.             player.Character.Humanoid.Health += 5
  12.             wait(1)
  13.             break
  14.         end
  15.     end
  16. end)
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement