Your code worked.
Something else.
pegarVar = function(aa,bb)
local cc = aa
local dd = bb
return cc, dd
end
addEvent("enviarVar",true)
addEventHandler("enviarVar",getRootElement(),pegarVar)
recebeVar = function()
end
Code client receives variables from the code server.
Now I want to pass the variables to other functions. (recebeVar receives variables cc,dd) How?