I want a sound to play after clicking an image button, and I'm new to using audio and really having trouble with making this work.
function onButtonClick()
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.PacksFrame.Visible = true
script.Parent.Parent.Parent.StoreFrame.Visible = false
script.Parent.Parent.Parent.PlayFrame.Visible = false
script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Workspace.ClickSound.IsPlaying = true
script.Parent.Parent.Parent.Parent.NowViewing.Text = "Now Viewing: Packs"
end
script.Parent.MouseButton1Click:connect(onButtonClick)
