So I made a script that's supposed to make every part in a model change their Y size to the PlaybackLoudness of a sound
1 | local s = workspace.Sound |
2 | wait( 2 ) |
3 | for i,p in pairs (workspace.q:GetChildren()) do |
4 | while wait() do |
5 | p.Size = Vector 3. new( 1 ,s.PlaybackLoudness/math.random( 100 , 250 ), 1 ) |
6 | end |
7 | end |
The script is a local script and parented under replicatedfirst.