Old question, but I’ve never had an issue saving a script that in a text area field. I use them to allow this all the time. When I have had an issue with this it is usually to do another plugin, for example Wordfence, blocking it.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users