Ughhhh i just using animations from dev hub it’s 100% easier
local Text = script.Parent
local AnimateUI = require(game.ReplicatedStorage:WaitForChild("AnimateUI"))
local TextMessage = "Huh? So you wanna change your clicks into money?"
wait(0.4)
AnimateUI.typeWrite(Text,TextMessage,0.05)
local textLabel = script.Parent
local function changeText(number)
for i = 1, 10 do
textLabel.TextTransparency += number
task.wait(0.1)
end
end
changeText(0.1) --Make text transparent.
changeText(-0.1) --Make text opaque.
Consider using loops & parameters to make everything concise, also replace wait() with task.wait() instead.
uh does it get tired copying pasting the same thing multiple times?
you should try a for loop, it makes things much easier for u
here!
local function visible()
for i = 1,10 do
script.Parent.TextTransparency = script.Parent.TextTransparency -.1
wait(.1)
end
end
local function invisible()
for i = 1,10 do
script.Parent.TextTransparency = script.Parent.TextTransparency +.1
wait(.1)
end
end
I hate to say it so roughly but that’s an awful way of going about doing this.
I’d suggest using typewriter script since this is exactly what its made for and will save you from pasting line after line of just each letter.
For exmaple:
local Text = "Here is your text!"
for T = 1, #Text do
player.PlayerGui.TextWriter.Textwritten.Text = string.sub(Text, 1, T)
wait(0.1)
end
Well, idk if you helped him, but you helped me actually it was just a test that i wanted that for lol, but now if i want to make it, this is the solution