Why in gods name does this not work?

Is this an editor script?
you’re not providing enough information, why not just go ‘.text = screnarioName;’?
what is ‘titleText’ and how is it set?

BTW, please post the full scrupt and use code tags when posting scripts in general