When the player enters the game how do i make them wear a outfit that i choose?
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) for i,v in pairs (character:GetChildren() do if v.ClassName == "Shirt" or v.ClassName == "Pants" then v:remove() end end local Shirt = put shirt destination here:Clone() Shirt.Parent = character local Pants = put pants destination here:Clone() Pants.Parent = character end) end)
shirtid = -- put number of shirt in here pantsid = -- put number of pants in here game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) if character:findFirstChild("Shirt") ~= nil then character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="..shirtid else local newshirt = Instance.new("Shirt") newshirt.Parent = character newshirt.ShirtTemplate = "http://www.roblox.com/asset/?id="..shirtid end if character:findFirstChild("Pants") ~= nil then character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id="..pantsid else local newpants = Instance.new("Pants") newpants.Parent = character newpants.PantsTemplate = "http://www.roblox.com/asset/?id="..pantsid end end) end)
Accept if helped