ServerScriptService.HeadUI:4: attempt to index nil with 'FindFirstChild'

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’

You need to wait for the character (since it doesn’t load instantly), so change the line to local char = player.Character or player.CharacterAdded:Wait()