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

Printing all values in an array?

I don't want to explain but it is pretty self-explanitory:

local lazyarray = {"im so lazy", "i dont want to type this whole thing"}

for i,v in pairs(lazyarray) do
	if v then
		print(v)
	end
end

all this does is just print 1 at a time... I need it to show all values at once in one line.

What Output says

--im so lazy
--i dont want to type this whole thing

What I want output to say

--im so lazy, i dont want to type this whole thing

hulp?

1 answer

✓ Accepted answer
local lazyarray = {"im so lazy,", "i dont want to type this whole thing"}

print(table.contact(lazyarray, ' '))

more here - https://wiki.roblox.com/index.php?title=Global_namespace/Table_manipulation

1 comment

0

Oh wow I didnt know that

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