Vital.sandbox
Model

model.create

Shared

Creates a model instance from a previously loaded model


Syntax

local entity = model.create(name)

Parameters

TypeNameDescription
stringnameName of the loaded model to instantiate

Returns

TypeNameDescription
modelinstanceCreated model instance

Examples

Create an instance from a loaded model
model.load("character", "models/character.glb")

local entity = model.create("character")

On this page