# On Subscriber

```lua
function yourEvent(user, cumulativeCount, tier)
    log('Thanks for subbing ' .. user.displayName .. '! x' .. tier);
end

return function()
    addEvent('subscriber', 'yourEvent');
    keepAlive();
end
```

{% hint style="info" %}
Events are asynchronous coroutines.
{% endhint %}
