How do I make this kohls admin command work?

Could someone please help me make this work?

So basically, I don’t know how to make players on a team have a custom shirt. (I know this is pretty basic but I need to have this done fast)

Heres the code if anyone wants to look into it:

{{'ashirt', 'awayshirt'}, {'Custom shirt for away team.'}, 2, {'number'}, function(pl, args)
		local shirtId = args[1]
		if not shirtId then return end

		for _, p in pairs(game.Players:GetPlayers()) do
			if p.Team.Name == "Away" then
				local shirt = p.Character:FindFirstChildOfClass("Shirt")
				shirt.ShirtTemplate = "rbxassetid://" .. shirtId
			end
		end
	end},