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

add a soundeffect to a part?

i want to make a part, when the player is inside of it, it gets echoey. i want to use this for parking garages and tunnels. i have tried mutliple ways of doing it, none really worked. the last one i tried was with soundregions, that didn't work and now i'm giving up trying, and asking it on here.

1 answer

✓ Accepted answer

You can add sound effects into your sound you just need to make a script that detect when the player "is inside of it" as you said. I'm not sure but you can probably check if the player is in a certain area like :


 if player.Position.X > 1 and player.Position.X < 10 do
local Echo = instance.new("EchoSoundEffect")
Echo.Parent = sound
if player.Position.X < 1 or player.Position.X > 10 do
Echo:destroy()

3 comments

0

i put the soundeffect inside the sound, and the sound is inside the part, i inserted the script inside the sound (no clue if thats right) and i get warnings saying "unknown global player" and "unknown global sound".

0

oh well, managed to fix those warnings, now i am getting errors saying "position is not a valid member of players"

0

I didn't make a working script but I just wanted to give you the idea

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