How to assign a variable AND Text to a TextBox.Text Value

So sometimes when I make something like a kill cam, which I got help on in a different post, I want to assign the name of the killer which is stored in a variable and a text. I would try

killerText.Text = killerName, "killed you!"

But I always get an error along the lines of "You are trying to store 2 values into 1 variable, leaving omse resources unused. Is there any loophole around this, or a different way to do this? Thanks.

1 Like

Try this

killerText.Text = killerName .. " killed you!"

you can read more about strings here
go to the combining strings section


Oh yeaahh! I totally forgot about the . . way of doing it. My bad. Anyways, thanks!