Can someone tell me how to make this script randomly pick a Id from the ValidIds table and change the SoundId to that?
local ValidIds = {"206068135","180477573"}
while wait(3) do
script.Parent:Stop()
for i,v in pairs(ValidIds) do
script.Parent.SoundId = "rbxassetid://"..v
script.Parent:Play()
end
end

1 comment
Can you give me a example of how I'd use it in my script?