Sorry for the long code, I try to keep everything in one script, Anyways, i dont know whats wrong with this.Help!?
sp = script.Parent
local Hover_Sound = sp.Hover_Sound
local Open_Sound = sp.Open_Sound
local Close_Sound = sp.Close_Sound
local Open_Close = sp.Open_Close
local Product_Sound = sp.Product_Sound
local Main_Shop_Menu = sp.Main_Shop_Menu
local Product_1 = sp.Main_Shop_Menu.Product_1
local Product_2 = sp.Main_Shop_Menu.Product_2
local Product_3 = sp.Main_Shop_Menu.Product_3
Open_Close.MouseButton1Click:connect(function()
Hover_Sound.Volume = 0
if Main_Shop_Menu.Visible == false then
Open_Sound:Play()
Main_Shop_Menu.Visible = true
else
Close_Sound:Play()
Main_Shop_Menu.Visible = false
end
end)
Open_Close.MouseEnter:connect(function()
Hover_Sound.Volume = 0.7
Hover_Sound:Play()
end)
Product_1.MouseEnter:connect(function()
Hover_Sound.Volume = 0.7
Hover_Sound:Play()
end)
Product_2.MouseEnter:connect(function()
Hover_Sound.Volume = 0.7
Hover_Sound:Play()
end)
Product_3.MouseEnter:connect(function()
Hover_Sound.Volume = 0.7
Hover_Sound:Play()
end)
Product_1.MouseButton1Click:connect(function()
Hover_Sound.Volume = 0
Product_Sound:Play()
end)
Product_2.MouseButton1Click:connect(function()
Hover_Sound.Volume = 0
Product_Sound:Play()
end)
Product_3.MouseButton1Click:connect(function()
Hover_Sound.Volume = 0
Product_Sound:Play()
end)

1 comment
Does The Sound Play?