Why is my audio playing multiple times?

I’m trying to make it so my audio plays one time, not multiple times.

It plays the audio multiple times, no idea why.

I’ve looked through the devforums to see if this is a possible issue other people have but I haven’t seen anyone else with the same issue. With this, PlayOnRemove is disabled and Looped is also disabled.

I have no idea why this is repeating the audio multiple times.

Code

	if Admin then
		plr.Chatted:Connect(function(msg)
			if msg == msg1 then
				for i,v in pairs (game.Players:GetPlayers()) do
					GUI:Clone().Parent = v.PlayerGui
					i = v.PlayerGui.BellGUI
					Bell:Clone().Parent = game.Workspace
					game.Workspace.WrestlingBell:Play()
					i.BellFrame:TweenPosition(UDim2.new(0, 0,0.421, 0),'In','Sine',1)
					wait(2)
					i.BellFrame:TweenPosition(UDim2.new(1.4, 0,0.424, 0),'Out','Sine',1)
					wait(1)
					game.Workspace.WrestlingBell:Destroy()
					i:Destroy()
				end
3 Likes

Turning off the Looped property might help!

2 Likes

Have you checked that the Looped = true/false property is set to false?

2 Likes

That was the first thing I looked at, it isn’t looped nor is the loop property on.

1 Like

That was the first thing I looked at, it isn’t looped nor is the loop property on. Any other ideas?

Is Sound.PlayOnRemove on? If it is, the sound will play again when it is destroyed.

2 Likes

I make sure that’s turned off for any audio in my places. I just double checked and it’s disabled. Any other ideas?

I believe you are playing the sound multiple times for ever index of a player in the game, in other words how many times is the game.Players:GetPlayers() loop, looping

4 Likes

It’s always the simplistic stuff that gets past me, thank you so much!