Advertisement
dahpiglz

Untitled

Oct 27th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local character = player.Character
  3. local mouse = player:GetMouse()
  4.  
  5. local backup = Instance.new("Model")
  6. backup.Parent = game.Workspace
  7.  
  8. for i,v in pairs(character:GetChildren()) do
  9. p = v:Clone()
  10. p.Parent = backup
  11. end
  12.  
  13. while true do
  14. wait(0.1)
  15. if character.Humanoid.Health <= 0 then
  16. for i,v in pairs(character:GetChildren()) do
  17. if v.Name ~= ("e") then
  18. v:Destroy()
  19. end
  20. end
  21. for i,v in pairs(backup:GetChildren()) do
  22. v.Parent = character
  23. end
  24. for i,v in pairs(character:GetChildren()) do
  25. p = v:Clone()
  26. p.Parent = backup
  27. end
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement