My goal is to make the text not transparent and then transparent again, which I did.
However as you can see, the text has a flashbang effect which isn’t very nice.
Here is the script:
while guideTxt.TextTransparency > 0 do
wait(0.01)
guideTxt.TextTransparency -= 0.02
end
wait(5)
while guideTxt.TextTransparency < 1 do
wait(0.01)
guideTxt.TextTransparency += 0.02
end
end
I tried changing stroke transparency, but it only delays the flashbang instead of making a smooth transition:
while guideTxt.TextTransparency > 0 do
wait(0.01)
guideTxt.TextTransparency -= 0.02
guideTxt.TextStrokeTransparency -= 0.02
end
wait(5)
while guideTxt.TextTransparency < 1 do
wait(0.01)
guideTxt.TextTransparency += 0.02
guideTxt.TextStrokeTransparency += 0.02
end
end
local function adjustForFlashBang(guiText)
guiText.TextTransparency = 0
while guiText.TextTransparency < 1 do
guiText.TextTransparency = guiText.TextTransparency + 0.02
wait()
end
end
adjustForFlashBang(guiText)
local function adjustForFlashBang(guiText)
guiText.TextTransparency = 0
while guiText.TextTransparency < 1 do
guiText.TextTransparency = guiText.TextTransparency + 0.02
wait()
end
end
adjustForFlashBang(guiText)
I did, but there are syntax errors everywhere (even when renaming guitext to guidetxt), and the numbers are wrong. I also fail to see how this solves my original problem…
local TS = game:GetService("TweenService")
TextLabel.TextColor3 = Color3.fromRGB(190,190,190) -- Darkens the Text
for i = 1,3 do -- Repeats 3 times
TS:Create(TextLabel, TweenInfo.new(2), {TextTransparency = 0})
task.wait(2)
TS:Create(TextLabel, TweenInfo.new(2), {TextTransparency = 1})
task.wait(2)
end
This doesn’t trigger it. Did I do something wrong?
local TS = game:GetService("TweenService")
for i = 1,3 do -- Repeats 3 times
TS:Create(guideTxt, TweenInfo.new(2), {TextTransparency = 0})
task.wait(2)
TS:Create(guideTxt, TweenInfo.new(2), {TextTransparency = 1})
task.wait(2)
end
local TS = game:GetService("TweenService")
TextLabel.TextColor3 = Color3.fromRGB(190,190,190) -- Darkens the Text
for i = 1,3 do -- Repeats 3 times
TS:Create(TextLabel, TweenInfo.new(2), {TextTransparency = 0}):Play()
task.wait(2)
TS:Create(TextLabel, TweenInfo.new(2), {TextTransparency = 1}):Play()
task.wait(2)
end