SHOW:
|
|
- or go back to the newest paste.
1 | local player = game.Players.LocalPlayer | |
2 | local character = player.Character | |
3 | local mouse = player:GetMouse() | |
4 | ||
5 | - | local backup = Instance.new("Model") |
5 | + | |
6 | - | backup.Parent = game.Workspace |
6 | + | |
7 | if character.Humanoid.Health <= 0 then | |
8 | - | for i,v in pairs(character:GetChildren()) do |
8 | + | character.Humanoid:Destroy() |
9 | - | p = v:Clone() |
9 | + | wait(1) |
10 | - | p.Parent = backup |
10 | + | h = Instance.new("Humanoid") |
11 | - | end |
11 | + | h.Parent = character |
12 | end | |
13 | end |