Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Visualizer script doesnt work as intended?

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

✓ Accepted answer

Swap places with the for and the while loop

1 comment

0

For not with

This discussion is preserved as it was. New answers, comments, and votes are closed.