I get the spec just fine.
With
Your Update function is:
Lua Code:
local function Update(self, t)
if playerRole == nil then
Text:SetText(hexa.."No Stats"..hexb)
else
if playerRole == playerRole.Tank then
UpdateTank(self)
elseif playerRole == playerRole.Healer then
UpdateCaster(self)
elseif playerRole == playerRole.Damager then
UpdateDamager(self)
end
end
end
playerRole appeares to be a table so it can't be both not nil and == a sub-key of itself
Code:
if playerRole == playerRole.Tank then
is essentially
Code:
if theTable == theTable.Tank then
You need to re evaluate
Lua Code:
local playerRole = LibClassicSpecs.Role
and maybe add an other variable to hold the actual characters role name string.