Advertisement
Sungmingamerpro13

ToolScript (LocalScript + Stacks)

Nov 14th, 2024
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.26 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.stacks.Value == 0 then
  10.             Tool:Destroy()
  11.             player.Character.Humanoid.Health += 5
  12.         end
  13.     end
  14. end)
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement