Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I fix this cutscene music problem?

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.

8 comments

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

0

I have a proper id, no errors come up it just wont play in general.

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.

0

Well, would I need a different script for it in the startergui as well?

0

I don't think so

0

Ok, ill see what i can do.

0

Remember, lua is case sensitive! Try using Play(), and Stop()!

0

It works either way actually Relatch. It's only case-sensitive for specific things, this happens not to be one of them.

2 answers

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

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

This discussion is preserved as it was. New answers, comments, and votes are closed.