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

How to change a Name from two variables?

So I made something that randomly generated names.

I have two variables. FirstName and Lastname. I want to generate the name of the model Both of them combined. So like Andrew Smith. Although it comes out as FirstName LastName. Does anyone know how to do this? Thanks!

1 comment

1

concatenate them both with a whitespace with FN.." "..LN

1 answer

✓ Accepted answer
local FirstName = "Andrew"
local Lastname = "Smith"

print(FirstName.." "..Lastname)

1 comment

0

Thank you so much!

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