I am playing 2 sounds from SoundScape, called Fail And Victory. When I run
1 | game.Soundscape.Victory:Play() |
From the command line, it works and I can here the sound. This doesn't work in test server mode, or in game (while in a script.) Help?
This is a bit more complicated then you were expecting, but it allows you to make other scripts that can tie into this;
1 | Toggle = script.Toggle |
2 | Victory = game.Soundscape.Victory |
3 |
4 | Victory.Parent = game.Workspace |
5 | if Toggle.Value = = 1 then --Change this to whatever your NumberValue is, and it'll work |
6 | wait( 1 ) |
7 | Victory:Play() |
8 | end |
After making the script with this code, insert a 'NumberValue' into the script and then change the number to whatever you want. If you have questions, reply to this.
It should work if you do it from workspace like
1 | game.Workspace. "Sounds name" :Play() |