Hello, I am currently writing a script which auto generates 3d text using meshes of every letter. This includes letters like ñ, í or è. I loop through the text i want to put in 3d using something like this:
text = 'Héllo'
for i=1,#text do
game.ServerStorage.Letters['Letter_'..string.sub(text,i,i)]:Clone()
end
However, when the string passes through string.sub, it returns a �(question mark thingy) instead of the letter é, which results in getting Letter_� instead of Letter_é and my script not finding the letter. How do i fix this?
You could use gsub(), and attempt to replace the string with a recognisable string like “ewithaccent” and then perform the sub() function on that new string looking for “ewithaccent” instead.
I recognise that, that’s why I deleted the post immediately - don’t know if that showed up though. That’s my bad because I didn’t check which methods were ported over.