well it just made it Point is clear, gather and pro-
Ah, I’ve figured it out.
When changing the PlaybackSpeed, the times change as well.
For example, you have 10 second long audio. You set the PlaybackSpeed to 0.5. It is now 20 seconds long.
That might have something to do with it…
As a test, try ditching the entire PlaybackSpeed thing (including the 1.85 multiplication) and see if anything changes.
yep the time position is correct? sorry late reply i was on discord
Are you sure you typed it right? I just tested and it worked “Point is clear, gather and protect here at A”
local Crop = {
Protect = {
A = Vector2.new(0,1.427);
B = Vector2.new(1.580,3.415);
C = Vector2.new(3.568,5.301);
D = Vector2.new(5.556,7.289);
E = Vector2.new(7.595,9.124);
F = Vector2.new(9.481,11.163);
};
Elimate = {
Opponent = Vector2.new(11.418,13.253);
Vehicle = Vector2.new(13.406,15.241)
};
Losing = {
['Keep it up Soldier!'] = Vector2.new(15.546,17.177);
['Dont Give Up!'] = Vector2.new(17.381,18.707);
['Stay Strong Soldier!'] = Vector2.new(18.961,20.593)
};
EndGame = {
Win = Vector2.new(20.949,22.733);
Lost = Vector2.new(23.090,25.282)
};
Shot = {
['Nice Shot!'] = Vector2.new(25.588,26.913);
Headshot = Vector2.new(27.168,28.238)
};
Capture = {
A = Vector2.new(28.646,30.022);
B = Vector2.new(30.328,32.010);
C = Vector2.new(32.304,35.986);
E = Vector2.new(36.292,37.821);
F = Vector2.new(38.229,39.656);
};
Secure = {
A = Vector2.new(39.911,42.816);
B = Vector2.new(43.224,45.823);
C = Vector2.new(46.384,49.035);
E = Vector2.new(49.292,52.297);
F = Vector2.new(52.756,55.508);
};
}
-- script Template
task.wait(2)
print('play')
local selfSound = Instance.new('Sound',workspace)
selfSound.SoundId = 'rbxassetid://8780076706'
selfSound.TimePosition = Crop.Secure .A .X
selfSound.Looped = false
selfSound:Play()
selfSound.PlaybackSpeed = 0.85
task.wait((Crop.Secure.A.Y-Crop.Secure.A.X)*1.15)-- 1.15 is the speed of the audio and add 1 on it.
selfSound:Stop()
selfSound:Destroy()
well i just hear Point is clear, gather and protec-
You copied and pasted what I sent?
well tried this work but what i hear was
Point is clear, gather and protect here at A-. there’s a cut on A when it’s pronouncing it.
Try making the Y number 42.916 instead (gives it 0.1 more seconds to allow lag).
it made it Point is clear, gather and protec- with the same script you sent me
Why are you waiting like that? You can just do selfSound.Ended:Wait()
.
He has multiple sound effects in one sound.
apparently, im cropping the sound so, it will just play until all the voice lines has been played.
Please join this game so I can test with you
All good you can join. I am in.
Thread was solved by
Testing it on Roblox Player instead of Roblox Studio. It finally worked and thank you so much @Volieb
task.wait((Crop.Secure.A.Y-Crop.Secure.A.X)*1.15)
Sound.Ended:Wait()
https://developer.roblox.com/en-us/api-reference/event/Sound/Ended
the thread has been solved. but thanks!
Again, please only reply if you’ve read the context of the thread. That will not work for this situation because he is cropping a snippet of a sound to only play a specific part.
I’m informing them of the existence of the “.Ended” event in the case that they require the behavior it provides.