Advertisement
adaxx11

Untitled

Apr 20th, 2021
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. local healer = script.Parent
  2. local HealAmount = 30
  3. local sound = script.Sound
  4. local touched = false
  5. local particle = script.Parent.ParticleEmitter
  6.  
  7. function HealMe(part)
  8. local hum = part.Parent:FindFirstChild("Humanoid")
  9.  
  10. if hum and not touched then
  11.  
  12. touched = true
  13. hum.Health = hum.Health + HealAmount
  14. sound:Play()
  15. particle.Enabled = false
  16. for i = 2.5, 5, 0.1 do
  17. healer.Size = Vector3.new(i,i,healer.Size.Z + 0.05)
  18. healer.Transparency = healer.Transparency + 0.03
  19. wait(0.01)
  20. end
  21. wait(3)
  22. healer:Destroy()
  23. end
  24. end
  25.  
  26. healer.Touched:Connect(HealMe)
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement