|
| 26 Oct 2015 03:35 PM |
local pa = script.Parent.Text
if pa.sub(0, 3):lower().find("l/") then -- this is the line with the error execute_code(pa.sub(3), "local") elseif pa.sub(0, 3):lower().find("c/") then execute_code(pa.sub(3), "normal") elseif pa.sub(0, 3):lower().find("h/") then execute_code(pa.sub(3), "hnormal") elseif pa.sub(0, 4):lower().find("hl/") then execute_code(pa.sub(4), "hlocal") else -- Add whole another functionality here end
Gives me the error:
22:02:24.025 - Players.Player1.PlayerGui.O_GUI.TextBox.Commands:34: bad argument #2 to 'find' (string expected, got no value)
This code used to work just fine but now it doesn't. Any reasons? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 26 Oct 2015 06:29 PM |
":lower().find" Replace that with :lower():find |
|
|
| Report Abuse |
|
|
beanbeanz
|
  |
| Joined: 23 Oct 2007 |
| Total Posts: 506 |
|
| |
|