Ok, like I see, the console says that the name Player refers not to a text object and instead to a clip or button. So if I can ask, is italic text right in the frame where also the script is or is it in clip?
If it is in a clip, you will need to put the code into the frame of that clip.
If it’s not in a clip, you’re useing the wrong name in the code.
I’ve made an example here: italicTextExample.wick (1.7 KB)