Hello DevForm member! I currently have a function here that is supposed to return me in a table whenever it finds the words to search for. After several checks I had solved my problem, I sent an object and find and not a string. But now I have a new problem that I don’t understand. I can’t find anything on the devForm or on the internet
So the error is user_AssetsWatcher.rbxmx.AssetsWatcher.Main:97: unfinished capture
(this is a plugin)
and this is the function
local function findAll(obj, sub)
local found = 0
local positions = {}
while(found)do
found = found + 1
found = obj:find(sub, found)
table.insert(positions, found)
end
return positions
end
local search = findAll(object.Source, "Hi!") -- object is a script
The line that cose the error is found = obj:find(sub, found)