Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is this sound clip not playing correctly?

Asked by 9 years ago

I have a sound clip that is about 5 seconds long, however when I play it, it cuts out after 2 seconds.

if player.Mute.Value == false then
    for i,v in pairs(msg:GetChildren()) do
        if v:IsA("Sound") then
            v:Play()
        end
    end
end

"v" plays correctly so there is nothing wrong with anything surrounding it (afaik) It starts fine but cuts off at 2 seconds EVERY time. I tried playing the sound through the website (ie went to the link and hit play) and it worked fine (full 5 seconds).

What could be the issue?

0
All sound properties have been checked and are all default crackabottle123 110 — 9y
0
UPDATE: I tested in play solo and the sound still won't play correctly, I believe this is an audio problem rather than a scripting problem, crackabottle123 110 — 9y
0
Show us your whole script please, it won't help us to not know what msg is. FearMeIAmLag 1161 — 9y
0
Wait. You just need a "wait()" within the loop. You can't run loops without waits or it can crash roblox. FearMeIAmLag 1161 — 9y
View all comments (2 more)
0
@FearMeIAmLag You do not need waits in for loops. I tons of for loops without waits in my games. Discern 1007 — 9y
0
Turns out it was a sound bug, I re-uploaded the sound and now it's fine crackabottle123 110 — 9y

Answer this question