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