Player name colors

I found a code on various websites that all verge on what I edited here(edited to fit my server’s rank names)


if SERVER then
   AddCSLuaFile("scoreboardcolors.lua")
end
if CLIENT then
   local function MySBColors(ply)
      if ply:IsUserGroup(Co-Owner) then
         return Color(255, 0, 255, 255)
      end
      if ply:IsUserGroup(Owner) then
	 return Color(0, 255, 0, 255)
      end
      if ply:IsUserGroup(admin) then
	 return Color(0, 204, 204, 255)
      end
      if ply:IsUserGroup(VIP) then
 	 return Color (255, 204, 255, 255)
      end
      if ply:IsUserGroup(superadmin) then
	 return Color (60, 123, 194, 255)
      end
   end
   hook.Add("TTTScoreboardColorForPlayer", "MySBColors", MySBColors)
end

However when I test the code I disconnect for LUA errors as soon as I open up the scoreboard. This is for TTT if that makes a difference. I just can’t figure out what is wrong with the code.

Put quotes around your ranks.

I feel like a dumbass now, thank you kind sir.