|
| 13 Jul 2015 02:34 PM |
This script gives me the error: Workspace.Script:13: attempt to call a nil value
function Byte(str) local r = "" for i = 1, #str do r = r.."\\"..str:sub(i,i):byte() end return r end
original = 'print("hello") error("nope")'
code = Byte(original)
loadstring(code)()
Can someone fix it? |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 13 Jul 2015 02:39 PM |
| Loadstring doesn't do byte code anymore. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 13 Jul 2015 03:33 PM |
| Can someone atleast fix the code? |
|
|
| Report Abuse |
|
|