Assistance Needed #3 (Scripting)

local rep = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local nametag = rep.NameTag

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		local playerID = player.UserId
		
		local head = char.Head
		local nametagcloned = nametag:Clone()
		local PlrName = nametagcloned.PlayerName
		local Group = nametagcloned.GroupRank
		local Lvl = nametagcloned.Level
		local humanoid = char.Humanoid
		
		humanoid.DisplayDistanceType = "Viewer"	
		wait(1)
		while true do
			wait(0.1)
			nametagcloned.Parent = head
			nametagcloned.Adornee = head
			Lvl.Text = "Minutes: "..player.leaderstats.Minutes.Value
		    PlrName.Text = ""..player.Name
			Group.Text = ""..player:GetRoleInGroup(game.ReplicatedStorage.Values.GroupID.Value)
			
			local function Icon()
				local thumbType = Enum.ThumbnailType.HeadShot
				local thumbSize = Enum.ThumbnailSize.Size420x420
				local userId = playerID
				local content, isReady = Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)
				nametagcloned.PlayerIcon.Image = content
			end
			if playerID == 1041190634 then --Dani
				Icon()
			elseif playerID == 543811464 then --Eishur
				Icon()
			end
		end
	end)
end)

Hello developers, I’m Dani. The script above is located in ServerScriptService and nametag is cloned from replicated storage. The issue is the nametag dosent clone on all users that join. Any way I can fix this?

Is there any errors on the script

1 Like

No, I didn’t get any errors. The only error I got was about a collision group but that is completely unrelated to the script I’m trying to resolve.

Maybe this tutorial will help you

1 Like

Like I said, I didn’t get any errors related to the relevant script.

1 Like

Already watch the vid? Find any problems?

No I haven’t tried yet, My nametag is in replicated storage though, I think maybe that could be why. Other than that the script seems to run the similar as mine.