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

How do I fix this cutscene music problem?

Asked by 8 years ago

Ok, I have made it to where music starts when the cutscene starts, and the music ends when the cutscene ends, however, now I havent been able to figure out how to start a different song once the cut scene it over,, within the script i have these :

game.Workspace.Sound:stop()
game.Workspace.Sound2:play()

Both of these are at the end of the cutscene script, the stop works, however the start doesnt, if you have any furthur questions, ask, thanks.

0
The only problem could be that you don't have a valid URL in Song2. Make sure that's correct, and if it is, but still doesn't work, give us any errors that you may have gotten dyler3 1510 — 8y
0
I have a proper id, no errors come up it just wont play in general. oveechkin 15 — 8y
0
It has to be something wrong with the volume or something then if it won't play. Make sure that all the properties are correct. dyler3 1510 — 8y
0
Well, would I need a different script for it in the startergui as well? oveechkin 15 — 8y
View all comments (4 more)
0
I don't think so dyler3 1510 — 8y
0
Ok, ill see what i can do. oveechkin 15 — 8y
0
Remember, lua is case sensitive! Try using Play(), and Stop()! Relatch 550 — 8y
0
It works either way actually Relatch. It's only case-sensitive for specific things, this happens not to be one of them. dyler3 1510 — 8y

2 answers

Log in to vote
0
Answered by 8 years ago

turns out this code is outdated Ive seen maybe try something like this

put a sound in workspace like this insert object>sound> then change the property sound id to the sound code and then put this

then put a local script in the starter GUI I REPEAT A LOCAL SCRIPT this is where everyone fails so PUT A LOCAL SCRIPT

then delete that ugly hello world thing then put this Game.Workspace.Sound:play()

if this works contact me ill try something else

Ad
Log in to vote
-1
Answered by
Myuuckn -5
8 years ago

Are the sounds placed in Workspace? Are the sounds placed in something? Example:

game.Workspace.brick.Sound2:play()

Or if the keywords are incorrect? If not reply to me, and I will give you a script as fast as possible. -XxLordOfDoomerzxX

Answer this question