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

Help Sound!

I tried putting a script like this inside a sound(The sound is inside a part) and it works!

script.Disabled = true
script.Disabled = false

script.Parent.Play()

But the problem is,it only works in ROBLOX Studio.I need a help to make the sound also works in my place.Also,I wanted the sound getting louder when I get close to it.

2 answers

There's no need for the first two lines. Also, it's script.Parent:Play() not script.Parent.Play().

Well first of all this is a dead line (as I call it) script.Disabled = true You are stopping the script and it never reaches the next line. Secondly, you put .Play instead of :Play (as said above)

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