[SOLVED] Expected identifier when parsing expression, got '...'

I’m trying to make a text use richtextmarkup within a script but it’s not working and is giving me the error “Expected identifier when parsing expression, got ‘…’”
I don’t know how to fix this

NewPlayer.TextLabel.Text = '<stroke color="#ffffff" thickness="1">1.</stroke> <font color="#ff0004"><stroke color="#ffffff" thickness="1">'... Player ...'</stroke></font>'

Are you trying to concatenate the player’s name?
If so, use .. (concatenation) operator and use the player’s Name Player.Name

NewPlayer.TextLabel.Text = '<stroke color="#ffffff" thickness="1">1.</stroke> <font color="#ff0004"><stroke color="#ffffff" thickness="1">'.. Player.Name.. '</stroke></font>'

The ... thing is a varargs.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.