View difference between Paste ID: EY98tBWB and DjBMrbtZ
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
print(" this script was Converted by An ignorant / zach ")
3
warn(" credits goes to the real creator ")
4
warn(" pls dont abuse ")
5
warn(" i beg u ")
6
local Player,game,owner = owner,game
7
local RealPlayer = Player
8
do
9
    print("FE Compatibility code by Mokiros")
10
    print("This Convert was made by ( im lazy so i might use same text ) ")
11
    local rp = RealPlayer
12
    script.Parent = rp.Character
13
   
14
    --RemoteEvent for communicating
15
    local Event = Instance.new("RemoteEvent")
16
    Event.Name = "UserInput_Event"
17
 
18
    --Fake event to make stuff like Mouse.KeyDown work
19
    local function fakeEvent()
20
        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
21
        t.connect = t.Connect
22
        return t
23
    end
24
 
25
    --Creating fake input objects with fake variables
26
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
27
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
28
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
29
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
30
    end}
31
    --Merged 2 functions into one by checking amount of arguments
32
    CAS.UnbindAction = CAS.BindAction
33
 
34
    --This function will trigger the events that have been :Connect()'ed
35
    local function te(self,ev,...)
36
        local t = m[ev]
37
        if t and t._fakeEvent then
38
            for _,f in pairs(t.Functions) do
39
                f(...)
40
            end
41
        end
42
    end
43
    m.TrigEvent = te
44
    UIS.TrigEvent = te
45
 
46
    Event.OnServerEvent:Connect(function(plr,io)
47
        if plr~=rp then return end
48
        m.Target = io.Target
49
        m.Hit = io.Hit
50
        if not io.isMouse then
51
            local b = io.UserInputState == Enum.UserInputState.Begin
52
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
53
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
54
            end
55
            for _,t in pairs(CAS.Actions) do
56
                for _,k in pairs(t.Keys) do
57
                    if k==io.KeyCode then
58
                        t.Function(t.Name,io.UserInputState,io)
59
                    end
60
                end
61
            end
62
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
63
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
64
        end
65
    end)
66
    Event.Parent = NLS([==[
67
    local Player = game:GetService("Players").LocalPlayer
68
    local Event = script:WaitForChild("UserInput_Event")
69
 
70
    local Mouse = Player:GetMouse()
71
    local UIS = game:GetService("UserInputService")
72
    local input = function(io,a)
73
        if a then return end
74
        --Since InputObject is a client-side instance, we create and pass table instead
75
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
76
    end
77
    UIS.InputBegan:Connect(input)
78
    UIS.InputEnded:Connect(input)
79
 
80
    local h,t
81
    --Give the server mouse data 30 times every second, but only if the values changed
82
    --If player is not moving their mouse, client won't fire events
83
    while wait(1/30) do
84
        if h~=Mouse.Hit or t~=Mouse.Target then
85
            h,t=Mouse.Hit,Mouse.Target
86
            Event:FireServer({isMouse=true,Target=t,Hit=h})
87
        end
88
    end]==],Player.Character)
89
 
90
    ----Sandboxed game object that allows the usage of client-side methods and services
91
    --Real game object
92
    local _rg = game
93
 
94
    --Metatable for fake service
95
    local fsmt = {
96
        __index = function(self,k)
97
            local s = rawget(self,"_RealService")
98
            if s then return s[k] end
99
        end,
100
        __newindex = function(self,k,v)
101
            local s = rawget(self,"_RealService")
102
            if s then s[k]=v end
103
        end,
104
        __call = function(self,...)
105
            local s = rawget(self,"_RealService")
106
            if s then return s(...) end
107
        end
108
    }
109
    local function FakeService(t,RealService)
110
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
111
        return setmetatable(t,fsmt)
112
    end
113
 
114
    --Fake game object
115
    local g = {
116
        GetService = function(self,s)
117
            return self[s]
118
        end,
119
        Players = FakeService({
120
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
121
        },"Players"),
122
        UserInputService = FakeService(UIS,"UserInputService"),
123
        ContextActionService = FakeService(CAS,"ContextActionService"),
124
    }
125
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
126
    g.service = g.GetService
127
   
128
    g.RunService = FakeService({
129
        RenderStepped = _rg:GetService("RunService").Heartbeat,
130
        BindToRenderStep = function(self,name,_,fun)
131
 
132
        end,
133
        UnbindFromRenderStep = function(self,name)
134
            self._btrs[name]:Disconnect()
135
        end,
136
    },"RunService")
137
 
138
    setmetatable(g,{
139
        __index=function(self,s)
140
            return _rg:GetService(s) or typeof(_rg[s])=="function"
141
            and function(_,...)return _rg[s](_rg,...)end or _rg[s]
142
        end,
143
        __newindex = fsmt.__newindex,
144
        __call = fsmt.__call
145
    })
146
    --Changing owner to fake player object to support owner:GetMouse()
147
    game,owner = g,g.Players.LocalPlayer
148
end
149
150
Player = game.Players.LocalPlayer
151
152
Character = Player.Character 
153
154
PlayerGui = Player.PlayerGui 
155
156
Backpack = Player.Backpack 
157
158
Torso = Character.Torso 
159
160
Head = Character.Head 
161
162
LeftArm = Character["Left Arm"] 
163
164
LeftLeg = Character["Left Leg"] 
165
166
RightArm = Character["Right Arm"] 
167
168
RightLeg = Character["Right Leg"] 
169
170
LS = Torso["Left Shoulder"] 
171
172
LH = Torso["Left Hip"] 
173
174
RS = Torso["Right Shoulder"] 
175
176
RH = Torso["Right Hip"] 
177
178
ModelName = "Chocobo"
179
180
attack = false 
181
182
attacktype = 1
183
184
Hitdeb = 0
185
186
value1=0
187
188
Neck = Torso.Neck
189
190
local neckcf0 = Neck.C0
191
192
193
----------------------------
194
195
--Customize
196
197
Energy = 200
198
199
MaxEnergy = 200
200
201
ChocoboHP = 500
202
203
204
Alive = false
205
206
207
mindamage = 20
208
209
maxdamage = 40
210
211
crtmaxdamage = 50
212
213
omindamage = mindamage
214
215
omaxdamage = maxdamage 
216
217
ocrtmaxdamage = crtmaxdamage
218
219
crtrate = 100/5
220
221
--100%/critpercentage
222
223
224
oblkbrkr = 2
225
226
blockbreaker = oblkbrkr
227
228
229
speed = 30
230
231
jump = 60
232
233
234
if Character.Name=="Name" then
235
236
ColorVariation = "Name her" 
237
238
elseif Character.Name=="DahNoob" then
239
240
ColorVariation = "DahNoob" 
241
242
elseif Character.Name=="Robloxshathelper" then
243
244
ColorVariation = "Robloxshathelper"
245
246
else
247
248
ColorVariation = "Yellow"
249
250
end
251
252
253
if ColorVariation == "Yellow" then
254
255
handlecolor = BrickColor.new("Bright yellow")
256
257
bcolor = BrickColor.new("Bright orange") 
258
259
beakcolor = BrickColor.new("Bright orange")
260
261
ropecolor = BrickColor.new("Brown")
262
263
eyecolor = BrickColor.new("Bright blue")
264
265
elseif                                 ColorVariation == "Red" then
266
267
handlecolor =BrickColor.new("Bright red")
268
269
bcolor = BrickColor.new("Black")
270
271
beakcolor = BrickColor.new("Really red")
272
273
ropecolor = BrickColor.new("Brown")
274
275
eyecolor = BrickColor.new("Bright blue")
276
277
elseif                                 ColorVariation == "Black" then
278
279
handlecolor = BrickColor.new("Black")
280
281
bcolor = BrickColor.new("Brown")
282
283
beakcolor = BrickColor.new("Bright orange")
284
285
ropecolor = BrickColor.new("Brown")
286
287
eyecolor = BrickColor.new("Bright blue")
288
289
elseif                                 ColorVariation == "Purple" then
290
291
handlecolor = BrickColor.new("Alder")
292
293
bcolor = BrickColor.new("Bright violet")
294
295
beakcolor = BrickColor.new("Bright orange")
296
297
ropecolor = BrickColor.new("Brown")
298
299
eyecolor = BrickColor.new("Bright blue")
300
301
elseif                                 ColorVariation == "Name" then
302
303
handlecolor =BrickColor.new("White")
304
305
bcolor = BrickColor.new("Bright orange")
306
307
beakcolor = BrickColor.new("Bright orange")
308
309
ropecolor = BrickColor.new("Brown")
310
311
eyecolor = BrickColor.new("Navy blue")
312
313
elseif                                 ColorVariation == "Orange" then
314
315
handlecolor =BrickColor.new("Neon orange")
316
317
bcolor = BrickColor.new("Brown")
318
319
beakcolor = BrickColor.new("Brown")
320
321
ropecolor = BrickColor.new("Bright yellow")
322
323
eyecolor = BrickColor.new("Royal purple")
324
325
elseif                                 ColorVariation == "DahNoob" then
326
327
handlecolor = BrickColor.new("Black")
328
329
bcolor = BrickColor.new("Medium stone grey") 
330
331
beakcolor = BrickColor.new("Medium stone grey")
332
333
ropecolor = BrickColor.new("Brown")
334
335
eyecolor = BrickColor.new("Really black")
336
337
elseif                                 ColorVariation == "Robloxshathelper" then
338
339
handlecolor = BrickColor.new("Bright blue")
340
341
bcolor = BrickColor.new("Bright orange") 
342
343
beakcolor = BrickColor.new("Bright orange")
344
345
ropecolor = BrickColor.new("Brown")
346
347
eyecolor = BrickColor.new("Bright blue")
348
349
else
350
351
--Custom
352
353
handlecolor =BrickColor.new("Bright blue")
354
355
bcolor = BrickColor.new("Medium blue")
356
357
beakcolor = BrickColor.new("Medium blue")
358
359
ropecolor = BrickColor.new("White")
360
361
end
362
363
364
Ride = true
365
366
Rope = true
367
368
369
370
ToolName = "Chocobo"
371
372
373
--------------------------------------------------------------------------------------------------------------------
374
-------------------
375
376
if Character:findFirstChild("EquippedVal",true) ~= nil then
377
378
Character:findFirstChild("EquippedVal",true).Parent = nil
379
380
end
381
382
ev = Instance.new("BoolValue",Character)
383
384
ev.Name = "EquippedVal"
385
386
ev.Value = false
387
388
if Character:findFirstChild("Block",true) ~= nil then
389
390
Character:findFirstChild("Block",true).Parent = nil
391
392
end
393
394
395
396
--player
397
398
player = nil
399
400
--welds
401
402
RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
403
404
--what anim
405
406
anim = "none"
407
408
--other var
409
410
player = Player
411
412
ch = Character
413
414
--save shoulders
415
416
AoETrue = {}
417
418
RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
419
420
421
422
function RWFunc()
423
424
        RW.Part1 = ch["Right Arm"]
425
426
        RSH.Part1 = nil
427
428
end
429
430
function LWFunc()
431
432
        LW.Part1 = ch["Left Arm"]
433
434
        LSH.Part1 = nil
435
436
end
437
438
function RWLFunc()
439
440
        RWL.Part1 = ch["Right Leg"]
441
442
        RHL.Part1 = nil
443
444
        RightLeg.CanCollide = false
445
446
end
447
448
449
function LWLFunc()
450
451
        LWL.Part1 = ch["Left Leg"]
452
453
        LHL.Part1 = nil
454
455
        LeftLeg.CanCollide = true
456
457
end
458
459
460
function RWLRem()
461
462
        RWL.Part1 = nil
463
464
        RHL.Part1 = ch["Right Leg"]
465
466
        RightLeg.CanCollide = false
467
468
end
469
470
function LWLRem()
471
472
        LWL.Part1 = nil
473
474
        LHL.Part1 = ch["Left Leg"]
475
476
        LeftLeg.CanCollide = false
477
478
end
479
480
function RWRem()
481
482
        RW.Part1 = nil
483
484
        RSH.Part1 = ch["Right Arm"]
485
486
end
487
488
function LWRem()
489
490
        LW.Part1 = nil
491
492
        LSH.Part1 = ch["Left Arm"]
493
494
end
495
496
497
498
499
500
if Character:findFirstChild(ModelName,true) ~= nil then
501
502
Character:findFirstChild(ModelName,true).Parent = nil
503
504
        RHL.Part1 = ch["Right Leg"]
505
506
        LHL.Part1 = ch["Left Leg"]
507
508
        RSH.Part1 = ch["Right Arm"]
509
510
        LSH.Part1 = ch["Left Arm"]
511
512
end
513
514
515
516
517
518
519
520
local swordholder = Instance.new("Model")
521
522
swordholder.Name = ModelName
523
524
swordholder.Parent = Character
525
526
527
--derp
528
529
        RW.Part0 = ch.Torso
530
531
        RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
532
533
        RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
534
535
        RW.Parent = swordholder
536
537
        --
538
539
        LW.Part0 = ch.Torso
540
541
        LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
542
543
        LW.C1 = CFrame.new(0, 0.5, 0)
544
545
        LW.Parent = swordholder
546
547
        --
548
549
        RWL.Part0 = ch.Torso
550
551
        RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
552
553
        RWL.C1 = CFrame.new(0.5, 1, 0)
554
555
        RWL.Parent = swordholder
556
557
        --
558
559
        LWL.Part0 = ch.Torso
560
561
        LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
562
563
        LWL.C1 = CFrame.new(-0.5, 1, 0)
564
565
        LWL.Parent = swordholder
566
567
568
569
570
571
local msh1 = Instance.new("SpecialMesh")
572
573
msh1.Scale = Vector3.new(1,1.2,1.2)
574
575
msh1.MeshType = "Sphere"
576
577
local msh2 = Instance.new("CylinderMesh")
578
579
local msh3 = Instance.new("CylinderMesh")
580
581
local msh4 = Instance.new("SpecialMesh")
582
583
msh4.Scale = Vector3.new(1,1,1)
584
585
msh4.MeshType = "Sphere"
586
587
local msh5 = Instance.new("SpecialMesh")
588
589
msh5.Scale = Vector3.new(1,0.75,1.2)
590
591
msh5.MeshId = "http://www.roblox.com/asset/?id=1778999"
592
593
local msh6 = Instance.new("SpecialMesh")
594
595
msh6.Scale = Vector3.new(1,1,1)
596
597
msh6.MeshType = "Sphere"
598
599
local msh7 = Instance.new("SpecialMesh")
600
601
msh7.Scale = Vector3.new(1,1,1)
602
603
msh7.MeshType = "Sphere"
604
605
local msh6a = Instance.new("SpecialMesh")
606
607
msh6a.Scale = Vector3.new(1,1,1)
608
609
msh6a.MeshType = "Sphere"
610
611
local msh7a = Instance.new("SpecialMesh")
612
613
msh7a.Scale = Vector3.new(1,1,1)
614
615
msh7a.MeshType = "Sphere"
616
617
local msh8 = Instance.new("SpecialMesh")
618
619
msh8.Scale = Vector3.new(1,1,1)
620
621
msh8.MeshType = "Sphere"
622
623
local msh9 = Instance.new("SpecialMesh")
624
625
msh9.Scale = Vector3.new(1,1,1)
626
627
msh9.MeshType = "Sphere"
628
629
local msh10 = Instance.new("SpecialMesh")
630
631
msh10.Scale = Vector3.new(1,1,1)
632
633
msh10.MeshType = "Sphere"
634
635
local msh11 = Instance.new("SpecialMesh")
636
637
msh11.Scale = Vector3.new(1,1,1)
638
639
msh11.MeshType = "Sphere"
640
641
local msh12 = Instance.new("SpecialMesh")
642
643
msh12.Scale = Vector3.new(1,1,1)
644
645
msh12.MeshType = "Sphere"
646
647
local msh13 = Instance.new("SpecialMesh")
648
649
msh13.Scale = Vector3.new(1,1,1)
650
651
msh13.MeshType = "Sphere"
652
653
local msh14 = Instance.new("SpecialMesh")
654
655
msh14.Scale = Vector3.new(1,1,1)
656
657
msh14.MeshType = "Sphere"
658
659
local msh15 = Instance.new("SpecialMesh")
660
661
msh15.Scale = Vector3.new(1,1,1)
662
663
msh15.MeshType = "Sphere"
664
665
local msh16 = Instance.new("SpecialMesh")
666
667
msh16.Scale = Vector3.new(1,1,1)
668
669
msh16.MeshType = "Sphere"
670
671
local msh17 = Instance.new("SpecialMesh")
672
673
msh17.Scale = Vector3.new(1,1,1)
674
675
msh17.MeshType = "Sphere"
676
677
local msh18 = Instance.new("SpecialMesh")
678
679
msh18.Scale = Vector3.new(1,1,1)
680
681
msh18.MeshType = "Sphere"
682
683
local msh19 = Instance.new("SpecialMesh")
684
685
msh19.Scale = Vector3.new(1,1,1)
686
687
msh19.MeshType = "Sphere"
688
689
local msh20 = Instance.new("SpecialMesh")
690
691
msh20.Scale = Vector3.new(1,1,1)
692
693
msh20.MeshType = "Sphere"
694
695
local msh21 = Instance.new("SpecialMesh")
696
697
msh21.Scale = Vector3.new(1,1,1)
698
699
msh21.MeshType = "Sphere"
700
701
local msh22 = Instance.new("CylinderMesh")
702
703
local msh23 = Instance.new("CylinderMesh")
704
705
local msh24 = Instance.new("BlockMesh")
706
707
local msh25 = Instance.new("BlockMesh")
708
709
local msh26 = Instance.new("BlockMesh")
710
711
local msh27 = Instance.new("BlockMesh")
712
713
local msh28 = Instance.new("CylinderMesh")
714
715
local msh29 = Instance.new("CylinderMesh")
716
717
local msh30 = Instance.new("BlockMesh")
718
719
local msh31 = Instance.new("BlockMesh")
720
721
local msh32 = Instance.new("BlockMesh")
722
723
local msh33 = Instance.new("BlockMesh")
724
725
726
local prt1 = Instance.new("Part")
727
728
prt1.formFactor = 3
729
730
prt1.CanCollide = true
731
732
prt1.Name = "ChocoboBody"
733
734
prt1.Locked = true
735
736
prt1.Size = Vector3.new(3.5,2.5,5) 
737
738
prt1.Parent = swordholder
739
740
msh1.Parent = prt1
741
742
prt1.BrickColor = handlecolor
743
744
local prt2 = Instance.new("Part")
745
746
prt2.formFactor = 3
747
748
prt2.CanCollide = true
749
750
prt2.Name = "ChocoboNeck"
751
752
prt2.Locked = true
753
754
prt2.Size = Vector3.new(1.25,2,1.25)
755
756
prt2.Parent = swordholder
757
758
msh2.Parent = prt2
759
760
prt2.BrickColor = handlecolor
761
762
local prt3 = Instance.new("Part")
763
764
prt3.formFactor = 3
765
766
prt3.CanCollide = true
767
768
prt3.Name = "ChocoboNeck2"
769
770
prt3.Locked = true
771
772
prt3.Size = Vector3.new(1.25,2,1.25)
773
774
prt3.Parent = swordholder
775
776
msh3.Parent = prt3
777
778
prt3.BrickColor = handlecolor
779
780
local prt3a = Instance.new("Part")
781
782
prt3a.formFactor = 3
783
784
prt3a.CanCollide = false
785
786
prt3a.Name = "ChocoboNeck2Joint"
787
788
prt3a.Locked = true
789
790
prt3a.Size = Vector3.new(0.2,0.2,0.2)
791
792
prt3a.Parent = swordholder
793
794
prt3a.Transparency = 1
795
796
local prt4 = Instance.new("Part")
797
798
prt4.formFactor = 3
799
800
prt4.CanCollide = true
801
802
prt4.Name = "Head"
803
804
prt4.Locked = true 
805
806
prt4.Size = Vector3.new(2,2,3)
807
808
prt4.Parent = swordholder
809
810
msh4.Parent = prt4 
811
812
prt4.BrickColor = handlecolor
813
814
local trs = Instance.new("Part")
815
816
trs.formFactor = 3
817
818
trs.CanCollide = true
819
820
trs.Name = "Torso"
821
822
trs.Locked = true 
823
824
trs.Size = Vector3.new(0.2,0.2,0.2)
825
826
trs.Parent = swordholder
827
828
trs.Transparency = 1
829
830
local wt = Instance.new("Weld")
831
832
wt.Parent = trs
833
834
wt.Part0 = trs
835
836
wt.Part1 = prt4
837
838
wt.C0 = CFrame.Angles(math.rad(25),0,0)
839
840
local prt5 = Instance.new("Part")
841
842
prt5.formFactor = 3
843
844
prt5.CanCollide = false
845
846
prt5.Name = "Beak"
847
848
prt5.Locked = true
849
850
prt5.Size = Vector3.new(1,1.5,1)
851
852
prt5.Parent = swordholder
853
854
msh5.Parent = prt5
855
856
prt5.BrickColor = beakcolor
857
858
859
local prt6 = Instance.new("Part")
860
861
prt6.formFactor = 3
862
863
prt6.CanCollide = false
864
865
prt6.Name = "Eye1"
866
867
prt6.Locked = true
868
869
prt6.Size = Vector3.new(0.3,0.3,0.6)
870
871
prt6.Parent = swordholder
872
873
msh6.Parent = prt6
874
875
prt6.BrickColor = BrickColor.new("White")
876
877
local prt7 = Instance.new("Part")
878
879
prt7.formFactor = 3
880
881
prt7.CanCollide = false
882
883
prt7.Name = "Eye2"
884
885
prt7.Locked = true
886
887
prt7.Size = Vector3.new(0.3,0.3,0.6)
888
889
prt7.Parent = swordholder
890
891
msh7.Parent = prt7
892
893
prt7.BrickColor = BrickColor.new("White")
894
895
local prt6a = Instance.new("Part")
896
897
prt6a.formFactor = 3
898
899
prt6a.CanCollide = false
900
901
prt6a.Name = "Eye1a"
902
903
prt6a.Locked = true
904
905
prt6a.Size = Vector3.new(0.2,0.2,0.3)
906
907
prt6a.Parent = swordholder
908
909
msh6a.Parent = prt6a
910
911
prt6a.BrickColor = eyecolor
912
913
local prt7a = Instance.new("Part")
914
915
prt7a.formFactor = 3
916
917
prt7a.CanCollide = false
918
919
prt7a.Name = "Eye2a"
920
921
prt7a.Locked = true
922
923
prt7a.Size = Vector3.new(0.2,0.2,0.3)
924
925
prt7a.Parent = swordholder
926
927
msh7a.Parent = prt7a
928
929
prt7a.BrickColor = eyecolor
930
931
932
local prt8 = Instance.new("Part")
933
934
prt8.formFactor = 3
935
936
prt8.CanCollide = false
937
938
prt8.Name = "HeadFeathers" 
939
940
prt8.Locked = true
941
942
prt8.Size = Vector3.new(1,0.2,3)
943
944
prt8.Parent = swordholder
945
946
msh8.Parent = prt8
947
948
prt8.BrickColor = handlecolor
949
950
local prt9 = Instance.new("Part")
951
952
prt9.formFactor = 3
953
954
prt9.CanCollide = false
955
956
prt9.Name = "HeadFeathers"
957
958
prt9.Locked = true
959
960
prt9.Size = Vector3.new(1,0.2,3)
961
962
prt9.Parent = swordholder
963
964
msh9.Parent = prt9
965
966
prt9.BrickColor = handlecolor 
967
968
local prt10 = Instance.new("Part")
969
970
prt10.formFactor = 3
971
972
prt10.CanCollide = false
973
974
prt10.Name = "HeadFeathers"
975
976
prt10.Locked = true
977
978
prt10.Size = Vector3.new(1,0.2,3)
979
980
prt10.Parent = swordholder
981
982
msh10.Parent = prt10
983
984
prt10.BrickColor = handlecolor
985
986
987
--Wings!!
988
989
local prt11 = Instance.new("Part")
990
991
prt11.formFactor = 3
992
993
prt11.CanCollide = false
994
995
prt11.Name = "RightWing"
996
997
prt11.Locked = true
998
999
prt11.Size = Vector3.new(1,3,5)
1000
1001
prt11.Parent = swordholder
1002
1003
msh11.Parent = prt11
1004
1005
prt11.BrickColor = handlecolor
1006
1007
local prt12 = Instance.new("Part")
1008
1009
prt12.formFactor = 3
1010
1011
prt12.CanCollide = false
1012
1013
prt12.Name = "RightWing1"
1014
1015
prt12.Locked = true
1016
1017
prt12.Size = Vector3.new(0.5,1,2)
1018
1019
prt12.Parent = swordholder
1020
1021
msh12.Parent = prt12
1022
1023
prt12.BrickColor = handlecolor
1024
1025
local prt13 = Instance.new("Part")
1026
1027
prt13.formFactor = 3
1028
1029
prt13.CanCollide = false
1030
1031
prt13.Name = "RightWing2"
1032
1033
prt13.Locked = true
1034
1035
prt13.Size = Vector3.new(0.5,1,2)
1036
1037
prt13.Parent = swordholder
1038
1039
msh13.Parent = prt13
1040
1041
prt13.BrickColor = handlecolor
1042
1043
local prt14 = Instance.new("Part")
1044
1045
prt14.formFactor = 3
1046
1047
prt14.CanCollide = false
1048
1049
prt14.Name = "RightWing3"
1050
1051
prt14.Locked = true
1052
1053
prt14.Size = Vector3.new(0.5,1,2)
1054
1055
prt14.Parent = swordholder
1056
1057
msh14.Parent = prt14
1058
1059
prt14.BrickColor = handlecolor
1060
1061
local prt15 = Instance.new("Part")
1062
1063
prt15.formFactor = 3
1064
1065
prt15.CanCollide = false
1066
1067
prt15.Name = "RightWing4"
1068
1069
prt15.Locked = true
1070
1071
prt15.Size = Vector3.new(0.5,1,2)
1072
1073
prt15.Parent = swordholder
1074
1075
msh15.Parent = prt15
1076
1077
prt15.BrickColor = handlecolor
1078
1079
1080
local prt16 = Instance.new("Part")
1081
1082
prt16.formFactor = 3
1083
1084
prt16.CanCollide = false
1085
1086
prt16.Name = "LeftWing"
1087
1088
prt16.Locked = true
1089
1090
prt16.Size = Vector3.new(1,3,5)
1091
1092
prt16.Parent = swordholder
1093
1094
msh16.Parent = prt16
1095
1096
prt16.BrickColor = handlecolor
1097
1098
local prt17 = Instance.new("Part")
1099
1100
prt17.formFactor = 3
1101
1102
prt17.CanCollide = false
1103
1104
prt17.Name = "LeftWing1"
1105
1106
prt17.Locked = true
1107
1108
prt17.Size = Vector3.new(0.5,1,2)
1109
1110
prt17.Parent = swordholder
1111
1112
msh17.Parent = prt17
1113
1114
prt17.BrickColor = handlecolor
1115
1116
local prt18 = Instance.new("Part")
1117
1118
prt18.formFactor = 3
1119
1120
prt18.CanCollide = false
1121
1122
prt18.Name = "LeftWing2"
1123
1124
prt18.Locked = true
1125
1126
prt18.Size = Vector3.new(0.5,1,2)
1127
1128
prt18.Parent = swordholder
1129
1130
msh18.Parent = prt18
1131
1132
prt18.BrickColor = handlecolor
1133
1134
local prt19 = Instance.new("Part") 
1135
1136
prt19.formFactor = 3
1137
1138
prt19.CanCollide = false
1139
1140
prt19.Name = "LeftWing3"
1141
1142
prt19.Locked = true
1143
1144
prt19.Size = Vector3.new(0.5,1,2)
1145
1146
prt19.Parent = swordholder
1147
1148
msh19.Parent = prt19
1149
1150
prt19.BrickColor = handlecolor
1151
1152
local prt20 = Instance.new("Part")
1153
1154
prt20.formFactor = 3
1155
1156
prt20.CanCollide = false
1157
1158
prt20.Name = "LeftWing4"
1159
1160
prt20.Locked = true
1161
1162
prt20.Size = Vector3.new(0.5,1,2)
1163
1164
prt20.Parent = swordholder
1165
1166
msh20.Parent = prt20
1167
1168
prt20.BrickColor = handlecolor
1169
1170
1171
--Tail
1172
1173
local prt21 = Instance.new("Part")
1174
1175
prt21.formFactor = 3
1176
1177
prt21.CanCollide = false
1178
1179
prt21.Name = "Tail"
1180
1181
prt21.Locked = true
1182
1183
prt21.Size = Vector3.new(3,6,1)
1184
1185
prt21.Parent = swordholder
1186
1187
msh21.Parent = prt21
1188
1189
prt21.BrickColor = handlecolor
1190
1191
1192
--Legs
1193
1194
local prt22 = Instance.new("Part")
1195
1196
prt22.formFactor = 3
1197
1198
prt22.CanCollide = true
1199
1200
prt22.Name = "RightLeg"
1201
1202
prt22.Locked = true
1203
1204
prt22.Size = Vector3.new(1,2,1)
1205
1206
prt22.Parent = swordholder
1207
1208
msh22.Parent = prt22
1209
1210
prt22.BrickColor = handlecolor
1211
1212
local prt22a = Instance.new("Part")
1213
1214
prt22a.formFactor = 3
1215
1216
prt22a.CanCollide = false
1217
1218
prt22a.Name = "RightLega"
1219
1220
prt22a.Locked = true
1221
1222
prt22a.Size = Vector3.new(0.2,0.2,0.2)
1223
1224
prt22a.Parent = swordholder
1225
1226
prt22a.Transparency = 1
1227
1228
local prt23 = Instance.new("Part")
1229
1230
prt23.formFactor = 3
1231
1232
prt23.CanCollide = false
1233
1234
prt23.Name = "RightLeg2"
1235
1236
prt23.Locked = true
1237
1238
prt23.Size = Vector3.new(0.75,2,0.75)
1239
1240
prt23.Parent = swordholder
1241
1242
msh23.Parent = prt23
1243
1244
prt23.BrickColor = bcolor
1245
1246
local prt24 = Instance.new("Part")
1247
1248
prt24.formFactor = 3
1249
1250
prt24.CanCollide = false
1251
1252
prt24.Name = "RightFeet"
1253
1254
prt24.Locked = true
1255
1256
prt24.Size = Vector3.new(1,0.75,2.5)
1257
1258
prt24.Parent = swordholder
1259
1260
msh24.Parent = prt24
1261
1262
prt24.BrickColor = bcolor
1263
1264
local prt25 = Instance.new("Part")
1265
1266
prt25.formFactor = 3
1267
1268
prt25.CanCollide = false
1269
1270
prt25.Name = "RightFeet1"
1271
1272
prt25.Locked = true 
1273
1274
prt25.Size = Vector3.new(0.3,0.3,1.5)
1275
1276
prt25.Parent = swordholder
1277
1278
msh25.Parent = prt25
1279
1280
prt25.BrickColor = bcolor
1281
1282
local prt26 = Instance.new("Part")
1283
1284
prt26.formFactor = 3
1285
1286
prt26.CanCollide = false
1287
1288
prt26.Name = "RightFeet2"
1289
1290
prt26.Locked = true 
1291
1292
prt26.Size = Vector3.new(0.5,0.5,1.5)
1293
1294
prt26.Parent = swordholder
1295
1296
msh26.Parent = prt26
1297
1298
prt26.BrickColor = bcolor
1299
1300
local prt27 = Instance.new("Part")
1301
1302
prt27.formFactor = 3
1303
1304
prt27.CanCollide = false
1305
1306
prt27.Name = "RightFeet3"
1307
1308
prt27.Locked = true 
1309
1310
prt27.Size = Vector3.new(0.5,0.5,1.5)
1311
1312
prt27.Parent = swordholder
1313
1314
msh27.Parent = prt27
1315
1316
prt27.BrickColor = bcolor
1317
1318
1319
local prt28 = Instance.new("Part")
1320
1321
prt28.formFactor = 3
1322
1323
prt28.CanCollide = true
1324
1325
prt28.Name = "LeftLeg"
1326
1327
prt28.Locked = true
1328
1329
prt28.Size = Vector3.new(1,2,1)
1330
1331
prt28.Parent = swordholder
1332
1333
msh28.Parent = prt28
1334
1335
prt28.BrickColor = handlecolor
1336
1337
local prt28a = Instance.new("Part")
1338
1339
prt28a.formFactor = 3
1340
1341
prt28a.CanCollide = false
1342
1343
prt28a.Name = "LeftLega"
1344
1345
prt28a.Locked = true
1346
1347
prt28a.Size = Vector3.new(0.2,0.2,0.2)
1348
1349
prt28a.Parent = swordholder
1350
1351
prt28a.Transparency = 1
1352
1353
local prt29 = Instance.new("Part")
1354
1355
prt29.formFactor = 3
1356
1357
prt29.CanCollide = false
1358
1359
prt29.Name = "LeftLeg2"
1360
1361
prt29.Locked = true
1362
1363
prt29.Size = Vector3.new(0.75,2,0.75)
1364
1365
prt29.Parent = swordholder
1366
1367
msh29.Parent = prt29
1368
1369
prt29.BrickColor = bcolor
1370
1371
local prt30 = Instance.new("Part")
1372
1373
prt30.formFactor = 3
1374
1375
prt30.CanCollide = false
1376
1377
prt30.Name = "LeftFeet"
1378
1379
prt30.Locked = true
1380
1381
prt30.Size = Vector3.new(1,0.75,2.5)
1382
1383
prt30.Parent = swordholder
1384
1385
msh30.Parent = prt30
1386
1387
prt30.BrickColor = bcolor
1388
1389
local prt31 = Instance.new("Part")
1390
1391
prt31.formFactor = 3
1392
1393
prt31.CanCollide = false
1394
1395
prt31.Name = "LeftFeet1"
1396
1397
prt31.Locked = true 
1398
1399
prt31.Size = Vector3.new(0.3,0.3,1.5)
1400
1401
prt31.Parent = swordholder
1402
1403
msh31.Parent = prt31
1404
1405
prt31.BrickColor = bcolor
1406
1407
local prt32 = Instance.new("Part")
1408
1409
prt32.formFactor = 3
1410
1411
prt32.CanCollide = false
1412
1413
prt32.Name = "LeftFeet2"
1414
1415
prt32.Locked = true 
1416
1417
prt32.Size = Vector3.new(0.5,0.5,1.5)
1418
1419
prt32.Parent = swordholder
1420
1421
msh32.Parent = prt32
1422
1423
prt32.BrickColor = bcolor
1424
1425
local prt33 = Instance.new("Part")
1426
1427
prt33.formFactor = 3
1428
1429
prt33.CanCollide = false
1430
1431
prt33.Name = "RightFeet3"
1432
1433
prt33.Locked = true 
1434
1435
prt33.Size = Vector3.new(0.5,0.5,1.5)
1436
1437
prt33.Parent = swordholder
1438
1439
msh33.Parent = prt33
1440
1441
prt33.BrickColor = bcolor
1442
1443
1444
--Backseat :D
1445
1446
local prt34 = Instance.new("Seat")
1447
1448
prt34.formFactor = 3
1449
1450
prt34.CanCollide = false
1451
1452
prt34.Name = "Backseat"
1453
1454
prt34.Locked = true 
1455
1456
prt34.Size = Vector3.new(0.2,1,0.2)
1457
1458
prt34.Parent = swordholder
1459
1460
prt34.Transparency = 1
1461
1462
1463
--
1464
1465
local prt35 = Instance.new("Part")
1466
1467
prt35.formFactor = 3
1468
1469
prt35.CanCollide = true
1470
1471
prt35.Name = "Stand"
1472
1473
prt35.Locked = true 
1474
1475
prt35.Size = Vector3.new(1,4,1)
1476
1477
prt35.Parent = swordholder
1478
1479
prt35.Transparency = 1
1480
1481
local w35 = Instance.new("Weld")
1482
1483
w35.Parent = prt35
1484
1485
w35.Part0 = prt35
1486
1487
w35.Part1 = prt1
1488
1489
w35.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1490
1491
w35.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 2,0)  
1492
1493
1494
--Torso
1495
1496
local w1 = Instance.new("Weld")
1497
1498
w1.Parent = prt1 
1499
1500
w1.Part0 = prt1
1501
1502
w1.Part1 = Torso 
1503
1504
w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), math.rad(0)) * CFrame.new(0, 0,0)
1505
1506
w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-0), math.rad(0)) * CFrame.new(0, 3, -1)
1507
1508
--Neck
1509
1510
local w2 = Instance.new("Weld")
1511
1512
w2.Parent = prt2
1513
1514
w2.Part0 = prt2
1515
1516
w2.Part1 = prt1
1517
1518
w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
1519
1520
w2.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(0, -1,2.5)
1521
1522
local w3a = Instance.new("Weld")
1523
1524
w3a.Parent = prt3a
1525
1526
w3a.Part0 = prt3a
1527
1528
w3a.Part1 = prt1
1529
1530
w3a.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0) 
1531
1532
w3a.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -1.5,3)
1533
1534
local w3 = Instance.new("Weld")
1535
1536
w3.Parent = prt3
1537
1538
w3.Part0 = prt3
1539
1540
w3.Part1 = prt3a
1541
1542
w3.C1 = CFrame.Angles(math.rad(-20), 0, 0) * CFrame.new(0, 0.465,0) 
1543
1544
w3.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.465,0)
1545
1546
--Head
1547
1548
local w4 = Instance.new("Weld")
1549
1550
w4.Parent = prt4
1551
1552
w4.Part0 = prt4
1553
1554
w4.Part1 = prt3
1555
1556
w4.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0) 
1557
1558
w4.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -2.5/2,0.25)
1559
1560
local w5 = Instance.new("Weld")
1561
1562
w5.Parent = prt5 
1563
1564
w5.Part0 = prt5
1565
1566
w5.Part1 = prt4
1567
1568
w5.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0) 
1569
1570
w5.C0 = CFrame.Angles(math.rad(100), 0, 0) * CFrame.new(0, 0.25,1.45)
1571
1572
local w6 = Instance.new("Weld")
1573
1574
w6.Parent = prt6
1575
1576
w6.Part0 = prt6
1577
1578
w6.Part1 = prt4
1579
1580
w6.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0) 
1581
1582
w6.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0.75, -0.25,0.75)
1583
1584
local w7 = Instance.new("Weld")
1585
1586
w7.Parent = prt7
1587
1588
w7.Part0 = prt7
1589
1590
w7.Part1 = prt4
1591
1592
w7.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0) 
1593
1594
w7.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(-0.75, -0.25,0.75)
1595
1596
local w6a = Instance.new("Weld")
1597
1598
w6a.Parent = prt6a
1599
1600
w6a.Part0 = prt6a
1601
1602
w6a.Part1 = prt4
1603
1604
w6a.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0) 
1605
1606
w6a.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0.775, -0.25,0.91)
1607
1608
local w7a = Instance.new("Weld")
1609
1610
w7a.Parent = prt7a
1611
1612
w7a.Part0 = prt7a
1613
1614
w7a.Part1 = prt4
1615
1616
w7a.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0) 
1617
1618
w7a.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(-0.775, -0.25,0.91)
1619
1620
local w8 = Instance.new("Weld")
1621
1622
w8.Parent = prt8
1623
1624
w8.Part0 = prt8
1625
1626
w8.Part1 = prt4
1627
1628
w8.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0) 
1629
1630
w8.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.9,-1)
1631
1632
local w9 = Instance.new("Weld")
1633
1634
w9.Parent = prt9
1635
1636
w9.Part0 = prt9
1637
1638
w9.Part1 = prt4
1639
1640
w9.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0) 
1641
1642
w9.C0 = CFrame.Angles(math.rad(0), math.rad(20), math.rad(-40)) * CFrame.new(0.75, -0.5,-1)
1643
1644
local w10 = Instance.new("Weld")
1645
1646
w10.Parent = prt10
1647
1648
w10.Part0 = prt10
1649
1650
w10.Part1 = prt4
1651
1652
w10.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1653
1654
w10.C0 = CFrame.Angles(math.rad(0), math.rad(-20), math.rad(40)) * CFrame.new(-0.75, -0.5,-1)
1655
1656
--Right Wing
1657
1658
local w11 = Instance.new("Weld")
1659
1660
w11.Parent = prt11
1661
1662
w11.Part0 = prt11
1663
1664
w11.Part1 = prt1
1665
1666
w11.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1667
1668
w11.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(-1.5, 0,0)
1669
1670
local w12 = Instance.new("Weld")
1671
1672
w12.Parent = prt12
1673
1674
w12.Part0 = prt12
1675
1676
w12.Part1 = prt11
1677
1678
w12.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1679
1680
w12.C0 = CFrame.Angles(math.rad(45), math.rad(0), math.rad(0)) * CFrame.new(0, 0,-2.5)
1681
1682
local w13 = Instance.new("Weld")
1683
1684
w13.Parent = prt13
1685
1686
w13.Part0 = prt13
1687
1688
w13.Part1 = prt11
1689
1690
w13.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1691
1692
w13.C0 = CFrame.Angles(math.rad(55), math.rad(0), math.rad(0)) * CFrame.new(0, -0.25,-2.25)
1693
1694
local w14 = Instance.new("Weld")
1695
1696
w14.Parent = prt14
1697
1698
w14.Part0 = prt14
1699
1700
w14.Part1 = prt11
1701
1702
w14.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1703
1704
w14.C0 = CFrame.Angles(math.rad(65), math.rad(0), math.rad(0)) * CFrame.new(0, -0.5,-2)
1705
1706
local w15 = Instance.new("Weld")
1707
1708
w15.Parent = prt15
1709
1710
w15.Part0 = prt15
1711
1712
w15.Part1 = prt11
1713
1714
w15.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1715
1716
w15.C0 = CFrame.Angles(math.rad(75), math.rad(0), math.rad(0)) * CFrame.new(0, -0.75,-1.5)
1717
1718
--Left Wing
1719
1720
local w16 = Instance.new("Weld")
1721
1722
w16.Parent = prt16
1723
1724
w16.Part0 = prt16
1725
1726
w16.Part1 = prt1
1727
1728
w16.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1729
1730
w16.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(1.5, 0,0)
1731
1732
local w17 = Instance.new("Weld")
1733
1734
w17.Parent = prt17
1735
1736
w17.Part0 = prt17
1737
1738
w17.Part1 = prt16
1739
1740
w17.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1741
1742
w17.C0 = CFrame.Angles(math.rad(45), math.rad(0), math.rad(0)) * CFrame.new(0, 0,-2.5)
1743
1744
local w18 = Instance.new("Weld")
1745
1746
w18.Parent = prt18
1747
1748
w18.Part0 = prt18
1749
1750
w18.Part1 = prt16
1751
1752
w18.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1753
1754
w18.C0 = CFrame.Angles(math.rad(55), math.rad(0), math.rad(0)) * CFrame.new(0, -0.25,-2.25)
1755
1756
local w19 = Instance.new("Weld")
1757
1758
w19.Parent = prt19
1759
1760
w19.Part0 = prt19
1761
1762
w19.Part1 = prt16
1763
1764
w19.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1765
1766
w19.C0 = CFrame.Angles(math.rad(65), math.rad(0), math.rad(0)) * CFrame.new(0, -0.5,-2)
1767
1768
local w20 = Instance.new("Weld")
1769
1770
w20.Parent = prt20
1771
1772
w20.Part0 = prt20
1773
1774
w20.Part1 = prt16
1775
1776
w20.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1777
1778
w20.C0 = CFrame.Angles(math.rad(75), math.rad(0), math.rad(0)) * CFrame.new(0, -0.75,-1.5)
1779
1780
--Tail
1781
1782
local w21 = Instance.new("Weld")
1783
1784
w21.Parent = prt21 
1785
1786
w21.Part0 = prt21
1787
1788
w21.Part1 = prt1
1789
1790
w21.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1791
1792
w21.C0 = CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)) * CFrame.new(0, -1.5,-3.5)
1793
1794
--Right Leg
1795
1796
local w22 = Instance.new("Weld")
1797
1798
w22.Parent = prt22
1799
1800
w22.Part0 = prt22
1801
1802
w22.Part1 = prt1
1803
1804
w22.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1805
1806
w22.C0 = CFrame.Angles(math.rad(20), math.rad(10), math.rad(0)) * CFrame.new(-0.75, 1.5,0) 
1807
1808
local w22a = Instance.new("Weld")
1809
1810
w22a.Parent = prt22a
1811
1812
w22a.Part0 = prt22a
1813
1814
w22a.Part1 = prt22
1815
1816
w22a.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1817
1818
w22a.C0 = CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)) * CFrame.new(0, 1,0) 
1819
1820
local w23 = Instance.new("Weld")
1821
1822
w23.Parent = prt23
1823
1824
w23.Part0 = prt23
1825
1826
w23.Part1 = prt22a
1827
1828
w23.C1 = CFrame.Angles(math.rad(80), 0, 0) * CFrame.new(0, -0.25,0)  
1829
1830
w23.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2) 
1831
1832
local w24 = Instance.new("Weld")
1833
1834
w24.Parent = prt24
1835
1836
w24.Part0 = prt24
1837
1838
w24.Part1 = prt23
1839
1840
w24.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
1841
1842
w24.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
1843
1844
local w25 = Instance.new("Weld")
1845
1846
w25.Parent = prt25
1847
1848
w25.Part0 = prt25
1849
1850
w25.Part1 = prt24
1851
1852
w25.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1853
1854
w25.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.1,-1.5) 
1855
1856
local w26 = Instance.new("Weld")
1857
1858
w26.Parent = prt26
1859
1860
w26.Part0 = prt26
1861
1862
w26.Part1 = prt24
1863
1864
w26.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1865
1866
w26.C0 = CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)) * CFrame.new(-0.75, 0.1,1.5) 
1867
1868
local w27 = Instance.new("Weld")
1869
1870
w27.Parent = prt27
1871
1872
w27.Part0 = prt27
1873
1874
w27.Part1 = prt24
1875
1876
w27.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1877
1878
w27.C0 = CFrame.Angles(math.rad(0), math.rad(-45), math.rad(0)) * CFrame.new(0.75, 0.1,1.5)  
1879
1880
--Left Leg
1881
1882
local w28 = Instance.new("Weld")
1883
1884
w28.Parent = prt28
1885
1886
w28.Part0 = prt28
1887
1888
w28.Part1 = prt1
1889
1890
w28.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1891
1892
w28.C0 = CFrame.Angles(math.rad(20), math.rad(-10), math.rad(0)) * CFrame.new(0.75, 1.5,0) 
1893
1894
local w28a = Instance.new("Weld")
1895
1896
w28a.Parent = prt28a
1897
1898
w28a.Part0 = prt28a
1899
1900
w28a.Part1 = prt28
1901
1902
w28a.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1903
1904
w28a.C0 = CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)) * CFrame.new(0, 1,0) 
1905
1906
local w29 = Instance.new("Weld")
1907
1908
w29.Parent = prt29
1909
1910
w29.Part0 = prt29
1911
1912
w29.Part1 = prt28a
1913
1914
w29.C1 = CFrame.Angles(math.rad(80), 0, 0) * CFrame.new(0, -0.25,0)  
1915
1916
w29.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2) 
1917
1918
local w30 = Instance.new("Weld")
1919
1920
w30.Parent = prt30
1921
1922
w30.Part0 = prt30
1923
1924
w30.Part1 = prt29
1925
1926
w30.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
1927
1928
w30.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
1929
1930
local w31 = Instance.new("Weld")
1931
1932
w31.Parent = prt31
1933
1934
w31.Part0 = prt31
1935
1936
w31.Part1 = prt30
1937
1938
w31.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1939
1940
w31.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.1,-1.5) 
1941
1942
local w32 = Instance.new("Weld")
1943
1944
w32.Parent = prt32
1945
1946
w32.Part0 = prt32
1947
1948
w32.Part1 = prt30
1949
1950
w32.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1951
1952
w32.C0 = CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)) * CFrame.new(-0.75, 0.1,1.5) 
1953
1954
local w33 = Instance.new("Weld")
1955
1956
w33.Parent = prt33
1957
1958
w33.Part0 = prt33
1959
1960
w33.Part1 = prt30
1961
1962
w33.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1963
1964
w33.C0 = CFrame.Angles(math.rad(0), math.rad(-45), math.rad(0)) * CFrame.new(0.75, 0.1,1.5) 
1965
1966
--Backseat 
1967
1968
local w34 = Instance.new("Weld")
1969
1970
w34.Parent = prt1
1971
1972
w34.Part0 = prt34
1973
1974
w34.Part1 = prt1
1975
1976
w34.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
1977
1978
w34.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, -1,-1.5)  
1979
1980
if Alive then
1981
1982
local hum = Instance.new("Humanoid")
1983
1984
hum.Parent = swordholder
1985
1986
hum.MaxHealth = ChocoboHP
1987
1988
hum.Health = ChocoboHP
1989
1990
hum.PlatformStand = true
1991
1992
end
1993
1994
1995
local w36 = Instance.new("Weld")
1996
1997
local w37 = Instance.new("Weld")
1998
1999
--[[if Rope then
2000
2001
local msh36 = Instance.new("BlockMesh")
2002
2003
local prt36 = Instance.new("Part")
2004
2005
prt36.formFactor = 3
2006
2007
prt36.CanCollide = true
2008
2009
prt36.Name = "MouthRope"
2010
2011
prt36.Locked = true 
2012
2013
prt36.Size = Vector3.new(1,0.2,0.2)
2014
2015
prt36.Parent = swordholder
2016
2017
msh36.Parent = prt36
2018
2019
prt36.BrickColor = ropecolor
2020
2021
w36.Parent = prt36
2022
2023
w36.Part0 = prt36
2024
2025
w36.Part1 = prt5
2026
2027
w36.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
2028
2029
w36.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0,0)  
2030
2031
local msh37 = Instance.new("BlockMesh")
2032
2033
local prt37 = Instance.new("Part")
2034
2035
prt37.formFactor = 3
2036
2037
prt37.CanCollide = true
2038
2039
prt37.Name = "MouthRope2"
2040
2041
prt37.Locked = true 
2042
2043
prt37.Size = Vector3.new(3,0.2,0.2)
2044
2045
prt37.Parent = swordholder
2046
2047
msh37.Parent = prt37
2048
2049
prt37.BrickColor = ropecolor
2050
2051
w37.Parent = prt37
2052
2053
w37.Part0 = prt37
2054
2055
w37.Part1 = Torso
2056
2057
w37.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
2058
2059
w37.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0,-1)  
2060
2061
local prt38a = Instance.new("Part")
2062
2063
prt38a.formFactor = 3
2064
2065
prt38a.CanCollide = false
2066
2067
prt38a.Name = "MouthRope3Joint"
2068
2069
prt38a.Locked = true 
2070
2071
prt38a.Size = Vector3.new(0.2,0.2,0.2)
2072
2073
prt38a.Parent = swordholder
2074
2075
prt38a.Transparency = 1
2076
2077
local w38a = Instance.new("Weld")
2078
2079
w38a.Parent = prt38a
2080
2081
w38a.Part0 = prt38a
2082
2083
w38a.Part1 = prt3
2084
2085
w38a.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
2086
2087
w38a.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0.5, 1.5,0.5)  
2088
2089
local prt39a = Instance.new("Part")
2090
2091
prt39a.formFactor = 3 
2092
2093
prt39a.CanCollide = false
2094
2095
prt39a.Name = "MouthRope4Joint"
2096
2097
prt39a.Locked = true 
2098
2099
prt39a.Size = Vector3.new(0.2,0.2,0.2)
2100
2101
prt39a.Parent = swordholder
2102
2103
prt39a.Transparency = 1
2104
2105
local w39a = Instance.new("Weld")
2106
2107
w39a.Parent = prt39a
2108
2109
w39a.Part0 = prt39a
2110
2111
w39a.Part1 = prt3
2112
2113
w39a.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
2114
2115
w39a.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(-0.5, 1.5,0.5)  
2116
2117
local msh38 = Instance.new("BlockMesh")
2118
2119
local prt38 = Instance.new("Part")
2120
2121
prt38.formFactor = 3
2122
2123
prt38.Name = "MouthRope3"
2124
2125
prt38.Locked = true 
2126
2127
prt38.Size = Vector3.new(0.2,0.2,0.2)
2128
2129
prt38.Parent = swordholder
2130
2131
msh38.Parent = prt38
2132
2133
prt38.BrickColor = ropecolor
2134
2135
prt38.CanCollide = false
2136
2137
prt38.Anchored = true
2138
2139
local msh39 = Instance.new("BlockMesh")
2140
2141
local prt39 = Instance.new("Part")
2142
2143
prt39.formFactor = 3
2144
2145
prt39.Name = "MouthRope4"
2146
2147
prt39.Locked = true 
2148
2149
prt39.Size = Vector3.new(0.2,0.2,0.2)
2150
2151
prt39.Parent = swordholder
2152
2153
msh39.Parent = prt39
2154
2155
prt39.BrickColor = ropecolor
2156
2157
prt39.CanCollide = false
2158
2159
prt39.Anchored = true
2160
2161
local msh40 = Instance.new("BlockMesh")
2162
2163
local prt40 = Instance.new("Part")
2164
2165
prt40.formFactor = 3
2166
2167
prt40.Name = "MouthRope5"
2168
2169
prt40.Locked = true 
2170
2171
prt40.Size = Vector3.new(0.2,0.2,0.2)
2172
2173
prt40.Parent = swordholder
2174
2175
msh40.Parent = prt40
2176
2177
prt40.BrickColor = ropecolor
2178
2179
prt40.CanCollide = false
2180
2181
prt40.Anchored = true
2182
2183
local msh41 = Instance.new("BlockMesh")
2184
2185
local prt41 = Instance.new("Part")
2186
2187
prt41.formFactor = 3
2188
2189
prt41.Name = "MouthRope6"
2190
2191
prt41.Locked = true 
2192
2193
prt41.Size = Vector3.new(0.2,0.2,0.2)
2194
2195
prt41.Parent = swordholder
2196
2197
msh41.Parent = prt41
2198
2199
prt41.BrickColor = ropecolor
2200
2201
prt41.CanCollide = false
2202
2203
prt41.Anchored = true
2204
2205
coroutine.resume(coroutine.create(function()
2206
2207
repeat
2208
2209
wait()
2210
2211
local ll = prt37.CFrame * CFrame.new(prt37.Size.x/-2,0,0)
2212
2213
local rr = prt37.CFrame * CFrame.new(prt37.Size.x/2,0,0)
2214
2215
local oristrpos1 = prt38a.CFrame
2216
2217
local oristrpos2 = prt39a.CFrame
2218
2219
local oristrpos3 = prt36.CFrame*CFrame.new((prt36.Size.x/-2)+0.1,0,0)
2220
2221
local oristrpos4 = prt36.CFrame*CFrame.new((prt36.Size.x/2)-0.1,0,0)
2222
2223
local mg1 = (ll.p - oristrpos1.p).magnitude
2224
2225
local mg2 = (rr.p - oristrpos2.p).magnitude
2226
2227
local mg3 = (oristrpos1.p - oristrpos3.p).magnitude
2228
2229
local mg4 = (oristrpos2.p - oristrpos4.p).magnitude
2230
2231
prt38.Size = Vector3.new(0.2,mg1,0.2) 
2232
2233
prt38.CFrame = CFrame.new((ll.p+oristrpos1.p)/2,oristrpos1.p) * CFrame.Angles(math.rad(90),0,0)
2234
2235
prt39.Size = Vector3.new(0.2,mg2,0.2)
2236
2237
prt39.CFrame = CFrame.new((rr.p+oristrpos2.p)/2,oristrpos2.p) * CFrame.Angles(math.rad(90),0,0)
2238
2239
prt40.Size = Vector3.new(0.2,mg3,0.2)
2240
2241
prt40.CFrame = CFrame.new((oristrpos1.p+oristrpos3.p)/2,oristrpos3.p) * CFrame.Angles(math.rad(90),0,0)
2242
2243
prt41.Size = Vector3.new(0.2,mg3,0.2)
2244
2245
prt41.CFrame = CFrame.new((oristrpos2.p+oristrpos4.p)/2,oristrpos4.p) * CFrame.Angles(math.rad(90),0,0)
2246
2247
until false
2248
2249
end))
2250
2251
end]]
2252
2253
2254
2255
local function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
2256
2257
return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
2258
2259
end 
2260
2261
2262
local bg = Instance.new("BodyGyro")
2263
2264
bg.maxTorque = bg.maxTorque * math.huge
2265
2266
local bp = Instance.new("BodyPosition")
2267
2268
bp.maxForce = Vector3.new(math.huge,0,math.huge)
2269
2270
bp.P = bp.p * 10
2271
2272
2273
function unequipweld()
2274
2275
w1.Part1 = nil
2276
2277
bg.Parent = prt1
2278
2279
bg.cframe = prt1.CFrame
2280
2281
local hit,pos = rayCast(Torso.Position+Vector3.new(0,10,0), Vector3.new(0,-2,0), 1000, Character)
2282
2283
bp.position = pos + Vector3.new(0,4,0)
2284
2285
bp.Parent = prt1
2286
2287
w37.Part1 = prt2
2288
2289
w37.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.5,-0.6)  
2290
2291
end
2292
2293
2294
unequipweld()
2295
2296
bp.position = (Head.CFrame*CFrame.new(10,0,0)).p
2297
2298
bg.cframe = Head.CFrame
2299
2300
2301
function equipweld()
2302
2303
w1.Part1 = Torso 
2304
2305
bg.Parent = nil
2306
2307
bp.Parent = nil
2308
2309
w37.Part1 = Torso 
2310
2311
w37.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,1.25)  
2312
2313
end
2314
2315
  
2316
2317
2318
2319
function ss(parent,p) --Slash
2320
2321
2322
local SlashSound = Instance.new("Sound")
2323
2324
SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
2325
2326
SlashSound.Parent = parent
2327
2328
SlashSound.Volume = .7
2329
2330
SlashSound.Pitch = p
2331
2332
SlashSound.PlayOnRemove = true
2333
2334
coroutine.resume(coroutine.create(function()
2335
2336
wait() 
2337
2338
SlashSound.Parent = nil
2339
2340
end))
2341
2342
end
2343
2344
function uss(parent,p) --unsheath
2345
2346
2347
local SlashSound = Instance.new("Sound")
2348
2349
SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
2350
2351
SlashSound.Parent = parent
2352
2353
SlashSound.Volume = .7
2354
2355
SlashSound.Pitch = p
2356
2357
SlashSound.PlayOnRemove = true
2358
2359
coroutine.resume(coroutine.create(function()
2360
2361
wait() 
2362
2363
SlashSound.Parent = nil
2364
2365
end))
2366
2367
end
2368
2369
function fs(parent,p) --Fire Sound
2370
2371
2372
local SlashSound = Instance.new("Sound")
2373
2374
SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982"
2375
2376
SlashSound.Parent = parent
2377
2378
SlashSound.Volume = .7
2379
2380
SlashSound.Pitch = p
2381
2382
SlashSound.PlayOnRemove = true
2383
2384
coroutine.resume(coroutine.create(function()
2385
2386
wait()
2387
2388
SlashSound.Parent = nil
2389
2390
end))
2391
2392
end
2393
2394
function ms(parent,p) --Metal Cling Sound
2395
2396
2397
local SlashSound = Instance.new("Sound")
2398
2399
SlashSound.SoundId = "rbxasset://sounds\\metal.ogg"
2400
2401
SlashSound.Parent = parent
2402
2403
SlashSound.Volume = 5
2404
2405
SlashSound.Pitch = p
2406
2407
SlashSound.PlayOnRemove = true
2408
2409
coroutine.resume(coroutine.create(function()
2410
2411
wait()
2412
2413
SlashSound.Parent = nil
2414
2415
end))
2416
2417
end
2418
2419
function ws(parent,p) --Walk Sound
2420
2421
2422
local SlashSound = Instance.new("Sound")
2423
2424
SlashSound.SoundId = "rbxasset://sounds\\bfsl-minifigfoots1.mp3"
2425
2426
SlashSound.Parent = parent
2427
2428
SlashSound.Volume = 1
2429
2430
SlashSound.Pitch = p
2431
2432
SlashSound.PlayOnRemove = true
2433
2434
coroutine.resume(coroutine.create(function()
2435
2436
wait()
2437
2438
SlashSound.Parent = nil
2439
2440
end))
2441
2442
end
2443
2444
--
2445
2446
--
2447
2448
2449
function returndmg()
2450
2451
mindamage = omindamage
2452
2453
maxdamage = omaxdamage
2454
2455
crtmaxdamage = ocrtmaxdamage
2456
2457
end
2458
2459
2460
function subdmg(sub)
2461
2462
mindamage = omindamage - sub
2463
2464
maxdamage = omaxdamage - sub
2465
2466
crtmaxdamage = ocrtmaxdamage - sub
2467
2468
end
2469
2470
2471
function prcntdmg(sub)
2472
2473
mindamage = math.floor(omindamage - (omindamage*(sub/100)))
2474
2475
maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100)))
2476
2477
crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100)))
2478
2479
end
2480
2481
2482
function tagHumanoid(humanoid, player)
2483
2484
        local creator_tag = Instance.new("ObjectValue")
2485
2486
        creator_tag.Value = player
2487
2488
        creator_tag.Name = "creator"
2489
2490
        creator_tag.Parent = humanoid
2491
2492
end
2493
2494
2495
function untagHumanoid(humanoid)
2496
2497
        if humanoid ~= nil then
2498
2499
                local tag = humanoid:findFirstChild("creator")
2500
2501
                if tag ~= nil then
2502
2503
                        tag.Parent = nil
2504
2505
                end
2506
2507
        end
2508
2509
end
2510
2511
2512
2513
2514
2515
function hideanim()
2516
2517
attack = true
2518
2519
RWRem()
2520
2521
LWRem()        
2522
2523
RWLRem()
2524
2525
LWLRem()
2526
2527
unequipweld()
2528
2529
attack = false
2530
2531
end
2532
2533
2534
2535
function equipanim()
2536
2537
attack = true
2538
2539
RWFunc()
2540
2541
RWLFunc()
2542
2543
LWLFunc()
2544
2545
LWFunc()
2546
2547
equipweld()
2548
2549
for i = 0.1 ,1 ,0.1 do
2550
2551
wait()
2552
2553
RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(45*i),math.rad(0),math.rad(-20*i))
2554
2555
RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
2556
2557
LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45*i),math.rad(0),math.rad(20*i))
2558
2559
LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) 
2560
2561
RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(45*i), 0, math.rad(25*i))
2562
2563
RWL.C1 = CFrame.new(0.5, 1, 0)
2564
2565
LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(45*i), 0, math.rad(-25*i))
2566
2567
LWL.C1 = CFrame.new(-0.5, 1, 0)
2568
2569
Neck.C0 = neckcf0 * CFrame.Angles(math.rad(0),0,math.rad(0))
2570
2571
end 
2572
2573
2574
attack = false
2575
2576
end
2577
2578
2579
function noarms()
2580
2581
RWRem()
2582
2583
LWRem()
2584
2585
w37.Part1 = prt2
2586
2587
w37.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.5,-0.6)  
2588
2589
end
2590
2591
2592
function arms()
2593
2594
RWFunc()
2595
2596
LWFunc()
2597
2598
w37.Part1 = Torso 
2599
2600
w37.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,1.25)  
2601
2602
end
2603
2604
2605
function faketors()
2606
2607
local T = Instance.new("Part")
2608
2609
T.formFactor = 0
2610
2611
T.CanCollide = false
2612
2613
T.Name = "FakeTorso"
2614
2615
T.Locked = true
2616
2617
T.Size = Torso.Size
2618
2619
T.Parent = swordholder
2620
2621
T.Transparency = 1
2622
2623
T.BrickColor = Torso.BrickColor
2624
2625
for i,z in pairs(Character:GetChildren()) do
2626
2627
if z.className == "CharacterMesh" then
2628
2629
if z.BodyPart == Enum.BodyPart.Torso then
2630
2631
local SM = Instance.new("SpecialMesh",T)
2632
2633
SM.MeshId = "http://www.roblox.com/asset/?id=" .. z.MeshId
2634
2635
if z.BaseTextureId ~= 0 then
2636
2637
SM.TextureId = z.BaseTextureId
2638
2639
elseif z.OverlayTextureId ~= 0 then
2640
2641
SM.TextureId = z.OverlayTextureId
2642
2643
else
2644
2645
SM.TextureId = ""
2646
2647
end
2648
2649
end
2650
2651
end
2652
2653
end
2654
2655
local wt = Instance.new("Weld")
2656
2657
wt.Parent = T
2658
2659
wt.Part0 = T
2660
2661
wt.Part1 = Torso
2662
2663
RW.Part0 = T
2664
2665
LW.Part0 = T
2666
2667
T.Transparency = 0
2668
2669
Torso.Transparency = 1
2670
2671
RHL.Part0 = T
2672
2673
LHL.Part0 = T
2674
2675
return wt,T
2676
2677
end
2678
2679
2680
2681
if (script.Parent.className ~= "HopperBin") then 
2682
2683
Tool = Instance.new("HopperBin") 
2684
2685
Tool.Parent = Backpack 
2686
2687
Tool.Name = ToolName
2688
2689
script.Parent = Tool 
2690
2691
end 
2692
2693
Bin = Tool 
2694
2695
 
2696
2697
function damagesplat(dmg,hit,crit,blocked)
2698
2699
    local mo = Instance.new("Model")
2700
2701
    mo.Name = dmg
2702
2703
    local pa = Instance.new("Part",mo)
2704
2705
    pa.formFactor = 3
2706
2707
    pa.Size = Vector3.new(0.8,0.3,0.8)
2708
2709
    if crit then
2710
2711
    pa.BrickColor = BrickColor.new("Bright yellow")
2712
2713
    elseif not crit then
2714
2715
    pa.BrickColor = BrickColor.new("Bright red")
2716
2717
    end
2718
2719
    if blocked then pa.BrickColor = BrickColor.new("Bright blue") end
2720
2721
    pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0)
2722
2723
    pa.Name = "Head"
2724
2725
    local hah = Instance.new("Humanoid")
2726
2727
    hah.Parent = mo
2728
2729
    hah.MaxHealth = 0
2730
2731
    hah.Health = 0
2732
2733
    local bp = Instance.new("BodyPosition")
2734
2735
    bp.P = 14000
2736
2737
    bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
2738
2739
    bp.position = hit.Position + Vector3.new(0, 5, 0)
2740
2741
    coroutine.resume(coroutine.create(function()
2742
2743
        wait()
2744
2745
        mo.Parent = workspace
2746
2747
        bp.Parent = pa
2748
2749
        wait(1.4)
2750
2751
        mo:remove()
2752
2753
    end))
2754
2755
    return pa
2756
2757
end
2758
2759
2760
function damage(hum,dmg,critornot)
2761
2762
local pa = damagesplat(dmg,hum.Torso,critornot)
2763
2764
hum:TakeDamage(dmg)
2765
2766
coroutine.resume(coroutine.create(function()
2767
2768
tagHumanoid(hum,Player)
2769
2770
wait(1)
2771
2772
untagHumanoid(hum)
2773
2774
end))
2775
2776
return pa
2777
2778
end
2779
2780
2781
function AddEnergy(add)
2782
2783
Energy = Energy + add
2784
2785
if Energy > MaxEnergy then
2786
2787
Energy = MaxEnergy
2788
2789
end
2790
2791
end
2792
2793
2794
2795
2796
function OT(hit) --Normal Damage
2797
2798
if Hitdeb == 1 then return end
2799
2800
if hit.Parent == nil then return end
2801
2802
local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
2803
2804
if hum.Health <= 0 then return end
2805
2806
if hit.Parent:findFirstChild("Block") ~= nil then 
2807
2808
if hit.Parent.Block.Value then 
2809
2810
damagesplat(0,hum.Torso,false,true) 
2811
2812
Hitdeb = 1
2813
2814
if hit.Parent.Block:findFirstChild("BlockPower") ~= nil then
2815
2816
if hit.Parent.Block.BlockPower.Value <= 1 then
2817
2818
hit.Parent.Block.Value = false 
2819
2820
elseif hit.Parent.Block.BlockPower.Value > 1 then
2821
2822
local critrandomizer = math.random(crtrate)
2823
2824
if critrandomizer ~= 1 then
2825
2826
hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker 
2827
2828
elseif critrandomizer == 1 then
2829
2830
hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker + 2
2831
2832
end
2833
2834
end
2835
2836
end
2837
2838
return end end
2839
2840
local critrandomizer = math.random(crtrate)
2841
2842
if critrandomizer ~= 1 then
2843
2844
local rndmdamage = math.random(mindamage,maxdamage)
2845
2846
damage(hum,rndmdamage,false)
2847
2848
elseif critrandomizer == 1 then
2849
2850
local rndmdamage = math.random(maxdamage,crtmaxdamage)
2851
2852
damage(hum,rndmdamage,true)
2853
2854
end
2855
2856
Hitdeb = 1
2857
2858
end
2859
2860
end
2861
2862
2863
2864
function AoE(p,magnitude) 
2865
2866
        local c = game.Workspace:GetChildren();
2867
2868
        for i = 1, #c do
2869
2870
                local hum = c[i]:findFirstChild("Humanoid")
2871
2872
                if hum ~= nil and hum.Health ~= 0 then
2873
2874
                local head = c[i]:findFirstChild("Head");
2875
2876
                if head ~= nil then
2877
2878
                local mag = (head.Position - p).magnitude;
2879
2880
                if mag <= magnitude and c[i].Name ~= Character.Name then
2881
2882
                local foundd = false
2883
2884
                for ii = 1 , #AoETrue do
2885
2886
                if AoETrue[ii] == c[i].Name then
2887
2888
2889
                foundd = true
2890
2891
                end
2892
2893
                end
2894
2895
                if foundd then
2896
2897
2898
                end
2899
2900
                --
2901
2902
                if not foundd then
2903
2904
local critrandomizer = math.random(crtrate)
2905
2906
if critrandomizer ~= 1 then
2907
2908
local rndmdamage = math.random(mindamage,maxdamage)
2909
2910
damage(hum,rndmdamage,false)
2911
2912
elseif critrandomizer == 1 then
2913
2914
local rndmdamage = math.random(maxdamage,crtmaxdamage)
2915
2916
damage(hum,rndmdamage,true)
2917
2918
end
2919
2920
                table.insert(AoETrue,c[i].Name)
2921
2922
                end
2923
2924
                end
2925
2926
                end
2927
2928
                end
2929
2930
        end
2931
2932
                for ii = 1 , #AoETrue do
2933
2934
                table.remove(AoETrue,#AoETrue)
2935
2936
                end
2937
2938
end
2939
2940
2941
--
2942
2943
2944
2945
--
2946
2947
2948
function effect(Color,Ref,LP,P1)
2949
2950
local effectsmsh = Instance.new("BlockMesh")
2951
2952
effectsmsh.Scale = Vector3.new(1,1,1)
2953
2954
effectsmsh.Name = "Mesh"
2955
2956
local effectsg = Instance.new("Part")
2957
2958
effectsg.formFactor = 3
2959
2960
effectsg.CanCollide = false
2961
2962
effectsg.Name = "Eff"
2963
2964
effectsg.Locked = true
2965
2966
effectsg.Anchored = true
2967
2968
effectsg.Size = Vector3.new(0.2,1,0.2)
2969
2970
effectsg.Parent = swordholder
2971
2972
effectsmsh.Parent = effectsg
2973
2974
effectsg.BrickColor = BrickColor.new(Color)
2975
2976
effectsg.Reflectance = Ref
2977
2978
local point1 = P1
2979
2980
local mg = (LP.p - point1.p).magnitude
2981
2982
effectsg.Size = Vector3.new(0.2,mg,0.2)
2983
2984
effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
2985
2986
coroutine.resume(coroutine.create(function()
2987
2988
for i = 0 , 1 , 0.1 do
2989
2990
wait()
2991
2992
effectsg.Transparency = 1*i
2993
2994
effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i)
2995
2996
end
2997
2998
wait()
2999
3000
effectsg.Parent = nil
3001
3002
end))
3003
3004
end
3005
3006
--
3007
3008
3009
3010
con = nil
3011
3012
3013
3014
function dmgcnnct()
3015
3016
if con ~= nil then
3017
3018
con:disconnect()
3019
3020
Hitdeb = 0
3021
3022
end
3023
3024
con = prt4.Touched:connect(OT)
3025
3026
end
3027
3028
3029
function dmgdc() 
3030
3031
if con ~= nil then
3032
3033
con:disconnect()
3034
3035
Hitdeb = 0
3036
3037
end
3038
3039
end
3040
3041
3042
function rptddmg(value,des,inc)
3043
3044
coroutine.resume(coroutine.create(function()
3045
3046
repeat
3047
3048
wait(inc)
3049
3050
Hitdeb = 0
3051
3052
until value == des
3053
3054
end))
3055
3056
end
3057
3058
3059
function atktype(s,e)
3060
3061
coroutine.resume(coroutine.create(function ()
3062
3063
attacktype = e
3064
3065
wait(0.25)
3066
3067
attacktype = s
3068
3069
end))
3070
3071
end
3072
3073
3074
jumping = false
3075
3076
walking = false
3077
3078
function Walk()
3079
3080
if walking or jumping then return end
3081
3082
walking = true
3083
3084
for i = 0.2 , 1, 0.2 do
3085
3086
wait()
3087
3088
w22.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3089
3090
w22.C0 = CFrame.Angles(math.rad(20-80*i), math.rad(10), math.rad(0)) * CFrame.new(-0.75, 1.5,0) 
3091
3092
w23.C1 = CFrame.Angles(math.rad(80-40*i), 0, 0) * CFrame.new(0, -0.25,0)  
3093
3094
w23.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2-0.2*i) 
3095
3096
w24.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3097
3098
w24.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3099
3100
-- 
3101
3102
w28.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3103
3104
w28.C0 = CFrame.Angles(math.rad(20+60*i), math.rad(-10), math.rad(0)) * CFrame.new(0.75, 1.5,0) 
3105
3106
w29.C1 = CFrame.Angles(math.rad(80-100*i), 0, 0) * CFrame.new(0, -0.25,0)  
3107
3108
w29.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2-0.2*i) 
3109
3110
w30.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3111
3112
w30.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3113
3114
--
3115
3116
w11.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3117
3118
w11.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(-1.5, 0,0)
3119
3120
w16.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3121
3122
w16.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(1.5, 0,0)
3123
3124
end
3125
3126
repeat 
3127
3128
3129
for i = 0.1 , 1, 0.1 do
3130
3131
if not walking or jumping then break end
3132
3133
wait()
3134
3135
w22.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3136
3137
w22.C0 = CFrame.Angles(math.rad(-60+140*i), math.rad(10), math.rad(0)) * CFrame.new(-0.75, 1.5,0) 
3138
3139
w23.C1 = CFrame.Angles(math.rad(40-60*i), 0, 0) * CFrame.new(0, -0.25,0)  
3140
3141
w23.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0) 
3142
3143
w24.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3144
3145
w24.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3146
3147
-- 
3148
3149
w28.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3150
3151
w28.C0 = CFrame.Angles(math.rad(80-140*i), math.rad(-10), math.rad(0)) * CFrame.new(0.75, 1.5,0) 
3152
3153
w29.C1 = CFrame.Angles(math.rad(-20+60*i), 0, 0) * CFrame.new(0, -0.25,0)  
3154
3155
w29.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0) 
3156
3157
w30.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3158
3159
w30.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3160
3161
--
3162
3163
w11.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3164
3165
w11.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(-1.5, 0,0)
3166
3167
w16.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3168
3169
w16.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(1.5, 0,0)
3170
3171
end
3172
3173
for i = 0.1 , 1, 0.1 do
3174
3175
if not walking or jumping then break end
3176
3177
wait()
3178
3179
w22.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3180
3181
w22.C0 = CFrame.Angles(math.rad(80-140*i), math.rad(10), math.rad(0)) * CFrame.new(-0.75, 1.5,0) 
3182
3183
w23.C1 = CFrame.Angles(math.rad(-20+60*i), 0, 0) * CFrame.new(0, -0.25,0)  
3184
3185
w23.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2) 
3186
3187
w24.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3188
3189
w24.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3190
3191
-- 
3192
3193
w28.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3194
3195
w28.C0 = CFrame.Angles(math.rad(-60+140*i), math.rad(-10), math.rad(0)) * CFrame.new(0.75, 1.5,0) 
3196
3197
w29.C1 = CFrame.Angles(math.rad(40-60*i), 0, 0) * CFrame.new(0, -0.25,0)  
3198
3199
w29.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2) 
3200
3201
w30.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3202
3203
w30.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3204
3205
--
3206
3207
w11.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3208
3209
w11.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(-1.5, 0,0)
3210
3211
w16.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3212
3213
w16.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(1.5, 0,0)
3214
3215
end 
3216
3217
until not walking or jumping
3218
3219
for i = 0.2 , 1, 0.2 do
3220
3221
if not walking or jumping then break end
3222
3223
wait()
3224
3225
w22.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3226
3227
w22.C0 = CFrame.Angles(math.rad(-60+80*i), math.rad(10), math.rad(0)) * CFrame.new(-0.75, 1.5,0) 
3228
3229
w23.C1 = CFrame.Angles(math.rad(40+40*i), 0, 0) * CFrame.new(0, -0.25,0)  
3230
3231
w23.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2*i) 
3232
3233
w24.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3234
3235
w24.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3236
3237
-- 
3238
3239
w28.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3240
3241
w28.C0 = CFrame.Angles(math.rad(80-60*i), math.rad(-10), math.rad(0)) * CFrame.new(0.75, 1.5,0) 
3242
3243
w29.C1 = CFrame.Angles(math.rad(-20+100*i), 0, 0) * CFrame.new(0, -0.25,0)  
3244
3245
w29.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2*i) 
3246
3247
w30.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3248
3249
w30.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3250
3251
--
3252
3253
w11.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3254
3255
w11.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(-1.5, 0,0)
3256
3257
w16.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3258
3259
w16.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(1.5, 0,0)
3260
3261
end 
3262
3263
w22.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3264
3265
w22.C0 = CFrame.Angles(math.rad(20), math.rad(10), math.rad(0)) * CFrame.new(-0.75, 1.5,0) 
3266
3267
w23.C1 = CFrame.Angles(math.rad(80), 0, 0) * CFrame.new(0, -0.25,0)  
3268
3269
w23.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2) 
3270
3271
w24.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3272
3273
w24.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3274
3275
-- 
3276
3277
w28.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3278
3279
w28.C0 = CFrame.Angles(math.rad(20), math.rad(-10), math.rad(0)) * CFrame.new(0.75, 1.5,0) 
3280
3281
w29.C1 = CFrame.Angles(math.rad(80), 0, 0) * CFrame.new(0, -0.25,0)  
3282
3283
w29.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2) 
3284
3285
w30.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3286
3287
w30.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3288
3289
end
3290
3291
3292
3293
function Jump()
3294
3295
if jumping then return end
3296
3297
jumping = true 
3298
3299
local vel = Instance.new("BodyVelocity",prt1)
3300
3301
vel.maxForce = Vector3.new(0,1,0) * math.huge
3302
3303
vel.P = vel.P * 5
3304
3305
vel.velocity = Vector3.new(0,jump,0)
3306
3307
coroutine.resume(coroutine.create(function()
3308
3309
wait() wait() wait() wait()
3310
3311
vel.Parent=nil
3312
3313
end))
3314
3315
ss(Head,1)
3316
3317
for i = 0.2 , 1 , 0.2 do
3318
3319
wait()
3320
3321
w22.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3322
3323
w22.C0 = CFrame.Angles(math.rad(20), math.rad(10), math.rad(0)) * CFrame.new(-0.75, 1.5,0) 
3324
3325
w23.C1 = CFrame.Angles(math.rad(80-80*i), 0, 0) * CFrame.new(0, -0.25,0)  
3326
3327
w23.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2-0.2*i) 
3328
3329
w24.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3330
3331
w24.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3332
3333
-- 
3334
3335
w28.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3336
3337
w28.C0 = CFrame.Angles(math.rad(20), math.rad(-10), math.rad(0)) * CFrame.new(0.75, 1.5,0) 
3338
3339
w29.C1 = CFrame.Angles(math.rad(80-80*i), 0, 0) * CFrame.new(0, -0.25,0)  
3340
3341
w29.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2-0.2*i) 
3342
3343
w30.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3344
3345
w30.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3346
3347
--Neck
3348
3349
w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
3350
3351
w2.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(0, -1,2.5)
3352
3353
w3.C1 = CFrame.Angles(math.rad(-20+20*i), 0, 0) * CFrame.new(0, 0.465,0) 
3354
3355
w3.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.465,0)
3356
3357
--Wings
3358
3359
w11.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3360
3361
w11.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(-45*i)) * CFrame.new(-1.5-0.5*i, 0,0)
3362
3363
w16.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3364
3365
w16.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(45*i)) * CFrame.new(1.5+0.5*i, 0,0)
3366
3367
end
3368
3369
wait(0.5)
3370
3371
for i = 0.2 , 1 , 0.2 do
3372
3373
wait()
3374
3375
w22.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3376
3377
w22.C0 = CFrame.Angles(math.rad(20), math.rad(10), math.rad(0)) * CFrame.new(-0.75, 1.5,0) 
3378
3379
w23.C1 = CFrame.Angles(math.rad(80*i), 0, 0) * CFrame.new(0, -0.25,0)  
3380
3381
w23.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2*i) 
3382
3383
w24.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3384
3385
w24.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3386
3387
-- 
3388
3389
w28.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3390
3391
w28.C0 = CFrame.Angles(math.rad(20), math.rad(-10), math.rad(0)) * CFrame.new(0.75, 1.5,0) 
3392
3393
w29.C1 = CFrame.Angles(math.rad(80*i), 0, 0) * CFrame.new(0, -0.25,0)  
3394
3395
w29.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2*i) 
3396
3397
w30.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3398
3399
w30.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3400
3401
--Neck
3402
3403
w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
3404
3405
w2.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(0, -1,2.5) 
3406
3407
w3.C1 = CFrame.Angles(math.rad(-20*i), 0, 0) * CFrame.new(0, 0.465,0) 
3408
3409
w3.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.465,0)
3410
3411
--Wings
3412
3413
w11.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3414
3415
w11.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(-45+45*i)) * CFrame.new(-2+0.5*i, 0,0)
3416
3417
w16.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3418
3419
w16.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(45-45*i)) * CFrame.new(2-0.5*i, 0,0)
3420
3421
end
3422
3423
jumping = false
3424
3425
if prt1.Velocity.magnitude > 5 then
3426
3427
walking = true
3428
3429
for i = 0.2 , 1, 0.2 do
3430
3431
wait()
3432
3433
w22.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3434
3435
w22.C0 = CFrame.Angles(math.rad(20-80*i), math.rad(10), math.rad(0)) * CFrame.new(-0.75, 1.5,0) 
3436
3437
w23.C1 = CFrame.Angles(math.rad(80-40*i), 0, 0) * CFrame.new(0, -0.25,0)  
3438
3439
w23.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2-0.2*i) 
3440
3441
w24.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3442
3443
w24.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3444
3445
-- 
3446
3447
w28.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3448
3449
w28.C0 = CFrame.Angles(math.rad(20+60*i), math.rad(-10), math.rad(0)) * CFrame.new(0.75, 1.5,0) 
3450
3451
w29.C1 = CFrame.Angles(math.rad(80-100*i), 0, 0) * CFrame.new(0, -0.25,0)  
3452
3453
w29.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2-0.2*i) 
3454
3455
w30.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3456
3457
w30.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3458
3459
end
3460
3461
repeat 
3462
3463
for i = 0.1 , 1, 0.1 do
3464
3465
if not walking or jumping then break end
3466
3467
wait()
3468
3469
w22.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3470
3471
w22.C0 = CFrame.Angles(math.rad(-60+140*i), math.rad(10), math.rad(0)) * CFrame.new(-0.75, 1.5,0) 
3472
3473
w23.C1 = CFrame.Angles(math.rad(40-60*i), 0, 0) * CFrame.new(0, -0.25,0)  
3474
3475
w23.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0) 
3476
3477
w24.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3478
3479
w24.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3480
3481
-- 
3482
3483
w28.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3484
3485
w28.C0 = CFrame.Angles(math.rad(80-140*i), math.rad(-10), math.rad(0)) * CFrame.new(0.75, 1.5,0) 
3486
3487
w29.C1 = CFrame.Angles(math.rad(-20+60*i), 0, 0) * CFrame.new(0, -0.25,0)  
3488
3489
w29.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0) 
3490
3491
w30.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3492
3493
w30.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3494
3495
end
3496
3497
for i = 0.1 , 1, 0.1 do
3498
3499
if not walking or jumping then  break end
3500
3501
wait()
3502
3503
w22.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3504
3505
w22.C0 = CFrame.Angles(math.rad(80-140*i), math.rad(10), math.rad(0)) * CFrame.new(-0.75, 1.5,0) 
3506
3507
w23.C1 = CFrame.Angles(math.rad(-20+60*i), 0, 0) * CFrame.new(0, -0.25,0)  
3508
3509
w23.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2) 
3510
3511
w24.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3512
3513
w24.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3514
3515
-- 
3516
3517
w28.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3518
3519
w28.C0 = CFrame.Angles(math.rad(-60+140*i), math.rad(-10), math.rad(0)) * CFrame.new(0.75, 1.5,0) 
3520
3521
w29.C1 = CFrame.Angles(math.rad(40-60*i), 0, 0) * CFrame.new(0, -0.25,0)  
3522
3523
w29.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2) 
3524
3525
w30.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3526
3527
w30.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3528
3529
end 
3530
3531
until not walking or jumping 
3532
3533
for i = 0.2 , 1, 0.2 do
3534
3535
if jumping then break end
3536
3537
wait()
3538
3539
w22.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3540
3541
w22.C0 = CFrame.Angles(math.rad(-60+80*i), math.rad(10), math.rad(0)) * CFrame.new(-0.75, 1.5,0) 
3542
3543
w23.C1 = CFrame.Angles(math.rad(40+40*i), 0, 0) * CFrame.new(0, -0.25,0)  
3544
3545
w23.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2*i) 
3546
3547
w24.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3548
3549
w24.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3550
3551
-- 
3552
3553
w28.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3554
3555
w28.C0 = CFrame.Angles(math.rad(80-60*i), math.rad(-10), math.rad(0)) * CFrame.new(0.75, 1.5,0) 
3556
3557
w29.C1 = CFrame.Angles(math.rad(-20+100*i), 0, 0) * CFrame.new(0, -0.25,0)  
3558
3559
w29.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2*i) 
3560
3561
w30.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3562
3563
w30.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3564
3565
end 
3566
3567
w22.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3568
3569
w22.C0 = CFrame.Angles(math.rad(20), math.rad(10), math.rad(0)) * CFrame.new(-0.75, 1.5,0) 
3570
3571
w23.C1 = CFrame.Angles(math.rad(80), 0, 0) * CFrame.new(0, -0.25,0)  
3572
3573
w23.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2) 
3574
3575
w24.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3576
3577
w24.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3578
3579
-- 
3580
3581
w28.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3582
3583
w28.C0 = CFrame.Angles(math.rad(20), math.rad(-10), math.rad(0)) * CFrame.new(0.75, 1.5,0) 
3584
3585
w29.C1 = CFrame.Angles(math.rad(80), 0, 0) * CFrame.new(0, -0.25,0)  
3586
3587
w29.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2) 
3588
3589
w30.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3590
3591
w30.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3592
3593
end
3594
3595
end 
3596
3597
3598
 
3599
3600
3601
dashing = false
3602
3603
function Dash()
3604
3605
dashing = true
3606
3607
for i = 0.1 ,1 , 0.1 do
3608
3609
wait()
3610
3611
--Neck
3612
3613
w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
3614
3615
w2.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(0, -1,2.5) 
3616
3617
w3.C1 = CFrame.Angles(math.rad(-20-60*i), 0, 0) * CFrame.new(0, 0.465,0) 
3618
3619
w3.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.465,0)
3620
3621
end
3622
3623
dmgcnnct()
3624
3625
rptddmg(dashing,false,1)
3626
3627
LastPoint = prt4.CFrame * CFrame.new(0,0,prt4.Size.Y/2)
3628
3629
repeat
3630
3631
local Point = prt4.CFrame * CFrame.new(0,0,prt4.Size.Y/2)
3632
3633
effect("White",0.5,LastPoint,Point)
3634
3635
LastPoint = Point
3636
3637
wait(0.1)
3638
3639
if Energy >= 1 then
3640
3641
Energy = Energy - 1
3642
3643
end
3644
3645
until not buttonhold or Energy < 3
3646
3647
dmgdc()
3648
3649
dashing = false
3650
3651
for i = 0.1 ,1 , 0.1 do
3652
3653
wait()
3654
3655
--Neck
3656
3657
w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
3658
3659
w2.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(0, -1,2.5) 
3660
3661
w3.C1 = CFrame.Angles(math.rad(-80+60*i), 0, 0) * CFrame.new(0, 0.465,0) 
3662
3663
w3.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.465,0)
3664
3665
end
3666
3667
end 
3668
3669
3670
idleez = false
3671
3672
function Idle()
3673
3674
if idleez then return end
3675
3676
idleez = true
3677
3678
local rndm = math.random(1,3)
3679
3680
for i = 0.05, 1 , 0.05 do
3681
3682
if not walking and not dashing and not jumping then
3683
3684
wait()
3685
3686
w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
3687
3688
w2.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(0, -1,2.5) 
3689
3690
w3.C1 = CFrame.Angles(math.rad(-20+5*i), 0, 0) * CFrame.new(0, 0.465,0) 
3691
3692
w3.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.465,0)
3693
3694
if rndm ~= 1 then
3695
3696
w11.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3697
3698
w11.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10*i)) * CFrame.new(-1.5-0.2*i, 0,0)
3699
3700
w16.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3701
3702
w16.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(10*i)) * CFrame.new(1.5+0.2*i, 0,0)
3703
3704
else
3705
3706
w11.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3707
3708
w11.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(-45*i)) * CFrame.new(-1.5-0.5*i, 0,0)
3709
3710
w16.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3711
3712
w16.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(45*i)) * CFrame.new(1.5+0.5*i, 0,0)
3713
3714
end
3715
3716
end
3717
3718
end
3719
3720
if rndm == 1 then
3721
3722
for i = 0.1 , 1 , 0.1 do
3723
3724
if not walking and not dashing and not jumping then 
3725
3726
wait()
3727
3728
w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
3729
3730
w2.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(0, -1,2.5) 
3731
3732
w3.C1 = CFrame.Angles(math.rad(-15+5*i) ,math.rad(0), 0) * CFrame.new(0, 0.465,0) 
3733
3734
w3.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.465,0)
3735
3736
w11.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3737
3738
w11.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(-45-45*i)) * CFrame.new(-2, -1*i,0)
3739
3740
w16.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3741
3742
w16.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(45+45*i)) * CFrame.new(2, -1*i,0)
3743
3744
end
3745
3746
end
3747
3748
for i = 0.2 , 1 , 0.2 do
3749
3750
if not walking and not dashing and not jumping then 
3751
3752
wait()
3753
3754
w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
3755
3756
w2.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(0, -1,2.5) 
3757
3758
w3.C1 = CFrame.Angles(math.rad(-10+5*i),math.rad(0), 0) * CFrame.new(0, 0.465,0) 
3759
3760
w3.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.465,0)
3761
3762
w11.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3763
3764
w11.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90+30*i)) * CFrame.new(-2, -1,0)
3765
3766
w16.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3767
3768
w16.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(90-30*i)) * CFrame.new(2, -1,0)
3769
3770
end
3771
3772
end
3773
3774
for i = 0.2 , 1 , 0.2 do
3775
3776
if not walking and not dashing and not jumping then 
3777
3778
wait()
3779
3780
w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
3781
3782
w2.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(0, -1,2.5) 
3783
3784
w3.C1 = CFrame.Angles(math.rad(-5+5*i),math.rad(0), 0) * CFrame.new(0, 0.465,0) 
3785
3786
w3.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.465,0)
3787
3788
w11.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3789
3790
w11.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(-60-30*i)) * CFrame.new(-2, -1,0)
3791
3792
w16.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3793
3794
w16.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(60+30*i)) * CFrame.new(2, -1,0)
3795
3796
end
3797
3798
end
3799
3800
for i = 0.1 , 1 , 0.1 do
3801
3802
if not walking and not dashing and not jumping then 
3803
3804
wait()
3805
3806
w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
3807
3808
w2.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(0, -1,2.5) 
3809
3810
w3.C1 = CFrame.Angles(math.rad(-15*i),math.rad(0), 0) * CFrame.new(0, 0.465,0) 
3811
3812
w3.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.465,0)
3813
3814
w11.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3815
3816
w11.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90+45*i)) * CFrame.new(-2, -1+1*i,0)
3817
3818
w16.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3819
3820
w16.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(90-45*i)) * CFrame.new(2, -1+1*i,0)
3821
3822
end
3823
3824
end
3825
3826
end
3827
3828
for i = 0.025, 1 , 0.025 do
3829
3830
if not walking and not dashing and not jumping then 
3831
3832
wait()
3833
3834
w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
3835
3836
w2.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(0, -1,2.5) 
3837
3838
w3.C1 = CFrame.Angles(math.rad(-15-5*i), 0, 0) * CFrame.new(0, 0.465,0) 
3839
3840
w3.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.465,0)
3841
3842
if rndm ~= 1 then
3843
3844
w11.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3845
3846
w11.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10+10*i)) * CFrame.new(-1.7+0.2*i, 0,0)
3847
3848
w16.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3849
3850
w16.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(10-10*i)) * CFrame.new(1.7-0.2*i, 0,0)
3851
3852
else
3853
3854
w11.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3855
3856
w11.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(-45+45*i)) * CFrame.new(-2+0.5*i, 0,0)
3857
3858
w16.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3859
3860
w16.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(45-45*i)) * CFrame.new(2-0.5*i, 0,0)
3861
3862
end
3863
3864
end
3865
3866
 end
3867
3868
idleez = false
3869
3870
end
3871
3872
3873
function returnwelds()
3874
3875
RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(45),math.rad(0),math.rad(-20))
3876
3877
RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
3878
3879
LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45),math.rad(0),math.rad(20))
3880
3881
LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) 
3882
3883
RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(45), 0, math.rad(25))
3884
3885
RWL.C1 = CFrame.new(0.5, 1, 0)
3886
3887
LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25))
3888
3889
LWL.C1 = CFrame.new(-0.5, 1, 0)
3890
3891
Neck.C0 = neckcf0
3892
3893
--
3894
3895
w22.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3896
3897
w22.C0 = CFrame.Angles(math.rad(20), math.rad(10), math.rad(0)) * CFrame.new(-0.75, 1.5,0) 
3898
3899
w23.C1 = CFrame.Angles(math.rad(80), 0, 0) * CFrame.new(0, -0.25,0)  
3900
3901
w23.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2) 
3902
3903
w24.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3904
3905
w24.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3906
3907
-- 
3908
3909
w28.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0,0)  
3910
3911
w28.C0 = CFrame.Angles(math.rad(20), math.rad(-10), math.rad(0)) * CFrame.new(0.75, 1.5,0) 
3912
3913
w29.C1 = CFrame.Angles(math.rad(80), 0, 0) * CFrame.new(0, -0.25,0)  
3914
3915
w29.C0 = CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, 0.25,0.2) 
3916
3917
w30.C1 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, -0.725,0)  
3918
3919
w30.C0 = CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)) * CFrame.new(0, 0.725,0.25) 
3920
3921
--
3922
3923
end
3924
3925
3926
function ride()
3927
3928
Ride = true
3929
3930
equipanim()
3931
3932
end
3933
3934
function unride()
3935
3936
Ride = false
3937
3938
hideanim()
3939
3940
end
3941
3942
3943
function RemoveSeater()
3944
3945
if #prt34:GetChildren() > 0 then
3946
3947
prt34:GetChildren()[1].Parent = nil
3948
3949
end
3950
3951
end
3952
3953
3954
function onFreeFall()
3955
3956
unride()
3957
3958
print("Fell")
3959
3960
value1=value1+1
3961
3962
end
3963
3964
3965
keyhold = false
3966
3967
function ob1d(mouse) 
3968
3969
hold = true 
3970
3971
if attack then return end
3972
3973
keyhold = true
3974
3975
3976
end 
3977
3978
3979
function ob1u(mouse)   
3980
3981
keyhold = false
3982
3983
end 
3984
3985
3986
buttonhold = false
3987
3988
3989
function key(key,mouse)
3990
3991
if attack then return end
3992
3993
if Ride then
3994
3995
if key == "f" then
3996
3997
buttonhold = true
3998
3999
Dash()
4000
4001
end
4002
4003
if key == " " then
4004
4005
coroutine.resume(coroutine.create(Jump))
4006
4007
end
4008
4009
end
4010
4011
if key == "q" then
4012
4013
if Ride then
4014
4015
unride()
4016
4017
else
4018
4019
--prt4
4020
4021
mag=Torso.Position-prt4.Position
4022
4023
magni=mag.magnitude
4024
4025
if magni <=3 then 
4026
4027
swordholder:MoveTo(Head.Position+Vector3.new(0,5,0))
4028
4029
ride()
4030
4031
end
4032
4033
end
4034
4035
end
4036
4037
if key == "x" then
4038
4039
RemoveSeater()
4040
4041
end
4042
4043
end
4044
4045
4046
4047
function key2(key) 
4048
4049
if key == "f" then
4050
4051
buttonhold = false
4052
4053
end
4054
4055
end 
4056
4057
4058
function s(mouse)  
4059
4060
repeat wait() until not attack
4061
4062
repeat wait() until not ev.Value
4063
4064
arms()
4065
4066
mouse.Button1Down:connect(function() ob1d(mouse) end) 
4067
4068
mouse.Button1Up:connect(function() ob1u(mouse) end) 
4069
4070
mouse.KeyDown:connect(function(ke) key(ke,mouse) end) 
4071
4072
mouse.KeyUp:connect(key2) 
4073
4074
ev.Value = true
4075
4076
end 
4077
4078
4079
function ds(mouse) 
4080
4081
keyhold = false
4082
4083
repeat wait() until not attack
4084
4085
repeat wait() until ev.Value
4086
4087
noarms()
4088
4089
wait(0.1)
4090
4091
ev.Value = false 
4092
4093
end 
4094
4095
4096
Bin.Selected:connect(s) 
4097
4098
Bin.Deselected:connect(ds) 
4099
4100
4101
4102
4103
if PlayerGui:findFirstChild("EnergyMeter") ~= nil then
4104
4105
PlayerGui:findFirstChild("EnergyMeter").Parent = nil
4106
4107
end
4108
4109
4110
coroutine.resume(coroutine.create(function()
4111
4112
repeat
4113
4114
wait(0.1)
4115
4116
if Ride then
4117
4118
if dashing then
4119
4120
Character.Humanoid.WalkSpeed = speed * 1.5
4121
4122
else
4123
4124
Character.Humanoid.WalkSpeed = speed
4125
4126
end
4127
4128
if (prt1.Velocity * Vector3.new(1,0,1)).magnitude > 5 then
4129
4130
coroutine.resume(coroutine.create(Walk))
4131
4132
walking = true
4133
4134
elseif (prt1.Velocity * Vector3.new(1,0,1)).magnitude < 5 then
4135
4136
walking = false
4137
4138
AddEnergy(1)
4139
4140
coroutine.resume(coroutine.create(function() Idle() end))
4141
4142
end
4143
4144
else
4145
4146
Character.Humanoid.WalkSpeed = 16 
4147
4148
coroutine.resume(coroutine.create(function() Idle() end))
4149
4150
walking = false
4151
4152
end
4153
4154
until false
4155
4156
end))
4157
4158
4159
coroutine.resume(coroutine.create(function()
4160
4161
local SG = Instance.new("ScreenGui",PlayerGui)
4162
4163
SG.Name = "EnergyMeter"
4164
4165
local frame = Instance.new("Frame",SG)
4166
4167
frame.Size = UDim2.new(0.2,0,0.1,0)
4168
4169
frame.Position = UDim2.new(0.6,0,0.05,0)
4170
4171
frame.BackgroundColor3 = BrickColor.new("Bright blue").Color
4172
4173
local Energytext = Instance.new("TextLabel",frame)
4174
4175
Energytext.Size = UDim2.new(1,0,0.35,0)
4176
4177
Energytext.BackgroundTransparency = 1
4178
4179
Energytext.Text = "Energy"
4180
4181
Energytext.FontSize = "Size18"
4182
4183
Energytext.TextColor3 = BrickColor.new("White").Color
4184
4185
local backing = Instance.new("ImageLabel",frame)
4186
4187
backing.Size = UDim2.new(0.8,0,0.45,0)
4188
4189
backing.Image = "http://www.roblox.com/asset/?id=48965808"
4190
4191
backing.Position = UDim2.new(0.1,0,0.45,0)
4192
4193
backing.BackgroundColor3 = BrickColor.new("Black").Color
4194
4195
local img = Instance.new("ImageLabel",backing)
4196
4197
img.Size = UDim2.new(1,0,1,0)
4198
4199
img.Image = "http://www.roblox.com/asset/?id=48965808"
4200
4201
img.Position = UDim2.new(0,0,0,0)
4202
4203
img.BackgroundColor3 = BrickColor.new("Bright blue").Color
4204
4205
local percent = Instance.new("TextLabel",backing)
4206
4207
percent.Size = UDim2.new(1,0,1,0)
4208
4209
percent.BackgroundTransparency = 1
4210
4211
percent.TextColor3 = BrickColor.new("White").Color
4212
4213
percent.Text = Energy.."/".. MaxEnergy
4214
4215
percent.FontSize = "Size18"
4216
4217
repeat
4218
4219
wait()
4220
4221
pcall(function()
4222
4223
img.Size = UDim2.new(1*(Energy/MaxEnergy),0,1,0)
4224
4225
percent.Text = Energy.."/".. MaxEnergy
4226
4227
end)
4228
4229
until SG.Parent == nil
4230
4231
end))
4232
4233
4234
4235
Character:MoveTo(Head.Position+Vector3.new(0,5,0))
4236
4237
Character.Torso.CFrame = Character.Torso.CFrame + Vector3.new(0,5,0)
4238
4239
swordholder:MoveTo(Head.Position+Vector3.new(0,5,0))
4240
4241
ride()
4242
4243
noarms()