My player owner script is when a player enters the game he/she has its own customization room. I test out the script when both players join the game mug1 value should be one of the players name and mug2 value should be one of the players name. However, mug1 always have a name from the first player but the second player mug2 doesn't have a name it's just blank. What am I doing wrong?


game.Players.PlayerAdded:connect(function(player)
	player.CharacterAdded:wait()
----------------teleporting players home-------------------
local v = player.Character
local mug1 = game.workspace.MyCustom.ss1.Owner
local mug2 = game.workspace.MyCustom.ss2.Owner
-----------------

	if player.Name == mug1.Value then
	mug1.Value = ""	
		else
	local v = player.Character
	if mug1.Value == mug2.Value then
		mug1.Value = ""
	mug1.Value = v.Name
	end
	print("mug 1: "..mug1.Value)
	v.Torso.CFrame = workspace.MyCustom.ss1.s1.CFrame
end
	
	
------------------------------------------------------------
	
	if player.Name == mug2.Value then
	mug2.Value = ""	
	else
	local v = player.Character
	if mug2.Value == mug1.Value then
	mug2.Value = ""
	mug2.Value = v.Name		
	end
	print("mug 2: "..mug2.Value)
	v.Torso.CFrame = workspace.MyCustom.ss2.s1.CFrame
	
	end
	
wait()
	

	
end)