I'm making a LuaC engine, and it utilizes PCall, but I need the string converted to a table.
plr.Chatted:connect(function(msg) local function compile(...) local func,err = pcall(...) if (func) then sc("LuaC script executed",BrickColor.Green().Color) else sc(err,BrickColor.Red().Color) end end compile(msg) end)
Standard.ArrayToString = function(Array) local String = "" for i, v in ipairs(Array) do String = String..tostring(v) end return String end Standard.StringToArray = function(String) local Array = {} for i = 1, String:len() do table.insert(Array, String:sub(i,i)) end return Array end
Since I already know what you're doing, here you go! You should see that it works fine.