> For the complete documentation index, see [llms.txt](https://docs.streamavatars.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.streamavatars.com/lua-scripting-api/api-reference-and-tips/global-functions/runcommand.md).

# runCommand

```lua
return function()
    --running quietly as true will prevent regular commands from responding in chat.
    --however a commany may still output a response
    
    --!mass forces all users to run the command jump 
    --**assuming nothing else is controlling the state of avatars.
    --**assuming everyone has access to the jump command / shop restrictions
    runCommand('!mass jump', false); 
    
    --runCommand('!change clonzeh !jump', false);
    --!change will try to run the command as a different user.
    
    --runCommand('!jump', false); 
    --by just running jump, it will make the broadcaster's avatar jump.
end
```

{% hint style="info" %}
By issuing runCommand, it will send the command as the streamer/broadcaster.
{% endhint %}

{% hint style="info" %}
To send a command as another user, you will need to use the change command:

&#x20;example: '!change clonzeh !jump'

otherwise, you can find a runCommand within the User class.
{% endhint %}

{% hint style="info" %}
In this example, sendQuietly is set to false. (the second paramenter)

This means that command will try not to respond, unless overridden by the command itself.
{% endhint %}
