Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Visualizer script doesnt work as intended?

Asked by
3F1VE 257 Moderation Voter
3 years ago
Edited 3 years ago

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

local s = workspace.Sound
wait(2)
for i,p in pairs(workspace.q:GetChildren()) do
        while wait() do
            p.Size =  Vector3.new(1,s.PlaybackLoudness/math.random(100,250),1)
        end
end

The script is a local script and parented under replicatedfirst.

1 answer

Log in to vote
1
Answered by 3 years ago

Swap places with the for and the while loop

0
For not with acer1102 97 — 3y
Ad

Answer this question