If you are happy in JS then stick with JS.
At line 6 you've said that `output` is a `Text`. Where have you said which Text output is? You can either assign this in the Inspector for the object that uses your script, or use a look-up in the script to find the object by name.
↧