Change volume of source with script

Hello

I want a mp3 i want to be played over and over agian.

But i want the volume to be equal to “Input.acceleration.x”. So everytime i move the phone the volume shall increase, and when i stop moving then phone, the volume should be close to 0.

How do i do that?

:slight_smile:

Up