SHOW:
|
|
- or go back to the newest paste.
1 | Effects = {} --sound effects, for advanced players. | |
2 | local Player = game.Players.localPlayer | |
3 | local Character = Player.Character | |
4 | local Humanoid = Character.Humanoid | |
5 | z = Instance.new("Sound", Character) | |
6 | z.SoundId = "rbxassetid://359626022"-- | |
7 | z.Looped = true --False for a one-time song. | |
8 | z.Pitch = 1.0 | |
9 | z.Volume = 1.6 | |
10 | wait(.1) | |
11 | z:Play() | |
12 | ------------------------ | |
13 | p = game.Players.LocalPlayer | |
14 | char = p.Character | |
15 | pchar = p.Character | |
16 | pchar.Head.Jumping.SoundId = "http://www.roblox.com/asset/?id=2767090" | |
17 | as=0.3 | |
18 | explode = true | |
19 | tra = 0.1 | |
20 | blast = true | |
21 | player = p | |
22 | humanoid = char.Humanoid | |
23 | torso = char.Torso | |
24 | torsoj = char.HumanoidRootPart.RootJoint | |
25 | original = torsoj.C0 | |
26 | laser = true | |
27 | active= false | |
28 | function hum() | |
29 | humState = humanoid:GetState() | |
30 | if humState == Enum.HumanoidStateType.Jumping then | |
31 | ||
32 | local rng = Instance.new("Part", char) | |
33 | ||
34 | rng.Anchored = true | |
35 | ||
36 | rng.BrickColor = BrickColor.new("Really black") | |
37 | ||
38 | rng.CanCollide = false | |
39 | ||
40 | rng.FormFactor = 3 | |
41 | ||
42 | rng.Name = "Ring" | |
43 | ||
44 | rng.Size = Vector3.new(1, 1, 1) | |
45 | ||
46 | rng.Transparency = 0 | |
47 | ||
48 | rng.TopSurface = 0 | |
49 | ||
50 | rng.BottomSurface = 0 | |
51 | ||
52 | rng.Material = "Neon" | |
53 | ||
54 | rng.Position = torso.Position - Vector3.new(0,3,0) | |
55 | ||
56 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
57 | ||
58 | local rngm = Instance.new("SpecialMesh", rng) | |
59 | ||
60 | rngm.MeshId= "http://www.roblox.com/asset/?id=3270017" | |
61 | ||
62 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
63 | ||
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | ||
70 | ||
71 | ||
72 | ||
73 | ||
74 | wait(0.1) | |
75 | ||
76 | ||
77 | ||
78 | coroutine.wrap(function() | |
79 | ||
80 | for i = 1, 5, 0.5 do | |
81 | ||
82 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
83 | ||
84 | rng.Transparency = i/4 | |
85 | ||
86 | ||
87 | ||
88 | wait() | |
89 | ||
90 | ||
91 | ||
92 | ||
93 | ||
94 | end | |
95 | ||
96 | ||
97 | ||
98 | wait() | |
99 | ||
100 | ||
101 | ||
102 | rng:Destroy() | |
103 | ||
104 | ||
105 | ||
106 | ||
107 | ||
108 | ||
109 | ||
110 | ||
111 | ||
112 | ||
113 | ||
114 | wait() | |
115 | ||
116 | end)() | |
117 | ||
118 | ||
119 | ||
120 | ||
121 | ||
122 | ||
123 | ||
124 | ||
125 | ||
126 | end | |
127 | ||
128 | ||
129 | ||
130 | ||
131 | ||
132 | ||
133 | ||
134 | ||
135 | ||
136 | ||
137 | end | |
138 | ||
139 | Lightning = function(Start,End,Times,Offset,Color,Thickness) | |
140 | ||
141 | ||
142 | ||
143 | ||
144 | local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset} | |
145 | ||
146 | ||
147 | ||
148 | ||
149 | for i=1,Times do | |
150 | ||
151 | ||
152 | ||
153 | ||
154 | local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true | |
155 | ||
156 | ||
157 | ||
158 | ||
159 | li.Material = "Neon" | |
160 | ||
161 | ||
162 | ||
163 | ||
164 | ||
165 | ||
166 | ||
167 | ||
168 | ||
169 | ||
170 | ||
171 | ||
172 | ||
173 | li.Transparency = 0 li.BrickColor = Color | |
174 | ||
175 | ||
176 | ||
177 | ||
178 | li.formFactor = "Custom" li.CanCollide = false | |
179 | ||
180 | ||
181 | ||
182 | ||
183 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
184 | ||
185 | ||
186 | ||
187 | ||
188 | local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
189 | ||
190 | ||
191 | ||
192 | ||
193 | local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz | |
194 | ||
195 | ||
196 | ||
197 | ||
198 | if Times == i then | |
199 | ||
200 | ||
201 | ||
202 | ||
203 | local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2) | |
204 | ||
205 | ||
206 | ||
207 | ||
208 | li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2) | |
209 | ||
210 | ||
211 | ||
212 | ||
213 | else | |
214 | ||
215 | ||
216 | ||
217 | ||
218 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
219 | ||
220 | ||
221 | ||
222 | ||
223 | end | |
224 | ||
225 | ||
226 | ||
227 | ||
228 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p Spawn(function() for i=1,10 do wait() | |
229 | ||
230 | ||
231 | ||
232 | ||
233 | ||
234 | ||
235 | ||
236 | ||
237 | ||
238 | ||
239 | ||
240 | ||
241 | ||
242 | li.Transparency = li.Transparency+tra end li:Destroy() end) | |
243 | ||
244 | ||
245 | ||
246 | ||
247 | end | |
248 | ||
249 | ||
250 | ||
251 | ||
252 | end | |
253 | ||
254 | ||
255 | ||
256 | ||
257 | ||
258 | ||
259 | ||
260 | ||
261 | ||
262 | ||
263 | ||
264 | ||
265 | ||
266 | --------- | |
267 | ||
268 | ||
269 | ||
270 | ||
271 | ||
272 | ||
273 | ||
274 | ||
275 | ||
276 | ||
277 | ||
278 | ||
279 | ||
280 | Lightning2 = function(Start,End,Times,Offset,Color,Thickness) | |
281 | ||
282 | ||
283 | ||
284 | ||
285 | local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset} | |
286 | ||
287 | ||
288 | ||
289 | ||
290 | for i=1,Times do | |
291 | ||
292 | ||
293 | ||
294 | ||
295 | local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true | |
296 | ||
297 | ||
298 | ||
299 | ||
300 | li.Material = "Neon" | |
301 | ||
302 | ||
303 | ||
304 | ||
305 | ||
306 | ||
307 | ||
308 | ||
309 | ||
310 | ||
311 | ||
312 | ||
313 | ||
314 | li.Transparency = 0 li.BrickColor = Color | |
315 | ||
316 | ||
317 | ||
318 | ||
319 | li.formFactor = "Custom" li.CanCollide = false | |
320 | ||
321 | ||
322 | ||
323 | ||
324 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
325 | ||
326 | ||
327 | ||
328 | ||
329 | local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
330 | ||
331 | ||
332 | ||
333 | ||
334 | local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz | |
335 | ||
336 | ||
337 | ||
338 | ||
339 | if Times == i then | |
340 | ||
341 | ||
342 | ||
343 | ||
344 | local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2) | |
345 | ||
346 | ||
347 | ||
348 | ||
349 | li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2) | |
350 | ||
351 | ||
352 | ||
353 | ||
354 | else | |
355 | ||
356 | ||
357 | ||
358 | ||
359 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
360 | ||
361 | ||
362 | ||
363 | ||
364 | end | |
365 | ||
366 | ||
367 | ||
368 | ||
369 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p Spawn(function() for i=1,10 do wait() | |
370 | ||
371 | ||
372 | ||
373 | ||
374 | ||
375 | ||
376 | ||
377 | ||
378 | ||
379 | ||
380 | ||
381 | ||
382 | ||
383 | li.Transparency = li.Transparency+.5 end li:Destroy() end) | |
384 | ||
385 | ||
386 | ||
387 | ||
388 | end | |
389 | ||
390 | ||
391 | ||
392 | ||
393 | end | |
394 | ||
395 | ||
396 | ||
397 | ||
398 | m = p:GetMouse() | |
399 | ||
400 | ||
401 | ||
402 | ||
403 | ||
404 | ||
405 | ||
406 | ||
407 | ||
408 | ||
409 | ||
410 | ||
411 | ||
412 | RightShoulder = Instance.new("Weld",pchar.Torso) | |
413 | ||
414 | ||
415 | ||
416 | ||
417 | RightShoulder.Part0 = pchar.Torso | |
418 | ||
419 | ||
420 | ||
421 | ||
422 | RightShoulder.Part1 = pchar['Right Arm'] | |
423 | ||
424 | ||
425 | ||
426 | ||
427 | RightShoulder.C0 = CFrame.new(1,0.5,0) | |
428 | ||
429 | ||
430 | ||
431 | ||
432 | RightShoulder.C1 = CFrame.new(-0.5,0.5,0) | |
433 | ||
434 | ||
435 | ||
436 | ||
437 | ||
438 | ||
439 | ||
440 | ||
441 | ||
442 | ||
443 | ||
444 | ||
445 | ||
446 | Torso2 = pchar.HumanoidRootPart.RootJoint | |
447 | ||
448 | ||
449 | ||
450 | ||
451 | ||
452 | ||
453 | ||
454 | ||
455 | ||
456 | ||
457 | ||
458 | ||
459 | ||
460 | ||
461 | ||
462 | ||
463 | ||
464 | ||
465 | ||
466 | ||
467 | ||
468 | ||
469 | LeftShoulder = Instance.new("Weld",pchar.Torso) | |
470 | ||
471 | ||
472 | ||
473 | ||
474 | LeftShoulder.Part0 = pchar.Torso | |
475 | ||
476 | ||
477 | ||
478 | ||
479 | LeftShoulder.Part1 = pchar['Left Arm'] | |
480 | ||
481 | ||
482 | ||
483 | ||
484 | LeftShoulder.C0 = CFrame.new(-1,0.5,0) | |
485 | ||
486 | ||
487 | ||
488 | ||
489 | LeftShoulder.C1 = CFrame.new(0.5,0.5,0) | |
490 | ||
491 | ||
492 | ||
493 | ||
494 | ||
495 | ||
496 | ||
497 | ||
498 | ||
499 | ||
500 | ||
501 | ||
502 | ||
503 | ||
504 | ||
505 | ||
506 | ||
507 | ||
508 | ||
509 | ||
510 | ||
511 | ||
512 | ||
513 | ||
514 | ||
515 | ||
516 | ||
517 | ||
518 | ||
519 | ||
520 | ||
521 | RightHip = Instance.new("Weld",pchar.Torso) | |
522 | ||
523 | ||
524 | ||
525 | ||
526 | RightHip.Part0 = pchar.Torso | |
527 | ||
528 | ||
529 | ||
530 | ||
531 | RightHip.Part1 = pchar['Right Leg'] | |
532 | ||
533 | ||
534 | ||
535 | ||
536 | RightHip.C0 = CFrame.new(0.5,-2,0) | |
537 | ||
538 | ||
539 | ||
540 | ||
541 | RightHip.C1 = CFrame.new(0,1.5,0) | |
542 | ||
543 | ||
544 | ||
545 | ||
546 | ||
547 | ||
548 | ||
549 | ||
550 | ||
551 | ||
552 | ||
553 | ||
554 | ||
555 | ||
556 | ||
557 | ||
558 | ||
559 | ||
560 | ||
561 | ||
562 | ||
563 | ||
564 | ||
565 | ||
566 | ||
567 | ||
568 | ||
569 | ||
570 | ||
571 | ||
572 | ||
573 | ||
574 | ||
575 | ||
576 | ||
577 | ||
578 | ||
579 | ||
580 | ||
581 | ||
582 | LeftHip = Instance.new("Weld",pchar.Torso) | |
583 | ||
584 | ||
585 | ||
586 | ||
587 | LeftHip.Part0 = pchar.Torso | |
588 | ||
589 | ||
590 | ||
591 | ||
592 | LeftHip.Part1 = pchar['Left Leg'] | |
593 | ||
594 | ||
595 | ||
596 | ||
597 | LeftHip.C0 = CFrame.new(-0.5,-2,0) | |
598 | ||
599 | ||
600 | ||
601 | ||
602 | LeftHip.C1 = CFrame.new(0,1.5,0) | |
603 | ||
604 | ||
605 | ||
606 | ||
607 | ||
608 | ||
609 | ||
610 | ||
611 | ||
612 | ||
613 | ||
614 | ||
615 | ||
616 | ||
617 | ||
618 | ||
619 | ||
620 | ||
621 | ||
622 | ||
623 | ||
624 | ||
625 | ||
626 | ||
627 | ||
628 | ||
629 | ||
630 | ||
631 | ||
632 | ||
633 | ||
634 | Neck = Instance.new("Weld",pchar.Torso) | |
635 | ||
636 | ||
637 | ||
638 | ||
639 | Neck.Part0 = pchar.Torso | |
640 | ||
641 | ||
642 | ||
643 | ||
644 | Neck.Part1 = pchar['Head'] | |
645 | ||
646 | ||
647 | ||
648 | ||
649 | Neck.C0 = CFrame.new(0,1.5,0) | |
650 | ||
651 | ||
652 | ||
653 | ||
654 | ||
655 | ||
656 | ||
657 | ||
658 | ||
659 | ||
660 | ||
661 | ||
662 | ||
663 | ||
664 | ||
665 | ||
666 | ||
667 | ||
668 | ||
669 | ||
670 | ||
671 | ||
672 | ------------------------- | |
673 | ||
674 | ||
675 | ||
676 | ||
677 | -- From 0,0,0 to 10,22,3 with lerps | |
678 | ||
679 | ||
680 | ||
681 | ||
682 | ||
683 | ||
684 | ||
685 | ||
686 | ||
687 | ||
688 | ||
689 | ||
690 | ||
691 | deg = math.deg | |
692 | ||
693 | ||
694 | ||
695 | ||
696 | rad = math.rad | |
697 | ||
698 | ||
699 | ||
700 | ||
701 | asin = math.asin | |
702 | ||
703 | ||
704 | ||
705 | ||
706 | atan2 = math.atan2 | |
707 | ||
708 | ||
709 | ||
710 | ||
711 | cos = math.cos | |
712 | ||
713 | ||
714 | ||
715 | ||
716 | sin = math.sin | |
717 | ||
718 | ||
719 | ||
720 | ||
721 | rad = math.sin | |
722 | ||
723 | ||
724 | ||
725 | ||
726 | function getAngles(cf) -- this is for later | |
727 | ||
728 | ||
729 | ||
730 | ||
731 | local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components() | |
732 | ||
733 | ||
734 | ||
735 | ||
736 | return atan2(-m12,m22),asin(m02),atan2(-m01,m00) | |
737 | ||
738 | ||
739 | ||
740 | ||
741 | end | |
742 | ||
743 | ||
744 | ||
745 | ||
746 | Lerp = { | |
747 | ||
748 | ||
749 | ||
750 | ||
751 | Number = function(C1,C2,inc) | |
752 | ||
753 | ||
754 | ||
755 | ||
756 | return C1 + (C2 - C1) * inc | |
757 | ||
758 | ||
759 | ||
760 | ||
761 | end; | |
762 | ||
763 | ||
764 | ||
765 | ||
766 | CFrame = function(a,b,m) | |
767 | ||
768 | ||
769 | ||
770 | ||
771 | local c,d={a:components()},{b:components()} | |
772 | ||
773 | ||
774 | ||
775 | ||
776 | table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end) | |
777 | ||
778 | ||
779 | ||
780 | ||
781 | return CFrame.new(unpack(c)) | |
782 | ||
783 | ||
784 | ||
785 | ||
786 | end; | |
787 | ||
788 | ||
789 | ||
790 | ||
791 | } | |
792 | ||
793 | ||
794 | ||
795 | ||
796 | local Jumping = false | |
797 | ||
798 | ||
799 | ||
800 | ||
801 | humanoid.Jumping:connect(function() | |
802 | ||
803 | ||
804 | ||
805 | ||
806 | if Jumping then return end | |
807 | ||
808 | ||
809 | ||
810 | ||
811 | print'asd im jumping' | |
812 | ||
813 | ||
814 | ||
815 | ||
816 | Jumping = true | |
817 | ||
818 | ||
819 | ||
820 | ||
821 | repeat wait() until Vector3.new(0, torso.Velocity.y, 0).magnitude < 3 | |
822 | ||
823 | ||
824 | ||
825 | ||
826 | print'asd jump over' | |
827 | ||
828 | ||
829 | ||
830 | ||
831 | Jumping = false | |
832 | ||
833 | ||
834 | ||
835 | ||
836 | end) | |
837 | ||
838 | ||
839 | ||
840 | ||
841 | local Falling= false | |
842 | ||
843 | ||
844 | ||
845 | ||
846 | humanoid.FreeFalling:connect(function() | |
847 | ||
848 | ||
849 | ||
850 | ||
851 | if Jumping then return end | |
852 | ||
853 | ||
854 | ||
855 | ||
856 | print'asd im fallin' | |
857 | ||
858 | ||
859 | ||
860 | ||
861 | Falling = true | |
862 | ||
863 | ||
864 | ||
865 | ||
866 | ||
867 | ||
868 | ||
869 | ||
870 | ||
871 | ||
872 | ||
873 | ||
874 | ||
875 | repeat wait() until Vector3.new(0, torso.Velocity.y, 0).magnitude < 100 | |
876 | ||
877 | ||
878 | ||
879 | ||
880 | print'hit ground!' | |
881 | ||
882 | ||
883 | ||
884 | ||
885 | Falling = false | |
886 | ||
887 | ||
888 | ||
889 | ||
890 | end) | |
891 | ||
892 | ||
893 | ||
894 | ||
895 | ----------- | |
896 | ||
897 | ||
898 | ||
899 | ||
900 | angle = 0 | |
901 | ||
902 | ||
903 | ||
904 | ||
905 | sin = math.sin | |
906 | ||
907 | ||
908 | ||
909 | ||
910 | rad = math.rad | |
911 | ||
912 | ||
913 | ||
914 | ||
915 | ||
916 | ||
917 | ||
918 | --------------------------------------------------BEAM START | |
919 | ||
920 | ||
921 | ||
922 | ||
923 | mouse = p:GetMouse() | |
924 | ||
925 | ||
926 | ||
927 | ||
928 | mouse.KeyDown:connect(function(k) | |
929 | ||
930 | ||
931 | ||
932 | ||
933 | if k == "x" then | |
934 | ||
935 | ||
936 | ||
937 | ||
938 | if laser == true then | |
939 | ||
940 | ||
941 | ||
942 | ||
943 | laser = false | |
944 | ||
945 | explode = false | |
946 | ||
947 | active = true | |
948 | ||
949 | humanoid.WalkSpeed = 0 | |
950 | ||
951 | humanoid.JumpPower = 0 | |
952 | ||
953 | ends = Instance.new("Part",char) | |
954 | ||
955 | ends.Anchored = true | |
956 | ||
957 | ends.Transparency = 1 | |
958 | ||
959 | ends:BreakJoints() | |
960 | ||
961 | ends.CFrame = char.Torso.CFrame * CFrame.new(-20,-3,0) | |
962 | ||
963 | ||
964 | ||
965 | ||
966 | tra = 1 | |
967 | ||
968 | LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(0,math.rad(90),0) | |
969 | ||
970 | LerpTo.Body = CFrame.new(0,0,0) * | |
971 | ||
972 | CFrame.Angles(math.rad(-90),0,math.rad(-280)) | |
973 | ||
974 | LerpTo.LeftArm = CFrame.new(-1.3,0.2,0) * CFrame.Angles(math.rad(00),0,math.rad(-80)) | |
975 | ||
976 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(0,0,math.rad(40)) | |
977 | ||
978 | ||
979 | ||
980 | ||
981 | orb = Instance.new("Part",char) | |
982 | ||
983 | ||
984 | ||
985 | ||
986 | s122 = Instance.new("Sound",orb) | |
987 | ||
988 | s122.SoundId = "rbxassetid://181004943" | |
989 | ||
990 | s122.Volume = .7 | |
991 | ||
992 | s122.Pitch = .9 | |
993 | ||
994 | s122:Play() | |
995 | ||
996 | ||
997 | ||
998 | ||
999 | orb.Size = Vector3.new(1,1,1) | |
1000 | ||
1001 | ||
1002 | ||
1003 | ||
1004 | orb.Material = "Neon" | |
1005 | ||
1006 | ||
1007 | ||
1008 | ||
1009 | orb.BrickColor = BrickColor.new("Really black") | |
1010 | ||
1011 | ||
1012 | ||
1013 | ||
1014 | orbm = Instance.new("SpecialMesh",orb) | |
1015 | ||
1016 | ||
1017 | ||
1018 | ||
1019 | orbm.MeshType = "Sphere" | |
1020 | ||
1021 | ||
1022 | ||
1023 | ||
1024 | orb:BreakJoints() | |
1025 | ||
1026 | ||
1027 | ||
1028 | ||
1029 | orbw = Instance.new("Weld",orb) | |
1030 | ||
1031 | ||
1032 | ||
1033 | ||
1034 | orbw.Part0 = orb | |
1035 | ||
1036 | ||
1037 | ||
1038 | ||
1039 | orbw.Part1 = char["Left Arm"] | |
1040 | ||
1041 | ||
1042 | ||
1043 | ||
1044 | orbw.C0 = CFrame.new(0,2,0) | |
1045 | ||
1046 | ||
1047 | ||
1048 | ||
1049 | ||
1050 | ||
1051 | ||
1052 | ||
1053 | ||
1054 | ||
1055 | for i = 1,4,0.1 do wait() | |
1056 | ||
1057 | ||
1058 | ||
1059 | ||
1060 | orbm.Scale = Vector3.new(i,i,i) | |
1061 | ||
1062 | ||
1063 | ||
1064 | ||
1065 | end | |
1066 | ||
1067 | s1222 = Instance.new("Sound",orb) | |
1068 | ||
1069 | s1222.SoundId = "rbxassetid://245029978" | |
1070 | ||
1071 | s1222.Volume = 1 | |
1072 | ||
1073 | s1222.Pitch = 1 | |
1074 | ||
1075 | s1222:Play() | |
1076 | ||
1077 | ||
1078 | ||
1079 | ||
1080 | ||
1081 | ||
1082 | ||
1083 | ||
1084 | ||
1085 | ||
1086 | ||
1087 | s1222 = Instance.new("Sound",orb) | |
1088 | ||
1089 | s1222.SoundId = "rbxassetid://245029978" | |
1090 | ||
1091 | s1222.Volume = 1 | |
1092 | ||
1093 | s1222.Pitch = 1 | |
1094 | ||
1095 | s1222:Play() | |
1096 | ||
1097 | ||
1098 | ||
1099 | s1222 = Instance.new("Sound",orb) | |
1100 | ||
1101 | s1222.SoundId = "rbxassetid://245029978" | |
1102 | ||
1103 | s1222.Volume = 1 | |
1104 | ||
1105 | s1222.Pitch = 1 | |
1106 | ||
1107 | s1222:Play() | |
1108 | ||
1109 | wait(0.2) | |
1110 | ||
1111 | for i = 1,30 do wait() | |
1112 | ||
1113 | ||
1114 | ||
1115 | ||
1116 | ends.CFrame = char.Torso.CFrame * CFrame.new(-20,-3,0) | |
1117 | ||
1118 | Lightning( | |
1119 | ||
1120 | ||
1121 | ||
1122 | ||
1123 | ||
1124 | ||
1125 | ||
1126 | ||
1127 | ||
1128 | ||
1129 | ||
1130 | ||
1131 | ||
1132 | orb.CFrame.p,ends.Position,math.random(5,10),math.random(0,0),BrickColor.new("Really black"),1 | |
1133 | ||
1134 | ||
1135 | ||
1136 | ||
1137 | ||
1138 | ||
1139 | ||
1140 | ||
1141 | ||
1142 | ||
1143 | ||
1144 | ||
1145 | ||
1146 | ) | |
1147 | ||
1148 | ||
1149 | ||
1150 | ||
1151 | Lightning2( | |
1152 | ||
1153 | ||
1154 | ||
1155 | ||
1156 | ||
1157 | ||
1158 | ||
1159 | ||
1160 | ||
1161 | ||
1162 | ||
1163 | ||
1164 | ||
1165 | orb.CFrame.p,ends.Position,math.random(5,10),math.random(2,2),BrickColor.new("Really red"),0.2 | |
1166 | ||
1167 | ||
1168 | ||
1169 | ||
1170 | ||
1171 | ||
1172 | ||
1173 | ||
1174 | ||
1175 | ||
1176 | ||
1177 | ||
1178 | ||
1179 | ) | |
1180 | ||
1181 | ||
1182 | ||
1183 | ||
1184 | ||
1185 | ||
1186 | ||
1187 | end | |
1188 | ||
1189 | ||
1190 | ||
1191 | ||
1192 | ||
1193 | ||
1194 | ||
1195 | ||
1196 | ||
1197 | ||
1198 | ||
1199 | ||
1200 | ||
1201 | for i = 3,0,-0.3 do wait() | |
1202 | ||
1203 | ||
1204 | ||
1205 | ||
1206 | orbm.Scale = Vector3.new(i,i,i) | |
1207 | ||
1208 | ||
1209 | ||
1210 | ||
1211 | end | |
1212 | ||
1213 | ||
1214 | ||
1215 | ||
1216 | active = false | |
1217 | ||
1218 | ends:Remove() | |
1219 | ||
1220 | orb:Remove() | |
1221 | ||
1222 | LerpTo.Body = original | |
1223 | ||
1224 | wait(1) | |
1225 | ||
1226 | ||
1227 | ||
1228 | ||
1229 | explode = true | |
1230 | ||
1231 | ||
1232 | ||
1233 | ||
1234 | ||
1235 | ||
1236 | ||
1237 | laser = true | |
1238 | ||
1239 | ||
1240 | ||
1241 | ||
1242 | ||
1243 | ||
1244 | ||
1245 | ||
1246 | ||
1247 | ||
1248 | ||
1249 | ||
1250 | ||
1251 | tra = 0.1 | |
1252 | ||
1253 | ||
1254 | ||
1255 | ||
1256 | humanoid.WalkSpeed = 16 | |
1257 | ||
1258 | humanoid.JumpPower = 50 | |
1259 | ||
1260 | ||
1261 | ||
1262 | ||
1263 | ||
1264 | ||
1265 | ||
1266 | end | |
1267 | ||
1268 | ||
1269 | ||
1270 | ||
1271 | end | |
1272 | ||
1273 | ||
1274 | ||
1275 | ||
1276 | end) | |
1277 | ||
1278 | mouse.KeyDown:connect(function(k) | |
1279 | ||
1280 | if k == "x" then | |
1281 | ||
1282 | wait(2) | |
1283 | ||
1284 | ||
1285 | ||
1286 | ||
1287 | for i = 1,5 do wait() | |
1288 | ||
1289 | ||
1290 | ||
1291 | ||
1292 | for i,v in pairs(workspace:children()) do | |
1293 | ||
1294 | ||
1295 | ||
1296 | ||
1297 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
1298 | ||
1299 | ||
1300 | ||
1301 | ||
1302 | if v:findFirstChild("Head") and v:findFirstChild("Torso") then | |
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | if (v:findFirstChild("Torso").Position - ends.Position).magnitude < 10 then | |
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | if v.Name ~= p.Name then | |
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | v.Humanoid:TakeDamage(20) | |
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | v.Humanoid.PlatformStand = true | |
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | wait(0.1) | |
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | v.Humanoid.PlatformStand = false | |
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | end | |
1338 | ||
1339 | ||
1340 | ||
1341 | ||
1342 | end | |
1343 | ||
1344 | ||
1345 | ||
1346 | ||
1347 | end | |
1348 | ||
1349 | ||
1350 | ||
1351 | ||
1352 | end | |
1353 | ||
1354 | ||
1355 | ||
1356 | ||
1357 | ||
1358 | ||
1359 | ||
1360 | ||
1361 | ||
1362 | ||
1363 | ||
1364 | ||
1365 | ||
1366 | ||
1367 | ||
1368 | ||
1369 | ||
1370 | ||
1371 | ||
1372 | ||
1373 | ||
1374 | ||
1375 | ||
1376 | ||
1377 | ||
1378 | ||
1379 | ||
1380 | ||
1381 | ||
1382 | ||
1383 | ||
1384 | ||
1385 | ||
1386 | ||
1387 | ||
1388 | ||
1389 | ||
1390 | ||
1391 | ||
1392 | ||
1393 | ||
1394 | ||
1395 | ||
1396 | ||
1397 | ||
1398 | ||
1399 | ||
1400 | ||
1401 | ||
1402 | end | |
1403 | ||
1404 | ||
1405 | ||
1406 | ||
1407 | end | |
1408 | ||
1409 | ||
1410 | ||
1411 | ||
1412 | end | |
1413 | ||
1414 | end) | |
1415 | ||
1416 | ||
1417 | ||
1418 | ||
1419 | mouse.KeyDown:connect(function(k) | |
1420 | ||
1421 | ||
1422 | ||
1423 | ||
1424 | if k == "x" then | |
1425 | ||
1426 | ||
1427 | ||
1428 | ||
1429 | if laser == true then | |
1430 | ||
1431 | ||
1432 | ||
1433 | ||
1434 | ||
1435 | ||
1436 | ||
1437 | ||
1438 | ||
1439 | ||
1440 | ||
1441 | ||
1442 | ||
1443 | wait(1.3) | |
1444 | ||
1445 | ||
1446 | ||
1447 | ||
1448 | for i = 1,30 do wait() | |
1449 | ||
1450 | ||
1451 | ||
1452 | ||
1453 | ||
1454 | ||
1455 | ||
1456 | ||
1457 | ||
1458 | ||
1459 | ||
1460 | ||
1461 | ||
1462 | ||
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | local rng = Instance.new("Part", char) | |
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | --[[sound = Instance.new("Sound",rng) | |
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | ||
1483 | ||
1484 | ||
1485 | ||
1486 | sound.SoundId="http://www.roblox.com/asset/?id= 165970126" | |
1487 | ||
1488 | ||
1489 | ||
1490 | ||
1491 | wait() | |
1492 | ||
1493 | ||
1494 | ||
1495 | ||
1496 | sound:Play()]]-- | |
1497 | ||
1498 | ||
1499 | ||
1500 | ||
1501 | rng.Anchored = true | |
1502 | ||
1503 | ||
1504 | ||
1505 | ||
1506 | rng.BrickColor = BrickColor.new("Really black") | |
1507 | ||
1508 | ||
1509 | ||
1510 | ||
1511 | rng.CanCollide = false | |
1512 | ||
1513 | ||
1514 | ||
1515 | ||
1516 | rng.FormFactor = 3 | |
1517 | ||
1518 | ||
1519 | ||
1520 | ||
1521 | rng:BreakJoints() | |
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | rng.Name = "Ring" | |
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | rng.Size = Vector3.new(1, 1, 1) | |
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | rng.Transparency = 0 | |
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | rng.TopSurface = 0 | |
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | rng.BottomSurface = 0 | |
1547 | ||
1548 | ||
1549 | ||
1550 | ||
1551 | rng.Material = "Neon" | |
1552 | ||
1553 | ||
1554 | ||
1555 | ||
1556 | rng.Position = torso.Position - Vector3.new(0,2,0) | |
1557 | ||
1558 | ||
1559 | ||
1560 | ||
1561 | rng.CFrame = ends.CFrame* | |
1562 | ||
1563 | ||
1564 | ||
1565 | ||
1566 | CFrame.Angles(math.random(),math.random(),math.random()) | |
1567 | ||
1568 | ||
1569 | ||
1570 | ||
1571 | local rngm = Instance.new("BlockMesh", rng) | |
1572 | ||
1573 | ||
1574 | ||
1575 | ||
1576 | ||
1577 | ||
1578 | ||
1579 | ||
1580 | ||
1581 | ||
1582 | ||
1583 | ||
1584 | ||
1585 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
1586 | ||
1587 | ||
1588 | ||
1589 | ||
1590 | ||
1591 | ||
1592 | ||
1593 | ||
1594 | ||
1595 | ||
1596 | ||
1597 | ||
1598 | ||
1599 | ||
1600 | ||
1601 | ||
1602 | ||
1603 | ||
1604 | ||
1605 | local rng1 = Instance.new("Part", char) | |
1606 | ||
1607 | ||
1608 | ||
1609 | ||
1610 | ||
1611 | ||
1612 | rng1.Anchored = true | |
1613 | ||
1614 | ||
1615 | ||
1616 | ||
1617 | rng1.BrickColor = BrickColor.new("Really black") | |
1618 | ||
1619 | ||
1620 | ||
1621 | ||
1622 | rng1.CanCollide = false | |
1623 | ||
1624 | ||
1625 | ||
1626 | ||
1627 | rng1.FormFactor = 3 | |
1628 | ||
1629 | ||
1630 | ||
1631 | ||
1632 | rng1:BreakJoints() | |
1633 | ||
1634 | ||
1635 | ||
1636 | ||
1637 | rng1.Name = "Ring" | |
1638 | ||
1639 | ||
1640 | ||
1641 | ||
1642 | rng1.Size = Vector3.new(1, 1, 1) | |
1643 | ||
1644 | ||
1645 | ||
1646 | ||
1647 | rng1.Transparency = 0 | |
1648 | ||
1649 | ||
1650 | ||
1651 | ||
1652 | rng1.TopSurface = 0 | |
1653 | ||
1654 | ||
1655 | ||
1656 | ||
1657 | rng1.BottomSurface = 0 | |
1658 | ||
1659 | ||
1660 | ||
1661 | ||
1662 | rng1.Material = "Neon" | |
1663 | ||
1664 | ||
1665 | ||
1666 | ||
1667 | rng1.Position = torso.Position - Vector3.new(0,2,0) | |
1668 | ||
1669 | ||
1670 | ||
1671 | ||
1672 | rng1.CFrame = ends.CFrame* | |
1673 | ||
1674 | ||
1675 | ||
1676 | ||
1677 | CFrame.Angles(math.random(),math.random(),math.random()) | |
1678 | ||
1679 | ||
1680 | ||
1681 | ||
1682 | local rngm1 = Instance.new("SpecialMesh", rng1) | |
1683 | ||
1684 | ||
1685 | ||
1686 | ||
1687 | ||
1688 | ||
1689 | ||
1690 | rngm1.MeshType = "Sphere" | |
1691 | ||
1692 | ||
1693 | ||
1694 | ||
1695 | rngm1.Scale = Vector3.new(1, 1.3, 2) | |
1696 | ||
1697 | ||
1698 | ||
1699 | ||
1700 | ||
1701 | ||
1702 | ||
1703 | ||
1704 | ||
1705 | ||
1706 | ||
1707 | ||
1708 | ||
1709 | ||
1710 | ||
1711 | ||
1712 | local rng11 = Instance.new("Part", char) | |
1713 | ||
1714 | ||
1715 | ||
1716 | ||
1717 | ||
1718 | ||
1719 | rng11.Anchored = true | |
1720 | ||
1721 | ||
1722 | ||
1723 | ||
1724 | rng11.BrickColor = BrickColor.new("Really black") | |
1725 | ||
1726 | ||
1727 | ||
1728 | ||
1729 | rng11.CanCollide = false | |
1730 | ||
1731 | ||
1732 | ||
1733 | ||
1734 | rng11.FormFactor = 3 | |
1735 | ||
1736 | ||
1737 | ||
1738 | ||
1739 | rng11:BreakJoints() | |
1740 | ||
1741 | ||
1742 | ||
1743 | ||
1744 | rng11.Name = "Ring" | |
1745 | ||
1746 | ||
1747 | ||
1748 | ||
1749 | rng11.Size = Vector3.new(1, 1, 1) | |
1750 | ||
1751 | ||
1752 | ||
1753 | ||
1754 | rng11.Transparency = 0 | |
1755 | ||
1756 | ||
1757 | ||
1758 | ||
1759 | rng11.TopSurface = 0 | |
1760 | ||
1761 | ||
1762 | ||
1763 | ||
1764 | rng11.BottomSurface = 0 | |
1765 | ||
1766 | ||
1767 | ||
1768 | ||
1769 | rng11.Material = "Neon" | |
1770 | ||
1771 | ||
1772 | ||
1773 | ||
1774 | ||
1775 | ||
1776 | ||
1777 | ||
1778 | ||
1779 | rng11.CFrame = ends.CFrame* CFrame.Angles(math.rad(90),0,math.rad(0)) | |
1780 | ||
1781 | ||
1782 | ||
1783 | ||
1784 | local rngm11 = Instance.new("SpecialMesh", rng11) | |
1785 | ||
1786 | ||
1787 | ||
1788 | ||
1789 | ||
1790 | ||
1791 | ||
1792 | rngm11.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1793 | ||
1794 | ||
1795 | ||
1796 | ||
1797 | rngm11.Scale = Vector3.new(1, 1.3, 2) | |
1798 | ||
1799 | ||
1800 | ||
1801 | ||
1802 | ||
1803 | ||
1804 | ||
1805 | ||
1806 | ||
1807 | ||
1808 | ||
1809 | ||
1810 | coroutine.wrap(function() | |
1811 | ||
1812 | ||
1813 | ||
1814 | ||
1815 | for i = 1, 5, 0.4 do | |
1816 | ||
1817 | ||
1818 | ||
1819 | ||
1820 | rngm.Scale = Vector3.new(i,i,i) | |
1821 | ||
1822 | ||
1823 | ||
1824 | ||
1825 | rng.Transparency = 0 | |
1826 | ||
1827 | rngm1.Scale = Vector3.new(i*4,i*4,i*4) | |
1828 | ||
1829 | ||
1830 | ||
1831 | ||
1832 | rng1.Transparency = i/5 | |
1833 | ||
1834 | ||
1835 | ||
1836 | rngm11.Scale = Vector3.new(1+i*5,1+i*5,1) | |
1837 | ||
1838 | ||
1839 | ||
1840 | ||
1841 | rng11.Transparency = i/5 | |
1842 | ||
1843 | ||
1844 | ||
1845 | ||
1846 | wait() | |
1847 | ||
1848 | ||
1849 | ||
1850 | ||
1851 | ||
1852 | ||
1853 | ||
1854 | ||
1855 | ||
1856 | ||
1857 | ||
1858 | ||
1859 | ||
1860 | ||
1861 | end | |
1862 | ||
1863 | ||
1864 | ||
1865 | ||
1866 | ||
1867 | ||
1868 | ||
1869 | ||
1870 | ||
1871 | wait() | |
1872 | ||
1873 | ||
1874 | ||
1875 | ||
1876 | ||
1877 | ||
1878 | ||
1879 | ||
1880 | ||
1881 | rng:Destroy() | |
1882 | ||
1883 | ||
1884 | ||
1885 | ||
1886 | rng1:Destroy() | |
1887 | ||
1888 | rng11:Destroy() | |
1889 | ||
1890 | ||
1891 | ||
1892 | ||
1893 | ||
1894 | ||
1895 | ||
1896 | ||
1897 | ||
1898 | ||
1899 | ||
1900 | ||
1901 | ||
1902 | ||
1903 | ||
1904 | ||
1905 | ||
1906 | ||
1907 | ||
1908 | ||
1909 | ||
1910 | wait() | |
1911 | ||
1912 | ||
1913 | ||
1914 | ||
1915 | end)() | |
1916 | ||
1917 | ||
1918 | ||
1919 | ||
1920 | ||
1921 | ||
1922 | ||
1923 | ||
1924 | ||
1925 | ||
1926 | ||
1927 | ||
1928 | ||
1929 | ||
1930 | ||
1931 | ||
1932 | ||
1933 | ||
1934 | ||
1935 | end | |
1936 | ||
1937 | end | |
1938 | ||
1939 | end | |
1940 | ||
1941 | end) | |
1942 | ||
1943 | ||
1944 | ||
1945 | ||
1946 | ||
1947 | ||
1948 | ||
1949 | ---------------------------------------------EXPLODE--------------------------------------- | |
1950 | ||
1951 | ||
1952 | ||
1953 | ||
1954 | ||
1955 | ||
1956 | ||
1957 | ||
1958 | ||
1959 | ||
1960 | mouse.KeyDown:connect(function(k) | |
1961 | ||
1962 | if k == "f" then | |
1963 | ||
1964 | if explode == true then | |
1965 | ||
1966 | explode = false | |
1967 | ||
1968 | laser = false | |
1969 | ||
1970 | active = true | |
1971 | ||
1972 | humanoid.WalkSpeed = 0 | |
1973 | ||
1974 | humanoid.JumpPower = 0 | |
1975 | ||
1976 | LerpTo.Body = original * CFrame.new(0,0,5) | |
1977 | ||
1978 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(math.rad(90),0,math.rad(60)) | |
1979 | ||
1980 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(math.rad(90),0,math.rad(-60)) | |
1981 | ||
1982 | LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(rad(-10),0,0) | |
1983 | ||
1984 | LerpTo.LeftLeg = CFrame.new(-0.5,0.7,-1) * CFrame.Angles(rad(-20),0,0) | |
1985 | ||
1986 | LerpTo.RightLeg = CFrame.new(0.5,0.7,-1) * CFrame.Angles(rad(-20),0,0) | |
1987 | ||
1988 | for i = 1,10 do | |
1989 | ||
1990 | local rng = Instance.new("Part", char) | |
1991 | ||
1992 | rng.Anchored = true | |
1993 | ||
1994 | rng.BrickColor = BrickColor.new("Really black") | |
1995 | ||
1996 | rng.CanCollide = false | |
1997 | ||
1998 | rng.FormFactor = 3 | |
1999 | ||
2000 | rng.Name = "Ring" | |
2001 | ||
2002 | rng.Size = Vector3.new(1, 1, 1) | |
2003 | ||
2004 | rng.Transparency = 1 | |
2005 | ||
2006 | rng.TopSurface = 0 | |
2007 | ||
2008 | rng.BottomSurface = 0 | |
2009 | ||
2010 | rng.Material = "Neon" | |
2011 | ||
2012 | rng.Position = torso.Position - Vector3.new(0,8,0) | |
2013 | ||
2014 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
2015 | ||
2016 | local rngm = Instance.new("SpecialMesh", rng) | |
2017 | ||
2018 | rngm.MeshId= "http://www.roblox.com/asset/?id=3270017" | |
2019 | ||
2020 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
2021 | ||
2022 | ||
2023 | ||
2024 | ||
2025 | ||
2026 | ||
2027 | ||
2028 | ||
2029 | ||
2030 | ||
2031 | ||
2032 | wait(0.1) | |
2033 | ||
2034 | ||
2035 | ||
2036 | coroutine.wrap(function() | |
2037 | ||
2038 | for i = 1, 10, 0.2 do | |
2039 | ||
2040 | rngm.Scale = Vector3.new(2 + i*4, 2 + i*4, 1) | |
2041 | ||
2042 | rng.Transparency = i/4 | |
2043 | ||
2044 | ||
2045 | ||
2046 | wait() | |
2047 | ||
2048 | ||
2049 | ||
2050 | ||
2051 | ||
2052 | end | |
2053 | ||
2054 | ||
2055 | ||
2056 | wait() | |
2057 | ||
2058 | ||
2059 | ||
2060 | rng:Destroy() | |
2061 | ||
2062 | ||
2063 | ||
2064 | ||
2065 | ||
2066 | ||
2067 | ||
2068 | ||
2069 | ||
2070 | ||
2071 | ||
2072 | wait() | |
2073 | ||
2074 | end)() | |
2075 | ||
2076 | ||
2077 | ||
2078 | ||
2079 | ||
2080 | ||
2081 | ||
2082 | ||
2083 | ||
2084 | end | |
2085 | ||
2086 | ||
2087 | ||
2088 | ||
2089 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(math.rad(-10),0,math.rad(-20)) | |
2090 | ||
2091 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(math.rad(-10),0,math.rad(20)) | |
2092 | ||
2093 | LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(rad(20),0,0) | |
2094 | ||
2095 | LerpTo.LeftLeg = CFrame.new(-0.5,-0.5,0) * CFrame.Angles(rad(-10),0,rad(-20)) | |
2096 | ||
2097 | LerpTo.RightLeg = CFrame.new(0.5,-0.5,0) * CFrame.Angles(rad(-10),0,rad(20)) | |
2098 | ||
2099 | for i = 1,1 do | |
2100 | ||
2101 | local rng = Instance.new("Part", char) | |
2102 | ||
2103 | rng.Anchored = true | |
2104 | ||
2105 | rng.BrickColor = BrickColor.new("Really black") | |
2106 | ||
2107 | rng.CanCollide = false | |
2108 | ||
2109 | rng.FormFactor = 3 | |
2110 | ||
2111 | rng.Name = "Ring" | |
2112 | ||
2113 | rng.Size = Vector3.new(1, 1, 1) | |
2114 | ||
2115 | rng.Transparency = 0 | |
2116 | ||
2117 | rng.TopSurface = 0 | |
2118 | ||
2119 | rng.BottomSurface = 0 | |
2120 | ||
2121 | rng.Material = "Neon" | |
2122 | ||
2123 | rng.Position = torso.Position | |
2124 | ||
2125 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
2126 | ||
2127 | local rngm = Instance.new("SpecialMesh", rng) | |
2128 | ||
2129 | rngm.MeshType = "Sphere" | |
2130 | ||
2131 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
2132 | ||
2133 | ||
2134 | ||
2135 | ||
2136 | ||
2137 | for i,v in pairs(workspace:children()) do | |
2138 | ||
2139 | ||
2140 | ||
2141 | ||
2142 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
2143 | ||
2144 | ||
2145 | ||
2146 | ||
2147 | if v:findFirstChild("Head") and v:findFirstChild("Torso") then | |
2148 | ||
2149 | ||
2150 | ||
2151 | ||
2152 | if (v:findFirstChild("Torso").Position - char.Torso.Position).magnitude < 30 then | |
2153 | ||
2154 | ||
2155 | ||
2156 | ||
2157 | if v.Name ~= p.Name then | |
2158 | ||
2159 | ||
2160 | ||
2161 | ||
2162 | v.Humanoid:TakeDamage(40) | |
2163 | ||
2164 | ||
2165 | ||
2166 | ||
2167 | v.Humanoid.PlatformStand = true | |
2168 | ||
2169 | ||
2170 | ||
2171 | ||
2172 | ||
2173 | ||
2174 | ||
2175 | ||
2176 | ||
2177 | ||
2178 | ||
2179 | ||
2180 | ||
2181 | ||
2182 | ||
2183 | ||
2184 | end | |
2185 | ||
2186 | ||
2187 | ||
2188 | ||
2189 | end | |
2190 | ||
2191 | ||
2192 | ||
2193 | ||
2194 | end | |
2195 | ||
2196 | ||
2197 | ||
2198 | ||
2199 | end | |
2200 | ||
2201 | ||
2202 | ||
2203 | ||
2204 | ||
2205 | ||
2206 | ||
2207 | ||
2208 | ||
2209 | ||
2210 | ||
2211 | ||
2212 | ||
2213 | ||
2214 | ||
2215 | ||
2216 | ||
2217 | ||
2218 | ||
2219 | ||
2220 | ||
2221 | ||
2222 | ||
2223 | ||
2224 | ||
2225 | ||
2226 | ||
2227 | ||
2228 | ||
2229 | ||
2230 | ||
2231 | ||
2232 | ||
2233 | ||
2234 | ||
2235 | ||
2236 | ||
2237 | ||
2238 | ||
2239 | ||
2240 | ||
2241 | ||
2242 | ||
2243 | ||
2244 | ||
2245 | ||
2246 | ||
2247 | ||
2248 | ||
2249 | end | |
2250 | ||
2251 | ||
2252 | ||
2253 | ||
2254 | ||
2255 | local rng1 = Instance.new("Part", char) | |
2256 | ||
2257 | rng1.Anchored = true | |
2258 | ||
2259 | rng1.BrickColor = BrickColor.new("Really black") | |
2260 | ||
2261 | rng1.CanCollide = false | |
2262 | ||
2263 | rng1.FormFactor = 3 | |
2264 | ||
2265 | rng1.Name = "Ring" | |
2266 | ||
2267 | rng1.Size = Vector3.new(1, 1, 1) | |
2268 | ||
2269 | rng1.Transparency = 0 | |
2270 | ||
2271 | rng1.TopSurface = 0 | |
2272 | ||
2273 | rng1.BottomSurface = 0 | |
2274 | ||
2275 | rng1.Material = "Neon" | |
2276 | ||
2277 | rng1.Position = torso.Position - Vector3.new(0,7,0) | |
2278 | ||
2279 | rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
2280 | ||
2281 | local rngm1 = Instance.new("SpecialMesh", rng1) | |
2282 | ||
2283 | rngm1.MeshId= "http://www.roblox.com/asset/?id=20329976" | |
2284 | ||
2285 | rngm1.Scale = Vector3.new(1, 1.3, 2) | |
2286 | ||
2287 | ||
2288 | ||
2289 | ||
2290 | ||
2291 | ||
2292 | ||
2293 | ||
2294 | ||
2295 | ||
2296 | ||
2297 | local rng11 = Instance.new("Part", char) | |
2298 | ||
2299 | rng11.Anchored = true | |
2300 | ||
2301 | rng11.BrickColor = BrickColor.new("Really black") | |
2302 | ||
2303 | rng11.CanCollide = false | |
2304 | ||
2305 | rng11.FormFactor = 3 | |
2306 | ||
2307 | rng11.Name = "Ring" | |
2308 | ||
2309 | rng11.Size = Vector3.new(1, 1, 1) | |
2310 | ||
2311 | rng11.Transparency = 0 | |
2312 | ||
2313 | rng11.TopSurface = 0 | |
2314 | ||
2315 | rng11.BottomSurface = 0 | |
2316 | ||
2317 | rng11.Material = "Neon" | |
2318 | ||
2319 | rng11.Position = torso.Position | |
2320 | ||
2321 | rng11.CFrame = rng11.CFrame * | |
2322 | ||
2323 | CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
2324 | ||
2325 | local rngm11 = Instance.new("SpecialMesh", rng11) | |
2326 | ||
2327 | rngm11.MeshId="http://www.roblox.com/asset/?id=3270017" | |
2328 | ||
2329 | rngm11.Scale = Vector3.new(1, 1.3, 2) | |
2330 | ||
2331 | sound = Instance.new("Sound",char.Torso) | |
2332 | ||
2333 | sound.Pitch = 1 | |
2334 | ||
2335 | sound.SoundId="http://www.roblox.com/asset/?id=165970126" | |
2336 | ||
2337 | wait() | |
2338 | ||
2339 | sound:Play() | |
2340 | ||
2341 | ||
2342 | ||
2343 | ||
2344 | ||
2345 | ||
2346 | ||
2347 | ||
2348 | wait(0.1) | |
2349 | ||
2350 | ||
2351 | ||
2352 | coroutine.wrap(function() | |
2353 | ||
2354 | for i = 1, 5, 0.2 do | |
2355 | ||
2356 | rngm.Scale = Vector3.new(2 + i*6, 2 + i*6, 2+i*6) | |
2357 | ||
2358 | rng.Transparency = i/5 | |
2359 | ||
2360 | rngm1.Scale = Vector3.new(2 + i*6, 2 + i*6, 2 + i*6) | |
2361 | ||
2362 | rng1.Transparency = i/5 | |
2363 | ||
2364 | rngm11.Scale = Vector3.new(2 + i*6, 2 + i*6, 0.5) | |
2365 | ||
2366 | rng11.Transparency = i/5 | |
2367 | ||
2368 | wait() | |
2369 | ||
2370 | ||
2371 | ||
2372 | ||
2373 | ||
2374 | end | |
2375 | ||
2376 | ||
2377 | ||
2378 | wait() | |
2379 | ||
2380 | ||
2381 | ||
2382 | rng:Destroy() | |
2383 | ||
2384 | ||
2385 | ||
2386 | rng1:Destroy() | |
2387 | ||
2388 | rng11:Destroy() | |
2389 | ||
2390 | ||
2391 | ||
2392 | ||
2393 | ||
2394 | ||
2395 | ||
2396 | wait() | |
2397 | ||
2398 | end)() | |
2399 | ||
2400 | ||
2401 | ||
2402 | ||
2403 | ||
2404 | ||
2405 | ||
2406 | ||
2407 | ||
2408 | end | |
2409 | ||
2410 | wait(1) | |
2411 | ||
2412 | humanoid.WalkSpeed = 16 | |
2413 | ||
2414 | humanoid.JumpPower = 50 | |
2415 | ||
2416 | LerpTo.Body = original | |
2417 | ||
2418 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(math.rad(0),0,math.rad(0)) | |
2419 | ||
2420 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(math.rad(0),0,math.rad(0)) | |
2421 | ||
2422 | LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(rad(0),0,0) | |
2423 | ||
2424 | LerpTo.LeftLeg = CFrame.new(-0.5,-0.5,0) * CFrame.Angles(rad(0),0,rad(0)) | |
2425 | ||
2426 | LerpTo.RightLeg = CFrame.new(0.5,-0.5,0) * CFrame.Angles(rad(0),0,rad(0)) | |
2427 | ||
2428 | wait(1) | |
2429 | ||
2430 | laser = true | |
2431 | ||
2432 | explode = true | |
2433 | ||
2434 | active = false | |
2435 | ||
2436 | ||
2437 | ||
2438 | ||
2439 | end | |
2440 | ||
2441 | end | |
2442 | ||
2443 | end) | |
2444 | ||
2445 | ||
2446 | ||
2447 | ||
2448 | ||
2449 | ||
2450 | ||
2451 | ||
2452 | ||
2453 | ||
2454 | ||
2455 | ||
2456 | ||
2457 | ||
2458 | ||
2459 | ||
2460 | ||
2461 | ||
2462 | ||
2463 | ----------------------------------------------------- | |
2464 | ||
2465 | ||
2466 | ||
2467 | ||
2468 | ||
2469 | ||
2470 | ||
2471 | m.KeyDown:connect(function(k) | |
2472 | ||
2473 | if k == "h" then | |
2474 | ||
2475 | if blast == true then | |
2476 | ||
2477 | blast = false | |
2478 | ||
2479 | active = true | |
2480 | ||
2481 | laser = false | |
2482 | ||
2483 | explode = false | |
2484 | ||
2485 | ||
2486 | ||
2487 | ||
2488 | ||
2489 | ||
2490 | ||
2491 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(0,0,math.rad(40)) | |
2492 | ||
2493 | LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(rad(-10),0,0) | |
2494 | ||
2495 | wait(0.2) | |
2496 | ||
2497 | ||
2498 | ||
2499 | ||
2500 | ball1 = Instance.new("Part",char) | |
2501 | ||
2502 | ||
2503 | ||
2504 | ||
2505 | ball1.Size = Vector3.new(0.1,0.1,0.1) | |
2506 | ||
2507 | ball1.BrickColor = BrickColor.new("Really black") | |
2508 | ||
2509 | ball1:BreakJoints() | |
2510 | ||
2511 | ball1.Transparency = 1 | |
2512 | ||
2513 | ball1w = Instance.new("Weld",ball1) | |
2514 | ||
2515 | ball1w.Part0 = ball1 | |
2516 | ||
2517 | ball1.Material = "Neon" | |
2518 | ||
2519 | ball1w.Part1 = char["Right Arm"] | |
2520 | ||
2521 | ball1w.C0 = CFrame.new(0,1.5,0) | |
2522 | ||
2523 | ball1m = Instance.new("SpecialMesh",ball1) | |
2524 | ||
2525 | ball1m.MeshType = "Sphere" | |
2526 | ||
2527 | ||
2528 | ||
2529 | ||
2530 | ||
2531 | ||
2532 | ||
2533 | ||
2534 | ||
2535 | ||
2536 | ||
2537 | ||
2538 | ||
2539 | ball = Instance.new("Part",char) | |
2540 | ||
2541 | ||
2542 | ||
2543 | ||
2544 | ball.Size = Vector3.new(0.1,0.1,0.1) | |
2545 | ||
2546 | ball.BrickColor = BrickColor.new("Really black") | |
2547 | ||
2548 | ball:BreakJoints() | |
2549 | ||
2550 | ballw = Instance.new("Weld",ball) | |
2551 | ||
2552 | ballw.Part0 = ball | |
2553 | ||
2554 | ball.Material = "Neon" | |
2555 | ||
2556 | ballw.Part1 = char["Right Arm"] | |
2557 | ||
2558 | ballw.C0 = CFrame.new(0,1.5,0) | |
2559 | ||
2560 | ballm = Instance.new("SpecialMesh",ball) | |
2561 | ||
2562 | ballm.MeshType = "Sphere" | |
2563 | ||
2564 | for i = 1,5.5,.2 do wait() | |
2565 | ||
2566 | ballm.Scale = Vector3.new(i,i,i) | |
2567 | ||
2568 | end | |
2569 | ||
2570 | wait(0.5) | |
2571 | ||
2572 | LerpTo.Body = original * CFrame.Angles(0,0,rad(-60)) | |
2573 | ||
2574 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(rad(70),0,math.rad(10)) | |
2575 | ||
2576 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(math.rad(85),0,math.rad(0)) | |
2577 | ||
2578 | LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(0,rad(70),0) | |
2579 | ||
2580 | wait(0.1) | |
2581 | ||
2582 | LerpTo.Body = original * CFrame.Angles(0,0,rad(-270)) | |
2583 | ||
2584 | LerpTo.RightArm = CFrame.new(1,0.5,-0.5) * CFrame.Angles(rad(90),0,math.rad(90)) | |
2585 | ||
2586 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(math.rad(0),0,math.rad(-20)) | |
2587 | ||
2588 | LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(0,rad(-90),0) | |
2589 | ||
2590 | wait() | |
2591 | ||
2592 | ballw:Remove() | |
2593 | ||
2594 | local ry = Ray.new( | |
2595 | ||
2596 | ball.CFrame.p, | |
2597 | ||
2598 | (mouse.Hit.p - ball1.CFrame.p).unit * 500 | |
2599 | ||
2600 | ) | |
2601 | ||
2602 | local ig = game.Players.LocalPlayer.Character | |
2603 | ||
2604 | ||
2605 | ||
2606 | local hit,position = Workspace:FindPartOnRay(ry, ig) | |
2607 | ||
2608 | ||
2609 | ||
2610 | ||
2611 | if hit then | |
2612 | ||
2613 | ||
2614 | ||
2615 | ||
2616 | bp = Instance.new("BodyPosition",ball) | |
2617 | ||
2618 | bp.MaxForce = Vector3.new(100,100,100) | |
2619 | ||
2620 | bp.Position = position | |
2621 | ||
2622 | bp.P = 400 | |
2623 | ||
2624 | bp.D = 100 | |
2625 | ||
2626 | ||
2627 | ||
2628 | else | |
2629 | ||
2630 | ball:Remove() | |
2631 | ||
2632 | LerpTo.RightArm = CFrame.new(1,0.5,0) | |
2633 | ||
2634 | active = false | |
2635 | ||
2636 | laser = true | |
2637 | ||
2638 | blast = true | |
2639 | ||
2640 | explode = true | |
2641 | ||
2642 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) | |
2643 | ||
2644 | LerpTo.Body = original | |
2645 | ||
2646 | LerpTo.Head = CFrame.new(0,1.5,0) | |
2647 | ||
2648 | end | |
2649 | ||
2650 | ||
2651 | ||
2652 | ||
2653 | wait() | |
2654 | ||
2655 | ||
2656 | ||
2657 | ||
2658 | LerpTo.RightArm = CFrame.new(1,0.5,-0.5) * CFrame.Angles(rad(90),0,math.rad(0)) | |
2659 | ||
2660 | repeat | |
2661 | ||
2662 | ||
2663 | ||
2664 | ||
2665 | --bp.Position = position | |
2666 | ||
2667 | wait() until (ball.Position-position).magnitude < 6 | |
2668 | ||
2669 | sound = Instance.new("Sound",char.Torso) | |
2670 | ||
2671 | sound.Pitch = 1 | |
2672 | ||
2673 | sound.SoundId="http://www.roblox.com/asset/?id=165970126" | |
2674 | ||
2675 | wait() | |
2676 | ||
2677 | sound:Play() | |
2678 | ||
2679 | for i,v in pairs(workspace:children()) do | |
2680 | ||
2681 | ||
2682 | ||
2683 | ||
2684 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
2685 | ||
2686 | ||
2687 | ||
2688 | ||
2689 | if v:findFirstChild("Head") and v:findFirstChild("Torso") then | |
2690 | ||
2691 | ||
2692 | ||
2693 | ||
2694 | if (v:findFirstChild("Torso").Position - ball.Position).magnitude < 15 then | |
2695 | ||
2696 | ||
2697 | ||
2698 | ||
2699 | if v.Name ~= p.Name then | |
2700 | ||
2701 | ||
2702 | ||
2703 | ||
2704 | v.Humanoid:TakeDamage(40) | |
2705 | ||
2706 | ||
2707 | ||
2708 | ||
2709 | v.Humanoid.PlatformStand = true | |
2710 | ||
2711 | ||
2712 | ||
2713 | ||
2714 | ||
2715 | ||
2716 | ||
2717 | ||
2718 | ||
2719 | ||
2720 | ||
2721 | ||
2722 | ||
2723 | ||
2724 | ||
2725 | ||
2726 | end | |
2727 | ||
2728 | ||
2729 | ||
2730 | ||
2731 | end | |
2732 | ||
2733 | ||
2734 | ||
2735 | ||
2736 | end | |
2737 | ||
2738 | ||
2739 | ||
2740 | ||
2741 | end | |
2742 | ||
2743 | ||
2744 | ||
2745 | ||
2746 | ||
2747 | ||
2748 | ||
2749 | ||
2750 | ||
2751 | ||
2752 | ||
2753 | ||
2754 | ||
2755 | ||
2756 | ||
2757 | ||
2758 | ||
2759 | ||
2760 | ||
2761 | ||
2762 | ||
2763 | ||
2764 | ||
2765 | ||
2766 | ||
2767 | ||
2768 | ||
2769 | ||
2770 | ||
2771 | ||
2772 | ||
2773 | ||
2774 | ||
2775 | ||
2776 | ||
2777 | ||
2778 | ||
2779 | ||
2780 | ||
2781 | ||
2782 | ||
2783 | ||
2784 | ||
2785 | ||
2786 | ||
2787 | ||
2788 | ||
2789 | ||
2790 | ||
2791 | end | |
2792 | ||
2793 | for i = 5,100,10 do wait() | |
2794 | ||
2795 | ballm.Scale = Vector3.new(i,i,i) | |
2796 | ||
2797 | ball.Transparency= i/100 | |
2798 | ||
2799 | end | |
2800 | ||
2801 | ball:Remove() | |
2802 | ||
2803 | ||
2804 | ||
2805 | ||
2806 | wait(0.5) | |
2807 | ||
2808 | LerpTo.RightArm = CFrame.new(1,0.5,0) | |
2809 | ||
2810 | ||
2811 | ||
2812 | ||
2813 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) | |
2814 | ||
2815 | LerpTo.Body = original | |
2816 | ||
2817 | LerpTo.Head = CFrame.new(0,1.5,0) | |
2818 | ||
2819 | active = false | |
2820 | ||
2821 | laser = true | |
2822 | ||
2823 | blast = true | |
2824 | ||
2825 | explode = true | |
2826 | ||
2827 | end | |
2828 | ||
2829 | end | |
2830 | ||
2831 | end) | |
2832 | ||
2833 | ||
2834 | ||
2835 | ||
2836 | ||
2837 | ||
2838 | ||
2839 | ||
2840 | ||
2841 | ||
2842 | ||
2843 | ||
2844 | ||
2845 | ||
2846 | ||
2847 | ||
2848 | ||
2849 | ||
2850 | ||
2851 | ||
2852 | ||
2853 | ||
2854 | ||
2855 | ||
2856 | ||
2857 | ||
2858 | ||
2859 | ||
2860 | ||
2861 | ||
2862 | ||
2863 | ||
2864 | ||
2865 | ||
2866 | ||
2867 | ||
2868 | ||
2869 | ||
2870 | ||
2871 | ||
2872 | ||
2873 | ||
2874 | ||
2875 | ||
2876 | ||
2877 | ||
2878 | ||
2879 | ||
2880 | ||
2881 | ||
2882 | ||
2883 | ||
2884 | ||
2885 | ||
2886 | ||
2887 | ||
2888 | ||
2889 | ||
2890 | ||
2891 | ||
2892 | ||
2893 | ||
2894 | ||
2895 | ||
2896 | ||
2897 | ||
2898 | ||
2899 | ||
2900 | ||
2901 | ||
2902 | function updateanims() | |
2903 | ||
2904 | ||
2905 | ||
2906 | ||
2907 | if active == false then | |
2908 | ||
2909 | ||
2910 | ||
2911 | ||
2912 | if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 and not Jumping then | |
2913 | ||
2914 | ||
2915 | ||
2916 | ||
2917 | anglespeed = 1/2 | |
2918 | ||
2919 | ||
2920 | ||
2921 | ||
2922 | ||
2923 | ||
2924 | ||
2925 | ||
2926 | ||
2927 | ||
2928 | ||
2929 | ||
2930 | ||
2931 | ||
2932 | ||
2933 | ||
2934 | ||
2935 | ||
2936 | ||
2937 | ||
2938 | ||
2939 | ||
2940 | LerpTo.RightLeg = CFrame.new(0.5,-0.5,0) * CFrame.Angles(-sin(angle)*.1,0,0) | |
2941 | ||
2942 | ||
2943 | ||
2944 | ||
2945 | ||
2946 | ||
2947 | ||
2948 | ||
2949 | ||
2950 | LerpTo.LeftLeg = CFrame.new(-0.5,-0.5,0) * CFrame.Angles(sin(angle)*.1,0,0) | |
2951 | ||
2952 | ||
2953 | ||
2954 | ||
2955 | LerpTo.Head = CFrame.new(0,1.5,0) | |
2956 | ||
2957 | ||
2958 | ||
2959 | ||
2960 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(sin(angle)*0.3,0,rad(0.1)) | |
2961 | ||
2962 | ||
2963 | ||
2964 | ||
2965 | ||
2966 | ||
2967 | ||
2968 | ||
2969 | ||
2970 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(sin(angle)*0.3,0,rad(-0.1)) | |
2971 | ||
2972 | ||
2973 | ||
2974 | ||
2975 | ||
2976 | ||
2977 | ||
2978 | ||
2979 | ||
2980 | ||
2981 | ||
2982 | ||
2983 | ||
2984 | ||
2985 | ||
2986 | ||
2987 | ||
2988 | ||
2989 | ||
2990 | ||
2991 | ||
2992 | ||
2993 | ||
2994 | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 and not Jumping then | |
2995 | ||
2996 | ||
2997 | ||
2998 | ||
2999 | anglespeed = 3 | |
3000 | ||
3001 | ||
3002 | ||
3003 | ||
3004 | ||
3005 | ||
3006 | ||
3007 | ||
3008 | ||
3009 | LerpTo.RightLeg = CFrame.new(0.5,-0.65,0) * CFrame.Angles(-sin(angle*1)*0.8,0,0) | |
3010 | ||
3011 | ||
3012 | ||
3013 | ||
3014 | ||
3015 | ||
3016 | ||
3017 | ||
3018 | ||
3019 | LerpTo.LeftLeg = CFrame.new(-0.5,-0.65,0) * CFrame.Angles(sin(angle*1)*0.8,0,0) | |
3020 | ||
3021 | ||
3022 | ||
3023 | ||
3024 | ||
3025 | ||
3026 | ||
3027 | ||
3028 | ||
3029 | ||
3030 | ||
3031 | ||
3032 | ||
3033 | LerpTo.Head = CFrame.new(0,1.5,0) | |
3034 | ||
3035 | ||
3036 | ||
3037 | ||
3038 | ||
3039 | ||
3040 | ||
3041 | ||
3042 | ||
3043 | ||
3044 | ||
3045 | ||
3046 | ||
3047 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(-sin(angle)*.8,0,rad(3)) | |
3048 | ||
3049 | ||
3050 | ||
3051 | ||
3052 | ||
3053 | ||
3054 | ||
3055 | ||
3056 | ||
3057 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(sin(angle)*.8,0,rad(-3)) | |
3058 | ||
3059 | ||
3060 | ||
3061 | ||
3062 | ||
3063 | ||
3064 | ||
3065 | ||
3066 | ||
3067 | ||
3068 | ||
3069 | ||
3070 | ||
3071 | ||
3072 | ||
3073 | ||
3074 | ||
3075 | ||
3076 | ||
3077 | ||
3078 | ||
3079 | ||
3080 | elseif Falling then | |
3081 | ||
3082 | ||
3083 | ||
3084 | ||
3085 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(0,0,-rad(20)) | |
3086 | ||
3087 | ||
3088 | ||
3089 | ||
3090 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(0,0,rad(20)) | |
3091 | ||
3092 | ||
3093 | ||
3094 | ||
3095 | LerpTo.LeftLeg = CFrame.new(-0.5,-0.2,-0.3) * CFrame.Angles(0,rad(5),0) | |
3096 | ||
3097 | ||
3098 | ||
3099 | ||
3100 | LerpTo.RightLeg = CFrame.new(0.5,-0.5,0) * CFrame.Angles(0,rad(-0.1),0) | |
3101 | ||
3102 | ||
3103 | ||
3104 | ||
3105 | LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(rad(-10),0,0) | |
3106 | ||
3107 | ||
3108 | ||
3109 | ||
3110 | elseif Jumping and not Falling then | |
3111 | ||
3112 | ||
3113 | ||
3114 | ||
3115 | print'asd this is seeing the jump!' | |
3116 | ||
3117 | ||
3118 | ||
3119 | ||
3120 | ||
3121 | ||
3122 | ||
3123 | ||
3124 | ||
3125 | ||
3126 | ||
3127 | ||
3128 | ||
3129 | ||
3130 | LerpTo.LeftArm = CFrame.new(-1,0.5,0) * CFrame.Angles(0,0,-rad(20)) | |
3131 | ||
3132 | ||
3133 | ||
3134 | ||
3135 | LerpTo.RightArm = CFrame.new(1,0.5,0) * CFrame.Angles(0,0,rad(20)) | |
3136 | ||
3137 | ||
3138 | ||
3139 | ||
3140 | LerpTo.LeftLeg = CFrame.new(-0.5,-0.2,-0.3) * CFrame.Angles(0,rad(5),0) | |
3141 | ||
3142 | ||
3143 | ||
3144 | ||
3145 | LerpTo.RightLeg = CFrame.new(0.5,-0.5,0) * CFrame.Angles(0,rad(-0.1),0) | |
3146 | ||
3147 | ||
3148 | ||
3149 | ||
3150 | LerpTo.Head = CFrame.new(0,1.5,0) * CFrame.Angles(rad(10),0,0) | |
3151 | ||
3152 | ||
3153 | ||
3154 | ||
3155 | ||
3156 | ||
3157 | ||
3158 | ||
3159 | ||
3160 | ||
3161 | ||
3162 | ||
3163 | ||
3164 | ||
3165 | ||
3166 | ||
3167 | ||
3168 | ||
3169 | ||
3170 | ||
3171 | ||
3172 | ||
3173 | end | |
3174 | ||
3175 | ||
3176 | ||
3177 | ||
3178 | ||
3179 | ||
3180 | ||
3181 | ||
3182 | ||
3183 | ||
3184 | ||
3185 | ||
3186 | ||
3187 | end | |
3188 | ||
3189 | ||
3190 | ||
3191 | ||
3192 | end | |
3193 | ||
3194 | ||
3195 | ||
3196 | ||
3197 | ||
3198 | ||
3199 | ||
3200 | ||
3201 | ||
3202 | ||
3203 | ||
3204 | ||
3205 | ||
3206 | ||
3207 | ||
3208 | ||
3209 | ||
3210 | ||
3211 | ||
3212 | ||
3213 | ||
3214 | ||
3215 | ||
3216 | ||
3217 | ||
3218 | ||
3219 | ||
3220 | ||
3221 | ||
3222 | ||
3223 | ||
3224 | ||
3225 | ||
3226 | ||
3227 | ||
3228 | ||
3229 | ||
3230 | ||
3231 | ||
3232 | ||
3233 | Spawn(function() | |
3234 | ||
3235 | ||
3236 | ||
3237 | ||
3238 | while wait()do | |
3239 | ||
3240 | ||
3241 | ||
3242 | ||
3243 | angle = (angle % 100) + anglespeed/10 | |
3244 | ||
3245 | ||
3246 | ||
3247 | ||
3248 | end | |
3249 | ||
3250 | ||
3251 | ||
3252 | ||
3253 | end) | |
3254 | ||
3255 | ||
3256 | ||
3257 | ||
3258 | ||
3259 | ||
3260 | ||
3261 | ||
3262 | ||
3263 | ||
3264 | ||
3265 | ||
3266 | ||
3267 | ||
3268 | ||
3269 | ||
3270 | ||
3271 | ||
3272 | ||
3273 | ||
3274 | ||
3275 | ||
3276 | ||
3277 | ||
3278 | ||
3279 | ||
3280 | ||
3281 | ||
3282 | ||
3283 | ||
3284 | ||
3285 | ||
3286 | ||
3287 | ||
3288 | ||
3289 | ||
3290 | ||
3291 | ||
3292 | ||
3293 | ||
3294 | ||
3295 | ||
3296 | ||
3297 | ||
3298 | ||
3299 | ||
3300 | ||
3301 | ||
3302 | ||
3303 | ||
3304 | ||
3305 | ||
3306 | ||
3307 | ||
3308 | ||
3309 | ||
3310 | ||
3311 | ||
3312 | ||
3313 | ||
3314 | ||
3315 | ||
3316 | ||
3317 | ||
3318 | ||
3319 | ||
3320 | ||
3321 | ||
3322 | ||
3323 | ||
3324 | ||
3325 | ||
3326 | ||
3327 | ||
3328 | ||
3329 | ||
3330 | ||
3331 | ||
3332 | ||
3333 | ||
3334 | ||
3335 | ||
3336 | ||
3337 | ||
3338 | ||
3339 | --------- | |
3340 | ||
3341 | ||
3342 | ||
3343 | ||
3344 | LerpTo = { -- this is where your lerp stuff would go if you had more than one arm to lerp | |
3345 | ||
3346 | ||
3347 | ||
3348 | ||
3349 | RightArm = CFrame.new(1,0.5,0); | |
3350 | ||
3351 | ||
3352 | ||
3353 | ||
3354 | LeftArm = CFrame.new(-1,0.5,0); | |
3355 | ||
3356 | ||
3357 | ||
3358 | ||
3359 | LeftLeg = CFrame.new(-0.5,-0.5,0); | |
3360 | ||
3361 | ||
3362 | ||
3363 | ||
3364 | RightLeg = CFrame.new(0.5,-0.5,0); | |
3365 | ||
3366 | ||
3367 | ||
3368 | ||
3369 | ||
3370 | ||
3371 | ||
3372 | Body = CFrame.new(0,0,0) * CFrame.Angles(math.rad(90),0,math.rad(0)); | |
3373 | ||
3374 | ||
3375 | ||
3376 | ||
3377 | Head = CFrame.new(0,1.5,0); | |
3378 | ||
3379 | ||
3380 | ||
3381 | ||
3382 | } | |
3383 | ||
3384 | ||
3385 | ||
3386 | ||
3387 | --- | |
3388 | ||
3389 | ||
3390 | ||
3391 | ||
3392 | ||
3393 | ||
3394 | ||
3395 | ||
3396 | ||
3397 | ||
3398 | ||
3399 | ||
3400 | ||
3401 | RunService = game:service'RunService' | |
3402 | ||
3403 | ||
3404 | ||
3405 | ||
3406 | RunService.RenderStepped:connect(function() | |
3407 | ||
3408 | ||
3409 | ||
3410 | ||
3411 | updateanims() | |
3412 | ||
3413 | ||
3414 | ||
3415 | ||
3416 | hum() | |
3417 | ||
3418 | ||
3419 | ||
3420 | ||
3421 | ||
3422 | ||
3423 | ||
3424 | ||
3425 | ||
3426 | ||
3427 | ||
3428 | ||
3429 | ||
3430 | ||
3431 | ||
3432 | ||
3433 | RightShoulder.C0 = Lerp.CFrame(RightShoulder.C0,LerpTo.RightArm,as) | |
3434 | ||
3435 | ||
3436 | ||
3437 | ||
3438 | LeftShoulder.C0 = Lerp.CFrame(LeftShoulder.C0,LerpTo.LeftArm,as) | |
3439 | ||
3440 | ||
3441 | ||
3442 | ||
3443 | RightHip.C0 = Lerp.CFrame(RightHip.C0,LerpTo.RightLeg,as) | |
3444 | ||
3445 | ||
3446 | ||
3447 | ||
3448 | LeftHip.C0 = Lerp.CFrame(LeftHip.C0,LerpTo.LeftLeg,as) | |
3449 | ||
3450 | ||
3451 | ||
3452 | ||
3453 | Neck.C0 = Lerp.CFrame(Neck.C0,LerpTo.Head,as) | |
3454 | ||
3455 | ||
3456 | ||
3457 | ||
3458 | torsoj.C0 = Lerp.CFrame(torsoj.C0,LerpTo.Body,as) | |
3459 | ||
3460 | ||
3461 | ||
3462 | ||
3463 | ||
3464 | ||
3465 | ||
3466 | ||
3467 | ||
3468 | ||
3469 | ||
3470 | ||
3471 | ||
3472 | ||
3473 | ||
3474 | ||
3475 | end) |