Cannot fix problem with setting player's cframe

This is my code for a 1v1 type game. I have 2 players spawn in a lobby until their character is added. Then I fire this function inside of a module script. Player1 gets teleported but Player2 doesn’t get teleported. I have tried many things but it still won’t work.

function module.PlayerAdded(Plr)
    if PlayerReady then
        Player2 = Plr
        
        print(Player2.Name)
        print(Player1.Name)
        
        Player1.Character.PrimaryPart.CFrame = workspace.Spawn1.CFrame
        Player2.Character.PrimaryPart.CFrame = workspace.Spawn2.CFrame -- This line doesn't work.
    else
        PlayerReady = true
        Player1 = Plr
    end
end