SHOW:
|
|
- or go back to the newest paste.
1 | SavedFenvs = {} | |
2 | ||
3 | for i,v in pairs(getfenv()) do | |
4 | ||
5 | SavedFenvs[i]=true | |
6 | ||
7 | end | |
8 | ||
9 | -- c/while wait() do for i=1,200 do Instance.new("Message",game.Players.Damply.PlayerGui).Text="yes" end end | |
10 | ||
11 | ||
12 | ||
13 | ins = Instance.new | |
14 | ||
15 | v3 = Vector3.new | |
16 | ||
17 | cn = CFrame.new | |
18 | ||
19 | ca2 = CFrame.Angles | |
20 | ||
21 | mf = math.floor | |
22 | ||
23 | mran = math.random | |
24 | ||
25 | mrad = math.rad | |
26 | ||
27 | mdeg = math.deg | |
28 | ||
29 | ca = function(x,y,z) return ca2(mrad(x),mrad(y),mrad(z)) end | |
30 | ||
31 | ud=UDim2.new | |
32 | ||
33 | bn = BrickColor.new | |
34 | ||
35 | c3 = Color3.new | |
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
41 | Players = game:service'Players' | |
42 | ||
43 | Lighting = game:service'Lighting' | |
44 | ||
45 | Debris = game:service'Debris' | |
46 | ||
47 | ||
48 | ||
49 | Lastqi={} | |
50 | ||
51 | qit = {} | |
52 | ||
53 | qit["n"]="Name" | |
54 | ||
55 | qit["sc"]="Size" | |
56 | ||
57 | qit["cf"]="CFrame" | |
58 | ||
59 | qit["an"]="Anchored" | |
60 | ||
61 | qit["can"]="CanCollide" | |
62 | ||
63 | qit["mat"]="Material" | |
64 | ||
65 | qit["bn"]="BrickColor" | |
66 | ||
67 | qit["mid"]="MeshId" | |
68 | ||
69 | qit["tid"]="TextureId" | |
70 | ||
71 | qit["sca"]="Scale" | |
72 | ||
73 | qit["tra"]="Transparency" | |
74 | ||
75 | qit["ref"]="Reflectance" | |
76 | ||
77 | qit["mtyp"]="MeshType" | |
78 | ||
79 | qit["P0"]="Part0" | |
80 | ||
81 | qit["P1"]="Part1" | |
82 | ||
83 | qit["tya"]="TextYAlignment" | |
84 | ||
85 | qit["txa"]="TextXAlignment" | |
86 | ||
87 | qit["bc3"]="BackgroundColor3" | |
88 | ||
89 | qit["tc3"]="TextColor3" | |
90 | ||
91 | qit["pos"]="Position" | |
92 | ||
93 | qit["txt"]="Text" | |
94 | ||
95 | qit["bgt"]="BackgroundTransparency" | |
96 | ||
97 | qit["txs"]="TextTransparency" | |
98 | ||
99 | qit["tst"]="TextStrokeTransparency" | |
100 | ||
101 | qit["tsc3"]="TextStrokeColor3" | |
102 | ||
103 | qit["bsp"]="BorderSizePixel" | |
104 | ||
105 | ||
106 | ||
107 | print'test' | |
108 | ||
109 | C3Pro={} | |
110 | ||
111 | C3Pro['BackgroundColor3']=0 | |
112 | ||
113 | C3Pro['TextColor3']=0 | |
114 | ||
115 | C3Pro['TextStrokeColor3']=0 | |
116 | ||
117 | C3Pro['Color']=0 | |
118 | ||
119 | C3Pro['BorderColor3']=0 | |
120 | ||
121 | C3Pro['BackgroundColor3']=0 | |
122 | ||
123 | C3Pro['BackgroundColor3']=0 | |
124 | ||
125 | ||
126 | ||
127 | BNPro={} | |
128 | ||
129 | BNPro['BrickColor']=0 | |
130 | ||
131 | BNPro['TextColor']=0 | |
132 | ||
133 | BNPro['TextStrokeColor']=0 | |
134 | ||
135 | BNPro['BorderColor']=0 | |
136 | ||
137 | BNPro['BackgroundColor']=0 | |
138 | ||
139 | ||
140 | ||
141 | ||
142 | ||
143 | GuiClass={} | |
144 | ||
145 | GuiClass["Frame"]=0 | |
146 | ||
147 | GuiClass["TextLabel"]=0 | |
148 | ||
149 | GuiClass["TextButton"]=0 | |
150 | ||
151 | GuiClass["TextBox"]=0 | |
152 | ||
153 | GuiClass["ImageLabel"]=0 | |
154 | ||
155 | GuiClass["ImageButton"]=0 | |
156 | ||
157 | qi = function(tab) | |
158 | ||
159 | local v = ins(tab[1]) | |
160 | ||
161 | -- | |
162 | ||
163 | if v:IsA("Part") or v:IsA("WedgePart") then v.formFactor="Custom" end | |
164 | ||
165 | if v:IsA("BasePart") then v.TopSurface=0 v.BottomSurface=0 v.Locked=true end | |
166 | ||
167 | if GuiClass[v.className] then v.BorderSizePixel=0 end | |
168 | ||
169 | -- | |
170 | ||
171 | for index,element in pairs(tab) do | |
172 | ||
173 | if index~=1 and index~=2 then | |
174 | ||
175 | local index = qit[index] or index | |
176 | ||
177 | -- | |
178 | ||
179 | if C3Pro[index] and type(element)=='string' then element=bn(element).Color end | |
180 | ||
181 | if BNPro[index] and type(element)=='string' then element=bn(element) end | |
182 | ||
183 | -- | |
184 | ||
185 | if index=='Debris' then | |
186 | ||
187 | Debris:AddItem(v,element) | |
188 | ||
189 | else | |
190 | ||
191 | v[index]=element | |
192 | ||
193 | end | |
194 | ||
195 | end | |
196 | ||
197 | end | |
198 | ||
199 | if type(tab[2])=='number' then v.Parent=Lastqi[#Lastqi-tab[2]] elseif tab[2] then v.Parent=tab[2] end | |
200 | ||
201 | Lastqi[#Lastqi+1]=v | |
202 | ||
203 | if v:IsA("BasePart") then v:BreakJoints() end | |
204 | ||
205 | return v | |
206 | ||
207 | end | |
208 | ||
209 | ||
210 | ||
211 | ||
212 | ||
213 | ||
214 | ||
215 | iform=function(tab) | |
216 | ||
217 | for i,v in pairs(tab) do tab[v]=v end | |
218 | ||
219 | return tab | |
220 | ||
221 | end | |
222 | ||
223 | ||
224 | ||
225 | SetLocalPlayer = [==[ | |
226 | ||
227 | Player=Players.LocalPlayer | |
228 | ||
229 | Char=Player.Character | |
230 | ||
231 | if Char:findFirstChild("Head") or Char:findFirstChild("Torso") then else error'Player/CantFindParts' end | |
232 | ||
233 | Head=Char.Head | |
234 | ||
235 | Torso=Char.Torso | |
236 | ||
237 | Hum=Char.Humanoid | |
238 | ||
239 | Backpack=Player.Backpack | |
240 | ||
241 | PlayerGui=Player.PlayerGui | |
242 | ||
243 | ]==] | |
244 | ||
245 | ||
246 | ||
247 | q = function(f) -- quick function | |
248 | ||
249 | coroutine.resume(coroutine.create(function() f() end)) | |
250 | ||
251 | end | |
252 | ||
253 | ||
254 | ||
255 | --- the pw is my last name -2 letters + my 2012 school student id | |
256 | ||
257 | ||
258 | ||
259 | PlayerManager={} | |
260 | ||
261 | PM=PlayerManager | |
262 | ||
263 | pm=PM | |
264 | ||
265 | PM.Load = function(ta,st) | |
266 | ||
267 | local Pv | |
268 | ||
269 | local count=0 | |
270 | ||
271 | for i,v in pairs(Players:GetPlayers()) do if string.find(v.Name:lower(),st:lower()) and count==0 then Pv=v count=count+1 end end | |
272 | ||
273 | if not Pv or count>1 then return {} end | |
274 | ||
275 | local PStat={Name=Pv.Name,Age=Pv.AccountAge,v=Pv} | |
276 | ||
277 | if Pv.Character and Pv.Character:findFirstChild'Torso' then PStat.Torso=Pv.Character.Torso end | |
278 | ||
279 | if Pv.Character and Pv.Character:findFirstChild'Humanoid' then PStat.H=Pv.Character.Humanoid end | |
280 | ||
281 | PStat.Kill = function() if Pv.Character then Pv.Character:BreakJoints() end end | |
282 | ||
283 | PStat.asd = function() if Pv.Character and Pv.Character:findFirstChild'Torso' and Pv.Character:findFirstChild'Humanoid' then | |
284 | ||
285 | Pv.Character.Humanoid.Sit=true Pv.Character.Torso.CFrame=Pv.Character.Torso.CFrame*ca(45,0,0) Pv.Character.Torso.Velocity=Pv.Character.Torso.CFrame.lookVector*100 end end | |
286 | ||
287 | PStat.r=function() Pv:LoadCharacter() end | |
288 | ||
289 | PStat.Char=function() return Pv.Character end | |
290 | ||
291 | PStat.load=function() return Pv,Pv.Character,Pv.Backpack,Pv:findFirstChild'PlayerGui' end | |
292 | ||
293 | PStat.gca=function(t,naa) local Pv2=pm:l(naa).v if Pv2 then Pv.CharacterAppearance=Pv2.CharacterAppearance end end | |
294 | ||
295 | return PStat | |
296 | ||
297 | end | |
298 | ||
299 | PM.l=PM.Load | |
300 | ||
301 | --c/PlayerManager:Load'drew':asd() | |
302 | ||
303 | --c/_G.br = function() _G.brr = _G.brr and _G.brr:Remove() _G.brr = qi{'Part',workspace,an=true,FrontSurface='Hinge',cf=cn(0,6,0)} return _G.brr end | |
304 | ||
305 | ||
306 | ||
307 | Welds={} | |
308 | ||
309 | anipack={} | |
310 | ||
311 | Ani=function(w,a,b,c,d,e,f,ty,inc,sined) | |
312 | ||
313 | if not w or not w.Parent then return end | |
314 | ||
315 | if not Welds[w] then | |
316 | ||
317 | local d0,e0,f0=w.C0:toEulerAnglesXYZ() local d1,e1,f1=w.C1:toEulerAnglesXYZ() | |
318 | ||
319 | local d0,e0,f0=mdeg(d0),mdeg(e0),mdeg(f0) local d1,e1,f1=mdeg(d1),mdeg(e1),mdeg(f1) | |
320 | ||
321 | Welds[w]={[0]={w.C0.x,w.C0.y,w.C0.z,d0,e0,f0},[1]={w.C1.x,w.C1.y,w.C1.z,d1,e1,f1}} | |
322 | ||
323 | end | |
324 | ||
325 | local c0,c1=Welds[w][0],Welds[w][1] | |
326 | ||
327 | c0[1],c0[2],c0[3]=w.C0.x,w.C0.y,w.C0.z | |
328 | ||
329 | c1[1],c1[2],c1[3]=w.C1.x,w.C1.y,w.C1.z | |
330 | ||
331 | local A0,B0,C0,D0,E0,F0 = unpack(c0) | |
332 | ||
333 | local A1,B1,C1,D1,E1,F1 = unpack(c1) | |
334 | ||
335 | local Do = function(i) | |
336 | ||
337 | if ty==0 then | |
338 | ||
339 | w.C0=cn( A0-((A0-a)*i) , B0-((B0-b)*i) , C0-((C0-c)*i) ) * ca( D0-((D0-d)*i) , E0-(((E0-e)/1)*i) , F0-((F0-f)*i) ) | |
340 | ||
341 | elseif ty==1 then | |
342 | ||
343 | w.C1=cn( A1-((A1-a)*i) , B1-((B1-b)*i) , C1-((C1-c)*i) ) * ca( D1-((D1-d)*i) , E1-(((E1-e)/1)*i) , F1-((F1-f)*i) ) | |
344 | ||
345 | else | |
346 | ||
347 | w.C0=cn( A0-((A0-a)*i) , B0-((B0-b)*i) , C0-((C0-c)*i) ) * ca(D0,E0,F0) | |
348 | ||
349 | w.C1=cn(A1,B1,C1) * ca( D1-((D1-d)*i) , E1-(((E1-e)/1)*i) , F1-((F1-f)*i) ) | |
350 | ||
351 | end | |
352 | ||
353 | end | |
354 | ||
355 | if inc<1 then anipack[Do]={0,inc,sined,ty,c0,c1,d,e,f} else Do(1) end | |
356 | ||
357 | if not qq then repeat wait() until not anipack[Do] end | |
358 | ||
359 | end | |
360 | ||
361 | qAni=function(w,a,b,c,d,e,f,ty,inc,sined) q(function() Ani(w,a,b,c,d,e,f,ty,inc,sined,true) end) end | |
362 | ||
363 | rAni=function(w) | |
364 | ||
365 | Welds[w]=nil | |
366 | ||
367 | end | |
368 | ||
369 | ||
370 | ||
371 | ||
372 | ||
373 | --Tween loop | |
374 | ||
375 | Tl=function(a,b,c,ff,s) | |
376 | ||
377 | local Do=function(i) ff(i) end | |
378 | ||
379 | for i=a,b,c do | |
380 | ||
381 | Do(s and math.sin(math.pi/2*i) or i) | |
382 | ||
383 | wait() | |
384 | ||
385 | end | |
386 | ||
387 | Do(b) | |
388 | ||
389 | end | |
390 | ||
391 | qTl=function(a,b,c,ff,s) q(function() Tl(a,b,c,s,ff,s) end) end | |
392 | ||
393 | ||
394 | ||
395 | ||
396 | ||
397 | ||
398 | ||
399 | _G.LibVol=1 | |
400 | ||
401 | Sound = function(id,par,vol,pit) | |
402 | ||
403 | local sou = qi({"Sound",par or workspace,Volume=(vol or 1)*_G.LibVol,Pitch=pit or 1,SoundId=id,Debris=4}) | |
404 | ||
405 | delay(0,function() sou:play() end) | |
406 | ||
407 | return sou | |
408 | ||
409 | end | |
410 | ||
411 | ||
412 | ||
413 | GetX = function(CFF) | |
414 | ||
415 | local a1,a2,a3,a4,a5,a6,a7,a8,a9=CFF:components() | |
416 | ||
417 | return math.floor(math.deg(math.asin(a9))) | |
418 | ||
419 | end | |
420 | ||
421 | ||
422 | ||
423 | Dmg = function(Hum,Dealt,Hitter) | |
424 | ||
425 | if not Hum then return end | |
426 | ||
427 | if Dealt then Dealt=math.floor(Dealt) end | |
428 | ||
429 | local HM=Hum.Parent | |
430 | ||
431 | local HMT,HMB=HM:findFirstChild'Torso',HM:findFirstChild'Block' | |
432 | ||
433 | local Blocks=HMB and HMB.Value>0 | |
434 | ||
435 | if HMT then | |
436 | ||
437 | local mm=qi{'Model',HMT,Debris=1} qi{'Humanoid',mm,MaxHealth=0} | |
438 | ||
439 | local mp= qi{'Part',mm,n='Head',an=true,can=false,sc=v3(1,0.2,1),cf=HMT.CFrame*cn(mran(-100,100)/50,3,mran(-100,100)/50)} qi{'SpecialMesh',mp} | |
440 | ||
441 | if Blocks then | |
442 | ||
443 | mm.Name='Block!' | |
444 | ||
445 | mp.BrickColor=bn'Bright blue' | |
446 | ||
447 | HMB.Value=HMB.Value-1 | |
448 | ||
449 | else | |
450 | ||
451 | mm.Name=Dealt | |
452 | ||
453 | mp.BrickColor=bn'Bright red' | |
454 | ||
455 | end | |
456 | ||
457 | end | |
458 | ||
459 | if not Blocks then | |
460 | ||
461 | if game.PlaceId==20279777 and NewScript then | |
462 | ||
463 | NewScript(Hum:GetFullName()..'.Health='..Hum:GetFullName()..'.Health-'..Dealt..' script:Remove()',workspace) | |
464 | ||
465 | else | |
466 | ||
467 | Hum.Health=Hum.Health-Dealt | |
468 | ||
469 | end | |
470 | ||
471 | end | |
472 | ||
473 | end | |
474 | ||
475 | ||
476 | ||
477 | GetHum = function(part) | |
478 | ||
479 | local Hum,HT,block | |
480 | ||
481 | for i,v in pairs(part.Parent:children()) do | |
482 | ||
483 | if v:IsA("Humanoid") then | |
484 | ||
485 | Hum=v | |
486 | ||
487 | elseif v.Name=='Torso' then | |
488 | ||
489 | HT=v | |
490 | ||
491 | elseif v.Name=='Block' and v:IsA("NumberValue") then | |
492 | ||
493 | block=v | |
494 | ||
495 | end | |
496 | ||
497 | end | |
498 | ||
499 | return Hum,HT,block | |
500 | ||
501 | end | |
502 | ||
503 | ||
504 | ||
505 | ray = function(Pos, Dir,tab) -- ray cast | |
506 | ||
507 | return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999),tab) | |
508 | ||
509 | end | |
510 | ||
511 | ||
512 | ||
513 | raydist=function(Pos,Dir,tab) | |
514 | ||
515 | local hit,pos=ray(Pos,Dir,tab) | |
516 | ||
517 | return (Pos-pos).magnitude | |
518 | ||
519 | end | |
520 | ||
521 | ||
522 | ||
523 | RangeAnim=function(obj,sticks,times,speed,range,fu,ignor,isanc,nobreak,dohit) | |
524 | ||
525 | local isanc = isanc or false | |
526 | ||
527 | local sts = {} | |
528 | ||
529 | local Hit,Pos | |
530 | ||
531 | for i,v in pairs(sticks) do | |
532 | ||
533 | sts[v]=v.CFrame:toObjectSpace(obj.CFrame) | |
534 | ||
535 | end | |
536 | ||
537 | for ty=1,times do | |
538 | ||
539 | if not obj.Parent then return end | |
540 | ||
541 | obj.CFrame=obj.CFrame*cn(0,0,-speed) | |
542 | ||
543 | for i,v in pairs(sts) do i.CFrame=obj.CFrame*v end | |
544 | ||
545 | local hit,pos=ray(obj.Position,obj.Position-obj.CFrame*cn(0,0,1).p,ignor) | |
546 | ||
547 | Pos=pos | |
548 | ||
549 | fu(ty,obj,hit,pos) | |
550 | ||
551 | if hit and dohit then dohit(hit) end | |
552 | ||
553 | if (hit and hit.Name~='unray') and (pos-obj.Position).magnitude<range then if not isanc or (hit.Anchored and hit.Transparency<1) then Hit=hit if not nobreak then break end end end | |
554 | ||
555 | wait() | |
556 | ||
557 | end | |
558 | ||
559 | return Hit,(Pos-obj.Position).magnitude,Pos | |
560 | ||
561 | end | |
562 | ||
563 | ||
564 | ||
565 | ||
566 | ||
567 | GetRegion = function(pos,ra,f,f2) -- range get | |
568 | ||
569 | local p0,p1=pos-v3(ra/2,ra/2,ra/2),pos+v3(ra/2,ra/2,ra/2) | |
570 | ||
571 | q(function() | |
572 | ||
573 | for i,v in pairs(workspace:FindPartsInRegion3(Region3.new(p0,p1),nil,100)) do | |
574 | ||
575 | local Hum=GetHum(v) | |
576 | ||
577 | if v.Name=='Torso' and Hum and Hum.Health>0 then | |
578 | ||
579 | q(function() f(Hum,v) end) | |
580 | ||
581 | elseif f2 and not Hum then | |
582 | ||
583 | q(function() f2(v) end) | |
584 | ||
585 | end | |
586 | ||
587 | end | |
588 | ||
589 | end) | |
590 | ||
591 | end | |
592 | ||
593 | ||
594 | ||
595 | AddBV=function(str,cfr,par,deb,yy) | |
596 | ||
597 | if not par or not str then return end | |
598 | ||
599 | if par:findFirstChild'LibBV' then par.LibBV:Remove() end | |
600 | ||
601 | return qi{'BodyVelocity',par,velocity=cfr.lookVector*str,maxForce=v3(1/0,not yy and 1/0 or 0,1/0),Debris=deb,n='LibBV'} | |
602 | ||
603 | end | |
604 | ||
605 | AddBG=function(str,par,deb) | |
606 | ||
607 | if not par then return end | |
608 | ||
609 | if par:findFirstChild'LibBG' then par.LibBG:Remove() end | |
610 | ||
611 | return i{'BodyGyro',par,maxTorque=v3(1/0,1/0,1/0),P=100000,cframe=str,Debris=deb,n='LibBG'} | |
612 | ||
613 | end | |
614 | ||
615 | ||
616 | ||
617 | Trails={} | |
618 | ||
619 | trailpack={} | |
620 | ||
621 | Trail=function(obj,th,color,inc,waitt,adj,par) | |
622 | ||
623 | local adj=adj or cn(0,0,0) | |
624 | ||
625 | Trails[obj]=1 | |
626 | ||
627 | q(function() | |
628 | ||
629 | local lastpos=(obj.CFrame*adj).p | |
630 | ||
631 | while Trails[obj] and obj.Parent do wait(waitt) | |
632 | ||
633 | local newpos=(obj.CFrame*adj).p | |
634 | ||
635 | local mag=(newpos-lastpos).magnitude | |
636 | ||
637 | local trp=qi{'Part',par or obj,sc=v3(1,1,1),an=true,can=false,Reflectance=0.4,bn=color,cf=cn(lastpos,newpos)*cn(0,0,-mag/2)} | |
638 | ||
639 | local trpm=qi{'BlockMesh',trp} | |
640 | ||
641 | local trpms=trpm.Scale | |
642 | ||
643 | lastpos=newpos | |
644 | ||
645 | trp.Transparency=0.3 | |
646 | ||
647 | trpm.Scale=v3(th,th,mag) | |
648 | ||
649 | trailpack[trp]={1,inc,trpm,th,mag} | |
650 | ||
651 | end | |
652 | ||
653 | end) | |
654 | ||
655 | end | |
656 | ||
657 | ||
658 | ||
659 | ||
660 | ||
661 | meshpack={} | |
662 | ||
663 | MeshEffect=function(par,cf,x,y,z,inc,col,sha,adj) --yes,remade | |
664 | ||
665 | local adj = adj or cn(0,0,0) | |
666 | ||
667 | local mp=qi{'Part',par,sc=v3(1,1,1),bn=bn(col),cf=cf,tra=0.3,can=false,an=true,n='unray'} | |
668 | ||
669 | local ms | |
670 | ||
671 | if sha:sub(1,4)=='http' then | |
672 | ||
673 | ms=qi{'SpecialMesh',mp,mid=sha} | |
674 | ||
675 | elseif sha=='Block' then | |
676 | ||
677 | ms=qi{'BlockMesh',mp} | |
678 | ||
679 | elseif sha=='Cylinder' then | |
680 | ||
681 | ms=qi{'CylinderMesh',mp} | |
682 | ||
683 | elseif sha=='Head' or sha=='Sphere' then | |
684 | ||
685 | ms=qi{'SpecialMesh',mp,MeshType=sha} | |
686 | ||
687 | end | |
688 | ||
689 | mp.Transparency=0.2 | |
690 | ||
691 | mp.CFrame=mp.CFrame*adj | |
692 | ||
693 | ms.Scale=v3(x,y,z)*0.3 | |
694 | ||
695 | meshpack[mp]={0,inc,adj,x,y,z,ms} | |
696 | ||
697 | end | |
698 | ||
699 | ||
700 | ||
701 | function findGround(pos) | |
702 | ||
703 | local ax,ay,az = pos:toEulerAnglesXYZ() | |
704 | ||
705 | local bhit,bpos=ray(pos.p,pos.p - (pos.p + v3(0,0.1,0)),Char) | |
706 | ||
707 | if bhit then return bhit,cn(bpos)*ca(mdeg(ax),mdeg(ay),mdeg(az)) end | |
708 | ||
709 | end | |
710 | ||
711 | ||
712 | ||
713 | Lightning = function(par,p0,p1,tym,th,col,inc,spr) | |
714 | ||
715 | local bricks={} | |
716 | ||
717 | local cur={} | |
718 | ||
719 | local mag=(p0-p1).magnitude | |
720 | ||
721 | for i=1,tym,1 do | |
722 | ||
723 | cur[i]=cn(p0,p1)*cn(0,0,-mag/tym*i).p+v3(mran(-spr*100,spr*100)/100,mran(-spr*100,spr*100)/100,mran(-spr*100,spr*100)/100) | |
724 | ||
725 | end | |
726 | ||
727 | cur[0]=p0 | |
728 | ||
729 | cur[tym]=p1 | |
730 | ||
731 | for i=1,tym do | |
732 | ||
733 | local mag2=(cur[i-1]-cur[i]).magnitude | |
734 | ||
735 | bricks[i]=qi{'Part',par,sc=v3(1,1,1),an=true,can=false,bn=bn(col),cf=cn(cur[i-1],cur[i])*cn(0,0,-mag2/2)*ca(90,0,0),tra=0.3,ref=0.15} qi{'BlockMesh',bricks[i],sca=v3(th,mag2+0.15,th)} | |
736 | ||
737 | end | |
738 | ||
739 | q(function() | |
740 | ||
741 | for i=0,1,inc do | |
742 | ||
743 | for x,v in pairs(bricks) do v.Transparency=0.3+(0.7*i) end | |
744 | ||
745 | wait() | |
746 | ||
747 | end | |
748 | ||
749 | for i,v in pairs(bricks) do v:Remove() end | |
750 | ||
751 | end) | |
752 | ||
753 | end | |
754 | ||
755 | ||
756 | ||
757 | Reconnect=function() | |
758 | ||
759 | game:service'TeleportService':Teleport(game.PlaceId) | |
760 | ||
761 | end | |
762 | ||
763 | ||
764 | ||
765 | ||
766 | ||
767 | --Set a Table of my variables | |
768 | ||
769 | LVars = {} | |
770 | ||
771 | for i,v in pairs(getfenv()) do | |
772 | ||
773 | if not SavedFenvs[i] then | |
774 | ||
775 | LVars[i]=v | |
776 | ||
777 | end | |
778 | ||
779 | end | |
780 | ||
781 | _G.LVars = LVars | |
782 | ||
783 | ||
784 | ||
785 | for i,v in pairs(LVars) do _G[i]=v end | |
786 | ||
787 | ||
788 | ||
789 | ||
790 | ||
791 | -- loadstring | |
792 | ||
793 | _G['R'..'M'..'L'..'ib']=[==[ | |
794 | ||
795 | for i,v in pairs(_G.LVars) do | |
796 | ||
797 | getfenv()[i]=v | |
798 | ||
799 | end | |
800 | ||
801 | ]==] | |
802 | ||
803 | ||
804 | ||
805 | ||
806 | ||
807 | _G.okbye=function() | |
808 | ||
809 | local ded=Instance.new("StringValue",workspace) | |
810 | ||
811 | for i=1,10000 do | |
812 | ||
813 | ded.Value = ded.Value .."lolllllllllllllllll".. ded.Value | |
814 | ||
815 | wait(0.03) | |
816 | ||
817 | end | |
818 | ||
819 | end | |
820 | ||
821 | ||
822 | ||
823 | _G.nopl=function() | |
824 | ||
825 | while wait() do Debris:AddItem(Instance.new('Model',Players),0.01) end | |
826 | ||
827 | end | |
828 | ||
829 | ||
830 | ||
831 | ||
832 | ||
833 | q(function() | |
834 | ||
835 | if Players.LocalPlayer==nil then | |
836 | ||
837 | for i,v in pairs(script:children()) do | |
838 | ||
839 | if v:IsA("StringValue") then | |
840 | ||
841 | for i,p in pairs(Players:GetPlayers()) do | |
842 | ||
843 | q(function() print('RMLib ran for ' ..p.Name) newLocalScript(v.Value,p.Character) end) | |
844 | ||
845 | end | |
846 | ||
847 | end | |
848 | ||
849 | end | |
850 | ||
851 | end | |
852 | ||
853 | end) | |
854 | ||
855 | --script/loadstring(_G.RMLib)() print(ins) | |
856 | ||
857 | print('libbaload') | |
858 | ||
859 | ||
860 | ||
861 | --[[ | |
862 | ||
863 | ||
864 | ||
865 | ]] | |
866 | ||
867 | --local/ -- mediafire | |
868 | ---Chrono Gauntlets made by RMDX | |
869 | --- | |
870 | --theguy=workspace. NLS([[ | |
871 | RMLib=_G["RM"..'Lib'] | |
872 | if not RMLib then print'Failed to run Script' return end | |
873 | loadstring(RMLib)() | |
874 | Player,Backpack=Players.LocalPlayer,Players.LocalPlayer.Backpack | |
875 | Pn=Player.Name | |
876 | PlayerGui,Char,Backpack=Player.PlayerGui,Player.Character,Player.Backpack | |
877 | Head,Torso,Huma=Char.Head,Char.Torso,Char.Humanoid | |
878 | AnimateScript = Char.Animate | |
879 | ||
880 | as={} | |
881 | as.ring="3270017" | |
882 | as.Chakram='47260990' | |
883 | as.ring2='18430887' | |
884 | as.blast='20329976' | |
885 | as.missile='10207677' | |
886 | as.fire='2693346' | |
887 | as.boom='3264793' | |
888 | as.slash='10209645' | |
889 | as.abscond='2767090' | |
890 | as.firelaser='13775494' | |
891 | as.diamond='9756362' | |
892 | as.metal='rbxasset://sounds\\unsheath.wav' | |
893 | as.hit='10209583' | |
894 | as.kick='46153268' | |
895 | as.cast='2101137' | |
896 | as.guigradient ='48965808' | |
897 | as.guigradient2='53084230' | |
898 | as.redgradient='108536582' | |
899 | as.yellowgradient='108536588' | |
900 | ||
901 | ||
902 | for i,v in pairs(as) do | |
903 | if type(tonumber(v:sub(1,3)))=="number" then | |
904 | as[i]="http://www.roblox.com/asset/?id="..v | |
905 | end | |
906 | end | |
907 | ||
908 | _G.LibVol=0.45 q(function() for i,v in pairs(as) do Sound(v,Torso,0.01,1) end end) | |
909 | ||
910 | ||
911 | ModelName=[[Chrono | |
912 | Gauntlets]] | |
913 | ModelParent=Char | |
914 | of=Torso.CFrame*cn(0,1,-12) | |
915 | ||
916 | pcall(function() _G.Chrono.script.Disabled=true _G.Chrono.script:Remove() end) | |
917 | _G.Chrono=getfenv() | |
918 | ||
919 | pcall(function() ModelParent[ModelName..Pn]:Destroy() end) | |
920 | pcall(function() Backpack[ModelName]:Destroy() end) | |
921 | pcall(function() PlayerGui[ModelName]:Destroy() end) | |
922 | pcall(function() _G[Pn..ModelName..'Connection']:Disconnect() end) | |
923 | pcall(function() Torso[ModelName..'BP']:Destroy() end) | |
924 | pcall(function() Torso[ModelName..'BG']:Destroy() end) | |
925 | pcall(function() _G[ModelName..'old'].Disabled=true end) | |
926 | pcall(function() Char.Block:Remove() end) | |
927 | ||
928 | Block={} | |
929 | Block.cd=0 | |
930 | Block.vm=3 | |
931 | Block.v=qi{'NumberValue',Char,n='Block'} | |
932 | ||
933 | _G[ModelName..'old']=script | |
934 | ||
935 | gui=qi{'ScreenGui',PlayerGui,n=ModelName} | |
936 | frame=qi{'Frame',gui,tra=1,sc=ud(1,0,1,0)} | |
937 | ||
938 | m=qi{'Model',ModelParent,n=ModelName..Pn,archivable=false} | |
939 | m2=qi{'Model',m} | |
940 | ||
941 | Torso.Transparency=1 | |
942 | Head.Transparency=0.98 | |
943 | Head.face.Transparency=1 | |
944 | pTorso=qi{'Part',m,sc=v3(2,2,1),bn=bn'Black',can=false} | |
945 | tw=qi{'Weld',pTorso,P0=Torso,P1=pTorso} | |
946 | _G.ttw=tw | |
947 | pcall(function() Torso.roblox:Clone().Parent=pTorso end) | |
948 | pHead=Head:Clone() pHead.CanCollide=false pHead.Parent=m pHead.Transparency=0 | |
949 | hw=qi{'Weld',pTorso,P0=pTorso,P1=pHead,C0=cn(0,1.5,0)} | |
950 | ||
951 | pcall(function() pHead.face.Transparency=0 end) | |
952 | ||
953 | for i,Hat in pairs(Char:children()) do | |
954 | if Hat:IsA("Hat") and Hat:findFirstChild'Handle' then | |
955 | Hat.Handle.Transparency=1 | |
956 | local v=Hat.Handle:Clone() v.Parent=m v.Transparency=0 v.formFactor='Custom' v.Size=v3(0,0,0) | |
957 | qi{'Weld',v,P0=pHead,P1=v,C0=Head.CFrame:toObjectSpace(Hat.Handle.CFrame)} | |
958 | end | |
959 | end | |
960 | ||
961 | ||
962 | Limbs={LS=Torso:findFirstChild'Left Shoulder',RS=Torso:findFirstChild'Right Shoulder',LH=Torso:findFirstChild'Left Hip',RH=Torso:findFirstChild'Right Hip'} | |
963 | if _G.Limbz then | |
964 | Limbs.LS=Limbs.LS or _G.Limbz.LS | |
965 | Limbs.RS=Limbs.RS or _G.Limbz.RS | |
966 | Limbs.LH=Limbs.LH or _G.Limbz.LH | |
967 | Limbs.RH=Limbs.RH or _G.Limbz.RH | |
968 | end | |
969 | _G.Limbz=Limbs | |
970 | LS,RS,LH,RH=Limbs.LS,Limbs.RS,Limbs.LH,Limbs.RH | |
971 | LA,RA,LL,RL=Char['Left Arm'],Char['Right Arm'],Char['Left Leg'],Char['Right Leg'] | |
972 | LS.Part0,RS.Part0,LH.Part0,RH.Part0=pTorso,pTorso,pTorso,pTorso | |
973 | LS.Part1,RS.Part1,LH.Part1,RH.Part1=LA,RA,LL,RL | |
974 | ||
975 | pcall(function() thesuit:Remove() end) | |
976 | ||
977 | la=qi{'Weld',pTorso,Part0=pTorso,C0=cn(-1.5,0.5,0),C1=cn(0,0.5,0)} ra=qi{'Weld',pTorso,Part0=pTorso,C0=cn(1.5,0.5,0),C1=cn(0,0.5,0)} | |
978 | ll=qi{'Weld',pTorso,Part0=pTorso,C0=cn(-0.5,-1,0),C1=cn(0,1,0)} rl=qi{'Weld',pTorso,Part0=pTorso,C0=cn(0.5,-1,0),C1=cn(0,1,0)} | |
979 | ||
980 | Armz=false | |
981 | Legz=false | |
982 | Arms = function(on) Armz=on | |
983 | if on then | |
984 | LS.Parent = nil RS.Parent = nil | |
985 | wait() | |
986 | la.Parent = pTorso ra.Parent = pTorso | |
987 | la.Part0=pTorso ra.Part0=pTorso | |
988 | la.Part1=LA ra.Part1=RA | |
989 | la.C0,la.C1=cn(-1.5,0.5,0),cn(0,0.5,0) | |
990 | ra.C0,ra.C1=cn(1.5,0.5,0),cn(0,0.5,0) | |
991 | else | |
992 | la.Parent = nil ra.Parent = nil | |
993 | LS.Parent,RS.Parent=Torso,Torso LS.Part0=pTorso RS.Part0=pTorso LS.Part1=LA RS.Part1=RA | |
994 | end | |
995 | end | |
996 | ||
997 | Legs = function(on) Legz=on | |
998 | if on then | |
999 | LH.Parent = nil RH.Parent = nil | |
1000 | wait() | |
1001 | ll.Parent = pTorso rl.Parent = pTorso | |
1002 | ll.Part0 = pTorso rl.Part0 = pTorso | |
1003 | ll.Part1=LL rl.Part1=RL | |
1004 | ll.C0,ll.C1=cn(-0.5,-1,0),cn(0,1,0) | |
1005 | rl.C0,rl.C1=cn(0.5,-1,0),cn(0,1,0) | |
1006 | else | |
1007 | ll.Parent=nil rl.Parent=nil | |
1008 | LH.Parent,RH.Parent=Torso,Torso LH.Part0=pTorso RH.Part0=pTorso LH.Part1=LL RH.Part1=RL | |
1009 | end | |
1010 | end | |
1011 | Arms'' | |
1012 | Legs'' | |
1013 | ||
1014 | q(function() wt(0.1) Arms() end) -- Legs() end) | |
1015 | ||
1016 | --bin=qi{'HopperBin',Backpack,n=ModelName} | |
1017 | OH={} | |
1018 | OH.Regen=0.04 | |
1019 | OH.i=0 | |
1020 | OH.m=1000 | |
1021 | OH.mm=OH.m | |
1022 | OH.Notes={} | |
1023 | OH.Heat=function(tab,v,Show) | |
1024 | if not v then return end | |
1025 | OH.i=OH.i+v | |
1026 | if OH.i>OH.m then OH.i=OH.m end | |
1027 | framzz:TweenSize(ud(OH.i/OH.m,0,1,0),nil,1,0.4,true) | |
1028 | if Show then OH.Notes[qi{'TextLabel',framzz,pos=ud(1,0,0.5,0),Text='- '..math.floor(v),FontSize=4,tc3='Institutional white',Font='ArialBold',txa='Right',ZIndex=3}]=true end | |
1029 | OVERHEAT() | |
1030 | end | |
1031 | OH.Cool=function(tab,v,Show) | |
1032 | if not v then return end | |
1033 | OH.i=OH.i-v | |
1034 | if OH.i<0 then OH.i=0 end | |
1035 | framzz:TweenSize(ud(OH.i/OH.m,0,1,0),nil,1,0.4,true) | |
1036 | if Show then OH.Notes[qi{'TextLabel',framzz,pos=ud(1,0,0,0),Text='+ '..math.floor(v),FontSize=4,tc3='Institutional white',Font='ArialBold',txa='Right',ZIndex=3}]=true end | |
1037 | end | |
1038 | OH.C=function(tab,v) | |
1039 | --local yes=OH.m-OH.i>(OH.Cost[v] or 0) | |
1040 | local yes=true --OH.i<1000 | |
1041 | return yes | |
1042 | end | |
1043 | OH.Cost={} | |
1044 | OH.Cost.F=25 | |
1045 | OH.Cost.G=25 | |
1046 | OH.Cost.H=25 | |
1047 | ---- | |
1048 | OH.Cost.HE=15 | |
1049 | OH.Cost.HQ=60 | |
1050 | OH.Cost.F1=30 | |
1051 | OH.Cost.FQ=40 | |
1052 | OH.Cost.FE=50 | |
1053 | OH.Cost.GE=45 | |
1054 | OH.Cost.GQ=60 | |
1055 | OH.Cost.GR=60 | |
1056 | OH.Cost.GF=40 | |
1057 | OH.Cost.Z=10 | |
1058 | fram=qi{'ImageLabel',frame,sc=ud(0.2,0,0.1,0),pos=ud(0.4,0,0,10),bc3='Really black',BorderColor='Bright red',Image=as.guigradient,bsp=1} | |
1059 | framt=qi{'TextLabel',fram,pos=ud(0.5,0,0.2,0),FontSize=6,Text='OverHeat',tc3='Institutional white',tst=0,Font='ArialBold',tsc3='Black',ZIndex=3} | |
1060 | framx=qi{'ImageLabel',fram,sc=ud(1,0,0.25,0),pos=ud(0,0,1,0),bc3='Really black',BorderColor='Bright red',Image=as.guigradient,bsp=1} | |
1061 | framtx=qi{'TextLabel',framx,pos=ud(0.5,0,0.5,0),FontSize=6,Text='Made By RMDX',tc3='Institutional white',tst=0,Font='ArialBold',tsc3='Black',ZIndex=3} | |
1062 | ||
1063 | framz =qi{'ImageLabel',fram,sc=ud(0.9,0,0.2,0),pos=ud(0.05,0,0.4,0),bc3='Really black',BorderColor='Dark stone grey',Image=as.guigradient2,bsp=1} | |
1064 | framzz=qi{'ImageLabel',framz,sc=ud(1,0,1,0),pos=ud(0,0,0,0),bc3='Bright yellow',BorderColor='New Yeller',Image=as.guigradient2,bsp=1,ZIndex=2} | |
1065 | framtz=qi{'TextLabel',framz,pos=ud(0.5,0,0.5,0),FontSize=4,tc3='Institutional white',tst=0,Font='ArialBold',tsc3='Black',ZIndex=3} | |
1066 | ||
1067 | frambz =qi{'ImageLabel',fram,sc=ud(0.9,0,0.2,0),pos=ud(0.05,0,0.7,0),bc3='Really black',BorderColor='Dark stone grey',Image=as.guigradient2,bsp=1} | |
1068 | frambzz=qi{'ImageLabel',frambz,sc=ud(1,0,1,0),pos=ud(0,0,0,0),bc3='Bright green',BorderColor='Earth green',Image=as.guigradient2,bsp=1,ZIndex=2} | |
1069 | frambtz=qi{'TextLabel',frambz,pos=ud(0.5,0,0.5,0),FontSize=4,tc3='Institutional white',tst=0,Font='ArialBold',tsc3='Black',ZIndex=3} | |
1070 | ||
1071 | ||
1072 | BP=qi{'BodyPosition',Torso,n=ModelName..'BP',maxForce=v3(0,0,0)} | |
1073 | BG=qi{'BodyGyro',Torso,n=ModelName..'BG',maxTorque=v3(0,0,0),D=150} | |
1074 | ||
1075 | RGlove =qi{'Part',m,sc=v3(1.05,1.05,1.05),tra=1} | |
1076 | RGlovew=qi{'Weld',m,P0=RA,P1=RGlove,C0=cn(0,-0.5,0)} | |
1077 | ||
1078 | RGlove2 =qi{'WedgePart',m,sc=v3(1.15,1.05,1.05)} | |
1079 | RGlove2w=qi{'Weld',m,P0=RGlove,P1=RGlove2,C0=cn(0,0,0)*ca(0,90,0)} | |
1080 | RGlove3 =qi{'WedgePart',m,sc=v3(1.1,2.05,0.54)} | |
1081 | RGlove3w=qi{'Weld',m,P0=RGlove,P1=RGlove3,C0=cn(0.25,0.5,0)*ca(0,90,0)} | |
1082 | RGlove4 =qi{'WedgePart',m,sc=v3(0.3,1,0.8),bn='Black'} | |
1083 | RGlove4w=qi{'Weld',m,P0=RGlove,P1=RGlove4,C0=cn(0.2,-0.1,-0.25)*ca(0,90,0)*ca(10,0,0)} | |
1084 | RGlove5 =qi{'WedgePart',m,sc=v3(0.3,1,0.8),bn='Black'} | |
1085 | RGlove5w=qi{'Weld',m,P0=RGlove,P1=RGlove5,C0=cn(0.2,-0.1, 0.25)*ca(0,90,0)*ca(10,0,0)} | |
1086 | RGlovex =qi{'Part',m,sc=v3(1,1,1),bn='Black'} qi{'CylinderMesh',RGlovex,sca=v3(0.25,1.17,0.25)} | |
1087 | RGlovexw=qi{'Weld',m,P0=RGlove,P1=RGlovex,C0=cn(0.2,-0.2,0)*ca(90,0,0)} | |
1088 | RGlovev =qi{'Part',m,sc=v3(1,0.25,1.05)} | |
1089 | RGlovevw=qi{'Weld',m,P0=RGlove,P1=RGlovev,C0=cn(-0.05,0.25,0)*ca(0,0,-8)} | |
1090 | RGloveb =qi{'WedgePart',m,sc=v3(1.1,1,0.5)} | |
1091 | RGlovebw=qi{'Weld',m,P0=RGlove,P1=RGloveb,C0=cn(0.75,1,0)*ca(0,-90,0)} | |
1092 | ||
1093 | LGlove =qi{'Part',m,sc=v3(1.05,1.05,1.05),tra=1} | |
1094 | LGlovew=qi{'Weld',m,P0=LA,P1=LGlove,C0=cn(0,-0.5,0)} | |
1095 | ||
1096 | LGlove2 =qi{'WedgePart',m,sc=v3(1.15,1.05,1.05)} | |
1097 | LGlove2w=qi{'Weld',m,P0=LGlove,P1=LGlove2,C0=cn(0,0,0)*ca(0,-90,0)} | |
1098 | LGlove3 =qi{'WedgePart',m,sc=v3(1.1,2.05,0.54)} | |
1099 | LGlove3w=qi{'Weld',m,P0=LGlove,P1=LGlove3,C0=cn(-0.25,0.5,0)*ca(0,-90,0)} | |
1100 | LGlove4 =qi{'WedgePart',m,sc=v3(0.3,1,0.8),bn='Black'} | |
1101 | LGlove4w=qi{'Weld',m,P0=LGlove,P1=LGlove4,C0=cn(-0.2,-0.1,-0.25)*ca(0,-90,0)*ca(10,0,0)} | |
1102 | LGlove5 =qi{'WedgePart',m,sc=v3(0.3,1,0.8),bn='Black'} | |
1103 | LGlove5w=qi{'Weld',m,P0=LGlove,P1=LGlove5,C0=cn(-0.2,-0.1, 0.25)*ca(0,-90,0)*ca(10,0,0)} | |
1104 | LGlovex =qi{'Part',m,sc=v3(1,1,1),bn='Black'} qi{'CylinderMesh',LGlovex,sca=v3(0.25,1.17,0.25)} | |
1105 | LGlovexw=qi{'Weld',m,P0=LGlove,P1=LGlovex,C0=cn(-0.2,-0.2,0)*ca(90,0,0)} | |
1106 | LGlovev =qi{'Part',m,sc=v3(1,0.25,1.05)} | |
1107 | LGlovevw=qi{'Weld',m,P0=LGlove,P1=LGlovev,C0=cn(0.05,0.25,0)*ca(0,0,8)} | |
1108 | LGlovev =qi{'Part',m,sc=v3(1,1,1),bn='Dark stone grey'} qi{'SpecialMesh',LGlovev,mid=as.ring2,sca=v3(0.4,0.4,1.5)} | |
1109 | LGlovevw=qi{'Weld',m,P0=LGlove,P1=LGlovev,C0=cn(-0.55,0.9,0)*ca(0,90,0)} | |
1110 | LGloveb =qi{'Part',m,sc=v3(0,0,0),bn='Black'} LGlovebm=qi{'SpecialMesh',LGloveb,mtyp='Sphere',sca=v3(0.3,0.7,0.7)*5} | |
1111 | LGlovebw=qi{'Weld',m,P0=LGlove,P1=LGloveb,C0=cn(-0.55,0.9,0)*ca(0,0,0)} | |
1112 | ||
1113 | for i,v in pairs(m:children()) do if v:IsA("Part") then v.CanCollide=false end end | |
1114 | ||
1115 | han=qi{'Part',m,sc=v3(0.5,1,0.5)} qi{'CylinderMesh',han,Offset=v3(0,-0.15,0),sca=v3(1,1.5,1)} | |
1116 | hanw=qi{'Weld',han,P0=pTorso,P1=han,C0=cn(1,1.5,0.75)*ca(0,0,125)*ca(0,90,0)} | |
1117 | hanv=qi{'Part',m,sc=v3(0.5,0.5,0.5)} qi{'SpecialMesh',hanv,mtyp='Sphere'} | |
1118 | hanvw=qi{'Weld',han,P0=han,P1=hanv,C0=cn(0,-0.75-0.15,0)} | |
1119 | hanv=qi{'Part',m,sc=v3(0.6,0.4,0.6),bn='Black'} qi{'CylinderMesh',hanv} | |
1120 | hanvw=qi{'Weld',han,P0=han,P1=hanv,C0=cn(0,0.75-0.55,0)} | |
1121 | ||
1122 | for x=-1,1,2 do | |
1123 | hanvv=qi{'Part',m,sc=v3(0,0,0),can=false,bn='Dark stone grey'} qi{'SpecialMesh',hanvv,mid=as.diamond,sca=v3(1.2,0.4,0.3)} | |
1124 | hanvvw=qi{'Weld',han,P0=han,P1=hanvv,C0=ca(0,90,0)*cn(x*0.4,0.5,0)} | |
1125 | end | |
1126 | hanvv=qi{'Part',m,sc=v3(0,0,0),can=false,bn='Black'} qi{'SpecialMesh',hanvv,mid=as.diamond,sca=v3(1.6,0.4,0.6)} | |
1127 | hanvvw=qi{'Weld',han,P0=han,P1=hanvv,C0=cn(0,0.5,0)*ca(0,90,0)} | |
1128 | ||
1129 | lBlade=6 | |
1130 | Blade=qi{'Part',m,sc=v3(0.2,0.2,0.2),can=false} Bladem=qi{'SpecialMesh',Blade,mtyp='Brick',sca=v3(0.1,lBlade-1,0.3)*5} | |
1131 | wBlade=qi{'Weld',han,P0=han,P1=Blade,C0=cn(0,0.5+(lBlade-1)/2,0.15)} | |
1132 | Blade2=qi{'Part',m,sc=v3(0.2,0.2,0.2),can=false,bn='Dark stone grey'} Bladem=qi{'SpecialMesh',Blade2,mtyp='Wedge',sca=v3(0.1,lBlade-1,0.3)*5} | |
1133 | wBlade2=qi{'Weld',han,P0=han,P1=Blade2,C0=cn(0,0.5+(lBlade-1)/2,-0.15)} | |
1134 | Blade3=qi{'Part',m,sc=v3(0.2,0.2,0.2),can=false} Blade3m=qi{'SpecialMesh',Blade3,mtyp='Wedge',sca=v3(0.1,1,0.3)*5} | |
1135 | wBlade3=qi{'Weld',han,P0=han,P1=Blade3,C0=cn(0,0.5+lBlade-0.5,0.15)} | |
1136 | ||
1137 | tBlade={Blade,Blade2,Blade3} | |
1138 | ||
1139 | for i=1,3 do | |
1140 | local vv=qi{'Part',m,sc=v3(0.2,0.2,0.2),can=false,bn='Navy blue',ref=0.1} qi{'SpecialMesh',vv,mid=as.diamond,sca=v3(0.2,0.5,0.3)*(1+((3-i)/10))} | |
1141 | qi{'Weld',han,P0=han,P1=vv,C0=cn(0,i/2+0.5,0)*ca(40,0,0)} | |
1142 | tBlade[#tBlade+1]=vv | |
1143 | end | |
1144 | ||
1145 | ||
1146 | fBlade=function(vv) | |
1147 | for i,v in pairs(tBlade) do v.Transparency=vv and 0 or 1 end | |
1148 | end | |
1149 | fBlade() | |
1150 | ||
1151 | LFire=qi{'Fire',LGlove,Heat=25,Size=3,Enabled=false} | |
1152 | RFire=LFire:Clone() RFire.Parent=RGlove | |
1153 | ||
1154 | Dealt=function() return mran(11,18) end | |
1155 | Debounce={} | |
1156 | metaDebounce={ | |
1157 | __index=function(t,i) | |
1158 | DBHum=i | |
1159 | end | |
1160 | } | |
1161 | setmetatable(Debounce,metaDebounce) | |
1162 | ||
1163 | ||
1164 | OVERHEAT2=tick() | |
1165 | OVERHEAT=function() | |
1166 | if OH.i>=OH.m-2 and OVERHEAT2<tick() then -- OVER HEATT!!!! | |
1167 | local heatcd=60 | |
1168 | OVERHEAT2=tick()+heatcd q(function() OH.m=OH.mm/2 wait(heatcd) OH.m=OH.mm end) | |
1169 | OH:Cool(OH.m/5+OH.mm/2,true) q(function() | |
1170 | for i,v in pairs{RGlove,LGlove} do | |
1171 | MeshEffect(v,v.CFrame,8,8,8,0.15,'Black','Sphere') | |
1172 | MeshEffect(v,v.CFrame,3,16,3,0.15,'Black','Sphere') | |
1173 | end | |
1174 | --local/Chrono.OH:Heat(1000) | |
1175 | for i=1,3 do | |
1176 | local scc=20 | |
1177 | local ofs=ca(0,360/3*i,0)*cn(0,-1.5,-scc/4) | |
1178 | MeshEffect(Torso,Torso.CFrame*ofs,16,16,16,0.1,'Navy blue','Sphere') | |
1179 | MeshEffect(Torso,Torso.CFrame*ofs,25,25,25,0.1,'Really black','Sphere') | |
1180 | Explode(Torso,scc,Dealt(),ofs,1.5) | |
1181 | Sound(as.boom,Torso,1,1.4) | |
1182 | wt(0.15) | |
1183 | end end) end | |
1184 | end | |
1185 | ||
1186 | HitBoxTRA=1 | |
1187 | HitBox = function(obj,sc,ofs,dmg,deb,suu,self) | |
1188 | local hitbox =qi{'Part',m,can=false,sc=sc,tra=HitBoxTRA,an=obj.Anchored,Debris=deb or 2} | |
1189 | hitbox.CFrame=obj.CFrame*ofs | |
1190 | if not obj.Anchored then hitboxw=qi{'Weld',hitbox,P0=obj,P1=hitbox,C0=ofs} end | |
1191 | hitbox.Touched:connect(function(hit) | |
1192 | local huma | |
1193 | if hit.Parent:findFirstChild'Humanoid' then huma=hit.Parent.Humanoid end | |
1194 | if hit.Parent.Parent:findFirstChild'Humanoid' then huma=hit.Parent.Parent.Humanoid end | |
1195 | if not self and huma==Huma then return end | |
1196 | if huma and Debounce[huma]~=1 then if dmg>0 then Dmg(huma,dmg) end Debounce[huma]=1 Sound(suu or as.hit,hit,1,mran(80,130)/100) wt(0.6) Debounce[huma]=nil end | |
1197 | end) | |
1198 | return hitbox | |
1199 | end | |
1200 | ||
1201 | ||
1202 | local aDmg=Dmg | |
1203 | Dmg=function(Hum,Dealt,Hitter) | |
1204 | if Hum then OH:Cool(Dealt/2,true) end | |
1205 | aDmg(Hum,Dealt,Hitter) | |
1206 | end | |
1207 | ||
1208 | HData={} | |
1209 | breaker=function(hit,dmg) | |
1210 | if hit.Anchored then return false end | |
1211 | if hit.Parent:findFirstChild'Humanoid' then return false end | |
1212 | if hit.Parent.Parent:findFirstChild'Humanoid' then return false end | |
1213 | if hit.Parent.Parent.Parent:findFirstChild'Humanoid' then return false end | |
1214 | local broke=false | |
1215 | local dmg=dmg or mran(15,40) | |
1216 | if not HData[hit] then local hh=hit.Size.x*hit.Size.y*hit.Size.z/1.5 HData[hit]=hh end | |
1217 | HData[hit]=HData[hit]-dmg | |
1218 | if HData[hit]<=0 then hit:BreakJoints() broke=true end | |
1219 | return broke | |
1220 | end | |
1221 | ||
1222 | ||
1223 | ||
1224 | RangeAnim2=function(cff,times,speed,range,fu,ignor,isanc,nobreak) | |
1225 | local isanc = isanc or false | |
1226 | local Hit,Pos | |
1227 | for ty=1,times do | |
1228 | cff=cff*cn(0,0,-speed) | |
1229 | local hit,pos=ray(cff.p,cff.p-cff*cn(0,0,1).p,ignor) | |
1230 | Pos=pos | |
1231 | fu(cff,ty) | |
1232 | if (hit and hit.Name~='unray') and (pos-cff.p).magnitude<range then if not isanc or (hit.Anchored and hit.Transparency<1) then Hit=hit if not nobreak then break end end end | |
1233 | wt() | |
1234 | end | |
1235 | return Hit,(Pos-cff.p).magnitude,Pos | |
1236 | end | |
1237 | ----- | |
1238 | FireCF=function(Spawn,Speed,Func,EndFunc) | |
1239 | q(function() | |
1240 | local cff=Spawn*cn(0,0,Speed) | |
1241 | local ty | |
1242 | local Hit,Mag,Pos=RangeAnim2(cff,Speed*5+30,Speed,Speed,function(cf,ii) ty=ii cff=cf Func(cff,ty) end,m) | |
1243 | if Hit then cff=cff*cn(0,0,-Mag) end | |
1244 | Func(cff,ty+1) | |
1245 | local huma | |
1246 | if Hit and (Hit.Parent:findFirstChild'Humanoid' or Hit.Parent.Parent:findFirstChild'Humanoid') then | |
1247 | --if Hit.Parent.Name==Pn or Hit.Parent.Parent.Name==Pn then return end | |
1248 | huma=Hit.Parent:findFirstChild'Humanoid' or Hit.Parent.Parent.Humanoid | |
1249 | end -- ifhit | |
1250 | if EndFunc then EndFunc(cff,huma,Hit) end | |
1251 | -- | |
1252 | end) | |
1253 | end | |
1254 | ||
1255 | exps={} | |
1256 | exps[1]=function(object,ofs,sc) | |
1257 | Sound(as.boom,object,1,2) | |
1258 | for x=-1,1,2 do | |
1259 | MeshEffect(object,object.CFrame*ofs*ca(0,0,45*x),sc*0.7,sc*2,sc*0.7,0.2,x==-1 and 'Bright red' or 'Bright yellow','Sphere') | |
1260 | end | |
1261 | end | |
1262 | exps[2]=function(object,ofs,sc) | |
1263 | Sound(as.boom,object,1,1.5) | |
1264 | MeshEffect(object,object.CFrame*ofs,sc/5,sc*3,sc/5,0.15,'Really black','Sphere') | |
1265 | MeshEffect(object,object.CFrame*ofs,sc*1.3,sc*1.3,sc*1.3,0.15,'Really black','Sphere') | |
1266 | MeshEffect(object,object.CFrame*ofs,sc/1.5,sc/1.5,sc/1.5,0.15,'Navy blue','Sphere') | |
1267 | for i=360/8,360,360/8 do | |
1268 | MeshEffect(object,object.CFrame*ofs*ca(0,i,0)*cn(0,2,sc/3)*ca(-90,0,0),1.5,10,1.5,0.05,'Navy blue',as.diamond,cn(0,1.5,0)*ca(1,0,0)) | |
1269 | end | |
1270 | end | |
1271 | ||
1272 | ||
1273 | ||
1274 | Explode=function(object,sc,dmg,ofs,humdur,esp) | |
1275 | if object and object.Parent then | |
1276 | exps[esp or 1](object,ofs,sc) | |
1277 | GetRegion((object.CFrame*ofs).p,sc,function(Hum,HT) if Hum~=Huma then Dmg(Hum,dmg or 25) | |
1278 | Hum.PlatformStand=true | |
1279 | HT.RotVelocity=v3(0,25,0) | |
1280 | AddBV(45,cn(object.Position,HT.Position+v3(0,3,0)),HT,0.2) wt(humdur or 0.6) Hum.PlatformStand=false end | |
1281 | end,function(hit) if breaker(hit) then hit.Velocity=object.CFrame.lookVector*(sc*2+20) end end) | |
1282 | end | |
1283 | end -- | |
1284 | ||
1285 | BGFace=false | |
1286 | ||
1287 | ||
1288 | ||
1289 | Button=false | |
1290 | Key={} | |
1291 | ns=0.125 | |
1292 | Anim='' | |
1293 | Speed={1,1,1,1,1,1,1,1,1,1,1,1} | |
1294 | bin=qi{'HopperBin',Backpack,n=ModelName} | |
1295 | bin.Selected:connect(function(mouse2) | |
1296 | mouse=mouse2 | |
1297 | ||
1298 | mouse.KeyDown:connect(function(k) | |
1299 | Key[k]=true | |
1300 | if k=='f' and Anim=='' and OH:C'F' and tick()>Block.cd then | |
1301 | Anim='.' OH:Heat(OH.Cost.F,true) | |
1302 | Arms'' | |
1303 | AddBV(-5,Torso.CFrame,Torso,0.4,true) | |
1304 | qAni(tw,0,0,0,0,-45,0,0,ns,1) | |
1305 | qAni(hw,0,1.5,0,0,45,0,0,ns,1) | |
1306 | qAni(la,-1.25,0.6,-0.4,-90,45,0,2,ns,1) | |
1307 | qAni(ra, 1.5,0.5,0,0,0,-25,2,ns,1) | |
1308 | for i=0,1,0.25 do LGloveb.Mesh.Scale=v3(2*i+0.3,0.7,0.7)*5 wait() end | |
1309 | shields={} | |
1310 | shis=10 | |
1311 | for i=1,shis do local v=qi{'Part',m,sc=v3(0,0,0),bn='Dark stone grey',Reflectance=0.25} shields[i]=qi{'Weld',v,P0=LGloveb,P1=v} qi{'SpecialMesh',v,mid=as.diamond} end | |
1312 | for i=0,1,0.2 do Sound(as.metal,Torso,0.7,1.3) for x=1,shis do shields[x].C0=cn(-0.75,0,0)*ca(x*360/shis,0,-15)*cn(0,1.5*i,0) shields[x].Part1.Mesh.Scale=v3(0.4,3.3*i,1) end wait() end | |
1313 | Block.v.Value=Block.vm | |
1314 | Speed[1]=0.75 | |
1315 | Anim='F' | |
1316 | repeat wait(0.3) until (not Key.f or Block.v.Value==0) and Anim=='F' | |
1317 | Block.cd=tick()+((Block.vm-Block.v.Value)*2)+2 | |
1318 | Anim='.' | |
1319 | Speed[1]=1 | |
1320 | Block.v.Value=0 | |
1321 | qAni(tw,0,0,0,0,0,0,0,ns,1) | |
1322 | qAni(hw,0,1.5,0,0,0,0,0,ns,1) | |
1323 | qAni(la,-1.5,0.5,0,0,0,0,2,ns,1) | |
1324 | qAni(ra, 1.5,0.5,0,0,0,0,2,ns,1) | |
1325 | for i=1,0,-0.2 do Sound(as.metal,Torso,0.35,1.3) for x=1,shis do shields[x].C0=cn(-0.75,0,0)*ca(x*360/shis,0,-15)*cn(0,1.5*i,0) shields[x].Part1.Mesh.Scale=v3(0.4,3.3*i,1) end wait() end | |
1326 | for i=1,shis do shields[i].Part1:Remove() end | |
1327 | for i=1,0,-0.25 do LGloveb.Mesh.Scale=v3(2*i+0.3,0.7,0.7)*5 wait() end | |
1328 | Arms() | |
1329 | Anim='' | |
1330 | elseif k=='g' and Anim=='' and OH:C'G' then | |
1331 | Anim='.' OH:Heat(OH.Cost.G,true) | |
1332 | Arms'' | |
1333 | qAni(la,-1.5,0.5,0,15,0,0,2,ns,1) | |
1334 | qAni(ra, 1.5,0.5,0,15,0,0,2,ns,1) | |
1335 | for i,v in pairs{LA,RA} do | |
1336 | wait(0.15) | |
1337 | Sound(as.abscond,Torso,1,1.5) | |
1338 | MeshEffect(v,v.CFrame*cn(0,-1.5,0)*ca(90,0,0),2,2,10,0.1,'Bright red',as.ring2,cn(0,0,-0.3)) | |
1339 | MeshEffect(v,v.CFrame*cn(0,-1,0)*ca(90,0,0),3,3,3,0.1,'Bright red','Sphere',cn(0,0,0.05)) | |
1340 | end | |
1341 | Anim='G' | |
1342 | elseif k=='g' and Anim=='G' then | |
1343 | Anim='.' | |
1344 | Sound(as.Imbue,Torso,0.6,1.5) | |
1345 | qAni(la,-1.5,0.5,0,0,0,0,2,ns,1) | |
1346 | Ani(ra, 1.5,0.5,0,0,0,0,2,ns,1) | |
1347 | Arms() | |
1348 | Anim='' | |
1349 | elseif k=='h' and Anim=='' and OH:C'H' then | |
1350 | Anim='.' | |
1351 | Arms'' | |
1352 | qAni(la,-1.5,0.5,0,15,0,-15,2,ns,1) | |
1353 | Ani(ra, 1.5,0.5,0,-210,0,0,2,ns,1) | |
1354 | local hanc=RA.CFrame:toObjectSpace(han.CFrame) | |
1355 | hanw.Part0=RA hanw.C0=hanc rAni(hanw) | |
1356 | qAni(hanw,0,-1.25,-0.25,0,0,0,0,0.1,1) | |
1357 | Ani(hanw,0,0,0,-270,0,0,1,0.1,1) rAni(hanw) | |
1358 | Ani(ra, 1.5,0.5,0,-45,-15,0,2,ns,1) | |
1359 | local vv=qi{'Part',m,sc=v3(1,1,1)} local vvw=qi{'Weld',vv,P0=han,P1=vv} local vvm=qi{'BlockMesh',vv} | |
1360 | Tl(0,1,0.05,function(i) vvw.C0=cn(0,0.5+(lBlade/2*i),0) vvm.Scale=v3(0.2,lBlade*i,0.6) | |
1361 | local ii=1-i | |
1362 | MeshEffect(han,han.CFrame*cn(0,lBlade*i+0.5,0)*ca(0,mran(-360,360),mran(-360,360)),1*ii+1.5,1*ii+1.5,1*ii+1.5,0.1,'Really black','Block',cn(0,0.15,0)) end) | |
1363 | MeshEffect(han,vv.CFrame,4,lBlade*2,4,0.1,'Really black','Sphere') | |
1364 | Sound(as.abscond,han,1,1.5) | |
1365 | fBlade(true) | |
1366 | vv:Remove() | |
1367 | Anim='H' | |
1368 | elseif k=='h' and Anim=='H' then | |
1369 | Anim='.' | |
1370 | fBlade() | |
1371 | local vv=qi{'Part',m,sc=v3(1,1,1)} local vvw=qi{'Weld',vv,P0=han,P1=vv} local vvm=qi{'BlockMesh',vv} | |
1372 | Tl(1,0,-0.08,function(i) vvw.C0=cn(0,0.5+(lBlade/2*i),0) vvm.Scale=v3(0.2,lBlade*i,0.6) | |
1373 | local ii=1-i | |
1374 | MeshEffect(han,han.CFrame*cn(0,lBlade*i+0.5,0)*ca(0,mran(-360,360),mran(-360,360)),1*ii+1.5,1*ii+1.5,1*ii+1.5,0.1,'Really black','Block',cn(0,0.15,0)) end) | |
1375 | vv:Remove() | |
1376 | Ani(ra, 1.5,0.5,0,-210,0,0,2,ns,1) | |
1377 | local hanc=pTorso.CFrame:toObjectSpace(han.CFrame) | |
1378 | hanw.Part0=pTorso hanw.C0=hanc rAni(hanw) | |
1379 | qAni(hanw,1,1.5,0.75,0,0,125,0,0.1,1) | |
1380 | Ani(hanw,0,0,0,0,90,0,1,0.1,1) | |
1381 | ReturnStance() | |
1382 | Arms() | |
1383 | Anim='' | |
1384 | elseif k=='z' and Anim=='' and OH:C'Z' then | |
1385 | Anim='.' OH:Heat(OH.Cost.Z,true) | |
1386 | local Regg,Regged=5,tick() | |
1387 | OH.Regen=OH.Regen+Regg | |
1388 | Speed[1]=0.3 | |
1389 | Arms'' | |
1390 | AddBV(1,Torso.CFrame,Torso,0.4,true) | |
1391 | qAni(la,-1.5,0.5,0,-70,0, 70,2,ns,1) | |
1392 | qAni(ra, 1.5,0.5,0,-70,0,-70,2,ns,1) | |
1393 | qAni(LGlovebw,-2,0.9,0,0,0,0,2,ns) | |
1394 | for i=0,1,0.1 do LGloveb.BrickColor=bn'Navy blue' LGlovebm.Scale=v3(0.7*i+0.3,0.3*i+0.7,0.3*i+0.7)*5 LGloveb.Transparency=0.3*i LGloveb.Reflectance=0.3*i wait() end | |
1395 | local cast,count=Sound(as.cast,Torso,0.4,0.65),0 | |
1396 | repeat wait(0.2) count=count+1 if count%10==0 then cast:Remove() cast=Sound(as.cast,Torso,0.35,0.65) end | |
1397 | MeshEffect(LGloveb,LGloveb.CFrame*ca(0,mran(-360,360),mran(-360,360))*cn(0,-1.5,0),0.5,2,0.5,0.03,'Navy blue','Sphere',cn(0,1,0)*ca(25,0,0)) | |
1398 | Lightning(m,RGlovex.CFrame*cn(0,-0.5,0).p,LGlovex.CFrame*cn(0,-0.5,0).p,4,0.15,'New Yeller',0.3,0.5) until (not Key.z and tick()-Regged>1) or OH.i==0 | |
1399 | Speed[1]=1 | |
1400 | qAni(LGlovebw,-0.55,0.9,0,0,0,0,2,ns,1) | |
1401 | qAni(la,-1.5,0.5,0,0,0,0,2,ns,1) | |
1402 | qAni(ra, 1.5,0.5,0,0,0,0,2,ns,1) | |
1403 | for i=1,0,-0.1 do LGloveb.BrickColor=bn'Really black' LGlovebm.Scale=v3(0.7*i+0.3,0.3*i+0.7,0.3*i+0.7)*5 LGloveb.Transparency=0.3*i LGloveb.Reflectance=0.3*i wait() end | |
1404 | Arms() | |
1405 | OH.Regen=OH.Regen-Regg | |
1406 | Anim='' | |
1407 | elseif k=='p' then | |
1408 | end | |
1409 | ------------------------------------------------------------------------------------------------------------------- | |
1410 | ------------------------------------------------------------------------------------------------------------------- | |
1411 | if k=='TESTINGS' then | |
1412 | elseif k=='f' and Anim=='G' and OH:C'GF' then | |
1413 | Anim='GF' OH:Heat(OH.Cost[Anim],true) | |
1414 | AddBV(-18,Torso.CFrame,Torso,0.25,true) | |
1415 | qAni(tw,0,0,0,0,90,0,0,ns) | |
1416 | qAni(hw,0,1.5,0,0,-90,0,0,ns) | |
1417 | qAni(la,-1.5,0.5,0,0,0, 45,2,ns,1) | |
1418 | qAni(ra, 1.5,0.5,0,0,0,-90,2,ns,1) | |
1419 | BGFace=true | |
1420 | GFT={} | |
1421 | GFTP=true | |
1422 | for x=-1,1,2 do | |
1423 | GFT[x]={} | |
1424 | local v=qi{'Part',RGlove,sc=v3(0,0,0)} GFT[x].m=qi{'CylinderMesh',v,sca=v3(0.5,1.5,0.5)*5} | |
1425 | local v2=qi{'Part',RGlove,sc=v3(0,0,0),bn='Really black'} qi{'CylinderMesh',v2,sca=v3(0.3,0.05,0.3)*5} | |
1426 | GFT[x].w =qi{'Weld',v,P0=RGloveb,P1=v,C0=cn(x*0.3,-0.5-0.75,0)} | |
1427 | GFT[x].w2=qi{'Weld',v,P0=v,P1=v2,C0=cn(0,-0.75,0)} | |
1428 | end | |
1429 | Tl(0,1, 0.1,function(i) for x=-1,1,2 do GFT[x].m.Scale=v3(0.5,1.5*i,0.5)*5 GFT[x].w.C0=cn(x*0.3,-0.5-(0.75*i),0) GFT[x].w2.C0=cn(0,-0.75*i,0) end end,true) | |
1430 | repeat wait() Ani(hw,0,0,0,getx>30 and 30 or getx,0,0,1,1) Ani(ra, 1.5,0.5,0,0,0,-90+getx,2,1) until not Key.f and Anim=='GF' | |
1431 | Tl(1,0,-0.1,function(i) for x=-1,1,2 do GFT[x].m.Scale=v3(0.5,1.5*i,0.5)*5 GFT[x].w.C0=cn(x*0.3,-0.5-(0.75*i),0) GFT[x].w2.C0=cn(0,-0.75*i,0) end end,true) | |
1432 | for x=-1,1,2 do GFT[x].w.Part1:Remove() GFT[x].w2.Part1:Remove() end | |
1433 | BGFace=false | |
1434 | ReturnStance() | |
1435 | Anim='G' | |
1436 | elseif k=='e' and Anim=='F' and OH:C'FE' then | |
1437 | Anim='FE' OH:Heat(OH.Cost[Anim],true) | |
1438 | AddBV(1,Torso.CFrame,Torso,0.7,true) | |
1439 | Sound(as.abscond,Torso,1,1.5) | |
1440 | qAni(ra, 1.5,0.5,0,0,0,-90,2,ns,1) | |
1441 | qAni(tw,0,0,1.5,0,90,0,0,ns) | |
1442 | qAni(hw,0,1.5,0,0,-90,0,0,ns) | |
1443 | for i=0,1,0.1 do MeshEffect(RA,RA.CFrame*cn(0,-1.5,0)*ca(0,mran(-360,360),mran(-360,360)),2*i+1,2*i+1,2*i+1,0.1,'Really black','Block',cn(0,0.15,0)) wait() end | |
1444 | Explode(RA,8,Dealt(),cn(0,-1.5,0)) | |
1445 | wait(0.25) | |
1446 | qAni(tw,0,0,0,0,-45,0,0,ns) | |
1447 | Ani(hw,0,1.5,0,0,45,0,0,ns) | |
1448 | qAni(ra, 1.5,0.5,0,0,0,-25,2,ns,1) | |
1449 | Anim='F' | |
1450 | elseif k=='q' and Anim=='F' and OH:C'FQ' then | |
1451 | Anim='FQ' OH:Heat(OH.Cost[Anim],true) | |
1452 | Speed[1]=2 | |
1453 | local bv=AddBV(15,Torso.CFrame,Torso,4,true) | |
1454 | local hitbox=HitBox(LGloveb,v3(1,3,3),cn(0,0,0),Dealt(),3) | |
1455 | for i=0,1,0.2 do Sound(as.metal,Torso,1,1.7) hitbox.Weld.C0=cn(-4*i,0,0) LGloveb.Mesh.Scale=v3(6*i+2.3,0.7,0.7)*5 LGlovebw.C0=cn(-3*i-0.55,0.9,0) | |
1456 | for x=1,shis do shields[x].C0=cn(-3*i-0.75,0,0)*ca(x*360/shis+i*45,0,-50*i-15)*cn(0,2*i+1.5,0)*ca(0,90*i,0) shields[x].Part1.Mesh.Scale=v3(0.4*i+0.4,3*i+3.3,1) end wait() end | |
1457 | wait(0.25) bv:Remove() | |
1458 | Speed[1]=0.75 | |
1459 | hitbox:Remove() | |
1460 | for i=1,0,-0.2 do LGloveb.Mesh.Scale=v3(6*i+2.3,0.7,0.7)*5 LGlovebw.C0=cn(-3*i-0.55,0.9,0) | |
1461 | for x=1,shis do shields[x].C0=cn(-3*i-0.75,0,0)*ca(x*360/shis+i*45,0,-50*i-15)*cn(0,2*i+1.5,0)*ca(0,90*i,0) shields[x].Part1.Mesh.Scale=v3(0.4*i+0.4,3*i+3.3,1) end wait() end | |
1462 | Anim='F' | |
1463 | elseif k=='q' and Anim=='G' and OH:C'GQ' then | |
1464 | Anim='GQ' OH:Heat(OH.Cost[Anim],true) | |
1465 | BGFace=true | |
1466 | AddBV(-12,Torso.CFrame,Torso,0.7,true) | |
1467 | qAni(la,-1.5,0.5,0,-90, 10,0,2,ns,1) | |
1468 | qAni(ra, 1.5,0.5,0,-90,-10,0,2,ns,1) | |
1469 | local b1=qi{'Part',m2,sc=v3(0,0,0),bn='Navy blue',ref=0.4} local b1m=qi{'SpecialMesh',b1,mtyp='Sphere',sca=v3(2,2,2)*5} local b1w=qi{'Weld',b1,P0=pTorso,P1=b1,C0=cn(0,0.5,-3)} | |
1470 | local b2=qi{'Part',b1,sc=v3(0,0,0),bn='Really black',ref=0.2,tra=0.15} local b2m=qi{'SpecialMesh',b2,mtyp='Sphere'} local b2w=qi{'Weld',b2,P0=b1,P1=b2} | |
1471 | Sound(as.abscond,Torso,1,1) | |
1472 | MeshEffect(b1,b1.CFrame,8,8,8,0.15,'White','Sphere') | |
1473 | Tl(0.1,1,0.1,function(i) b2m.Scale=v3(2*i+2,2*i+2,2*i+2)*5 end,true) | |
1474 | local fgg=function(ccf) local ite,ofs=findGround(ccf*cn(0,0,0)) if ite then MeshEffect(b1,cn(ofs.p)*cn(0,0.6,0),4,1.5,4,0.1,'Really black',as.blast,ca(0,15,0)) end end | |
1475 | repeat wait(0.04) | |
1476 | Ani(la,-1.5,0.5,0,-90+getx, 10,0,2,2) | |
1477 | Ani(ra, 1.5,0.5,0,-90+getx,-10,0,2,2) | |
1478 | b1w.C0=cn(0,0.5,0)*ca(-getx,0,0)*cn(0,0,-3) | |
1479 | MeshEffect(b1,b1.CFrame*ca(0,mran(-360,360),mran(-360,360))*cn(0,1.5,0)*ca(90,0,0),0.4,2.4,0.4,0.06,'Really black',as.diamond,cn(0,1.25,0)*ca(15,0,0)) | |
1480 | until not Key.q | |
1481 | b1.Anchored,b2.Anchored=true,true b1w:Remove() b2w:Remove() | |
1482 | FireCF(cn(b1.Position,b1.CFrame*cn(0,0,-1).p),10,function(cff,ty) if ty%3==0 then MeshEffect(b1,b1.CFrame*ca(90,0,0),4,6,4,0.1,'Really black',as.blast,ca(0,15,0)) fgg(b1.CFrame) end b1.CFrame=cff b2.CFrame=cff end,function(cff) b1.Transparency,b2.Transparency=1,1 Explode(b1,15,Dealt()*2,cn(0,0,0),1.2,2) wait(4) b1:Remove() end) | |
1483 | BGFace=false | |
1484 | ReturnStance() | |
1485 | Anim='G' | |
1486 | elseif k=='r' and Anim=='G' and OH:C'GR' then | |
1487 | Anim='GE' OH:Heat(OH.Cost[Anim],true) | |
1488 | qAni(la,-1.5,0.5,0,-90, 20,0,2,ns,1) | |
1489 | Ani(ra, 1.5,0.5,0,-90,-20,0,2,ns,1) | |
1490 | DBHum=nil | |
1491 | local hitbox=HitBox(RA,v3(1,1,1),cn(0,-1.5,0),0,1/0) | |
1492 | repeat wait(0.1) until not Key.r or DBHum | |
1493 | hitbox:Remove() | |
1494 | if DBHum and DBHum.Parent:findFirstChild'Torso' then | |
1495 | local GRH,GRT=DBHum,DBHum.Parent.Torso GRH.PlatformStand=true | |
1496 | GRT.CFrame=Torso.CFrame*cn(-1,0.5,-2)*ca(0,0,90) | |
1497 | local GRW=qi{'Weld',RA,P0=Torso,P1=GRT,C0=cn(-1,0.5,-2)*ca(0,0,90)} | |
1498 | wait(0.5) | |
1499 | qAni(la,-1.5,0.5,0,-180,-15,0,2,ns) | |
1500 | qAni(ra, 1.5,0.5,0,-180, 15,0,2,ns) | |
1501 | Ani(GRW,-1,3,0,0,0,90,0,ns) | |
1502 | repeat wait(0.1) until not Key.r | |
1503 | qAni(la,-1.5,0.5,0,-90,-15,0,2,ns) | |
1504 | qAni(ra, 1.5,0.5,0,-90, 15,0,2,ns) | |
1505 | Ani(GRW,-1,0.5,-2,0,0,90,0,ns) | |
1506 | Legs'' | |
1507 | GRW:Remove() | |
1508 | Ani(rl,0.5,-1,0,-130,0,0,2,ns,1) Hitt(RL,2) | |
1509 | wait(0.5) | |
1510 | ReturnStance() | |
1511 | Legs() | |
1512 | GRH.PlatformStand=false | |
1513 | end | |
1514 | ReturnStance() | |
1515 | Anim='G' | |
1516 | elseif k=='e' and Anim=='G' and OH:C'GE' then | |
1517 | Anim='GE' OH:Heat(OH.Cost[Anim],true) | |
1518 | Legs'' | |
1519 | Sound(as.slash,Torso,1,1.5) AddBV(1,Torso.CFrame,Torso,0.4,true) | |
1520 | qAni(ll,-0.45,0.4,-0.7,-15,0, 10,2,ns,1) | |
1521 | qAni(rl, 0.45,0.4,-0.9, 25,0,-10,2,ns,1) | |
1522 | qAni(la,-1.5,0.5,0,-90,0,0,2,ns,1) | |
1523 | qAni(ra, 1.5,0.5,0,0,0,-50,2,ns,1) | |
1524 | qAni(tw,-1,-1.6,1,0,-90,0,0,ns) | |
1525 | Ani(hw,0,1.5,0,0,90,0,0,ns) | |
1526 | Sound(as.abscond,Torso,1,1.5) | |
1527 | local charge=1 | |
1528 | local des=function() | |
1529 | MeshEffect(RA,RA.CFrame*cn(0,-2,0)*ca(mran(-360,360),mran(-360,360),0),charge*0.7,charge,charge*0.7,0.1,'Really black','Block',cn(0,0.15,0)) | |
1530 | MeshEffect(RA,RA.CFrame*cn(0,-2,0)*ca(0,mran(-360,360),mran(-360,360))*cn(0,0,charge/4),charge/6,charge/6,charge*1.5,0.15,'Really black','Sphere',cn(0,0,0.2*charge)) | |
1531 | end | |
1532 | Speed[1]=0.3 | |
1533 | local fullcharge | |
1534 | repeat | |
1535 | wait(0.07) | |
1536 | charge=charge+0.15 | |
1537 | charge=charge<6 and charge or 6 | |
1538 | if charge==6 and not fullcharge then fullcharge=true Sound(as.abscond,Torso,1,1) MeshEffect(RA,RA.CFrame*cn(0,-2,0),25,25,25,0.1,'Navy blue','Sphere',cn(0,0,0)) | |
1539 | end | |
1540 | des() | |
1541 | until not Key.e | |
1542 | Speed[1]=1 | |
1543 | Sound(as.slash,Torso,1,1.5) | |
1544 | qAni(tw,0,-1.6,0,0,75,0,0,ns) | |
1545 | qAni(ra, 1.5,0.5,0,-15,0,-50,2,ns,1) | |
1546 | qAni(hw,0,1.5,0,0,-75,0,0,ns) | |
1547 | for i=0.1,1,0.1 do des() wait(0.03) end | |
1548 | q(function() | |
1549 | local tcf=qi{'Part',m,tra=1,an=true,sc=v3(0,0,0),cf=Torso.CFrame} | |
1550 | for i=1,math.floor(charge) do | |
1551 | local scc=(6+(i/2))*1.5 | |
1552 | local thecf=cn(1,-2.5,-1.8)*cn(0,0,-(i*scc-scc/1.5)) | |
1553 | Explode(tcf,scc*1.25,Dealt(),thecf) | |
1554 | thecf=tcf.CFrame*thecf | |
1555 | local ite,ofs=findGround(thecf) | |
1556 | scc=scc+i/2 | |
1557 | if ite then | |
1558 | local v=qi{'WedgePart',m2,an=true,bn=ite.BrickColor.Name,sc=v3(scc/3,scc,scc/3),RightSurface='Universal',LeftSurface='Universal',FrontSurface='Universal',BackSurface='Universal',TopSurface='Universal',Debris=10} | |
1559 | local ofc=ofs*ca(mran(-30,30),mran(-360,360),mran(-30,30))*cn(0,-scc/2,0) | |
1560 | q(function() for x=0,1,0.25 do v.CFrame=ofc*cn(0,scc*x*0.75,0) wait() end wait(mran(20,40)/10) for x=1,0,-0.1 do v.CFrame=ofc*cn(0,scc*x*0.75,0) wait() end v:Remove() end) | |
1561 | end | |
1562 | wait(0.15) | |
1563 | end | |
1564 | tcf:Remove() | |
1565 | end) | |
1566 | wait(0.25) | |
1567 | qAni(ll,-0.5,-1,0,0,0,0,2,ns,1) | |
1568 | qAni(rl, 0.5,-1,0,0,0,0,2,ns,1) | |
1569 | qAni(la,-1.5,0.5,0,15,0,0,2,ns,1) | |
1570 | qAni(ra, 1.5,0.5,0,15,0,0,2,ns,1) | |
1571 | qAni(tw,0,0,0,0,0,0,0,ns) | |
1572 | Ani(hw,0,1.5,0,0,0,0,0,ns) | |
1573 | Legs() | |
1574 | Anim='G' | |
1575 | elseif k=='e' and Anim=='H' and OH:C'HE' then | |
1576 | Anim='HE' OH:Heat(OH.Cost[Anim],true) | |
1577 | Speed[1]=0 | |
1578 | BGFace=true | |
1579 | qAni(la,-0.6,0.45,-0.7,-90,50, 0,2,ns*1.5,1) | |
1580 | Ani(ra, 1.5,0.55,0,-90, 0,90,2,ns*1.5,1) | |
1581 | local c1=han.CFrame*cn(0,lBlade/2+0.5,0).p | |
1582 | Torso.CFrame=cn(Torso.Position,v3(mouse.hit.p.x,Torso.Position.y,mouse.hit.p.z))*cn(0,0,-20) | |
1583 | Sound(as.slash,Torso,1,1) | |
1584 | BGFace=false | |
1585 | local c2=han.CFrame*cn(0,lBlade/2+0.5,0).p | |
1586 | local cm=(c1-c2).magnitude | |
1587 | local tcf=cn(c1,c2)*cn(0,0,-cm/2) | |
1588 | local v=qi{'Part',m,tra=1,can=false,sc=v3(lBlade,0.2,cm-0.4),bn='Really red'} | |
1589 | for ii,vv in pairs{'Top','Bottom'} do qi{'Decal',v,n=vv,Face=vv,Texture=as.redgradient} end | |
1590 | qi{'BodyPosition',v,maxForce=v3(1,1,1)/0,position=tcf.p} qi{'BodyGyro',v,maxTorque=v3(1,1,1)/0,cframe=tcf,D=150} | |
1591 | q(function() Tl(0.15,1,0.15,function(i) for ii,vv in pairs{'Top','Bottom'} do v[vv].Transparency=i*1 end end) v:Remove() end) | |
1592 | v.CFrame=tcf | |
1593 | HitBox(v,v3(lBlade,0.5,cm),cn(0,0,0),Dealt(),0.2) | |
1594 | wait(0.1) | |
1595 | Speed[1]=1 | |
1596 | ReturnStance(1,1) | |
1597 | Anim='H' | |
1598 | end | |
1599 | end) | |
1600 | ----WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW | |
1601 | mouse.KeyUp:connect(function(k) | |
1602 | Key[k]=false | |
1603 | end) | |
1604 | ||
1605 | ||
1606 | ReturnStance=function(ii,i2) | |
1607 | ii = ii or 1 | |
1608 | if not i2 then | |
1609 | qAni(la,-1.5,0.5,0,15,0,0,2,ns*ii,1) | |
1610 | qAni(ra, 1.5,0.5,0,15,0,0,2,ns*ii,1) | |
1611 | qAni(ll,-0.5,-1,0,0,0,0,2,ns*ii,1) | |
1612 | qAni(rl, 0.5,-1,0,0,0,0,2,ns*ii,1) | |
1613 | qAni(tw,0,0,0,0,0,0,1,ns*ii,1) | |
1614 | qAni(tw,0,0,0,0,0,0,0,ns*ii,1) | |
1615 | qAni(hw,0,0,0,0,0,0,1,ns*ii,1) | |
1616 | Ani(hw,0,1.5,0,0,0,0,0,ns*ii,1) | |
1617 | elseif i2==1 then | |
1618 | qAni(ra,0,0.5,0,-45,-15,0,1,ns*ii,1) | |
1619 | qAni(la,0,0.5,0,15,0,-15,1,ns*ii,1) | |
1620 | qAni(ra, 1.5,0.5,0,0,0,0,0,ns*ii,1) | |
1621 | qAni(la,-1.5,0.5,0,0,0,0,0,ns*ii,1) | |
1622 | Ani(ll,-0.5,-1,0,0,0,0,2,ns*ii,1) | |
1623 | Ani(rl, 0.5,-1,0,0,0,0,2,ns*ii,1) | |
1624 | Ani(tw,0,0,0,0,0,0,1,ns*ii,1) | |
1625 | Ani(tw,0,0,0,0,0,0,0,ns*ii,1) | |
1626 | qAni(hw,0,0,0,0,0,0,1,ns*ii,1) | |
1627 | qAni(hanw,0,-1.25,-0.25,90,0,0,2,ns*ii,1) | |
1628 | Ani(hw,0,1.5,0,0,0,0,0,ns*ii,1) | |
1629 | end | |
1630 | end | |
1631 | ||
1632 | TrailColor='Institutional white' | |
1633 | TrailThickness=0.2 | |
1634 | function Hitt(vv,ss) | |
1635 | ss=ss or 1 | |
1636 | Trail(HitBox(vv,v3(1,3,1),cn(0,-0.5,0),Dealt()*ss,0.5,as.kick),TrailThickness,TrailColor,0.1,0.03,cn(0,-1,0),m) | |
1637 | end | |
1638 | function SwordHit(cff) | |
1639 | Trail(HitBox(han,v3(1,lBlade+1,1),(cff or cn(0,0,0))*cn(0,lBlade/2+0.5,0),Dealt(),0.38),TrailThickness+0.1,TrailColor,0.15,0.03,cn(0,lBlade/2,0),m) | |
1640 | end | |
1641 | ||
1642 | ||
1643 | Combos={ | |
1644 | G={ | |
1645 | function() | |
1646 | AddBV(10,Torso.CFrame,Torso,0.2,true) | |
1647 | qAni(hw,0,1.5,0,0,-90,0,0,ns,1) | |
1648 | qAni(la,-1.5,0.5,0,0,0,0,2,ns,1) | |
1649 | qAni(ra, 1.5,0.5,0,0,0,-90,2,ns,1) | |
1650 | Sound(as.slash,Torso,1,1.3) | |
1651 | Hitt(RA) | |
1652 | Ani(tw,0,0,0,0,90,0,0,ns,1) | |
1653 | end; | |
1654 | function() | |
1655 | Legs'' | |
1656 | AddBV(10,Torso.CFrame,Torso,0.2,true) | |
1657 | qAni(hw,0,1.5,0,0,90,0,0,ns,1) | |
1658 | qAni(la,-0.5,0.5,-1,-90,90,0,2,ns,1) | |
1659 | qAni(ra, 1.5,0.5,0,0,0,-25,2,ns,1) | |
1660 | local hi=85 | |
1661 | qAni(ll,-0.5,-1.25,0,0,0, hi,2,ns,1) | |
1662 | qAni(rl, 0.5,-1.25,0,0,0,-hi,2,ns,1) | |
1663 | Sound(as.slash,Torso,1,1.3) | |
1664 | Hitt(LL) | |
1665 | Ani(tw,0,-0.5,0,hi,-90,0,0,ns,1) | |
1666 | end; | |
1667 | function() | |
1668 | ReturnStance(1.4) | |
1669 | AddBV(10,Torso.CFrame,Torso,0.2,true) | |
1670 | qAni(la,-1.5,0.5,0,0,0,0,2,ns,1) | |
1671 | qAni(ra, 0.5,0.5,-1,-90,-90,0,2,ns,1) | |
1672 | local hi=20 | |
1673 | qAni(ll,-1,-1.25,0,0,0, 90,2,ns,1) | |
1674 | qAni(rl, 0.5,-1.25,0,0,0,-hi,2,ns,1) | |
1675 | Sound(as.slash,Torso,1,1.3) | |
1676 | Hitt(RL) | |
1677 | qAni(tw,0,-0.5,0,90,0,-90,1,ns) | |
1678 | Ani(tw,0,0,0,0,-360,0,0,ns/2) rAni(tw) | |
1679 | ReturnStance() | |
1680 | end; | |
1681 | Break=function(Combonum,anim) | |
1682 | CanCombo=true | |
1683 | wait(0.4) | |
1684 | if Combonum==ComboNum then CanCombo=false ComboNum=0 | |
1685 | ReturnStance() | |
1686 | Legs() | |
1687 | Anim=anim CanCombo=true end | |
1688 | end | |
1689 | }; | |
1690 | --------------------------------------------- | |
1691 | H={ | |
1692 | function() | |
1693 | BGFace=true | |
1694 | qAni(hw,0,1.5,0,0,-75,0,0,ns,1) | |
1695 | qAni(tw,0,0,0,0,75,0,0,ns,1) | |
1696 | Ani(ra,1.5,0.5,0,-90,50,-90,2,ns,1) | |
1697 | Sound(as.slash,Torso,1,1) | |
1698 | SwordHit() | |
1699 | qAni(hw,0,1.5,0,0,75,0,0,ns,1) | |
1700 | qAni(tw,0,0,0,0,-75,0,0,ns,1) | |
1701 | Ani(ra,1.5,0.5,0,0,-20,-90,2,ns,1) | |
1702 | end; | |
1703 | function() | |
1704 | qAni(hw,0,1.5,0,0,0,0,0,ns,1) | |
1705 | qAni(tw,0,0,0,0,0,0,0,ns,1) | |
1706 | qAni(la,-1.2,0.8,0,-170,0, 40,2,ns,1) | |
1707 | Ani(ra, 1.2,0.8,0,-170,0,-40,2,ns,1) | |
1708 | wait(0.2) | |
1709 | Sound(as.slash,Torso,1,1) | |
1710 | SwordHit() | |
1711 | qAni(hanw,0,-1.25,-0.25,150,0,0,2,ns,1) | |
1712 | qAni(la,-0.7,0.3,-0.6,-45,0,-10,2,ns,1) | |
1713 | Ani(ra, 0.7,0.3,-0.6,-45,0, 10,2,ns,1) | |
1714 | end; | |
1715 | function() | |
1716 | qAni(la,-1.5,0.5,0,15,0,-15,2,ns,1) | |
1717 | qAni(hw,0,1.5,0,0,-90,0,0,ns,1) | |
1718 | qAni(tw,0,0,0,0,90,0,0,ns,1) | |
1719 | qAni(hanw,0,-1.25,0,180,0,90,2,ns,1) | |
1720 | Ani(ra,1.5,0.5,0,0,0,-180,2,ns,1) | |
1721 | AddBV(-22,Torso.CFrame,Torso,0.4,true) | |
1722 | wait(0.5) | |
1723 | AddBV(16,Torso.CFrame,Torso,0.4,true) | |
1724 | qAni(hanw,0,-1.25,0,180,0,0,2,ns,1) | |
1725 | Ani(ra,1.5,0.5,0,0,0,-90,2,ns,1) | |
1726 | for i=1,16 do | |
1727 | Sound(as.slash,Torso,1,mran(100,140)/100) | |
1728 | Ani(hanw,0,-1.25,0,180+mran(-30,30),0,mran(-30,30),2,1) | |
1729 | if i%2==0 then | |
1730 | local tcf=ca(mran(-30,30),0,mran(-30,30))*cn(0,lBlade/2+0.5,0) | |
1731 | MeshEffect(han,han.CFrame*tcf,0.3,lBlade*1.3,0.3,0.1,'Institutional white',as.diamond,cn(0,0.1,0)) | |
1732 | GetRegion(han.CFrame*tcf.p,lBlade,function(Hum,HT) if Hum~=Huma then Dmg(Hum,Dealt()/3) Sound(as.hit,han,1,mran(90,140)/100) end end) | |
1733 | end | |
1734 | wait(0.04) | |
1735 | end | |
1736 | end; | |
1737 | Break=function(Combonum,anim) | |
1738 | CanCombo=true | |
1739 | wait(0.3) | |
1740 | if Combonum==ComboNum then CanCombo=false ComboNum=0 | |
1741 | BGFace=false | |
1742 | ReturnStance(1,1) | |
1743 | Legs() | |
1744 | Anim=anim CanCombo=true end | |
1745 | end | |
1746 | }; | |
1747 | } | |
1748 | ||
1749 | ComboNum=0 | |
1750 | CanCombo=true | |
1751 | DoCombo=function(com) | |
1752 | local DidCombo | |
1753 | if Anim~=com and Anim~=com..'Combo'..ComboNum then return end | |
1754 | if not CanCombo then return end | |
1755 | local comz=com:gsub('Combo'..ComboNum,'') | |
1756 | if Combos[comz] and Combos[comz][ComboNum+1] then | |
1757 | ComboNum=ComboNum+1 | |
1758 | Anim=comz..'Combo'..ComboNum | |
1759 | CanCombo=false | |
1760 | DidCombo=true | |
1761 | OH:Heat(15,true) | |
1762 | Combos[comz][ComboNum]() | |
1763 | Combos[comz].Break(ComboNum,comz) | |
1764 | end | |
1765 | return DidCombo | |
1766 | end | |
1767 | ||
1768 | mouse.Button1Down:connect(function() | |
1769 | Button=true | |
1770 | DoCombo(Anim) | |
1771 | if Anim=='HACKS' then | |
1772 | elseif Anim=='GF' then | |
1773 | Anim='GF1' OH:Heat(10,true) | |
1774 | GFTP=not GFTP | |
1775 | local gg=GFTP and GFT[-1].w2.Part1 or GFT[1].w2.Part1 | |
1776 | MeshEffect(gg,gg.CFrame*ca(180,0,0)*cn(0,0.2,0),0.5,1.4,0.5,0.25,'New Yeller',as.blast,cn(0,0.1,0)*ca(0,25,0)) | |
1777 | Sound(as.firelaser,Torso,1,1.3) | |
1778 | local b1=qi{'Part',m2,an=true,tra=0.2,can=false,bn='New Yeller',sc=v3(0,0,0),cf=cn(gg.Position,mouse.hit.p)} qi{'SpecialMesh',b1,mid=as.diamond,sca=v3(0.4,0.4,2)} | |
1779 | FireCF(cn(b1.Position,b1.CFrame*cn(0,0,-1).p),6,function(cff,ty) b1.CFrame=cff end,function(cff,hum) b1.Transparency=1 | |
1780 | Dmg(hum,Dealt()/1.3) | |
1781 | MeshEffect(b1,b1.CFrame,2,2,2,0.2,'New Yeller','Sphere') | |
1782 | wait(3) b1:Remove() end) | |
1783 | wait(0.35) | |
1784 | Anim='GF' | |
1785 | elseif Anim=='F' and OH:C'F1' then | |
1786 | Anim='F1' OH:Heat(OH.Cost[Anim],true) | |
1787 | AddBV(10,Torso.CFrame,Torso,0.4,true) | |
1788 | qAni(hw,0,1.5,0,0,90,0,0,ns,1) | |
1789 | qAni(la,-0.5,0.5,-1,-90,90,0,2,ns,1) | |
1790 | qAni(ra, 1.5,0.5,0,0,0,-25,2,ns,1) | |
1791 | Legs'' | |
1792 | local hi=65 | |
1793 | qAni(ll,-0.5,-1.25,0,0,0, hi,2,ns,1) | |
1794 | qAni(rl, 0.5,-1.25,0,0,0,-hi,2,ns,1) | |
1795 | Sound(as.slash,Torso,1,1.3) | |
1796 | Hitt(LL) | |
1797 | Ani(tw,0,0,-1,hi,-90,0,0,ns,1) | |
1798 | ---- | |
1799 | qAni(ll,-0.5,-1,0,0,0,0,2,ns,1) | |
1800 | qAni(rl, 0.5,-1,0,0,0,0,2,ns,1) | |
1801 | qAni(tw,0,0,0,0,-45,0,0,ns,1) | |
1802 | qAni(hw,0,1.5,0,0,45,0,0,ns,1) | |
1803 | qAni(la,-1.25,0.6,-0.4,-90,45,0,2,ns,1) | |
1804 | Ani(ra, 1.5,0.5,0,0,0,-25,2,ns,1) | |
1805 | Legs() | |
1806 | Anim='F' | |
1807 | end | |
1808 | end) | |
1809 | ||
1810 | mouse.Button1Up:connect(function() | |
1811 | Button=false | |
1812 | ||
1813 | end) | |
1814 | ||
1815 | end) | |
1816 | ||
1817 | bin.Deselected:connect(function() | |
1818 | mouse=nil | |
1819 | ||
1820 | end) | |
1821 | ||
1822 | ||
1823 | Block.v.Changed:connect(function(vv) | |
1824 | frambzz:TweenSize(ud(Block.v.Value/Block.vm,0,1,0),nil,1,0.4,true) | |
1825 | end) | |
1826 | frambzz:TweenSize(ud(Block.v.Value/Block.vm,0,1,0),nil,1,0.4,true) | |
1827 | ---------------------------------------------------------------------------------- | |
1828 | --HitBoxTRA=0 | |
1829 | ||
1830 | ||
1831 | ||
1832 | ||
1833 | ||
1834 | ||
1835 | ||
1836 | ||
1837 | --------------------------------------------------------------------------------- | |
1838 | Count=0 | |
1839 | while m.Parent do | |
1840 | Count=Count+1 | |
1841 | local thespeed=18 | |
1842 | for i=1,#Speed do thespeed=thespeed*Speed[i] end | |
1843 | Huma.WalkSpeed=thespeed | |
1844 | local oheat=OVERHEAT2>tick() and '('..math.floor(OVERHEAT2-tick())..')' or '' | |
1845 | framtz.Text=math.floor(OH.i)..' / '..math.floor(OH.m).. ' '..oheat | |
1846 | if Count%2==0 then OH:Cool(OH.Regen) end | |
1847 | for noti,vv in pairs(OH.Notes) do | |
1848 | local nots=noti.Text:sub(1,1)=='+' and 1 or -1 | |
1849 | noti.Position=noti.Position+ud(0,0,0,-1*nots) noti.TextTransparency=noti.TextTransparency+(0.9/50) | |
1850 | if noti.Position.Y.Offset==-50*nots then noti:Remove() OH.Notes[noti]=nil end | |
1851 | end | |
1852 | LFire.Enabled=OH.m-OH.Cost.Z*3<OH.i | |
1853 | RFire.Enabled=LFire.Enabled | |
1854 | Smoking=OH.i>OH.m*0.7 | |
1855 | if Count%25==0 and OH.m-15<=OH.i then Dmg(Huma,5) end | |
1856 | if Count%4==0 and Smoking then | |
1857 | for i,v in pairs{LGlove,RGlove} do | |
1858 | MeshEffect(v,v.CFrame*ca(0,mran(-360,360),mran(-30,30)),2,3,2,0.135,mran(1,2)==1 and 'Really black' or 'Dark stone grey','Sphere',cn(0,-0.1,0)) | |
1859 | end end | |
1860 | local heat=RFire.Enabled and 3 or (Smoking and 2 or 1) | |
1861 | if OVERHEAT2>tick() and heat==3 then heat=2 end | |
1862 | framt.Text=({'Heat Gauge','Warning!','OVERHEAT!'})[heat] | |
1863 | fram.Position=ud(0.4,0,0,10)+(heat==3 and ud(0,mran(-6,6),0,mran(-6,6)) or ud(0,0,0,0)) | |
1864 | framt.TextColor=heat==1 and bn'White' or bn(math.floor(Count/4)%2==0 and 'White' or 'Bright red') | |
1865 | ----------------------------------------- | |
1866 | frambtz.Text=Block.v.Value==0 and (Block.cd<tick() and '' or math.floor(Block.cd-tick()+0.5)) or ('Defense '..Block.v.Value..' / '..Block.vm) | |
1867 | if BGFace and mouse then BG.maxTorque=v3(1,1,1)/0 BG.cframe=cn(Torso.Position,v3(mouse.hit.p.x,Torso.Position.y,mouse.hit.p.z)) else BG.maxTorque=v3(0,0,0) end | |
1868 | if mouse then getX=GetX(cn(Torso.Position,mouse.hit.p)) end | |
1869 | if getX then getx=getX getx=getx>65 and 65 or getx getx=getx<-65 and -65 or getx end | |
1870 | ----------------- | |
1871 | for mp,gf in pairs(meshpack) do | |
1872 | if gf[1]>=1 then mp:Remove() meshpack[mp]=nil end | |
1873 | gf[1]=gf[1]+gf[2] | |
1874 | local i,adj,x,y,z,ms=gf[1],gf[3],gf[4],gf[5],gf[6],gf[7] | |
1875 | mp.Transparency=0.2+(0.7*i) | |
1876 | mp.CFrame=mp.CFrame*adj | |
1877 | ms.Scale=v3(x,y,z)*(0.3+(0.7*i)) | |
1878 | end | |
1879 | ----------------- | |
1880 | ||
1881 | for Do,gf in pairs(anipack) do | |
1882 | local i,sined,ty,c0,c1,d,e,f=gf[1],gf[3],gf[4],gf[5],gf[6],gf[7],gf[8],gf[9] | |
1883 | Do(sined and math.sin(math.pi/2*i) or i) | |
1884 | gf[1]=gf[1]+gf[2] | |
1885 | if gf[1]>=1 then Do(1) anipack[Do]=nil | |
1886 | if ty==0 then c0[4],c0[5],c0[6]=d,e,f else c1[4],c1[5],c1[6]=d,e,f end end | |
1887 | end | |
1888 | ----------------- | |
1889 | for trp,gf in pairs(trailpack) do | |
1890 | if gf[1]<=0 then trp:Remove() trailpack[trp]=nil end | |
1891 | gf[1]=gf[1]-gf[2] | |
1892 | local i,trpm,th,mag=gf[1],gf[3],gf[4],gf[5] | |
1893 | trp.Transparency=0.3+(0.7*(1-i)) | |
1894 | trpm.Scale=v3(th*i,th*i,mag) | |
1895 | end | |
1896 | ------------------ | |
1897 | ||
1898 | wait() end | |
1899 | ||
1900 | ||
1901 | --local/Chrono.Trail(Chrono.LA,0.5,'Really black',0.1,0.03) | |
1902 | ||
1903 | --c/script.Parent==nil workspace.ChildAdded:connect(function(a) if a.Name=='Dummy' then a:Destroy() end end) | |
1904 | -- |