game.Players.PlayerAdded:connect(function(player)
	game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
	local char = player:WaitForChild("Character")
	local playerRank  = player:GetRoleInGroup(3092632)
	if char ~= nil then
		if playerRank == "Guest" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=714100413"
		end
		if playerRank == "Private" then
	  		char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "Lance Corporal" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "Corporal" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "Sergeant" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "Sergeant Major" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "Sergeant Major of the Army" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "Ensign" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "Lieutenant" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "Captain" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "Major" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "Lieutenant Colonel" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "Colonel" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "Brigadier Colonel" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "Major General" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "Lieutenant General" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "General" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=36219587"
		end
		if playerRank == "Prince George IV| Field Marshal" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=714100413"
		end
		if playerRank == "King George III" then
			char:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=714100413"
		end
		
		char:FindFirstChild("Pants").PantsTemplate = "http://www.roblox.com/asset/?id=714094643"
		
	end
end)

My code does not work. It does not change a character's clothes when he/she enters the game. I think it might be the asset id's... Can someone tell me how to get asset ids or find some other mistake in my script?