Scoreboard name color problem

I’m trying to make a scoreboard and I want specific person to have colorful name but the problem being is that it shows everyone else name the same color

function namecolor()
	for k, v in pairs(colorname) do 
		if LocalPlayer():SteamID() == v[1] then return v[2] end

I know the problem but I don’t know what else to use because LocalPlayer() is the only one not giving errors to the game.

for k,v in pairs(player.GetAll()) do
if v:SteamID() == “steamidhere” then
–color stuff here
–default color here

What about the table I got already? Could I have that added as well?

Of course, I was just having the comments as placeholders.

The table had the steamid already in there and the color

colorname = {
         {steamid, color}

and it still having the same outcome but to everyone else now

You could shorten it…

local SteamIDToColoredNames = {
	// Default
	default				= Color( 255, 255, 255, 255 );

	// SteamIDs
	[ "STEAM_0:1:4173055" ]	= Color( 0, 0, 255, 255 );

function GetPlayerNameColor( _steam )
	local _color = SteamIDToColoredNames[ _steam ];

	return _color || SteamIDToColoredNames.default;

No need for a loop.