But the release of my studio’s game is tomorrow! I was wondering how I would make the logo kind of grow in size whenever the music kind of has an increase of volume / bass? Thanks! The Audio (I will want to change it later)
You’d need to use PlaybackLoudness property of the sound. Assuming your logo is circular, try something like this:
local run = game:GetService("RunService")
local logo = script.Parent
local music = workspace.music
local minSize = 0.3 -- Minimum size of the logo
local maxSize = 0.7 -- Maximum size of the logo
local smoothness = 0.05
local function ResizeLogo()
local loudness = math.clamp(music.PlaybackLoudness / 1000, minSize, maxSize)
logo:TweenSize(UDim2.fromScale(loudness, loudness), Enum.EasingDirection.In, Enum.EasingStyle.Linear, smoothness, true)
end
run:BindToRenderStep('ResizeLogo', Enum.RenderPriority.Last.Value, ResizeLogo)
PlaybackLoudness returns a number from 0 to 1000 indicating how loud the Sound is currently playing back.