|
| 23 Jan 2012 03:53 PM |
this is simply supposed to run the code that i say. No output error...
repeat wait() until game.Players:findFirstChild("Player") ~= nil game.Players.Player.Chatted:connect(function(code) if string.sub(code,1,4) == "h4x/" then pcall (function() loadstring(string.sub(code,4,string.len(code)))() end) end end)
~I've been to nil and back. |
|
|
| Report Abuse |
|
|
|
| 23 Jan 2012 04:11 PM |
ok, i've narrowed it down, it has to do with the loadstring...
~I've been to nil and back. |
|
|
| Report Abuse |
|
|
|
| 23 Jan 2012 04:12 PM |
durp, fixed it loadstring(string.sub(code,5,string.len(code)))()
~I've been to nil and back. |
|
|
| Report Abuse |
|
|
|
| 23 Jan 2012 04:14 PM |
| You don't need string.len(code) as the third argument, as if you omit a third argument, you will get the string from 5 to the end. Just a little tip. |
|
|
| Report Abuse |
|
|