Code: Select all
function string.insert(str, pos, new)
return str:sub(1,pos)..new..str:sub(pos+1)
end
string.insert("012345", 0, "<red>")
<red>012345
Or at least, that's how it SHOULD work. You broke something otherwise.
Code: Select all
function string.insert(str, pos, new)
return str:sub(1,pos)..new..str:sub(pos+1)
end