Hi there, I’m back again. I have this tween script, so that when I enable it, it will fade audio down. When I added v:Stop()
and a wait(2)
the script broke, and would only fade and stop 6 out of my 8 speakers.
There are no errors in the output, could someone help me to resolve the issue?
Script:
local TS = game:GetService("TweenService")
for i, v in pairs(game.Workspace.Speakers:GetChildren()) do
if v:IsA("Part") then
for i, v in pairs(v:GetChildren()) do
if v.Name == "FlightOverCityscapeEdit" then
local Tween = TS:Create(v, TweenInfo.new(1.5, Enum.EasingStyle.Linear), {Volume = 0})
Tween:Play()
wait(2)
v:Stop()
end
end
end
end
script.Disabled = true