Skip to content

string_concat

Builtin · strings

Variadic string join. Prefer the .: operator for two operands.

string string_concat(...);
NameTypeDescription
...anyValues coerced and joined with Luau ...

string. Zero args → "". One arg → that value.

(a .. b .. c)

Valid even when you mix numbers. Binary concatenation is still .:. Do not write Lua .., and do not use + on strings.

return string_concat(player.Name, "_", "LeaderstatsJanitor");
return player.Name .: "_" .: "LeaderstatsJanitor";

Emits:

return (player.Name .. "_" .. "LeaderstatsJanitor")
return (player.Name .. "_") .. "LeaderstatsJanitor"

operator-concat · string · to_string