OOP Closures support, I dont know how to implement one here

Anybody have tips or a way to make understanding closures/upvalues easier, and a way I can remove the anon function from the KeyAnim.Completed:Once() connection

you can declare a function and then pass it into Once

local function example()
  print("hi")
end

KeyAnim.Completed:Once(example)

also in lua you should probably move your methods outside of the constructor and instead use metamethods

Thanks! I will take note of that.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.