local a=game:GetService("\087\111\114\107\115\112\097\099\101")local c=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local G=require(c:WaitForChild("\076\111\099\097\108\065\117\100\105\111"))local y=a:WaitForChild("\084\101\115\116\077\111\100\101\108\115")local R={y:WaitForChild("\080\097\114\116\049");y:WaitForChild("\080\097\114\116\050"),y:WaitForChild("\080\097\114\116\051");y:WaitForChild("\080\097\114\116\052")}G:PlayAudio("\068\101\109\111\046\076\111\099\097\108\076\111\111\112\101\100",y:WaitForChild("\080\097\114\116\053"))while true do for a,c in R do G:PlayAudio("\068\101\109\111\046\076\111\099\097\108",c)task.wait(1)end end
--Tests playing audios local to a source.
--!strict

local Workspace = game:GetService("Workspace")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local LocalAudio = require(ReplicatedStorage:WaitForChild("LocalAudio"))
local TestModels = Workspace:WaitForChild("TestModels")
local TestParts = {
    TestModels:WaitForChild("Part1"),
    TestModels:WaitForChild("Part2"),
    TestModels:WaitForChild("Part3"),
    TestModels:WaitForChild("Part4"),
}



LocalAudio:PlayAudio("Demo.LocalLooped", TestModels:WaitForChild("Part5"))
while true do
    for _, TestPart in TestParts do
        LocalAudio:PlayAudio("Demo.Local", TestPart)
        task.wait(1)
    end
end