Play and stop sounds while in studio mode

So I want to test if my audio file syncs with the animation that I’m currently working on and I need to know if you can play and stop sound in studio using command bar like in the toolbox.
im150age

I tried using this function but I can’t find ways to stop the sound.

1 Like

https://developer.roblox.com/en-us/api-reference/class/Sound
https://developer.roblox.com/en-us/api-reference/function/Sound/Play
https://developer.roblox.com/en-us/api-reference/function/Sound/Pause
https://developer.roblox.com/en-us/api-reference/function/Sound/Resume
https://developer.roblox.com/en-us/api-reference/function/Sound/Stop

1 Like

I already tried that and it doesn’t work while in studio mode.

You can preview sounds in studio by clicking the play icon.

What I want to know is how to play and stop a sound using command bar while in studio

image

this is what i want it to do but it doesn’t work since i’m not playing the game

I’m not entirely sure, my best guess would be Plugins or something with PlayOnRemove
Hope you can figure something out, this would be good for me to know as well

The sound will play if PlayOnRemove is enabled when the sound is deleted, but it has the same issue as PlayLocalSound where you can’t stop it.

a sound in soundservice named sound

game.SoundService.Sound:Play()
game.SoundService.Sound:Stop()
1 Like