setTemporaryGear

API -

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

Last updated