So I'm trying to get my GUI to make a sound play, and then a part with a Click Detector stop that sound and play a different sound.
My GUI's code is:
function onClick() game.workspace.Phone.PhonePart.Call.IsPlaying = true end
My Part's Code is:
function onClick() if script.parent.Call.IsPlaying=true then script.parent.Dispatch.IsPlaying=true script.parent.Call.Playing = false end end
And my structure is: http://prntscr.com/8vbcy3 http://prntscr.com/8vbd36
Can anyone help?
use
:Play() and :Stop()
instead of .IsPlaying