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

what does it mean when theres a ", " in a variable?

for example local noob = Guest, Poop

I don't get what this means I just don't get it

1 comment

3

They assign multiple variables in one line e.g. local one, two = 1, 2. That works. Though in your example if it's multiple values and only one variable, additional results are discarded, so "Poop" is discarded, and "noob" is assigned to "Guest".

1 answer

Your example, as mentioned by @incapaz in his comment, would not work. The variable "noob" would be assigned to "Guest" and not "Poop." Here is what would work:

local noob, bacon = "Guest", "Poop"

When defining variables with the comma, the amount of variables must be equal to the number of values assigned or else the script would not function properly.

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