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

Help me play a sound please?

Asked by 10 years ago

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

Log in to vote
1
Answered by 10 years ago

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 ;-;)

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 PlatinumLocks 50 — 10y
0
Nevermind, I found a sound and it would work! thanks. It was just a problem with the ID xD! PlatinumLocks 50 — 10y
0
No problem bro. Lol. TheeDeathCaster 2368 — 10y
Ad

Answer this question