One player is showing information while the other is not

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).. " Power"
			print(uiClone.stat.Text)
		end
		
		local function updateRebirth()
			uiClone2.stat2.Text = 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
		
	end)
end)

So here I have a server-side script and a gui. My task is to make it so that above the head of the player was shown his final strength. But for some reason, one player (me) shows real strength. But the second has nothing and stands as the starting inscription. Why is that?

You’ve got to clone the Object first. You don’t clone it you just parent it to the head. Clone it first then parent it.

1 Like

Could I have a few lines of code on how I should do this, if you don’t mind, thanks.