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

How to assign two variables into an array?

How do I assign these sounds into an array?

script.parent.Touched:Connect(function()
	local sound = {workspace.Ambient.Sound1, workspace.Ambient.Sound2}
	sound.Volume = 0
end)

2 comments

0

Can you expand on that?

0

Here's a video from AlvinBlox about tables: https://www.youtube.com/watch?v=4it-gbXldn8

1 answer

They already are in an array. If you want to play them all at once, use a for loop.

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