Is this more along the lines of what needs to be done?
Lua Code:
local function Update(self, t)
if playerRole == nil then
Text:SetText(hexa.."No Stats"..hexb)
else
if playerRole == GetSpecializationRole("TANK") then
UpdateTank(self)
elseif playerRole == GetSpecializationRole("HEALER") then
UpdateCaster(self)
elseif playerRole == GetSpecializationRole("DAMAGER") then
UpdateDamager(self)
end
end
end