I am trying to replace some non-working asset links in an older game with the new format. But for whatever reason, I cannot. This is my code:
if string.find(b,a) then
Why does this not find
b? It’s clearly in there.
Could be wrong but I think you are looking at
string.find’s second argument is a string pattern, when you send in
a, it’s being read as a pattern.
a should look like this:
a = "http://www%.roblox%.com/thumbs/asset%.ashx%?assetId="
% tells it to ignore special characters
Seems to be a working fix. (limit)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.