Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Removing one part of a string?

I am wondering how I remove one part of a string, in the instance that the string consists of the same two words.

string.gsub(Value, Pet, "")

If the value consists of two of the same words, they both get replaced by "", but is there a way to use gsub and have only one of those words get deleted, or is there another way to manipulate the string?

Any help would be greatly appreciated!

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.