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

Help me play a sound please?

I put a sound in workspace , gave it an ID, it wouldnt work, so I tried other sounds that had Id and it wouldn't work, I've been trying to play a sound so I could test stuff but It wont work, can anyone help?

1 answer

✓ Accepted answer

Hmm, if you mean you just created the sound, you put the ID in and it isn't playing, then that means the Sound is not running, it is paused until called on to run, the script I'm about to type is a Normal Script (Not LocalScript), you can put this inside the Sound, and it may play;

wait(0) --Waits 0 seconds
script.Parent:Play() --Players the scripts Parent (Plays the Sound)

But if the Sound is in Workspace then;

wait(0)
game.Workspace.SOUNDNAMEHERE:Play() --Switch 'SOUNDNAMEHERE' with the name of the Sound you want played

Hope this helped! (Sorry if didn't help or had errors, answer posted at 1:10 AM ;-;)

3 comments

0

Sorry It wont work, It's now Sound.IsPlaying = true/false, sadly I can't change this value and it's paused for all I know, It says play on remove so I removed that value, and ept it and tried many stuff, It wont work

0

Nevermind, I found a sound and it would work! thanks. It was just a problem with the ID xD!

0

No problem bro. Lol.

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