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

Why does my math variables dont work with print?

--Do this:
hello = 50

bye = 20

print(hello+bye)

1 comment

0

Hope this worked ;)

1 answer

✓ Accepted answer

the math variables will work with print but there are 2 different ways to do it. i think its printing in a way you dont want. the way your printing them right now is adding the value of the 2 variables together so it would output 70 in the log. if you want it to print the variables separate but on the same line you would instead do:

local hello = 50

local bye = 20

print(hello,bye)

its a little change but now the output will be 50,20 instead of just 70

im not sure if this is what you were looking for or not but if it was your welcome :)

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