How to make a animation speed play along the music?
I've been wanting to make this for a while and can't figure out how to do it. I search up so many things, and asking for help but I couldn't find the answer. I'm trying to make a player animation change the animation speed along with the music. (for ex. quiet music = slow animation. Loud music = fast animation)
Here's a reference if you don't get what I'm saying: https://tenor.com/view/roblox-smug-dancing-gif-14853673
script:
1 | game.Players.PlayerAdded:connect( function (player) |
2 | while not player.Character do wait() end |
3 | local character = player.Character |
4 | local animateScript = character.Animate |
6 | animateScript:AdjustSpeed ( 1 ) workspace.Sound.PlaybackLoudness * . 05 |
^I'm a 100% sure that's incorrect but idk!
btw it's in a script in serverscriptservice