Need some halp doctor with newbie lua

is pl.Var the same as pl:GetTable().Var

pl.Var = 1
same as pl:GetTable().Var = 1

Those are my two questions

No, because then it’s not getting the variable from the entity, but a table of entities.
If you want to set the var for a table of entities, do it with a for loop.

They are the same.



] lua_run_cl LocalPlayer():GetTable().TestVar = 1
] lua_run_cl print(LocalPlayer().TestVar)
1