forked from dieggoggg/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRateMyAvatarPong.Lua
More file actions
179 lines (154 loc) · 23.4 KB
/
RateMyAvatarPong.Lua
File metadata and controls
179 lines (154 loc) · 23.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
-- some-what open source
Width = 40
Height =35
LP = 17
RP = 17
function Output1(Output1)
local args = {
[1] = "Update",
[2] = {
["DescriptionText"] = Output1,
["ImageId"] = 11811676086
}
}
game:GetService("ReplicatedStorage").CustomiseBooth:FireServer(unpack(args))
end
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=getfenv or function()return _ENV;end;local v9=setmetatable;local v10=pcall;local v11=select;local v12=unpack or table.unpack;local v13=tonumber;local function v14(v15,v16)local v17=1;local v18;v15=v4(v3(v15,5),"..",function(v29)if (v1(v29,2)==79) then v18=v0(v3(v29,1,1));return "";else local v70=v2(v0(v29,16));if v18 then local v82=v5(v70,v18);v18=nil;return v82;else return v70;end end end);local function v19(v30,v31,v32)if v32 then local v71=(v30/(2^(v31-1)))%(2^(((v32-1) -(v31-1)) + 1));return v71-(v71%1);else local v72=2^(v31-1);return (((v30%(v72 + v72))>=v72) and 1) or 0;end end local function v20()local v37=v1(v15,v17,v17);v17=v17 + 1;return v37;end local function v21()local v38,v39=v1(v15,v17,v17 + 2);v17=v17 + 2;return (v39 * 256) + v38;end local function v22()local v40,v41,v42,v43=v1(v15,v17,v17 + 3);v17=v17 + 4;return (v43 * 16777216) + (v42 * 65536) + (v41 * 256) + v40;end local function v23()local v44=v22();local v45=v22();return (( -2 * v19(v45,32)) + 1) * (2^(v19(v45,21,31) -1023)) * ((((v19(v45,1,20) * (2^32)) + v44)/(2^52)) + 1);end local function v24(v33)local v46;if not v33 then v33=v22();if (v33==0) then return "";end end v46=v3(v15,v17,(v17 + v33) -1);v17=v17 + v33;local v47={};for v58=1, #v46 do v47[v58]=v2(v1(v3(v46,v58,v58)));end return v6(v47);end local v25=v22;local function v26(...)return {...},v11("#",...);end local function v27()local v48={};local v49={};local v50={};local v51={v48,v49,nil,v50};local v52=v22();local v53={};for v60=1,v52 do local v61=v20();local v62;if (v61==1) then v62=v20()~=0;elseif (v61==2) then v62=v23();elseif (v61==3) then v62=v24();end v53[v60]=v62;end v51[3]=v20();for v64=1,v22() do local v65=v20();if (v19(v65,1,1)==0) then local v78=v19(v65,2,3);local v79=v19(v65,4,6);local v80={v21(),v21(),nil,nil};if (v78==0) then v80[3]=v21();v80[4]=v21();elseif (v78==1) then v80[3]=v22();elseif (v78==2) then v80[3]=v22() -(2^16);elseif (v78==3) then v80[3]=v22() -(2^16);v80[4]=v21();end if (v19(v79,1,1)==1) then v80[2]=v53[v80[2]];end if (v19(v79,2,2)==1) then v80[3]=v53[v80[3]];end if (v19(v79,3,3)==1) then v80[4]=v53[v80[4]];end v48[v64]=v80;end end for v66=1,v22() do v49[v66-1]=v27();end for v68=1,v22() do v50[v68]=v22();end return v51;end local function v28(v34,v35,v36)local v55=v34[1];local v56=v34[2];local v57=v34[3];return function(...)local v73=1;local v74= -1;local v75={...};local v76=v11("#",...) -1;local function v77()local v83=v55;local v84=Const;local v85=v56;local v86=v57;local v87=v26;local v88={};local v89={};local v90={};for v100=0,v76 do if (v100>=v86) then v88[v100-v86]=v75[v100 + 1];else v90[v100]=v75[v100 + 1];end end local v91=(v76-v86) + 1;local v92;local v93;while true do v92=v83[v73];v93=v92[1];if (v93<=16) then if (v93<=7) then if (v93<=3) then if (v93<=1) then if (v93>0) then local v107=v92[2];local v108=v92[4];local v109=v107 + 2;local v110={v90[v107](v90[v107 + 1],v90[v109])};for v158=1,v108 do v90[v109 + v158]=v110[v158];end local v111=v110[1];if v111 then v90[v109]=v111;v73=v92[3];else v73=v73 + 1;end else local v112=v92[2];v90[v112]=v90[v112](v90[v112 + 1]);end elseif (v93==2) then local v114=v92[2];local v115=v90[v92[3]];v90[v114 + 1]=v115;v90[v114]=v115[v92[4]];else v90[v92[2]]=v90[v92[3]] + v92[4];end elseif (v93<=5) then if (v93==4) then v90[v92[2]]=v35[v92[3]];else local v120=v85[v92[3]];local v121;local v122={};v121=v9({},{__index=function(v160,v161)local v174=v122[v161];return v174[1][v174[2]];end,__newindex=function(v162,v163,v164)local v175=v122[v163];v175[1][v175[2]]=v164;end});for v165=1,v92[4] do v73=v73 + 1;local v166=v83[v73];if (v166[1]==7) then v122[v165-1]={v90,v166[3]};else v122[v165-1]={v35,v166[3]};end v89[ #v89 + 1]=v122;end v90[v92[2]]=v28(v120,v121,v36);end elseif (v93>6) then v90[v92[2]]=v90[v92[3]];else local v125=v92[2];v90[v125]=v90[v125](v12(v90,v125 + 1,v92[3]));end elseif (v93<=11) then if (v93<=9) then if (v93>8) then if (v90[v92[2]]==v92[4]) then v73=v73 + 1;else v73=v92[3];end else v90[v92[2]][v92[3]]=v90[v92[4]];end elseif (v93==10) then local v128=v92[2];v90[v128]=v90[v128](v12(v90,v128 + 1,v74));else local v130=v92[2];local v131=v90[v130];local v132=v90[v130 + 2];if (v132>0) then if (v131>v90[v130 + 1]) then v73=v92[3];else v90[v130 + 3]=v131;end elseif (v131<v90[v130 + 1]) then v73=v92[3];else v90[v130 + 3]=v131;end end elseif (v93<=13) then if (v93>12) then local v133=v92[2];local v134=v90[v133 + 2];local v135=v90[v133] + v134;v90[v133]=v135;if (v134>0) then if (v135<=v90[v133 + 1]) then v73=v92[3];v90[v133 + 3]=v135;end elseif (v135>=v90[v133 + 1]) then v73=v92[3];v90[v133 + 3]=v135;end else local v137=v92[2];local v138={v90[v137](v90[v137 + 1])};local v139=0;for v168=v137,v92[4] do v139=v139 + 1;v90[v168]=v138[v139];end end elseif (v93<=14) then local v140=v92[2];local v141,v142=v87(v90[v140](v12(v90,v140 + 1,v92[3])));v74=(v142 + v140) -1;local v143=0;for v170=v140,v74 do v143=v143 + 1;v90[v170]=v141[v143];end elseif (v93>15) then if (v90[v92[2]]==v90[v92[4]]) then v73=v73 + 1;else v73=v92[3];end else local v177=v92[2];v90[v177](v12(v90,v177 + 1,v92[3]));end elseif (v93<=24) then if (v93<=20) then if (v93<=18) then if (v93>17) then v90[v92[2]]={};elseif (v90[v92[2]]~=v92[4]) then v73=v73 + 1;else v73=v92[3];end elseif (v93>19) then v90[v92[2]][v90[v92[3]]]=v90[v92[4]];else local v146=v92[3];local v147=v90[v146];for v172=v146 + 1,v92[4] do v147=v147 .. v90[v172];end v90[v92[2]]=v147;end elseif (v93<=22) then if (v93==21) then local v149=v92[2];v90[v149](v90[v149 + 1]);else do return;end end elseif (v93==23) then v90[v92[2]]=v28(v85[v92[3]],nil,v36);else v90[v92[2]]=v92[3];end elseif (v93<=28) then if (v93<=26) then if (v93==25) then v90[v92[2]]=v36[v92[3]];else v90[v92[2]]=v90[v92[3]][v90[v92[4]]];end elseif (v93>27) then v90[v92[2]]=v90[v92[3]][v92[4]];else v90[v92[2]]=v90[v92[3]] * v90[v92[4]];end elseif (v93<=30) then if (v93>29) then v73=v92[3];else v36[v92[3]]=v90[v92[2]];end elseif (v93<=31) then v90[v92[2]]=v90[v92[3]] + v90[v92[4]];elseif (v93>32) then v90[v92[2]][v90[v92[3]]]=v92[4];else v90[v92[2]][v92[3]]=v92[4];end v73=v73 + 1;end end A,B=v26(v10(v77));if not A[1] then local v94=v34[4][v73] or "?";error("Script error at [" .. v94 .. "]:" .. A[2]);else return v12(A,2,B);end end;end return v28(v27(),{},v16)();end v14("LOL!533O0003063O00636F756E7432028O0003063O0058636F756E7403063O0059636F756E7403053O00632O6F726403023O00524303053O00576964746803063O00486569676874026O00F03F03013O005803083O00746F737472696E6703023O002C5903063O0052656E646572030D3O00536574432O6F7264696E61746503043O006D61746803063O0072616E646F6D024O0084D79741022O0080FF642OCD4103083O00496E7374616E63652O033O006E657703093O005363722O656E47756903053O004672616D6503093O00546578744C6162656C030A3O005465787442752O746F6E03043O004E616D6503063O00506172656E7403043O0067616D6503073O00506C6179657273030B3O004C6F63616C506C61796572030C3O0057616974466F724368696C6403093O00506C61796572477569030E3O005A496E6465784265686176696F7203043O00456E756D03073O005369626C696E6703103O004261636B67726F756E64436F6C6F723303063O00436F6C6F723303073O0066726F6D524742025O00C05440030C3O00426F72646572436F6C6F7233030F3O00426F7264657253697A65506978656C026O00244003083O00506F736974696F6E03053O005544696D320230DFF23F9691DA3F023A67B8BF822DD83F03043O0053697A65025O00C06C40025O00A0684003063O004163746976650100025O00E06F4003163O004261636B67726F756E645472616E73706172656E63790241DC2F4016B2B03F02984EE09F0F64B73F026O006A40026O00564003043O00466F6E74030A3O00536F7572636553616E7303043O005465787403103O00432O6F72642073797374656D2062793A030A3O0054657874436F6C6F723303083O005465787453697A65025O00802O40030B3O00546578745772612O7065642O010259D6E97F3AB7D73F025O00C06940026O00484003113O0028312B313D32206F6E20726F626C6F782902085236A036DEE13F025O00A06940026O00474003153O0028726F75786861766572206F6E2067697468756229030A3O00546578745363616C656403013O0032025O00406540026O00084002D59135803D0AEB3F02C74A36E151B88E3F026O002C4003043O0047616D6503113O004D6F75736542752O746F6E31436C69636B03073O00636F2O6E6563740040012O0012183O00023O00121D3O00013O0012183O00023O00121D3O00033O0012183O00023O00121D3O00044O00127O00121D3O00054O00127O00121D3O00063O0012183O00023O001219000100073O001219000200084O001B000100010002001218000200093O00040B3O00310001001219000400063O002021000400030002001219000400053O0012180005000A3O0012190006000B3O001219000700036O0006000200020012180007000C3O0012190008000B3O001219000900043O0020030009000900094O0008000200022O0013000500050008001219000600033O001219000700043O001219000800074O001B0007000700082O001F0006000600072O0014000400050006001219000400033O00200300040004000900121D000400033O001219000400033O001219000500073O002003000500050009000610000400300001000500041E3O00300001001218000400093O00121D000400033O001219000400043O00200300040004000900121D000400043O00040D3O001000010002177O00121D3O000D3O0002173O00013O00121D3O000E3O0012193O000B3O0012190001000F3O00201C000100010010001218000200113O001218000300124O000E000100034O000A5O0002001219000100133O00201C000100010014001218000200156O000100020002001219000200133O00201C000200020014001218000300166O000200020002001219000300133O00201C000300030014001218000400176O000300020002001219000400133O00201C000400040014001218000500176O000400020002001219000500133O00201C000500050014001218000600176O000500020002001219000600133O00201C000600060014001218000700186O000600020002001008000100193O0012190007001B3O00201C00070007001C00201C00070007001D00200200070007001E0012180009001F4O00060007000900020010080001001A0007001219000700213O00201C00070007002000201C000700070022001008000100200007001008000200193O0010080002001A0001001219000700243O00201C000700070025001218000800263O001218000900263O001218000A00264O00060007000A0002001008000200230007001219000700243O00201C000700070025001218000800023O001218000900023O001218000A00024O00060007000A00020010080002002700070030200002002800290012190007002B3O00201C0007000700140012180008002C3O001218000900023O001218000A002D3O001218000B00024O00060007000B00020010080002002A00070012190007002B3O00201C000700070014001218000800023O0012180009002F3O001218000A00023O001218000B00304O00060007000B00020010080002002E0007001008000300193O0010080003001A0002003020000300310032001219000700243O00201C000700070025001218000800333O001218000900333O001218000A00334O00060007000A00020010080003002300070030200003003400090012190007002B3O00201C000700070014001218000800353O001218000900023O001218000A00363O001218000B00024O00060007000B00020010080003002A00070012190007002B3O00201C000700070014001218000800023O001218000900373O001218000A00023O001218000B00384O00060007000B00020010080003002E0007001219000700213O00201C00070007003900201C00070007003A0010080003003900070030200003003B003C001219000700243O00201C000700070025001218000800023O001218000900023O001218000A00024O00060007000A00020010080003003D00070030200003003E003F003020000300400041001008000400193O0010080004001A0002003020000400310032001219000700243O00201C000700070025001218000800333O001218000900333O001218000A00334O00060007000A00020010080004002300070030200004003400090012190007002B3O00201C000700070014001218000800353O001218000900023O001218000A00423O001218000B00024O00060007000B00020010080004002A00070012190007002B3O00201C000700070014001218000800023O001218000900433O001218000A00023O001218000B00444O00060007000B00020010080004002E0007001219000700213O00201C00070007003900201C00070007003A0010080004003900070030200004003B0045001219000700243O00201C000700070025001218000800023O001218000900023O001218000A00024O00060007000A00020010080004003D00070030200004003E003F003020000400400041001008000500193O0010080005001A0002003020000500310032001219000700243O00201C000700070025001218000800333O001218000900333O001218000A00334O00060007000A00020010080005002300070030200005003400090012190007002B3O00201C000700070014001218000800353O001218000900023O001218000A00463O001218000B00024O00060007000B00020010080005002A00070012190007002B3O00201C000700070014001218000800023O001218000900473O001218000A00023O001218000B00484O00060007000B00020010080005002E0007001219000700213O00201C00070007003900201C00070007003A0010080005003900070030200005003B0049001219000700243O00201C000700070025001218000800023O001218000900023O001218000A00024O00060007000A00020010080005003D00070030200005004A00410030200005003E003F0030200005004000412O000700075O0012180008004B4O00130007000700080010080006001900070010080006001A0002001219000700243O00201C000700070025001218000800333O001218000900023O001218000A00024O00060007000A0002001008000600230007001219000700243O00201C0007000700250012180008004C3O001218000900023O001218000A00024O00060007000A000200100800060027000700302000060028004D0012190007002B3O00201C0007000700140012180008004E3O001218000900023O001218000A004F3O001218000B00024O00060007000B00020010080006002A00070012190007002B3O00201C000700070014001218000800023O0012180009003F3O001218000A00023O001218000B003F4O00060007000B00020010080006002E0007001219000700213O00201C00070007003900201C00070007003A0010080006003900070030200006003B000A001219000700243O00201C000700070025001218000800333O001218000900333O001218000A00334O00060007000A00020010080006003D00070030200006004A00410030200006003E0050003020000600400041001219000700513O00201C00070007001C00201C00070007001D00201C00070007001F2O001A000700074O001A000800074O000700095O001218000A004B4O001300090009000A2O001A00080008000900201C000900080052002002000900090053000605000B0002000100012O00073O00074O000F0009000B00012O00163O00013O00033O00193O0003063O004F7574707574034O0003053O00706169727303023O005243028O0003043O006368617203043O0075746638026O00F03F027O0040026O000840026O001040026O001440026O001840026O001C40026O002040026O002240026O002440026O002640026O002840026O002A40026O002C4003063O00636F756E743203053O00576964746803013O000A03073O004F7574707574310F893O001218000F00023O00121D000F00013O001219000F00033O001219001000044O000C000F0002001100041E3O00830001002611001200830001000500041E3O008300010026090013000F0001000500041E3O000F0001001219001400073O00201C0014001400062O000700158O00140002000200121D001400063O002609001300160001000800041E3O00160001001219001400073O00201C0014001400062O0007001500016O00140002000200121D001400063O0026090013001D0001000900041E3O001D0001001219001400073O00201C0014001400062O0007001500026O00140002000200121D001400063O002609001300240001000A00041E3O00240001001219001400073O00201C0014001400062O0007001500036O00140002000200121D001400063O0026090013002B0001000B00041E3O002B0001001219001400073O00201C0014001400062O0007001500046O00140002000200121D001400063O002609001300320001000C00041E3O00320001001219001400073O00201C0014001400062O0007001500056O00140002000200121D001400063O002609001300390001000D00041E3O00390001001219001400073O00201C0014001400062O0007001500066O00140002000200121D001400063O002609001300400001000E00041E3O00400001001219001400073O00201C0014001400062O0007001500076O00140002000200121D001400063O002609001300470001000F00041E3O00470001001219001400073O00201C0014001400062O0007001500086O00140002000200121D001400063O0026090013004E0001001000041E3O004E0001001219001400073O00201C0014001400062O0007001500096O00140002000200121D001400063O002609001300550001001100041E3O00550001001219001400073O00201C0014001400062O00070015000A6O00140002000200121D001400063O0026090013005C0001001200041E3O005C0001001219001400073O00201C0014001400062O00070015000B6O00140002000200121D001400063O002609001300630001001300041E3O00630001001219001400073O00201C0014001400062O00070015000C6O00140002000200121D001400063O0026090013006A0001001400041E3O006A0001001219001400073O00201C0014001400062O00070015000D6O00140002000200121D001400063O002609001300710001001500041E3O00710001001219001400073O00201C0014001400062O00070015000E6O00140002000200121D001400063O001219001400163O001219001500173O0006100014007C0001001500041E3O007C0001001218001400083O00121D001400163O001219001400013O001218001500184O001300140014001500121D001400013O00041E3O007F0001001219001400163O00200300140014000800121D001400163O001219001400013O001219001500064O001300140014001500121D001400013O000601000F00060001000200041E3O00060001001219000F00193O001219001000014O0015000F000200012O00163O00017O00893O00103O00103O00113O00113O00113O00113O00123O00123O00133O00133O00143O00143O00143O00143O00143O00163O00163O00173O00173O00173O00173O00173O00193O00193O001A3O001A3O001A3O001A3O001A3O001C3O001C3O001D3O001D3O001D3O001D3O001D3O001F3O001F3O00203O00203O00203O00203O00203O00223O00223O00233O00233O00233O00233O00233O00253O00253O00263O00263O00263O00263O00263O00283O00283O00293O00293O00293O00293O00293O002B3O002B3O002C3O002C3O002C3O002C3O002C3O002E3O002E3O002F3O002F3O002F3O002F3O002F3O00313O00313O00323O00323O00323O00323O00323O00343O00343O00353O00353O00353O00353O00353O00373O00373O00383O00383O00383O00383O00383O003A3O003A3O003B3O003B3O003B3O003B3O003B3O003D3O003D3O003E3O003E3O003E3O003E3O003E3O00403O00403O00403O00403O00423O00423O00433O00433O00433O00433O00443O00463O00463O00463O00483O00483O00483O00483O00113O00493O004B3O004B3O004B3O004C3O00023O0003023O00524303053O00632O6F726402053O001219000200013O001219000300024O001A000300034O00140002000300012O00163O00017O00053O004E3O004E3O004E3O004E3O004F3O00023O0003073O00456E61626C6564012O00034O00047O0030203O000100022O00163O00017O00033O00963O00963O00973O0040012O00013O00013O00023O00023O00033O00033O00043O00043O00053O00053O00063O00063O00063O00063O00063O00063O00073O00073O00083O00083O00083O00083O00083O00083O00083O00083O00083O00083O00083O00083O00083O00083O00083O00083O00083O00093O00093O00093O000A3O000A3O000A3O000A3O000A3O000B3O000B3O000C3O000C3O000C3O00063O004C3O000F3O004F3O004D3O00503O00503O00503O00503O00503O00503O00503O00513O00513O00513O00513O00523O00523O00523O00523O00533O00533O00533O00533O00543O00543O00543O00543O00553O00553O00553O00553O00563O00563O00563O00563O00573O00583O00583O00583O00583O00583O00583O00583O00593O00593O00593O00593O005A3O005B3O005C3O005C3O005C3O005C3O005C3O005C3O005C3O005D3O005D3O005D3O005D3O005D3O005D3O005D3O005E3O005F3O005F3O005F3O005F3O005F3O005F3O005F3O005F3O00603O00603O00603O00603O00603O00603O00603O00603O00613O00623O00633O00643O00643O00643O00643O00643O00643O00643O00653O00663O00663O00663O00663O00663O00663O00663O00663O00673O00673O00673O00673O00673O00673O00673O00673O00683O00683O00683O00683O00693O006A3O006A3O006A3O006A3O006A3O006A3O006A3O006B3O006C3O006D3O006E3O006F3O00703O00703O00703O00703O00703O00703O00703O00713O00723O00723O00723O00723O00723O00723O00723O00723O00733O00733O00733O00733O00733O00733O00733O00733O00743O00743O00743O00743O00753O00763O00763O00763O00763O00763O00763O00763O00773O00783O00793O007A3O007B3O007C3O007C3O007C3O007C3O007C3O007C3O007C3O007D3O007E3O007E3O007E3O007E3O007E3O007E3O007E3O007E3O007F3O007F3O007F3O007F3O007F3O007F3O007F3O007F3O00803O00803O00803O00803O00813O00823O00823O00823O00823O00823O00823O00823O00833O00843O00853O00863O00863O00863O00863O00873O00883O00883O00883O00883O00883O00883O00883O00893O00893O00893O00893O00893O00893O00893O008A3O008B3O008B3O008B3O008B3O008B3O008B3O008B3O008B3O008C3O008C3O008C3O008C3O008C3O008C3O008C3O008C3O008D3O008D3O008D3O008D3O008E3O008F3O008F3O008F3O008F3O008F3O008F3O008F3O00903O00913O00923O00933O00933O00933O00933O00933O00943O00943O00943O00943O00943O00953O00953O00973O00973O00953O00973O00",v8());
while true do
for count = 1,40,1 do
SetCoordinate("X"..tostring(count)..",Y1",1)
end
for count = 1,40,1 do
SetCoordinate("X"..tostring(count)..",Y35",1)
end
for count = 1,35,1 do
SetCoordinate("X1,Y"..tostring(count),1)
end
for count = 1,35,1 do
SetCoordinate("X40,Y"..tostring(count),1)
end
ballx = 20
bally = 17
clock = 0
movey = 0
movex = 1
movel = ""
mover = ""
local ReplicatedStorage = game:FindService("ReplicatedStorage")
local ChatEvents = ReplicatedStorage:WaitForChild("DefaultChatSystemChatEvents")
local OnMessageEvent = ChatEvents:WaitForChild("OnMessageDoneFiltering")
local SayMessageRequest = ChatEvents:WaitForChild("SayMessageRequest")
if not SayMessageRequest:IsA("RemoteEvent") or not OnMessageEvent:IsA("RemoteEvent") then return end
local ChatLegth = require(game:FindService("Chat"):WaitForChild("ClientChatModules"):WaitForChild("ChatSettings")).MaximumMessageLength
OnMessageEvent.OnClientEvent:Connect(function(data)
if not data then return end
local player = tostring(data.FromSpeaker)
local message = tostring(data.Message)
if (message):len() <= (ChatLegth-7) then
if string.lower(message):match("lu") then do
movel = "up"
end elseif string.lower(message):match("ld") then do
movel = "down"
end elseif string.lower(message):match("ru") then do
mover = "up"
end elseif string.lower(message):match("rd") then
mover = "down"
end
end end)
while wait(0.01) do
clock = clock + 1
--SetCoordinate("X1,Y1",5)
if clock == 10 then
clock = 0
SetCoordinate("X"..ballx..",Y"..bally,0)
SetCoordinate("X"..tostring(ballx+1)..",Y"..tostring(bally+0),0)
SetCoordinate("X"..tostring(ballx+0)..",Y"..tostring(bally+1),0)
SetCoordinate("X"..tostring(ballx+1)..",Y"..tostring(bally+1),0)
if bally == 33 or bally == 34 then
movey = -1
end
if ballx == 38 then
break
end
if bally == 2 or bally == 1 then
movey = 1
end
if ballx == 2 then
break
end
if RC[coord["X"..tostring(ballx+2)..",Y"..bally]] == 2 or RC[coord["X"..tostring(ballx+2)..",Y"..tostring(bally+1)]] == 2 then
movex = -1
if math.random(1,3) == 1 then do movey = 2 end elseif math.random(1,2) == 1 then do movey = 0 end else movey = -2 end
end
if RC[coord["X"..tostring(ballx-1)..",Y"..bally]] == 6 or RC[coord["X"..tostring(ballx-1)..",Y"..tostring(bally+1)]] == 6 then
movex = 1
if math.random(1,3) == 1 then do movey = 2 end elseif math.random(1,2) == 1 then do movey = 0 end else movey = -2 end
end
ballx = ballx + movex
bally = bally + movey
SetCoordinate("X"..ballx..",Y"..bally,1)
SetCoordinate("X"..tostring(ballx+1)..",Y"..tostring(bally+0),1)
SetCoordinate("X"..tostring(ballx+0)..",Y"..tostring(bally+1),1)
SetCoordinate("X"..tostring(ballx+1)..",Y"..tostring(bally+1),1)
end
SetCoordinate("X4,Y"..tostring(LP+5),0)
SetCoordinate("X4,Y"..tostring(LP-5),0)
SetCoordinate("X4,Y"..tostring(LP+4),0)
SetCoordinate("X4,Y"..tostring(LP-4),0)
if movel == "down" and LP ~= 29 then
LP = LP + 2
movel = ""
end
if movel == "up" and LP ~= 7 then
LP = LP - 2
movel = ""
end
SetCoordinate("X4,Y"..LP,6)
SetCoordinate("X4,Y"..tostring(LP+1),6)
SetCoordinate("X4,Y"..tostring(LP+2),6)
SetCoordinate("X4,Y"..tostring(LP+3),6)
SetCoordinate("X4,Y"..tostring(LP-1),6)
SetCoordinate("X4,Y"..tostring(LP-2),6)
SetCoordinate("X4,Y"..tostring(LP-3),6)
SetCoordinate("X4,Y"..tostring(LP+4),6)
SetCoordinate("X4,Y"..tostring(LP-4),6)
SetCoordinate("X37,Y"..tostring(RP+4),0)
SetCoordinate("X37,Y"..tostring(RP-5),0)
SetCoordinate("X37,Y"..tostring(RP+5),0)
SetCoordinate("X37,Y"..tostring(RP-4),0)
if mover == "down" and RP ~= 29 then
RP = RP + 2
mover = ""
end
if mover == "up" and RP ~= 7 then
RP = RP - 2
mover = ""
end
SetCoordinate("X37,Y"..RP,2)
SetCoordinate("X37,Y"..tostring(RP+1),2)
SetCoordinate("X37,Y"..tostring(RP+2),2)
SetCoordinate("X37,Y"..tostring(RP+3),2)
SetCoordinate("X37,Y"..tostring(RP+4),2)
SetCoordinate("X37,Y"..tostring(RP-1),2)
SetCoordinate("X37,Y"..tostring(RP-2),2)
SetCoordinate("X37,Y"..tostring(RP-3),2)
SetCoordinate("X37,Y"..tostring(RP-4),2)
for count = 1,40,1 do
SetCoordinate("X"..tostring(count)..",Y1",1)
end
for count = 1,40,1 do
SetCoordinate("X"..tostring(count)..",Y35",1)
end
Render(0x0001F5A4,-- 0 black
0x0001F90D,-- 1 white
0x00002764,-- 2 red
0x0001F9E1,-- 3 orange
0x0001F49B,-- 4 yellow
0x0001F49A,-- 5 green
0x0001F499,-- 6 blue
0x0001F49C,-- 7 purple
0x0001F90E,-- 8 brown
0x0001F4BF,-- 9 grey
0,0,0,0,0) -- 10-14 other
end
end