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

can anyone help with Place audio?

Asked by 9 years ago

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?

0
I did that, it still dosen't work, but thanks kaiguy242 10 — 9y
0
My guess is that it's caused by calling the play method from the client (the starter gui) rather than the server. GoldenPhysics 474 — 9y

2 answers

Log in to vote
0
Answered by 9 years ago

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!

0
Thanks! ill try that. Ill get back to u if it works. kaiguy242 10 — 9y
Ad
Log in to vote
0
Answered by
iSvenDerp 233 Moderation Voter
9 years ago

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

0
To put in loop go to the sounds properties and click the loop checkmark iSvenDerp 233 — 9y

Answer this question