Here it is. it should make the click sound play whenever a button is clicked. the script is simple and something i used in all other games, but this ones weirdly not working. (inside of StarterPlayerScripts)
for _, v in game.Players.LocalPlayer.PlayerGui:GetDescendants() do
if v:IsA("TextButton") or v:IsA("ImageButton") then
v.MouseButton1Click:Connect(function()
sound:Play()
end)
end
end