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

How to make a local sound?

Asked by 9 years ago

I'm currently making a game and want to make a fountain with a local sound playing (water) I want it to be heard coming from the fountain rather than the whole map. I tried

game.Workspace.fountain.Sound:Play()

1 answer

Log in to vote
2
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
9 years ago

Quote from the wiki:

"A sound is an object that emits sound. A sound placed in Part will emit its sound from that part. If in a part, sounds have a Doppler effect, meaning that if they are speeding toward you they will get louder and be slightly higher in pitch, and if they are speeding away they will get quieter and lower in pitch.

If a sound is not in a Part, then it plays at the same volume throughout the entire place."

There's your answer. Simply put the sound in a part.

0
I put it in a model. Does it have to be in a part in the model? MrJogimico 25 — 9y
0
Well the wiki says part, so unless you find that a model works as well while testing, I would bet on a part. Perci1 4988 — 9y
Ad

Answer this question