I wanted the sound to remove when the player isn't in the dialog range?
sound = script.Parent.Parent.Parent.Parent.Sound.Song
clonesong = sound:clone()
script.Parent.DialogChoiceSelected:connect(function(player, choice)
if (choice == script.Parent.Choose.Accept) then
clonesong.Parent = player.PlayerGui
print("Song Played")
clonesong:Play()
if (choice == script.Parent.Choose.Accept.Info.PriceDetail) then
if player.PlayerGui:FindFirstChild("Song") then
player.PlayerGui:FindFirstChild("Song"):remove()
print("Song Stopped")
end
end
end
end)
No errors in output. I don't know how to remove the sound from the playergui if the player walks away from the dialog range, and the sound won't stop when the certain choice was clicked.

2 comments
is the sound a folder or an actual Sound
in a folder for where the sound is located