So I asked the same question a couple of days ago, and I got an answer. However, that answer didn't work, but I am going to post the script that I was given to see if anyone can find something wrong with it.
So what the script is supposed to do is remove your clothes and give you new ones provided by the game. It is supposed to only do that if you are on a specific team. The script doesn't do anything. Can someone please help me? Here's the script:
local t2shirt = game.ServerStorage:WaitForChild("DF1")
local t2pants = game.ServerStorage:WaitForChild("DF2")
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(char)
if p.TeamColor == BrickColor.new("Bright blue") then
if char:FindFirstChild("Pants") then
char.Pants:remove()
end
if char:FindFirstChild("Shirt") then
char.Shirt:remove()
end
if char:FindFirstChild("Shirt Graphic") then
char["Shirt Graphic"]:remove()
end
t2shirt:clone().Parent = char
t2pants:clone().Parent = char
end
end)
end)

2 comments
Line 7, put the actual BrickColor for its TeamColor
(I updated my answer)