Hey! I’m trying to gsub the brackets away but for some reason it’s not working and it gets me the error in the title.
--Remove the brackets
local firstGsub = inputString:gsub("(", "")
local secondGsub = firstGsub:gsub(")", "")
The inputString is “(bar”)
Edit: Maybe it’s because brackets are used for character matching?
But what should I do then? It needs to remove the ()s and the ()s are not only at the beginning and at the end, sometimes they are in the middle etc