Hey guys! I hope you are doing very very well! Being direct as always here’s my problem:
-
What do you want to achieve?
Translate a typewriter function from english text to other type of languages manually (and so translate the game).
Here’s the function and how you summon it:
local function typewrite (object, text, length, initialText)
initialText = initialText or ""
for i = 1, #text,1 do
object.Text = initialText..string.sub(text,1, i)
task.wait (length)
end
end
typewrite (TextLabel, "Example text", 0.07) -- Gui localization, text to typewrite, and seconds which should last.
For ex: If I wrote a text in the typewriter function that says “Hello there!”, I would want a way to detect the player’s roblox web language and so that way I can make and “if statement” so the typewriter writes different things.
if player.English == true then
typewrite(TextLabel, "English test example", 0.03)
elseif player.French == true then
typewrite(Textlabel, "French test exemple", 0.03 )
elseif player.Spanish == true then
typewrite(Textlabel, "Test de ejemplo", 0.03 )
elseif player.Japanese == true then
typewrite(Textlabel, "試験例", 0.03 )
end
-
What is the issue? Roblox localization page doesn’t work when using this function.
-
What solutions have you tried so far? Searching on youtube and searching on the Internet in general.
Thank you for everything and have a nice day and life! byee!