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

My equalizer keeps squishing down. Why?

Asked by 4 years ago

So, I'm making a meme game, and I was making an equalizer for the songs, and I clicked the run button and it was working, all good, it was tuning it for the song. But then... I clicked play and all it would do is squish down into a 1 x 1 x 1 brick, and do nothing, I didn't even get an error. Please help: game.Players.PlayerAdded:Connect(function(player)

player.CharacterAdded:Connect(function(char)

while true do local equalize = script.Parent.Music.PlaybackLoudness

local tweenService = game:GetService("TweenService")

local tweenInfo = TweenInfo.new(0.7,Enum.EasingStyle.Back,Enum.EasingDirection.InOut,0,false,0)

for i,v in pairs(script.Parent:GetChildren()) do

    if v:IsA("Part") then

        local Tween = tweenService:Create(v,tweenInfo,{Size = Vector3.new(0.536,equalize/math.random(30,80),0.536)})

        Tween:Play()
        wait(0.7)
    end
end
wait()
end

end)

end)

Answer this question