RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make all letter 'e' change nto the letter 3"
-- This is a simple script that replaces all instances of the letter 'e' with the number '3' in a string. local function replaceEwith3(str) return str:gsub('e', '3'):gsub('E', '3') end -- Example usage: local myString = "Hello, welcome to the game!" print(replaceEwith3(myString)) -- Output: "H3llo, w3lcom3 to th3 gam3!"