Title says it all, but basically I want something like:
-- My script text = "I love bananas very much!" -- And then have some code that changes "bananas" to "apples" print(text) --> So it will say "I love apples very much!"
I'n not very good with string manipulation yet, so any help would be appreciated!
Thanks in advance, SebbyTheGODKid
I believe it involves using gsub
local text = "I love bananas very much!" text = string.gsub(text,"bananas","apples") print(text)