Absolutely! While it isn’t supported by default in lua, there are some tricks
Link to full article: (Suggested Read) All about Object Oriented Programming - Resources / Community Tutorials - DevForum | Roblox
Here is an example:
local Car = {}
Car.__index = Car
function Car.new(carColor)
local self = {}
self.color = carColor
return setmetatable(self, Car)
end
function Car:GetColor()
return self.color
end
local carObj = Car.new("blue")
print(carObj:GetColor()) -- Returns blue