destroy

API -

return function()
    local app = getApp();
    local myObject = app.createGameObject();
    wait(3);
    myObject.destroy();
    
    --as soon as the script ends the object will be destroyed automatically.
    keepAlive();
end

Last updated