Fails to get text from textLabel

Server:

local ServerStorage = game:GetService("ServerStorage")
local statUnder = ServerStorage:WaitForChild("statUnder")

local abbreviations = {
	"",
	"K",
	"M",
	"B",
	"T"
}

local function abbreviateNumbers(Number)
	for  i = 1, #abbreviations do
		if Number < 10 ^ (i * 3) then
			if abbreviations[i] == "∞" then
				return "∞"
			else
				return math.floor(Number / ((10 ^ ((i - 1) * 3)) / 100)) / (100) .. abbreviations[i]
			end
		elseif tostring(Number) == "Inf" then
			return "∞"
		end
	end
end

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)

		local Head = character:WaitForChild("Head")
		local ld = player:WaitForChild("leaderstats")

		repeat task.wait(0.35) until character:FindFirstChild("Head")
		Head = character.Head

		local uiClone = statUnder:Clone()
		uiClone.Parent = Head
		uiClone.Name = "StatUnderClone"
		
		local uiClone2 = ServerStorage:WaitForChild("rebirthUnder")
		uiClone2.Parent = Head
		uiClone2.Name = "RebirthUnderClone"
		
		local function update()
			uiClone.stat.Text = abbreviateNumbers(player.leaderstats.Power.Value + ld.Mass.Value).. "Stregth"
		end
		
		local function updateRebirth()
			uiClone2.stat2.Text = player.PlayerGui.RebirthGui.Main.currentRank.Text
			print(player.PlayerGui.RebirthGui.Main.currentRank.Text)
		end

		update()
		
		wait(1)
		
		updateRebirth()

		player.leaderstats.Power:GetPropertyChangedSignal("Value"):Connect(update)
		player.leaderstats.Rebirth:GetPropertyChangedSignal("Value"):Connect(updateRebirth)
		
		character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None

		print(uiClone.Name)
	end)
end)


As you can see I have a server script with which I want to show what rebirth the player has, for this I take the text that I have in advance and just change it. But for some reason it writes instead of the text that should be, just currentRank with what can this be due to? I thought that the problem is that it does not have time to load, but it seems not.

You’re setting the text of the cloned TextLabel to be the same as the text of the original TextLabel so the text will always be the default one. Instead set the text to the players rebirth Value. Smth like that:

local function updateRebirth()
	uiClone2.stat2.Text = player.RebirthValue.Value
end