Hello!
So basically i have 2 text labels in 2 different frames. I want to tween their transparencies so they both disappear at the same time. How would i do that? Thanks
Hello!
So basically i have 2 text labels in 2 different frames. I want to tween their transparencies so they both disappear at the same time. How would i do that? Thanks
You can use TweenService to do that:
local TweenService = game:GetService("TweenService")
local tInfo = TweenInfo.new(1) -- time & animation for tween
local disappearGoal = {Transparency = 1} -- goal for tween
local textlabel1
local textlabel2
-- [replace "textlabel1" and "textlabel2" with your TextLabels]
local Tween1 = TweenService:Create(textlabel1, tInfo, disappearGoal)
local Tween2 = TweenService:Create(textlabel2, tInfo, disappearGoal)
--creates tweens
-- when you want it to disappear
Tween1:Play()
Tween2:Play()
Yeah i tried that. But the issue is that it waits for the first tween to finish before starting the second one, and i want them to run at the exact same time
Tweens don’t yield, try checking if you added something (like Tween.Completed:Wait()
) that makes the code wait
I didnt add that but it still waits for the first tween to finish before continuing by default
Can you give us a snippet of your script?
ok nevermind i fixed it
charactersssssss
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.