So I was using Gsub to remove part of a string from another string, heres the code:
setValue = string.split(setValue,']')[1] -- this is 4
local remove = '['..tostring(setValue)..']'
action = string.gsub(action,remove,'')
print(action,setValue,remove)
so after I remove the stuff from action and print it I get this:
action = gravity
setvalue = 4
remove = [4]
So uh yeah the brackets arent getting removed from action