How would I make the camera bounce to the music?

Hey! I really want to know how to make the camera bounce to the music. Just like in this game: https://www.roblox.com/games/2117000638/rockefeller-street#!/about
Any help would be very appreciated! :smile:

6 Likes

Apparently, the script is using an already existing BPM and perhaps some calculation between beat one to beat two in seconds.

Let’s say we have a track on 160 BPM. That’s 160/60 beats per second. You will need to find the time between beats, 1 beat per X seconds(or milliseconds).

1 Like

I utilize the Sound.PlayBackLoudness property. Just remember it’s only readable via the client.

2 Likes

Hello!

I would recommend you to use sound.PlaybackLoudness. It returns a number. The higher the number, the louder the sound. It’s usually the same as what you mean.

The, use the Camera.FieldOfView to set it. For example, your playback loudness is 50. Change your FOV to 70 + loudness / 3. That sets it to 86 degrees. :wink:

Good luck!

Kind Regards,
Jonas

18 Likes