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?