KashTheKingYT

Vest Equip

Nov 20th, 2021 (edited)
3,648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. local handle = script.Parent
  2. local vest = handle.Parent
  3.  
  4. local equipped = false
  5. local rate = 100
  6.  
  7. handle.Touched:Connect(function(hit)
  8.     if hit.Parent:FindFirstChild("Humanoid") and equipped == false then
  9.         vest.Parent = hit.Parent
  10.         hit.Parent.Humanoid.MaxHealth += rate
  11.         hit.Parent.Humanoid.Health += rate
  12.         equipped = true
  13.     end
  14. end)
Add Comment
Please, Sign In to add comment