setTemporaryAvatar

API -

return function()
    local user = getUser('clonzeh');
    if user == nil then
        log('user does not exist!');
        return;
    end
    
    
    user.setTemporaryAvatar('random', 30); --random and none works here
    --sets a temporary avatar regardless of user's ownership/statuses for 30 seconds
    
    wait(1);
    
    user.setTemporaryAvatar('block_man', 120);
    
    wait(1);
    
    user.setTemporaryAvatar('block_man', 1); 
    --best way to remove the temporaryAvatar - 
    --reset the timer to 1 so it ticks off right away.
    
    wait(1);
    
     user.setTemporaryAvatar('block_man', 0); 
     --0 lasts until application restart or until set to a different timer.
end

Last updated