Quick help with rich text formatting

Hey, I am creating a system for players to be able to use a radio system to communicate with each other and I’m having an issue with the rich text used as the message template in the radio system.

Also, yes I know this seems like a very stupid question but I seriously have looked everywhere for answers on why it isn’t working including documentation and I still can’t find out why it is not working and yes RichText property is enabled.

  1. My Code:
    m_snd.MSG_Text.Text = "<b><font weight=\"1100\">" .. SenderName .. "</font>" .. msg .. "</b>"

  2. The Error I’m getting:
    ReplicatedStorage.Modules.Util:96: attempt to concatenate nil with string

its not an issue with the rich text formatting

the error means “trying to combine something that doesnt exist with text”

the SenderName or msg variables are nil (they are set to nothing)

1 Like