Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 5 years ago

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!

0
Meta:Play() not meta:play() User#19524 175 — 5y
0
its is Meta:Play Carforlife1 59 — 5y
0
() Carforlife1 59 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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
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. Carforlife1 59 — 5y
Ad

Answer this question