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
happya_x
(Happya)
November 9, 2025, 7:25pm
2
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
What is Object Oriented Programming (OOP) ?
Hello there! Welcome to the OOP tutorial I created with the knowledge I’ve gained over the last few months.
Object-oriented programming (OOP) is a programming approach in which classes of
objects are identified and closely related to the methods (functions) with which they are
associated. It also incorporates concepts like as attribute and method inheritance.
Simply put, OOP will assist you in creating more efficient scripts in the long run.
Ho…
Thanks! I will take note of that.
system
(system)
Closed
November 23, 2025, 7:50pm
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.