Advertisement
Prephy

simple healing

Jun 4th, 2022 (edited)
1,295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. function spawned()
  2. while owner.Character~=nil do
  3. pcall(function()
  4. local the = owner.Character:FindFirstChildOfClass("Humanoid")
  5. if the==niel then
  6. task.wait()
  7. else
  8. the.Changed:Wait()
  9. if the.Health<the.MaxHealth then
  10. the.Health=the.MaxHealth end
  11. end
  12. end)
  13. end
  14. end
  15.  
  16.  
  17. owner.CharacterAdded:Connect(spawned)
  18.  
  19. spawned()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement