Yeah so I made this tween and I was expecting that when the function is called every TextButton should Tween its BackgroundTransparency and the TextTransparency of a TextLabel in the Button at the same Time. But the Button don’t tween at the same time and they don’t even tween the TextTransparency of the parented textlabel. My Question: How to fix this script that every Tween plays at the same time (basically how to play multiple tweens at the same time).
function Visible()
for i,v in pairs(script.Parent.Options:GetChildren()) do
if v:IsA("TextButton") and v.TextLabel then
if v.BackgroundTransparency == 1 then
local Tween = TweenService:Create(v, TweenInfo.new(1.5), {BackgroundTransparency = 0}, v.TextLabel, TweenInfo.new(1.5), {TextTransparency = 0})
Tween:Play()
Tween.Completed:Wait()
else
local Tween = TweenService:Create(v, TweenInfo.new(1.5), {BackgroundTransparency = 1}, v.TextLabel, TweenInfo.new(1.5), {TextTransparency = 1})
Tween:Play()
Tween.Completed:Wait()
end
end
end
end
Sorry never got my hands on that function before
could you help me making this work with this function? should i add
coroutine.warp:connect(function()
–stuff
end)
?
Yeah i tried to do that, because there is a button in the button which should tween its text transparency
Im not sure how to do the same thing but EVERYTHING (button, button in button,etc.) tweens at the same time. Should I just remove the .Completed:Wait() thing?