It should stop the song, but it doesn't?
--
local sound = game.Workspace.Part
local enable = true
local sound2 = game.Workspace.Part.Sound
--
function Clicked()
if not enable then return end
enable = false
sound.Sound:Play()
wait(sound.Sound.TimeLength)
sound.Sound:Stop()
enable = true
if sound.Sound2.IsPlaying == true then
sound.Sound:Pause()
end
end
script.Parent.MouseButton1Click:connect(Clicked)

7 comments
Try removing the sound,Then to re-play re add it in.
I'm quiet new to scripting, I don't really understand what you mean.
Is this script inside a Gui, or an Object? If it's in an object does it have a ClickDetector in it?
using the "if" on line 20, only works once.
It is in the text button.
Couldn't you just set the sound to not repeat in the sound properties?
Looping doesn't have to do with this, if you do understand what I mean here is a desc of it : When a player clicks a song and that song plays NO other songs can play until that song is done.