game:FindFirstChild("Players").PlayerAdded:Connect(function(player)
local char = player.Character
local uiat = game.ReplicatedStorage.nr.ui:Clone()
uiat.Parent = char:FindFirstChild("Head")
uiat.nameui.TextLabel.Text = player.DisplayName
uiat.rankui.TextLabel.Text = player.Rank.Value.ToString()
uiat.teamui.TextLabel.Text = player.Team.Name
uiat.teamui.TextLabel.TextColor3 = player.Team.TeamColor.Color
end)
ServerScriptService.HeadUI:4: attempt to index nil with ‘FindFirstChild’