function Clicked() game.Workspace.SurfacePart.Songs.Song1:Play() wait(130) Song1:Stop() end script.Parent.MouseButton1Down:connect(Clicked)
People spam the button and it creates a loud sound, Is there anyway to make it not play 2 sounds at once?
function Clicked() if Workspace.SurfacePart.Songs["Song1"]:IsPlaying==false then Workspace.SurfacePart.Songs["Song1"]:Play() wait(130) Workspace.SurfacePart.Songs["Song1"]:Stop() end end script.Parent.MouseButton1Down:connect(Clicked)