C# has this and VB has ME. What is the Lua equivalent?
I am trying to reference the parent of the script class in Roblox.
From the Lua documentation section 2.5.9, the self reference is usually self:
The colon syntax is used for defining methods, that is, functions that have an implicit extra parameter
self. Thus, the statementfunction t.a.b.c:f (params) body endis syntactic sugar for
t.a.b.c.f = function (self, params) body end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With