-
Notifications
You must be signed in to change notification settings - Fork 227
/
Penta.txt
1115 lines (1010 loc) · 42.6 KB
/
Penta.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character
local Mouse = Player:GetMouse()
local Camera = game:GetService("Workspace").CurrentCamera
local Humanoid = Character:findFirstChild("Humanoid")
local Torso = Character.Torso
local PlayerGui = Player.PlayerGui
local Torso = Character:findFirstChild("Torso")
local Head = Character:findFirstChild("Head")
local RootPart = Character:findFirstChild("HumanoidRootPart")
local Root = RootPart.RootJoint
local Sides = {"Left","Right"}
local Arms = {Character["Left Arm"],Character["Right Arm"]}
local Legs = {Character["Left Leg"],Character["Right Leg"]}
local Bits = {}
local Disposables = {}
local Discs = {}
local DiscSpin = 0
local Spread = 1.25
local RateTop = 1
local RateBot = 1
local Distance = 0.5
local ExtendTop = 1
local ExtendBot = 1
local CurrentFrame = 1
local Lift = 0
local Accel = 1
local TurnAngle = 0
local rofTop = 1
local rofBot = 1
local Flutter = 0
local Front = false
local Back = false
local Left = false
local Right = false
local AddSub = false
local ChargeHeld = false
local BoostHeld = false
local BeamHeld = false
local AbsDefHeld = false
local ExtendGrowthTop = false
local ExtendGrowthBot = false
local UpdateAnim = true
local CurrentAnimation = "Idle"
local LastAnimation = "Idle"
local MobilityType = "Float"
local ColorGlobe = "White"
local ColorBlades = "Black"
local xmove,zmove
local LastBeam = tick()
if Torso then
for _,v in pairs(Torso:children()) do
if v:IsA("BodyGyro") or v:IsA("BodyVelocity") then
v:Destroy();
end
end
end
local Energy = {}
local TotalEnergy = 1000
local CurrentEnergy = 1000
pcall(function()
PlayerGui.EnergyMeter:Destroy()
end)
if Player.Name == "modFrost" then
ColorGlobe = "Bright orange"
end
local FlapSound = Instance.new("Sound", Torso)
FlapSound.Name = "Flap"
FlapSound.SoundId = "http://www.roblox.com/asset/?id=257002377"
FlapSound.Volume = 1
local EnergyMeter = Instance.new("ScreenGui", PlayerGui)
EnergyMeter.Name = "EnergyMeter"
local Bar = Instance.new("Frame", EnergyMeter)
Bar.Size = UDim2.new(0,200,0,10)
Bar.Position = UDim2.new(1,-205,1,-15)
Bar.BorderSizePixel = 0
Bar.BackgroundColor = BrickColor.new("Really black")
Bar.BackgroundTransparency = 0.5
local Text = Instance.new("TextLabel", Bar)
Text.Text = "Energy"
Text.TextColor = BrickColor.new("White")
Text.BackgroundTransparency = 1
Text.Size = UDim2.new(1,0,1,0)
Text.Position = UDim2.new(0,0,-1,-10)
Text.TextXAlignment = "Left"
Text.FontSize = "Size12"
local EnergyFill = Instance.new("Frame", Bar)
EnergyFill.Size = UDim2.new(0,0,1,-5)
EnergyFill.Position = UDim2.new(0,2.5,0,2.5)
EnergyFill.BorderSizePixel = 0
EnergyFill.BackgroundColor = BrickColor.new(ColorGlobe)
EnergyFill.BackgroundTransparency = 0.25
local ChargeMeter = Instance.new("ScreenGui", PlayerGui)
ChargeMeter.Name = "EnergyMeter"
local ChargeBar = Instance.new("Frame", ChargeMeter)
ChargeBar.Size = UDim2.new(0,200,0,10)
ChargeBar.Position = UDim2.new(0.5,-102.5,0.8,-5)
ChargeBar.BorderSizePixel = 0
ChargeBar.BackgroundColor = BrickColor.new("Really black")
ChargeBar.BackgroundTransparency = 0.5
local ChargeFill = Instance.new("Frame", ChargeBar)
ChargeFill.Size = UDim2.new(0,0,1,-5)
ChargeFill.Position = UDim2.new(0,2.5,0,2.5)
ChargeFill.BorderSizePixel = 0
ChargeFill.BackgroundColor = BrickColor.new("Bright blue")
ChargeFill.BackgroundTransparency = 0.25
ChargeBar.Visible = false
local function _Part(Parent,canc,anc,tr,ref,mat,color,size, meshtype, scale)
local part = Instance.new("Part", Parent)
part.Transparency = tr
part.Anchored = anc
part.TopSurface = 10
part.BottomSurface = 10
part.LeftSurface = 10
part.RightSurface = 10
part.FrontSurface = 10
part.BackSurface = 10
part.Locked = true
part.formFactor = 3
part.Reflectance = ref
part.Material = mat
part.CanCollide = canc
part.Size = Vector3.new(size[1],size[2],size[3])
part.BrickColor = BrickColor.new(color)
local mesh
if meshtype == "BlockMesh" then
mesh = Instance.new("BlockMesh", part)
elseif meshtype == "CylinderMesh" then
mesh = Instance.new("CylinderMesh", part)
else
mesh = Instance.new("SpecialMesh", part)
mesh.MeshType = meshtype
end
mesh.Name = "Mesh"
mesh.Scale = Vector3.new(scale[1],scale[2],scale[3])
return part
end
local function _Weld(Parent, p0, c1, c0)
local weld = Instance.new("Motor", Parent)
weld.Part1 = Parent
weld.Part0 = p0
weld.C1 = c1
weld.C0 = c0
weld.Name = "Weld"
return weld
end
local Main = Character:findFirstChild("Main") or Instance.new("Model", Character)
Main.Name = "Main"
Main:ClearAllChildren()
pcall(function() Character["Head"]["face"]:Destroy() end)
for _,Hat in pairs(Character:GetChildren()) do
if Hat:IsA("Accoutrement") then
Hat:Destroy()
end
end
for _,Part in pairs(Character:GetChildren()) do
if Part:IsA("BasePart") then
Part.Transparency = 1
end
end
local function GenF(Part, Cframe, Color)
local A = _Part(Main,false,false,0,0,"SmoothPlastic",Color,{0.05,0.5,0.05},"BlockMesh",{1,1,0.5})
_Weld(A, Part, CFrame.new(), Cframe)
local B = _Part(Main,false,false,0,0,"SmoothPlastic",Color,{0.2,0.2,0.3},"BlockMesh",{1,0.5,1})
_Weld(B, A, CFrame.new(), CFrame.new(0,-0.2,0.2))
local C = _Part(Main,false,false,0,0,"SmoothPlastic",Color,{0.2,0.2,0.2},"BlockMesh",{1,0.5,1})
_Weld(C, A, CFrame.new(), CFrame.new(0,-0.025,0.15))
end
local Down = _Part(Main,false,false,1,1,"SmoothPlastic","Black",{1,1,1},"Brick",{1,1,1})
_Weld(Down, Torso, CFrame.Angles(math.rad(90),0,0), CFrame.new())
local AnchorPart = _Part(Main,false,false,0.1,0,"Neon",ColorGlobe,{0.8,0.8,0.8},"Sphere",{1,1,1})
_Weld(AnchorPart, Character["Right Arm"], CFrame.new(0,1.5,0), CFrame.new())
local AnchorPart2 = _Part(Main,false,false,0.1,0,"Neon",ColorGlobe,{0.8,0.8,0.8},"Sphere",{1,1,1})
_Weld(AnchorPart2, Character["Left Arm"], CFrame.new(0,1.5,0), CFrame.new())
local AnchorPart3 = _Part(Main,false,false,0.1,0,"Neon",ColorGlobe,{0.8,0.8,0.8},"Sphere",{1,1,1})
_Weld(AnchorPart3, Character["Right Leg"], CFrame.new(0,1.5,0), CFrame.new())
local AnchorPart4 = _Part(Main,false,false,0.1,0,"Neon",ColorGlobe,{0.8,0.8,0.8},"Sphere",{1,1,1})
_Weld(AnchorPart4, Character["Left Leg"], CFrame.new(0,1.5,0), CFrame.new())
--Back
local AnchorPart5 = _Part(Main,false,false,0.1,0,"Neon",ColorGlobe,{0.6,0.6,0.6},"Sphere",{1,1,1})
_Weld(AnchorPart5, Character.Torso, CFrame.new(0.75,-0.5,-1), CFrame.new())
local AnchorPart6 = _Part(Main,false,false,0.1,0,"Neon",ColorGlobe,{0.6,0.6,0.6},"Sphere",{1,1,1})
_Weld(AnchorPart6, Character.Torso, CFrame.new(-0.75,-0.5,-1), CFrame.new())
local AnchorPart7 = _Part(Main,false,false,0.1,0,"Neon",ColorGlobe,{0.4,0.4,0.4},"Sphere",{1,1,1})
_Weld(AnchorPart7, Character.Torso, CFrame.new(0.5,0.25,-0.8), CFrame.new())
local AnchorPart8 = _Part(Main,false,false,0.1,0,"Neon",ColorGlobe,{0.4,0.4,0.4},"Sphere",{1,1,1})
_Weld(AnchorPart8, Character.Torso, CFrame.new(-0.5,0.25,-0.8), CFrame.new())
local WingLeft = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,2,1},"Wedge",{1,1,1})
local WingLeftMain = _Weld(WingLeft, AnchorPart5, CFrame.new(), CFrame.new())
local WingLeftP1 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,2,1},"Wedge",{1,1,1})
_Weld(WingLeftP1, WingLeft, CFrame.new(0,-2,0) * CFrame.Angles(math.rad(180),0,0), CFrame.new())
local WingLeftD = _Part(Main,false,false,0,0,"SmoothPlastic",ColorGlobe,{1,1,1},"FileMesh",{0.25,1.8*2,0.45*2})
WingLeftD.Mesh.MeshId = "rbxassetid://9756362"
_Weld(WingLeftD, WingLeft, CFrame.new(0,1,-0.25) * CFrame.Angles(math.rad(-15),0,0), CFrame.new())
table.insert(Bits, {Side = true; Weld = WingLeftMain; Series = 0;Type = "Wing"})
local WingRight = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,2,1},"Wedge",{1,1,1})
local WingRightMain = _Weld(WingRight, AnchorPart6, CFrame.new(), CFrame.new())
local WingRightP1 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,2,1},"Wedge",{1,1,1})
_Weld(WingRightP1, WingRight, CFrame.new(0,-2,0) * CFrame.Angles(math.rad(180),0,0), CFrame.new())
local WingRightD = _Part(Main,false,false,0,0,"SmoothPlastic",ColorGlobe,{1,1,1},"FileMesh",{0.25,1.8*2,0.45*2})
WingRightD.Mesh.MeshId = "rbxassetid://9756362"
_Weld(WingRightD, WingRight, CFrame.new(0,1,-0.25) * CFrame.Angles(math.rad(-15),0,0), CFrame.new())
table.insert(Bits, {Side = false; Weld = WingRightMain; Series = 0;Type = "Wing"})
local WingLeftLower = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,1.5,0.5},"Wedge",{1,1,1})
local WingLeftLowerMain = _Weld(WingLeftLower, AnchorPart7, CFrame.new(), CFrame.new())
local WingLeftLowerP1 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,1.5,0.5},"Wedge",{1,1,1})
_Weld(WingLeftLowerP1, WingLeftLower, CFrame.new(0,-1.5,0) * CFrame.Angles(math.rad(180),0,0), CFrame.new())
local WingLeftLowerD = _Part(Main,false,false,0,0,"SmoothPlastic",ColorGlobe,{1,1,1},"FileMesh",{0.25,2.8,0.45})
WingLeftLowerD.Mesh.MeshId = "rbxassetid://9756362"
_Weld(WingLeftLowerD, WingLeftLower, CFrame.new(0,0.75,-0.15) * CFrame.Angles(math.rad(-10),0,0), CFrame.new())
table.insert(Bits, {Side = true; Weld = WingLeftLowerMain; Series = 0;Type = "WingLow"})
local WingRightLower = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,1.5,0.5},"Wedge",{1,1,1})
local WingRightLowerMain = _Weld(WingRightLower, AnchorPart8, CFrame.new(), CFrame.new())
local WingRightLowerP1 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,1.5,0.5},"Wedge",{1,1,1})
_Weld(WingRightLowerP1, WingRightLower, CFrame.new(0,-1.5,0) * CFrame.Angles(math.rad(180),0,0), CFrame.new())
local WingRightLowerD = _Part(Main,false,false,0,0,"SmoothPlastic",ColorGlobe,{1,1,1},"FileMesh",{0.25,2.8,0.45})
WingRightLowerD.Mesh.MeshId = "rbxassetid://9756362"
_Weld(WingRightLowerD, WingRightLower, CFrame.new(0,0.75,-0.15) * CFrame.Angles(math.rad(-10),0,0), CFrame.new())
table.insert(Bits, {Side = false; Weld = WingRightLowerMain; Series = 0;Type = "WingLow"})
for i = 1, 6, 1 do
local TriP1 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,1,0.5},"Wedge",{1,1,1})
local Main = _Weld(TriP1, AnchorPart, CFrame.new(), CFrame.new())
local TriP2 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,1,0.5},"Wedge",{1,1,1})
_Weld(TriP2, TriP1, CFrame.new(0,-1,0) * CFrame.Angles(math.rad(180),0,0), CFrame.new())
local DiamondB = _Part(Main,false,false,0,0,"SmoothPlastic",ColorGlobe,{1,1,1},"FileMesh",{0.25,1.8,0.45})
DiamondB.Mesh.MeshId = "rbxassetid://9756362"
_Weld(DiamondB, TriP1, CFrame.new(0,0.5,-0.125) * CFrame.Angles(math.rad(-15),0,0),CFrame.new())
table.insert(Bits, {Side = false; Weld = Main; Series = i;Type = "Top"})
end
for i = 1, 6, 1 do
local TriP1 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,1,0.5},"Wedge",{1,1,1})
local Main = _Weld(TriP1, AnchorPart2, CFrame.new(), CFrame.new())
local TriP2 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,1,0.5},"Wedge",{1,1,1})
_Weld(TriP2, TriP1, CFrame.new(0,-1,0) * CFrame.Angles(math.rad(180),0,0), CFrame.new())
local DiamondB = _Part(Main,false,false,0,0,"SmoothPlastic",ColorGlobe,{1,1,1},"FileMesh",{0.25,1.8,0.45})
DiamondB.Mesh.MeshId = "rbxassetid://9756362"
_Weld(DiamondB, TriP1, CFrame.new(0,0.5,-0.125) * CFrame.Angles(math.rad(-15),0,0),CFrame.new())
table.insert(Bits, {Side = true; Weld = Main; Series = i;Type = "Top"})
end
for i = 1, 6, 1 do
local TriP1 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,1,0.5},"Wedge",{1,1,1})
local Main = _Weld(TriP1, AnchorPart3, CFrame.new(), CFrame.new())
local TriP2 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,1,0.5},"Wedge",{1,1,1})
_Weld(TriP2, TriP1, CFrame.new(0,-1,0) * CFrame.Angles(math.rad(180),0,0), CFrame.new())
local DiamondB = _Part(Main,false,false,0,0,"SmoothPlastic",ColorGlobe,{1,1,1},"FileMesh",{0.25,1.8,0.45})
DiamondB.Mesh.MeshId = "rbxassetid://9756362"
_Weld(DiamondB, TriP1, CFrame.new(0,0.5,-0.125) * CFrame.Angles(math.rad(-15),0,0),CFrame.new())
table.insert(Bits, {Side = false; Weld = Main; Series = i;Type = "Bot"})
end
for i = 1, 6, 1 do
local TriP1 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,1,0.5},"Wedge",{1,1,1})
local Main = _Weld(TriP1, AnchorPart4, CFrame.new(), CFrame.new())
local TriP2 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.2,1,0.5},"Wedge",{1,1,1})
_Weld(TriP2, TriP1, CFrame.new(0,-1,0) * CFrame.Angles(math.rad(180),0,0), CFrame.new())
local DiamondB = _Part(Main,false,false,0,0,"SmoothPlastic",ColorGlobe,{1,1,1},"FileMesh",{0.25,1.8,0.45})
DiamondB.Mesh.MeshId = "rbxassetid://9756362"
_Weld(DiamondB, TriP1, CFrame.new(0,0.5,-0.125) * CFrame.Angles(math.rad(-15),0,0),CFrame.new())
table.insert(Bits, {Side = true; Weld = Main; Series = i;Type = "Bot"})
end
--[[local WingAnchor = _Part(Main,false,false,1,0,"SmoothPlastic",ColorBlades,{1,1,1},"BlockMesh",{1,1,1})
_Weld(WingAnchor, Character.Torso, CFrame.new(0.5,-0.5,-1), CFrame.new())
local LengthWing1 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.3,1.5,0.3},"BlockMesh",{1,1,1})
_Weld(LengthWing1, WingAnchor, CFrame.new(0.5,-0.55,0.35) * CFrame.Angles(math.rad(290),math.rad(45),0), CFrame.new())
local WingAnchor2 = _Part(Main,false,false,1,0,"SmoothPlastic",ColorBlades,{1,1,1},"BlockMesh",{1,1,1})
_Weld(WingAnchor2, LengthWing1, CFrame.new(0,-0.75,0), CFrame.new())
local LengthWing2 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.3,1.5,0.3},"BlockMesh",{1,1,1})
_Weld(LengthWing2, WingAnchor2, CFrame.new(0,-0.6,0) * CFrame.Angles(math.rad(350),0,0), CFrame.new())
local WingAnchor3 = _Part(Main,false,false,1,0,"SmoothPlastic",ColorBlades,{1,1,1},"BlockMesh",{1,1,1})
_Weld(WingAnchor3, LengthWing2, CFrame.new(0,-0.75,0), CFrame.new())
local LengthWing3 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.3,1.5,0.3},"BlockMesh",{1,1,1})
_Weld(LengthWing3, WingAnchor3, CFrame.new(0,-0.6,0) * CFrame.Angles(math.rad(-10),0,0), CFrame.new())
local WingAnchor4 = _Part(Main,false,false,1,0,"SmoothPlastic",ColorBlades,{1,1,1},"BlockMesh",{1,1,1})
_Weld(WingAnchor4, LengthWing3, CFrame.new(0,-0.75,0), CFrame.new())
local LengthWing4 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{0.3,1.5,0.3},"BlockMesh",{1,1,1})
_Weld(LengthWing4, WingAnchor4, CFrame.new(0,-0.6,0) * CFrame.Angles(math.rad(-15),0,0), CFrame.new())
]]-- Scrapped for now...
--[[Body]]--
local BHead = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{1,1,1},"Head",{1.25,1.25,1.25})
_Weld(BHead,Head,CFrame.new(),CFrame.new())
local BHelm = _Part(Main,false,false,0,0,"SmoothPlastic",ColorGlobe,{1,1,1},"FileMesh",{1,1,1})
BHelm.Mesh.MeshId = "rbxassetid://17438747"
_Weld(BHelm,BHead,CFrame.new(0,-0.2,0),CFrame.new())
local BHelm2 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{1,1,1},"FileMesh",{0.95,0.97,0.95})
BHelm2.Mesh.MeshId = "rbxassetid://17438747"
_Weld(BHelm2,BHelm,CFrame.new(0,0,-0.02),CFrame.new())
local EyeL = _Part(Main,false,false,0,0,"Neon",ColorGlobe,{1,1,1},"Sphere",{0.25,0.075,0.075})
_Weld(EyeL,Head,CFrame.new(0.2,0.25,0.55)*CFrame.Angles(0,math.rad(40),0),CFrame.new())
local EyeR = _Part(Main,false,false,0,0,"Neon",ColorGlobe,{1,1,1},"Sphere",{0.25,0.075,0.075})
_Weld(EyeR,Head,CFrame.new(-0.2,0.25,0.55)*CFrame.Angles(0,math.rad(-40),0),CFrame.new())
local Mouth = _Part(Main,false,false,0,0,"Neon",ColorGlobe,{1,1,1},"Sphere",{0.25,0.075,0.075})
_Weld(Mouth,Head,CFrame.new(0,0.45,0.53),CFrame.new())
local BTorso = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{1,1,1},"FileMesh",{1,0.4,1})
BTorso.Mesh.MeshId = "rbxasset://fonts\\torso.mesh"
_Weld(BTorso,Torso,CFrame.new(0,-0.45,0),CFrame.new())
local BTorso2 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{1,1,1},"FileMesh",{0.85,0.6,0.85})
BTorso2.Mesh.MeshId = "rbxasset://fonts\\torso.mesh"
_Weld(BTorso2,BTorso,CFrame.new(0,0.8,0),CFrame.new())
local BTorsoCore = _Part(Main,false,false,0,0,"Neon",ColorGlobe,{1,1,1},"Sphere",{0.5,0.5,0.5})
_Weld(BTorsoCore, Torso, CFrame.new(0,-0.5,0.4),CFrame.new())
local BTorsoCoreDisc = _Part(Main,false,false,0,0,"SmoothPlastic","Medium stone grey",{1,1,1},"FileMesh",{0.525,0.525,0.2})
BTorsoCoreDisc.Mesh.MeshId = "rbxassetid://3270017"
_Weld(BTorsoCoreDisc, BTorsoCore, CFrame.new(0,0,0.1),CFrame.new())
local BNeck = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{1,1,1},"Head",{0.8,1,0.8})
_Weld(BNeck,Head,CFrame.new(0,0.8,0),CFrame.new())
for i=1,3 do
local BTorsoAb = _Part(Main,false,false,0,0,"SmoothPlastic","Medium stone grey",{1,1,1},"FileMesh",{0.2,0.075,0.2})
BTorsoAb.Mesh.MeshId = "rbxasset://fonts\\torso.mesh"
_Weld(BTorsoAb, Torso, CFrame.new(-0.5,-0.3 + 0.3*i,0.35)*CFrame.Angles(0,0,math.rad(15)),CFrame.new())
end
for i=1,3 do
local BTorsoAb = _Part(Main,false,false,0,0,"SmoothPlastic","Medium stone grey",{1,1,1},"FileMesh",{0.2,0.075,0.2})
BTorsoAb.Mesh.MeshId = "rbxasset://fonts\\torso.mesh"
_Weld(BTorsoAb, Torso, CFrame.new(0.5,-0.3 + 0.3*i,0.35)*CFrame.Angles(0,0,math.rad(-15)),CFrame.new())
end
local function Arm(bool)
local Limb, Offset
if bool then
Limb = Character["Left Arm"]
Offset = 0.52
else
Limb = Character["Right Arm"]
Offset = -0.52
end
local ShldrL = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{1,1,1},"FileMesh",{1,0.35,1})
ShldrL.Mesh.MeshId = "rbxasset://fonts\\rightarm.mesh"
_Weld(ShldrL,Limb,CFrame.new(0,-0.6,0),CFrame.new())
local ShldrL2 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{1,1,1},"FileMesh",{0.85,0.5,0.85})
ShldrL2.Mesh.MeshId = "rbxasset://fonts\\rightarm.mesh"
_Weld(ShldrL2,Limb,CFrame.new(0,0.2,0),CFrame.new())
local ShldrL3 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{1,1,1},"FileMesh",{0.75,0.2,0.75})
ShldrL3.Mesh.MeshId = "rbxasset://fonts\\rightarm.mesh"
_Weld(ShldrL3,Limb,CFrame.new(0,0.85,0),CFrame.new())
local ShldrL4 = _Part(Main,false,false,0,0,"SmoothPlastic","Really black",{1,1,1},"FileMesh",{0.5,0.05,0.5})
ShldrL4.Mesh.MeshId = "rbxasset://fonts\\rightarm.mesh"
_Weld(ShldrL4,ShldrL3,CFrame.new(0,0.16,0),CFrame.new())
--X Pat--
local ShldrLD = _Part(Main,false,false,0,0,"SmoothPlastic",ColorGlobe,{1,1,1},"FileMesh",{1.1,0.03,1.35})
ShldrLD.Mesh.MeshId = "rbxasset://fonts\\rightarm.mesh"
_Weld(ShldrLD,Limb,CFrame.new(0,0,0),CFrame.Angles(math.rad(45),0,0))
local ShldrLD2 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorGlobe,{1,1,1},"FileMesh",{1.1,0.03,1.35})
ShldrLD2.Mesh.MeshId = "rbxasset://fonts\\rightarm.mesh"
_Weld(ShldrLD2,Limb,CFrame.new(0,0,0),CFrame.Angles(math.rad(-45),0,0))
local ShldrLDB = _Part(Main,false,false,0,0,"SmoothPlastic",ColorGlobe,{1,1,1},"FileMesh",{1.35,0.03,1.1})
ShldrLDB.Mesh.MeshId = "rbxasset://fonts\\rightarm.mesh"
_Weld(ShldrLDB,Limb,CFrame.new(0,0,0),CFrame.Angles(0,0,math.rad(45)))
local ShldrLD2B = _Part(Main,false,false,0,0,"SmoothPlastic",ColorGlobe,{1,1,1},"FileMesh",{1.35,0.03,1.1})
ShldrLD2B.Mesh.MeshId = "rbxasset://fonts\\rightarm.mesh"
_Weld(ShldrLD2B,Limb,CFrame.new(0,0,0),CFrame.Angles(0,0,math.rad(-45)))
local Disc = _Part(Main,false,false,0,0,"SmoothPlastic",ColorGlobe,{1,1,1},"FileMesh",{0.55,0.55,0.55})
Disc.Mesh.MeshId = "rbxassetid://47260990"
_Weld(Disc, ShldrL, CFrame.new(0,0,Offset),CFrame.Angles(0,math.rad(90),0))
--3270017
local DiscC = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{1,1,1},"FileMesh",{0.55,0.55,0.1})
DiscC.Mesh.MeshId = "rbxassetid://3270017"
_Weld(DiscC, Disc, CFrame.new(),CFrame.new())
table.insert(Discs, Disc)
end
local function Leg(bool)
local Limb, Offset
if bool then
Limb = Character["Left Leg"]
Offset = 0.5
else
Limb = Character["Right Leg"]
Offset = -0.5
end
local LegL = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{1,1,1},"FileMesh",{0.95,0.35,0.95})
LegL.Mesh.MeshId = "rbxasset://fonts\\leftleg.mesh"
_Weld(LegL,Limb,CFrame.new(0,-0.7,0),CFrame.new())
local LegL2 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{1,1,1},"FileMesh",{0.85,0.5,0.85})
LegL2.Mesh.MeshId = "rbxasset://fonts\\leftleg.mesh"
_Weld(LegL2,Limb,CFrame.new(0,0.15,0),CFrame.new())
local LegL3 = _Part(Main,false,false,0,0,"SmoothPlastic",ColorBlades,{1,1,1},"FileMesh",{0.75,0.2,0.75})
LegL3.Mesh.MeshId = "rbxasset://fonts\\leftleg.mesh"
_Weld(LegL3,Limb,CFrame.new(0,0.85,0),CFrame.new())
local LegL4 = _Part(Main,false,false,0,0,"SmoothPlastic","Really black",{1,1,1},"FileMesh",{0.5,0.05,0.5})
LegL4.Mesh.MeshId = "rbxasset://fonts\\leftleg.mesh"
_Weld(LegL4,LegL3,CFrame.new(0,0.16,0),CFrame.new())
local LegL5 = _Part(Main,false,false,0,0,"SmoothPlastic","Medium stone grey",{1,1,1},"FileMesh",{0.9,0.2,0.9})
LegL5.Mesh.MeshId = "rbxasset://fonts\\leftleg.mesh"
_Weld(LegL5,LegL2,CFrame.new(0,0,0),CFrame.new())
local MiniRocket = _Part(Main,false,false,0,0,"SmoothPlastic","Medium stone grey",{1,1,1},"FileMesh",{0.2,0.2,0.2})
MiniRocket.Mesh.MeshId = "rbxasset://fonts\\leftleg.mesh"
_Weld(MiniRocket,LegL5,CFrame.new(Offset,0,0),CFrame.new())
local MiniRocket2 = _Part(Main,false,false,0,0,"SmoothPlastic","Really black",{1,1,1},"BlockMesh",{0.125,0.1,0.125})
_Weld(MiniRocket2,LegL5,CFrame.new(Offset,0.16,0),CFrame.new())
end
Arm(true)
Arm(false)
Leg(true)
Leg(false)
--Spin Disc 22768172
--[[Done]]--
local Welds = {
ArmW = {
Left = Instance.new("Weld",Character);
Right = Instance.new("Weld",Main);
};
LegW = {
Left = Instance.new("Weld",Main);
Right = Instance.new("Weld",Main);
};
HeadW = {
Middle = Instance.new("Weld",Main);
};
}
local RWelds = {
ArmW = {
Left = Torso["Left Shoulder"];
Right = Torso["Right Shoulder"];
};
LegW = {
Left = Torso["Left Hip"];
Right = Torso["Right Hip"];
};
HeadW = {
Middle = Torso["Neck"];
};
}
local LA,RA = Welds.ArmW.Left,Welds.ArmW.Right
local LL,LR = Welds.LegW.Left,Welds.LegW.Right
local HD = Welds.HeadW.Middle
local LAD = CFrame.new(-1.5,0.5,0)
local RAD = CFrame.new(1.5,0.5,0)
local HDD = CFrame.new(0,-1.5,0)
local LLD = CFrame.new(0.5,2,0)
local RLD = CFrame.new(-0.5,2,0)
local RootD = CFrame.Angles(-1.57,0,-3.15)
Welds.ArmW.Left.C1,Welds.ArmW.Left.C0,Welds.ArmW.Left.Part0 = CFrame.new(0, 0.5, 0),CFrame.new(-1.5, 0.5, 0),Torso
Welds.ArmW.Right.C1,Welds.ArmW.Right.C0,Welds.ArmW.Right.Part0 = CFrame.new(0, 0.5, 0),CFrame.new(1.5, 0.5, 0),Torso
Welds.LegW.Left.C1,Welds.LegW.Left.Part0 = LLD,Torso
Welds.LegW.Right.C1,Welds.LegW.Right.Part0 = RLD,Torso
Welds.HeadW.Middle.C1,Welds.HeadW.Middle.Part0 = HDD,Torso
local CurrentLeftArm = LAD
local CurrentRightArm = RAD
local CurrentLeftLeg = LLD
local CurrentRightLeg = RLD
local function lerp(a, b, c)
return a+(b-a)*c
end
local function AnimLerp(c1, c2, al)
local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
for i,v in pairs(com1) do
com1[i] = lerp(v,com2[i],al)
end
return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
end
local _Arm = function(side,tf)
local Arm = nil
local Weld = nil
local RWeld = nil
for _,S in pairs(Sides) do
if side:lower() == S:lower() then
for _,A in pairs(Arms) do
if A.Name:lower():find(side:lower()) then
Arm = A
Weld = Welds.ArmW[S]
RWeld = RWelds.ArmW[S]
end
end
end
end
if Arm and Weld and RWeld then
if tf then
Weld.Part1 = Arm
RWeld.Part1 = nil
elseif not tf then
Weld.Part1 = nil
RWeld.Part1 = Arm
else
print("Error")
end
end
end
local _Leg = function(side,tf)
local Leg = nil
local Weld = nil
local RWeld = nil
for _,S in pairs(Sides) do
if side:lower() == S:lower() then
for _,A in pairs(Legs) do
if A.Name:lower():find(side:lower()) then
Leg = A
Weld = Welds.LegW[S]
RWeld = RWelds.LegW[S]
end
end
end
end
if Leg and Weld and RWeld then
if tf then
Weld.Part1 = Leg
RWeld.Part1 = nil
elseif not tf then
Weld.Part1 = nil
RWeld.Part1 = Leg
else
print("Error")
end
end
end
local _Head = function(tf)
local Head = nil
local Weld = nil
local RWeld = nil
Head = Character["Head"]
Weld = Welds.HeadW.Middle
RWeld = RWelds.HeadW.Middle
if Head and Weld and RWeld then
if tf then
Weld.Part1 = Head
RWeld.Part1 = nil
elseif not tf then
Weld.Part1 = nil
RWeld.Part1 = Head
else
print("Error")
end
end
end
pcall(function()
Character.Animate.Disabled = true
end)
if Humanoid then
Humanoid.PlatformStand = true
end
pcall(function()
Torso.Velocity = Variables.Momentum
end)
local Rotate = Instance.new("BodyGyro",Torso)
Rotate.P = 10^6
Rotate.maxTorque = Vector3.new(Rotate.P,Rotate.P,Rotate.P)
Rotate.cframe = Torso.CFrame
local Move = Instance.new("BodyPosition",Torso)
Move.maxForce = Vector3.new(1,1,1)*(10^6)
Move.position = Torso.CFrame.p
local function LaserBeam()
UpdateAnim = false
CurrentAnimation = "DisableHandAnim"
rofTop = 6
for i=0,1,0.1 do
RA.C0 = AnimLerp(CurrentRightArm, RAD * CFrame.Angles(math.rad(75),0,math.rad(-20)), i)
LA.C0 = AnimLerp(CurrentLeftArm, LAD * CFrame.Angles(math.rad(75),0,math.rad(20)), i)
wait()
end
ChargeBar.Visible = true;
local Charge = 0
local Downt = _Part(Main,false,true,0,0,"Neon",ColorGlobe,{1,1,1},"Sphere",{1,1,1})
local Effect = Instance.new("ParticleEmitter", Downt)
Effect.Texture = "rbxassetid://283631720"
Effect.VelocitySpread = 0
Effect.Acceleration = Vector3.new(0,0,0)
Effect.Color = ColorSequence.new(Downt.BrickColor.Color,Downt.BrickColor.Color)
Effect.Speed = NumberRange.new(0)
Effect.Lifetime = NumberRange.new(1,1)
Effect.Rate = 60
Effect.Transparency = NumberSequence.new(0.5,0.8)
Effect.Rotation = NumberRange.new(1,2)
while BeamHeld do
Charge = Charge + 1
CurrentEnergy = CurrentEnergy - 1.5
Downt.Mesh.Scale = Downt.Mesh.Scale + Vector3.new(0.02,0.02,0.02)
Downt.CFrame = RootPart.CFrame + (RootPart.CFrame.lookVector * 4)
Effect.Size = NumberSequence.new(Downt.Mesh.Scale.X)
ChargeFill.Size = UDim2.new(Charge/100,-5,1,-5)
wait()
if Charge >= 100 or CurrentEnergy <= 0 then
CurrentEnergy = CurrentEnergy <= 0 and 0 or CurrentEnergy
break
end
end
Downt.Anchored = false
Downt.Size = Downt.Mesh.Scale
Downt.Mesh.Scale = Vector3.new(1,1,1)
local Velocity = Instance.new("BodyVelocity", Downt)
Velocity.maxForce = Vector3.new(1e7,1e7,1e7)
Velocity.P = 1e7
Velocity.Velocity = (Mouse.Hit.p - Downt.CFrame.p)
--[[
--CurrentEnergy = CurrentEnergy <= 0 and 0 or CurrentEnergy - (1.5*Charge)
local Face = Torso.CFrame.lookVector
local Ray = Ray.new(Downt.CFrame.p, (Mouse.Hit.p - Downt.CFrame.p).unit*750)
local Object,Pos = game:GetService("Workspace"):findPartOnRay(Ray, Character)
local Distance = (Pos - Downt.CFrame.p).magnitude
local DrawRay = _Part(Main,false,true,0,0,"Neon",ColorGlobe,{1,1,1},"Cylinder",{Distance,Downt.Mesh.Scale.X,Downt.Mesh.Scale.X})
DrawRay.CFrame = CFrame.new(Pos, Downt.CFrame.p) * CFrame.new(0,0,-Distance/2) * CFrame.Angles(0,math.rad(270),0)
local ExplodePart = _Part(Main,false,true,0,0,"Neon",ColorGlobe,{1,1,1},"Sphere",{1,1,1})
ExplodePart.CFrame = CFrame.new(Pos.X,Pos.Y,Pos.Z)
local Ignore = {}
ExplodePart.Touched:connect(function(Object)
if Object.Parent and Object.Parent:IsA("Model") then
local Model = Object.Parent
if Model:findFirstChild("Humanoid") and not Ignore[Model.Name] and Model.Name ~= Character.Name then
Ignore[Model.Name] = true;
local Humanoid = Model:findFirstChild("Humanoid")
Humanoid:TakeDamage(0.75*Charge)
end
end
end)
for i=0,1,0.1 do
wait()
DrawRay.Transparency = i
Downt.Transparency = i
ExplodePart.Size = ExplodePart.Size + Vector3.new(0.04*Charge,0.04*Charge,0.04*Charge)
ExplodePart.CFrame = CFrame.new(Pos.X,Pos.Y,Pos.Z)
ExplodePart.Transparency = i
end
Effect:Destroy()
game:GetService("Debris"):AddItem(DrawRay, 1)
game:GetService("Debris"):AddItem(ExplodePart, 1)]]
game:GetService("Debris"):AddItem(Downt, 10)
UpdateAnim = true
ChargeBar.Visible = false
LastBeam = tick()
end
local function AbsoluteDefence()
UpdateAnim = false
while AbsDefHeld do
wait()
end
UpdateAnim = true
end
local function ThrowBlades()
--[[local Thrown = {}
for i,Bit in pairs(Bits) do
if Bit.Type == "Top" then
table.insert(Thrown, {Side = Bit.Side; Weld = Bit.Weld; Series = Bit.Series; Type = Bit.Type})
table.remove(Bits, i)
end
end
]]-- *Construction*
end
Mouse.KeyDown:connect(function(Key)
if Key == "w" then
Front = true
end
if Key == "a" then
Left = true
end
if Key == "s" then
Back = true
end
if Key == "q" then
BoostHeld = not BoostHeld
if BoostHeld then
Accel = 3
else
Accel = 1
end
end
if Key == "d" then
Right = true
end
if Key:byte() == 50 then
if MobilityType == "Float" then
MobilityType = "Fly"
elseif MobilityType == "Fly" then
MobilityType = "Ground"
elseif MobilityType == "Ground" then
MobilityType = "Float"
end
end
if Key == "h" then
if CurrentEnergy <= 0 then
return
end
AbsDefHeld = true
AbsoluteDefence()
end
if Key == "f" then
if CurrentEnergy <= 0 or tick()-LastBeam <= 1 then
return
end
BeamHeld = true
LaserBeam()
end
if Key == "q" then
ThrowBlades()
end
while BoostHeld do
wait()
CurrentEnergy = CurrentEnergy <= 0 and 0 or CurrentEnergy - 0.5
if CurrentEnergy <= 0 then
break
end
end
if Key == "g" then
ChargeHeld = true
UpdateAnim = false
CurrentAnimation = "DisableHandAnim"
rofTop = 15
for i=0,1,0.1 do
wait()
AnchorPart.Weld.C1 = AnimLerp(AnchorPart.Weld.C1, CFrame.new(0,3,0), i)
AnchorPart2.Weld.C1 = AnimLerp(AnchorPart2.Weld.C1, CFrame.new(0,3,0), i)
RA.C0 = AnimLerp(RA.C0, RAD * CFrame.Angles(math.rad(160),0,math.rad(10)), i)
LA.C0 = AnimLerp(LA.C0, LAD * CFrame.Angles(math.rad(160),0,math.rad(-10)), i)
end
while ChargeHeld do
wait()
local NRG = _Part(Main,false,true,0,0,"SmoothPlastic",ColorGlobe,{0.2,0.2,0.2},"Sphere",{1,1,1})
NRG.CFrame = AnchorPart.CFrame * CFrame.new(math.random(-2.5,2.5),math.random(-2.5,2.5),math.random(-2.5,2.5))
local NRGB = _Part(Main,false,true,0,0,"SmoothPlastic",ColorGlobe,{0.2,0.2,0.2},"Sphere",{1,1,1})
NRGB.CFrame = AnchorPart2.CFrame * CFrame.new(math.random(-2.5,2.5),math.random(-2.5,2.5),math.random(-2.5,2.5))
table.insert(Energy, NRG)
table.insert(Energy, NRGB)
for i,nrg in pairs(Energy) do
nrg.Transparency = nrg.Transparency + 0.05
nrg.Mesh.Scale = nrg.Mesh.Scale + Vector3.new(0.1,0.1,0.1)
nrg.CFrame = CFrame.new(nrg.CFrame.p, AnchorPart.CFrame.p) * CFrame.Angles(0,0,-math.pi/2)
if nrg.Transparency >= 1 then
table.remove(Energy, i)
nrg:Destroy()
end
end
CurrentEnergy = CurrentEnergy >= TotalEnergy and TotalEnergy or CurrentEnergy + 10
end
for i=0,1,0.1 do
wait()
AnchorPart.Weld.C1 = AnimLerp(AnchorPart.Weld.C1, CFrame.new(0,1.5,0), i)
AnchorPart2.Weld.C1 = AnimLerp(AnchorPart2.Weld.C1, CFrame.new(0,1.5,0), i)
for x,nrg in pairs(Energy) do
nrg.Transparency = nrg.Transparency + 0.15
nrg.Mesh.Scale = nrg.Mesh.Scale + Vector3.new(0.2,0.2,0.2)
nrg.CFrame = CFrame.new(nrg.CFrame.p, AnchorPart.CFrame.p) * CFrame.Angles(0,0,-math.pi/2)
if nrg.Transparency >= 1 then
table.remove(Energy, x)
nrg:Destroy()
end
end
end
UpdateAnim = true
end
end)
Mouse.KeyUp:connect(function(Key)
if Key == "w" then
Front = false
end
if Key == "a" then
Left = false
end
if Key == "s" then
Back = false
end
if Key == "d" then
Right = false
end
if Key == "f" then
BeamHeld = false
end
if Key == "h" then
AbsDefHeld = false
end
if Key == "g" then
ChargeHeld = false
end
if Key == "0" then
BoostHeld = false
end
end)
_Arm("Left", true)
_Arm("Right", true)
_Leg("Left", true)
_Leg("Right", true)
_Head(true)
game:GetService("RunService").Stepped:connect(function()
EnergyFill.Size = UDim2.new(CurrentEnergy/TotalEnergy,-5,1,-5)
RateTop = RateTop + rofTop
if RateTop >= 360 then
RateTop = 1
end
RateBot = RateBot + rofBot
if RateBot >= 360 then
RateBot = 1
end
if AddSub == false then
CurrentFrame = CurrentFrame + 0.01
if CurrentFrame >= 1 then
AddSub = true
end
elseif AddSub == true then
CurrentFrame = CurrentFrame - 0.01
if CurrentFrame <= 0 then
AddSub = false
end
end
DiscSpin = DiscSpin + 0.1
for _,Disc in pairs(Discs) do
Disc.Weld.C0 = CFrame.Angles(0,math.rad(90),DiscSpin)
end
if ExtendGrowthTop == false and CurrentAnimation == "Idle" then
ExtendTop = ExtendTop + 1/2
if ExtendTop >= 25 then
ExtendGrowthTop = true
end
elseif ExtendGrowthTop == true and CurrentAnimation == "Idle" then
ExtendTop = ExtendTop - 1/2
if ExtendTop <= -10 then
ExtendGrowthTop = false
end
elseif CurrentAnimation == "Forward" or CurrentAnimation == "Backward" or CurrentAnimation == "SwivelRight" or CurrentAnimation == "SwivelLeft" then
ExtendTop = ExtendTop >= 40 and 40 or ExtendTop + 2
elseif CurrentAnimation == "DisableHandAnim" then
ExtendTop = ExtendTop >= 50 and 50 or ExtendTop + 2
end
if ExtendGrowthBot == false and (CurrentAnimation == "Idle" or CurrentAnimation == "DisableHandAnim") then
ExtendBot = ExtendBot + 1/2
if ExtendBot >= 25 then
ExtendGrowthBot = true
end
elseif ExtendGrowthBot == true and (CurrentAnimation == "Idle" or CurrentAnimation == "DisableHandAnim") then
ExtendBot = ExtendBot - 1/2
if ExtendBot <= -10 then
ExtendGrowthBot = false
end
elseif CurrentAnimation == "Forward" or CurrentAnimation == "Backward" or CurrentAnimation == "SwivelRight" or CurrentAnimation == "SwivelLeft" then
ExtendBot = ExtendBot >= 40 and 40 or ExtendBot + 2
end
if Front and not Back then
xmove = 3
if UpdateAnim then
CurrentAnimation = "Forward"
end
elseif Back and not Front then
xmove = -3
if UpdateAnim then
CurrentAnimation = "Backward"
end
else
xmove = 0
if UpdateAnim then
CurrentAnimation = "Idle"
end
end
if Left and not Right then
if xmove == 0 and UpdateAnim then
CurrentAnimation = "SwivelLeft"
end
ymove = 3
elseif Right and not Left then
if xmove == 0 and UpdateAnim then
CurrentAnimation = "SwivelRight"
end
ymove = -3
else
ymove = 0
if xmove == 0 and UpdateAnim then
CurrentAnimation = "Idle"
end
end
if LastAnimation ~= CurrentAnimation then
CurrentFrame = 0
AddSub = false
end
for _,Info in pairs(Bits) do
local Side = Info.Side
local Series = Info.Series
local Weld = Info.Weld
local Type = Info.Type
local Extend = 1
local MyRate = 1
if Type == "Top" then
Extend = ExtendTop
MyRate = RateTop + 30
elseif Type == "Bot" then
Extend = ExtendBot
MyRate = RateBot
else
end
if CurrentAnimation == "Idle" or CurrentAnimation == "DisableHandAnim" then
if Type == "Wing" or Type == "WingLow" then
if Type == "WingLow" then
Weld.C1 = AnimLerp(Weld.C1, CFrame.new(Side == true and -0.5 or 0.5,1.65,0.5) * CFrame.Angles(math.rad(65 + Lift*3),math.rad((Side == true and 30 + Lift*2 or -30 - Lift*2)),0), CurrentFrame)
else
Weld.C1 = AnimLerp(Weld.C1, CFrame.new(0,1.8,0.5) * CFrame.Angles(math.rad(65 + Lift*3),math.rad((Side == true and 30 + Lift*2 or -30 - Lift*2)),0), CurrentFrame)
end
else
Weld.C1 = CFrame.new(0,0,Spread) * CFrame.Angles(math.rad(-Extend),math.rad(60*Series + (Side == true and -MyRate or MyRate)),0) * CFrame.new(0,Distance,0)
end
elseif CurrentAnimation == "Forward" or CurrentAnimation == "Backward" then
if Type == "Wing" or Type == "WingLow" then
if Type == "WingLow" then
Weld.C1 = AnimLerp(Weld.C1, CFrame.new(Side == true and -0.5 or 0.5,1.65,0.5) * CFrame.Angles(math.rad(65 + Lift*10),math.rad((Side == true and 30 + Lift*2 or -30 - Lift*2)),0), CurrentFrame)
else
Weld.C1 = AnimLerp(Weld.C1, CFrame.new(0,1.8,0.5) * CFrame.Angles(math.rad(65 + Lift*10),math.rad((Side == true and 30 + Lift*2 or -30 - Lift*2)),0), CurrentFrame)
end
else
Weld.C1 = CFrame.new(0,0,Spread) * CFrame.Angles(math.rad(-Extend),math.rad(60*Series + (Side == true and -MyRate or MyRate)),0) * CFrame.new(0,Distance,0)
end
elseif CurrentAnimation == "SwivelLeft" then
if Type == "Wing" or Type == "WingLow" then
if Type == "WingLow" then
Weld.C1 = AnimLerp(Weld.C1, CFrame.new(Side == true and -0.5 or 0.5,1.65,0.5) * CFrame.Angles(math.rad(65 + Lift*3),math.rad((Side == true and 50 or -10)),0), CurrentFrame)
else
Weld.C1 = AnimLerp(Weld.C1, CFrame.new(0,1.8,0.5) * CFrame.Angles(math.rad(65 + Lift*3),math.rad((Side == true and 50 or -10)),0), CurrentFrame)
end
else
Weld.C1 = CFrame.new(0,0,Spread) * CFrame.Angles(math.rad(-Extend),math.rad(60*Series + (Side == true and -MyRate or MyRate)),0) * CFrame.new(0,Distance,0)
end
elseif CurrentAnimation == "SwivelRight" then
if Type == "Wing" or Type == "WingLow" then
if Type == "WingLow" then
Weld.C1 = AnimLerp(Weld.C1, CFrame.new(Side == true and -0.5 or 0.5,1.65,0.5) * CFrame.Angles(math.rad(65 + Lift*3),math.rad((Side == true and 10 or -50)),0), CurrentFrame)