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

Is it possible to make multi sound id's in this line of code?

I wanted to know if it was possible to make multi sounds play in like a line, this is just a thought i was thinking, because i notice most gun games have more then one bullet wiz sound effect and i have just this one.

local Meta = Instance.new("Sound")
	Meta.Name = "Crack"
	Meta.SoundId = "rbxassetid://151130102"
	Meta.Volume = 1.5
	Meta.Pitch = 1
	Meta.Looped = true
	Meta.Parent = bullet
	Meta:play()

as you can see this plays one sound id, is it possible to make it play more then one like maybe adding a comma to it and maybe they will play in a line? or will that require more scripting? thanks for your help!

3 comments

0

Meta:Play() not meta:play()

0

its is Meta:Play

0

()

1 answer

Here, use this handly function:

local function playSound(soundId,loop,parent)
	local s = Instance.new("Sound")
	s.SoundId = soundId
	s.Looped = loop
	s.Parent = parent
end

1 comment

0

this just loops the sound, my code already has that Meta:.Looped = true, i was saying is there a way to play more then one sound id at the same time, like pic random sound id, so for example the first bullet wiz would be concreate crack and the second glass thats just a example of how i was saying.

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