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