Sungmingamerpro13

Tool with Stacks (LocalScript) v2

Jul 3rd, 2024 (edited)
547
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.  
Add Comment
Please, Sign In to add comment