Vital.sandbox
Model

self:destroy

Shared

Destroys the model instance and removes it from the scene


Syntax

local status = self:destroy()

Parameters

TypeNameDescription

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Destroy a model instance
local entity = model.create("character")

entity:destroy()

On this page