Advertisement
Sungmingamerpro13

Tool with Stacks (Script Of Tool)

Jul 9th, 2024 (edited)
339
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. Tool.Activated:Connect(function()
  4.  
  5.     local Humanoid = Tool.Parent:FindFirstChild("Humanoid")
  6.     Tool.stacks.Value -= 1
  7.  
  8.     if Tool.stacks.Value == 0 then
  9.         Tool:Destroy()
  10.         Humanoid.Health += 5
  11.     end
  12. end)
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement