SHOW:
|
|
- or go back to the newest paste.
| 1 | local pickedevent = game.ReplicatedStorage.Picked | |
| 2 | ||
| 3 | pickedevent.OnServerEvent:Connect(function(player,value) | |
| 4 | local char = player.Character | |
| 5 | ||
| 6 | ||
| 7 | ||
| 8 | player.PlayerGui.SelectionGui.Enabled = false | |
| 9 | print(value) | |
| 10 | wait(0.3) | |
| 11 | ||
| 12 | player:ClearCharacterAppearance() | |
| 13 | ||
| 14 | if char.Head:FindFirstChild("face") then
| |
| 15 | char.Head.face:Destroy() | |
| 16 | print("destroyed eyes")
| |
| 17 | end | |
| 18 | print("Cleared")
| |
| 19 | ||
| 20 | wait(0.3) | |
| 21 | ||
| 22 | local charactertoswapfolder = game.ReplicatedStorage.Characters:FindFirstChild(value) | |
| 23 | print(charactertoswapfolder.Name.." TESTT") | |
| 24 | if charactertoswapfolder then | |
| 25 | ||
| 26 | for i, swapclothing in pairs(charactertoswapfolder:GetChildren()) do | |
| 27 | if swapclothing:IsA("Shirt") or swapclothing:IsA("Pants") or swapclothing:IsA("Accessory") or swapclothing:IsA("Hat") then
| |
| 28 | swapclothing:Clone().Parent = char | |
| 29 | print("CHANGED THE BLODY CLOTHES")
| |
| 30 | end | |
| 31 | end | |
| 32 | ||
| 33 | for i, tools in pairs(charactertoswapfolder:GetChildren()) do | |
| 34 | if tools:IsA("Tool") then
| |
| 35 | tools:Clone().Parent = player.Backpack | |
| 36 | end | |
| 37 | end | |
| 38 | print("CHANGED THE CLOTHING")
| |
| 39 | ||
| 40 | ||
| 41 | end | |
| 42 | ||
| 43 | ||
| 44 | ||
| 45 | ||
| 46 | ||
| 47 | ||
| 48 | ||
| 49 | end) |