setVelocity

API -

return function()
    local user = getUser('clonzeh');
    if user == nil then
        log('user does not exist!');
        return;
    end
    
    --x, y
    user.physics.setVelocity(0, 300); --throws the avatar upwards!
end

Last updated