I have a script in my ServerScriptService and its supposed to change the player's avatar but it doesn't work. My Script
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(Character) if player.Team == game.Teams.Child then Character.WaitForChild("Shirt").ShirtTemplate = "rbxassetid://1598177943" Character.WaitForChild("Pants").PantsTemplate = "rbxassetid://1598177943" else end end) end)

2 comments
Instance:WaitForChild("child") is just sugar for Instance.WaitForChild(Instance, "child")
I didn't knew that, but beroglu112 was using Instance.WaitForChild("child") '-' (that gave a error on my tests)