So I have a game. In this game when people join I want them to have specific clothes. But I want it so that it randomizes between characters. So, say I join I get a blue shirt. Someone else joins they get a different shirt. Like that. This is what I have so far for shirt script. How could I add onto this.
game.Players.PlayerAdded:connect(function(Player) -- Once a player is added
Player.CharacterAdded:connect(function() -- Once a Character is added to the Player
if Player.TeamColor == game:GetService("Teams")["Gentlemen"].TeamColor then -- Check their team
wait(1) -- Give it a chance to load, now thinking about it ChildAdded might've been better
for _,v in pairs(Player.Character:GetChildren()) do -- Gather everything in their Character
if v:IsA("Shirt") or v:IsA("Pants") then -- Check if its a shirt or pants
v:Destroy() -- If it is, destroy it
end -- End the if statement
end -- End the for _,v in pairs statement
local Shirt = Instance.new("Shirt",Player.Character) -- Create new shirt
local Pants = Instance.new("Pants",Player.Character) -- Create new pants
Shirt.ShirtTemplate = "rbxassetid://164089580"
Pants.PantsTemplate = "rbxassetid://323913611"-- code here
end -- End the if statement
end) -- End the CharacterAdded function
end) -- End the PlayerAdded function

3 comments
Not brick color red, just to provide a random shirt each time a player joins.
Where do I put the id's?
In a table, and do you mean you want the people that join to have randomly assigned clothes regardless of their team colour?