Hello Andres,
The <script>
tag is disallowed in custom blocks due to security issues, so JavaScript cannot be directly embedded into custom blocks. I recommend looking into a Bootstrap carousel instead. Alternatively, at your own risk, you might allow <script>
in config.inc.php/HTMLPurifier as described in this forum thread.