On Avatar Spawn

API -

function yourEvent(user)
    log(user.displayName .. ' has spawned!');
end

return function()
    addEvent('spawn', 'yourEvent'); --attaches the event to yourEvent()
    keepAlive();
end

Events are asynchronous coroutines.

Last updated