Player wont get teleported

I have this huge chunk of code here,

						if player.Team == "Murderer" then
							for i,v in pairs(game.Teams["Murderer"]:GetPlayers()) do
								v.Character.HumanoidRootPart.CFrame = CFrame.new(736.272, 7.139, -560.733)

							end
							
						end
					elseif player.Team == "Sheriff" then
						
						for i,v in pairs(game.Teams["Sheriff"]:GetPlayers()) do
							v.Character.HumanoidRootPart.CFrame = CFrame.new(637.725, 7.144, -639.943)
						end

And it wont move the HumanoidRootPart of both players whenever the game starts. Any help?

You are checking only one player before looping through all of them.

Simply iterate through all players and check their team inside the for loop.

local Teams = game:GetService("Teams")


for i,Player in pairs(game.Players:GetPlayers()) do
  local Character = Player.Character
  if Player.Team == Teams["Sheriff"] then
--code
  elseif Player.Team == Teams["Murderer"] then
--code
end
end