I am trying to make it so when a Play button is pressed, it stops the current sound and plays another sound. With this script it stops the current sound but it doesn't play the other sound. What's wrong with it?
FULL SCRIPT:
wait (0)
script.Sound:Play()
local PlayButton = script.Parent.PLAY
repeat wait()
Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = workspace.CameraPart.CFrame
PlayButton.MouseButton1Click:Connect(function()
Camera.CameraType = Enum.CameraType.Custom
PlayButton:Destroy()
wait (0)
script.Sound:Stop()
wait (0)
script.Sound2:Play()
end)

1 comment
provide the soundID