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

can anyone help with Place audio?

I just added this player-audio script into my game:

game.Workspace.Sound:Play()

(It is located in the starter gui of my game, the actual sound is in the workspace.) the problem is,whenever someone else dies, or enters the game the audio starts over.I tries messing around a bit with this but to no avail. I am a REALLY new scripter and I have no idea how to fix this.

Anything I should add?

2 comments

0

I did that, it still dosen't work, but thanks

0

My guess is that it's caused by calling the play method from the client (the starter gui) rather than the server.

2 answers

✓ Accepted answer

This is an easy fix!

Just put the sound in a Local Script inside the "ScreenGui."

Make the LocalScript as follows:

script.Sound:Play()

This should work. If not, leave a comment!

1 comment

0

Thanks! ill try that. Ill get back to u if it works.

We'll.. Since you already added the script and there's no script for me to add put it in loop. Try that and let me know how hat went:) hope his helped:) and see if putting the script in workspace works:)

1 comment

0

To put in loop go to the sounds properties and click the loop checkmark

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