Making a function inside a local table global

Hello, is it possible that if I have a table like:



local table = {}
function table.blah()
    --Stuff
end


that I could get the function “tabel.blah” global? Would be nice/useful to know, thanks.



_G["mytable"] = mytable


Or just remove the “local” keyword.

Funny.

Also, could somebody tell me, how I could “add” values to color/alpha? Like, if I got something like this:


draw.RoundedBox(0, 0, 0, w, h, team.GetColor(v:Team()))

How could I edit the color? Like edit the ALPHA value, or RGB, without editing the team?

local col = team.GetColor(team)

local r, g, b, a = col.r, col.g, col.b, col.a