2.4 Concatenation Operator

You might want to write a player’s name on a part. Or maybe create a scoreboard and need to append a numerical score to an alphabetic label (i.e. “Points: 123”). Or some other operation that attaches two strings into one.

To append one string to another, Lua provides the concatenate operator. This is denoted by two dots ‘..’

Lua
print("3.14" .. "15") --Output: 3.145
print("pi=" .. 3.14 .. "15" .. 9) --Output: pi=3.14159

You can concatenate numbers and strings in any combination and Lua will automatically convert them and return a single string.