generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: wierd error?

Previous Thread :: Next Thread 
ThrownException is not online. ThrownException
Joined: 17 Apr 2009
Total Posts: 1945
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
ThrownException is not online. ThrownException
Joined: 17 Apr 2009
Total Posts: 1945
26 Oct 2015 04:01 PM
bump1
Report Abuse
ThrownException is not online. ThrownException
Joined: 17 Apr 2009
Total Posts: 1945
26 Oct 2015 04:29 PM
bump2
Report Abuse
ThrownException is not online. ThrownException
Joined: 17 Apr 2009
Total Posts: 1945
26 Oct 2015 06:01 PM
bump3
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
26 Oct 2015 06:29 PM
":lower().find"
Replace that with
:lower():find
Report Abuse
beanbeanz is not online. beanbeanz
Joined: 23 Oct 2007
Total Posts: 506
26 Oct 2015 06:31 PM
is this a script executor
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image