Question, how to make the text appear like that? If I’m not mistaken, it is necessary to use tween for this? But I don’t know how exactly, can you give me an example?
1 Like
yeah you need tweens to do this.
2 Likes
Yeah. Tweening seems to be the easiest and simplest way to do this.
Heres a simple system that i made without testing.
local TweenService = game:GetService("TweenService")
local Text = script.Parent.TextLabel --Change this to wherever your textlabel is
function zoom()
Text.Size = UDim2.new(0.5, 0, 0.5, 0)
local temp1 = TweenService:Create(Text, TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {TextTransparency = 0})
temp1:Play()
Text:TweenSize(UDim2.new(0.25, 0, 0.25, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 1)
repeat wait() until temp1.PlaybackState ~= Enum.PlaybackState.Playing
local temp1 = TweenService:Create(Text, TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {TextTransparency = 1})
temp1:Play()
repeat wait() until temp1.PlaybackState ~= Enum.PlaybackState.Playing
end
--Make a loop that runs the function
2 Likes
Yep tweens or springs, but the former is more popular so I’ll provide an example with that.
TextLabel.Size = UDim2.new(1.5, 0, 1.5, 0)
TextLabel.TextTransparency = 1
local popInTween = TweenService:Create(
TextLabel,
TweenInfo.new(
0.5,
Enum.EasingStyle.Back,
Enum.EasingDirection.Out
),
{
Size = UDim2.new(1, 0, 1, 0),
TextTransparency = 0
}
)
local popOutTween = TweenService:Create(
TextLabel,
TweenInfo.new(
1,
Enum.EasingStyle.Exponential,
Enum.EasingDirection.Out
),
{
Size = UDim2.new(0, 0, 0, 0),
TextTransparency = 1
}
)
popInTween:Play()
popInTween.Completed:Wait()
popOutTween:Play()
But ye check out something like spr by Fraktality, its much more simple
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.