Function of models
models.new
Makes a model named name from the parts fn builds and returns it. Call it at the top of the script; from a callback it is an error.
models.new(name: string, fn: (m: ModelBuild) -> ()) → Model
Parameters
namestringfn(m: ModelBuild) -> ()Returns
ModelUsed in
local belt = models.new("belt", function(m)Custom blocks| Reusable appearance and named animations | `models.new` | Defines an asset for visuals or simulated entities. |Displayslooks = models.car, -- a model from models.newDisplayslocal car = models.new("car", function(m)3D models- Make models while the pack loads. `models.new` in a callback is an error.3D modelslocal rex = models.new("rex", function(m)Custom entities