Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I add two strings together?

I have a very simple problem: how do I add two strings together? So if I added "over " and "there" together I would get "over there"?

1 comment

0

For future reference, the technical term is "concatenation"!

2 answers

✓ Accepted answer

Using the .. operator.


string1 = "Hello "
string2 = "World!"
print (string1..string2)

Hello World!

..

honestly

..

"over" .. " there"

"over there"

print("over".." there")

over there

This discussion is preserved as it was. New answers, comments, and votes are closed.