: passes table you’re executing from as self. t.randFunc(self) is the same thing as t:randFunc()
e.g.:
local t = {}
function t.Example1(self)
print(self)
end
function t:Example2()
print(self)
end
t.Example1(t) --> t
t:Example1() --> t
t.Example2(t) --> t
t:Example2() --> t