Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pickedevent = game.ReplicatedStorage.Picked
- pickedevent.OnServerEvent:Connect(function(player,value)
- local char = player.Character
- player.PlayerGui.SelectionGui.Enabled = false
- print(value)
- wait(0.3)
- player:ClearCharacterAppearance()
- if char.Head:FindFirstChild("face") then
- char.Head.face:Destroy()
- print("destroyed eyes")
- end
- print("Cleared")
- wait(0.3)
- local charactertoswapfolder = game.ReplicatedStorage.Characters:FindFirstChild(value)
- print(charactertoswapfolder.Name.." TESTT")
- if charactertoswapfolder then
- for i, swapclothing in pairs(charactertoswapfolder:GetChildren()) do
- if swapclothing:IsA("Shirt") or swapclothing:IsA("Pants") or swapclothing:IsA("Accessory") or swapclothing:IsA("Hat") then
- swapclothing:Clone().Parent = char
- print("CHANGED THE BLODY CLOTHES")
- end
- end
- for i, tools in pairs(charactertoswapfolder:GetChildren()) do
- if tools:IsA("Tool") then
- tools:Clone().Parent = player.Backpack
- end
- end
- print("CHANGED THE CLOTHING")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement