Some of you may know that ROBLOX shipped a new fonts system which is supported by UTF-8. (I think) So I wanted to create a basic translate script, where there's a welcoming GUI saying, "Hello, how are you" and it can be translatable to "¿Hola cómo estás?" (Also, if you're curious about the new fonts system that has been shipped, check it out here: http://devforum.roblox.com/t/new-fonts-system-shipped/23237
But any who, the problem is that when you click Spanish (Or Español it'll say...) It comes in blank, but when you click the English button, it shows the translated text (which again, is "Hello, how are you?") And then clicking the Spanish button it comes in blank again.
For more of a visual of it, I'll provide the pictures that I think are necessary and the script that I created.
Pictures: Link 1 (The objects inside the Explorer): http://prntscr.com/adrp7r Link 2 (The menu of the translation): http://prntscr.com/adrqhq Link 3 (The menu after the Translate button has been clicked): http://prntscr.com/adrqns Link 4 (After the Spanish button has been clicked): http://prntscr.com/adrqu2
Script:
script.Parent:WaitForChild("TranslateButton").MouseButton1Click:connect(function() script.Parent.TranslateButton.Visible = false script.Parent.ScrollingFrame.Visible = true end) script.Parent.ScrollingFrame:WaitForChild("English").MouseButton1Click:connect(function() script.Parent.OutputText.Text = "Hello, how are you?" end) script.Parent.ScrollingFrame:WaitForChild("Spanish").MouseButton1Click:connect(function() script.Parent.OutputText.Text = "¿Hola cómo estás?" end)
Hope you're able to understand and help me.
Thank you!
~NanotechSci
Right now, I believe you cannot do this currently do to the characters/font you have. ROBLOX is currently working on that stuff.
end --of message :)--