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

How to make a bunch of variables into one?

I have eight variables, all with different meanings. I can't figure out how to make these variables exist in another variable, one after the other.

To make this less confusing, here is an example:

a=the
b=dog
c=went
d=to
e=market
f=buy
g=eggs

sentence = (a,b,c,d,a,e,d,f,g)

print(sentence)

Is this something I can do?

1 answer

✓ Accepted answer
a="the"
b="dog"
c="went"
d="to"
e="market"
f="buy"
g="eggs"

sentence = (a..b..c..d..a..e..d..f..g)

print(sentence)

First of all, you are using string variables so put " " around them. Second of all, if you are printing multiple strings you need ".." not ","

1 comment

0

Meant to put the variables in quotes, didn't know about the ".." thing. Thanks so much!

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