Advertisement
Sungmingamerpro13

Tool With Stacks (LocalScript)

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