Is there Abstract classes/modulescripts?

Are there abstract classes or something of equivalent for Roblox/Lua? I’m planning on using it for items and skill templates and all that, and thought it would be useful to learn.

1 Like

There aren’t classes in Lua, but Lua is flexible enough that you can program classes into Lua. That class system can be as complex as you want it, so yes you could totally make your class system support abstract classes. You can google around for existing implementations to see how you might make a system that works for you.

2 Likes

Welp, spending 8 hours to automate something that’ll only take me 1 minute is my specialty…

1 Like

If you really care about OOP in Roblox, check out https://roblox-ts.com/ that lets you work in TypeScript instead of Lua. TypeScript is a type-safe language that has common OOP features