How to change letters via textbox

So i want to make every a turn into e and the other way around so like hello would be hallo and dinosaur with be dinoseur and i dont know how

and I also want to know how to move like the first two letters to the end so dinosaur would be dinoseur and then noseurdo for example

What would be really helpful for you would be to read the documentation on Roblox string handling. Here are a couple examples for you though:

local word = string.gsub("hello", "e", "a"))
print(word)
print(string.gsub("dinosaur", "a", "e"))
print(string.sub("dinoseur",3)..string.sub("dinoseur",1,2))
1 Like