Setting your studio settings like the picture above would enable sound functionality in studio mode (not solo and not running). This functionality includes triggering :Play() on a sound that is inside a model that is in the Workspace.
I’ve done some tests with the command bar and played the Sound parented to a Model in Workspace, directly in the Workspace and in the CoreGui - none of it played the sound.
The code below would function normally when run in the command bar (with studio settings set like in the picture). It doesn’t anymore, in “studio” mode specifically.
This functionality is crucial for my plugin since it has audio managing.
The plugin does play sounds in “Run” mode, but “Run” does not provide auto-saving functionality and overall has weaker precautions for archiving.
It’s also worth noting that Sound object functionality changed recently for client as well where sounds parented to Player objects only played to the player, but now play globally (local playback container in non-FE games is now PlayerGui). Sure, it could be an “undocumented artifact”, but it just fell on our heads way too silently.
Working with the plugin on “Run” mode is a menace since studio has some kind of a saving bug where you can’t overwrite an existing file just by normally saving.
also didn’t know about the playergui non-fe local thing. that isn’t expected (though seems like you’re the only major dev really affected by this). ill get to the bottom of this and make it officially documented.
Right now, sounds only play when the RunService is “running” (in this manner, it’s similar to physics or other simulations).
I’ll be adding a “play detached” sound method (which takes soundid, is3D, 3D Position, timeposition start) to Soundservice. You’ll need to use this to get a Sound to play when the game isn’t running. Annoucement coming when it’ll be out.
Don’t mean to necro post but the issue is still prevailing,
I have followed the settings on the main post but the nothing happens
Basically, if you press play and run the playlocalsound() code in a local script or plugin, it works!
But on the server side/not running part of studio, it doeznt work! the code definetely runs but no output sound! game:GetService("SoundService"):PlayLocalSound(Z)
Anything you can do to help? I have searched the devforum and other placez for an answer but nothing!
iz there another way to make the plugn play sounds?