SHOW:
|
|
- or go back to the newest paste.
1 | local player = game.Players.LocalPlayer | |
2 | ||
3 | local function CreatePart() | |
4 | for _,v in pairs(player.Character:GetChildren()) do v:Destroy() end | |
5 | local prt = Instance.new("Model", workspace); | |
6 | Instance.new("Part", prt).Name = "Torso"; | |
7 | Instance.new("Part", prt).Name = "Head"; | |
8 | Instance.new("Humanoid", prt).Name = "Humanoid"; | |
9 | player.Character = prt | |
10 | end | |
11 | ||
12 | local function Test(place, func) | |
13 | for _, v in pairs(place:GetChildren()) do | |
14 | if v:IsA'Accoutrement' then | |
15 | func(v) | |
16 | end | |
17 | end | |
18 | end | |
19 | ||
20 | for i=1, 20 do | |
21 | wait(1) | |
22 | Test(player.Backpack, function(p) p.Parent = player.Character p.Parent = workspace.Terrain end) | |
23 | ||
24 | Test(player.Character, function(p) | |
25 | for _, h in pairs(p.Handle:GetChildren()) do h:Destroy() end | |
26 | wait(0.1) | |
27 | p.Parent = player.StarterGear | |
28 | end) | |
29 | ||
30 | CreatePart() | |
31 | ||
32 | repeat wait(1) until player.Character:FindFirstChild'Head' | |
33 | Test(player.Backpack, function(p) p.Parent = player.StarterGear end) | |
34 | CreatePart() | |
35 | end |