Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

lua class example

Car = {}

function Car.new(position, driver, model)
    local newcar = {}

    newcar.Position = position
    newcar.Driver = driver
    newcar.Model = model

    return newcar
end
Source by devforum.roblox.com #
 
PREVIOUS NEXT
Tagged: #lua #class
ADD COMMENT
Topic
Name
7+4 =