local Stop = script.Parent local sounds = script.Parent.Parent.Parent.ScrollingFrame:GetChildren().sound function onClick(Stop) sounds:stop() end Stop.MouseButton1Click:connect(onClick)
Helo Xianon,
Great question!
You are off to the right start, so great job.
local Stop = script.Parent local sounds = script.Parent.Parent.Parent.ScrollingFrame:GetChildren().sound function onClick(Stop) sounds:stop() end Stop.MouseButton1Click:connect(onClick)
The first error we can see is the ".sound" on the end of your variable.
Secondly, a 'for' statement would be needed in order to go through
function onClick() for i,v in pairs(script.Parent.Parent.Parent.ScrollingFrame:GetChildren()) do -- Get all the Children in script.Parent.Parent.Parent.ScrollingFrame if v:IsA("Sound") then --Check if 'v' is a sound v:Stop() -- Stop it end end end