So I made a script that uses the BasePart:Resize()
function and I used it on the top face according to a Sound.PlaybackLoudness
but instead, it only resizes that face when the Sound.PlaybackLoudness
is at its peak and keeps resizing.
local s = workspace.Sound wait(2) while wait() do for i,p in pairs(workspace.q:GetChildren()) do p:Resize(Enum.NormalId.Top,s.PlaybackLoudness/200) --I want to use this but it scales up infinitely -- I used p.Size = Vector3.new(1,s.PlaybackLoudness/math.random(100,250),1) before this end end
If you can help I will gladly appreciate it!