View difference between Paste ID: 005bWfMf and 0kziL1ee
SHOW: | | - or go back to the newest paste.
1-
Player = game:GetService("Players").iigalacticeight
1+
Player = game:GetService("Players").coryhutton44
2
3
Character = Player.Character 
4
5
PlayerGui = Player.PlayerGui 
6
7
Backpack = Player.Backpack 
8
9
Torso = Character.Torso 
10
11
Head = Character.Head 
12
13
Humanoid = Character.Humanoid
14
15
LeftArm = Character["Left Arm"] 
16
17
LeftLeg = Character["Left Leg"] 
18
19
RightArm = Character["Right Arm"] 
20
21
RightLeg = Character["Right Leg"] 
22
23
LS = Torso["Left Shoulder"] 
24
25
LH = Torso["Left Hip"] 
26
27
RS = Torso["Right Shoulder"] 
28
29
RH = Torso["Right Hip"] 
30
31
Neck = Torso.Neck
32
33
it=Instance.new
34
35
vt=Vector3.new
36
37
cf=CFrame.new
38
39
euler=CFrame.fromEulerAnglesXYZ
40
41
angles=CFrame.Angles
42
43
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
44
45
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
46
47
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
48
49
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
50
51
attack = false 
52
53
attacktype = 1 
54
55
damage = 5 
56
57
oridamage = 50 
58
59
attackdebounce = false 
60
61
ssdebounce=false
62
63
MMouse=nil
64
65
combo=0
66
67
magic=true
68
69
RootPart=Character.HumanoidRootPart
70
71
RootJoint=RootPart.RootJoint
72
73
RootCF=euler(-1.57,0,3.14)
74
75
--player 
76
77
player = nil 
78
79
--save shoulders 
80
81
RSH, LSH = nil, nil 
82
83
--welds 
84
85
RW, LW = Instance.new("Weld"), Instance.new("Weld") 
86
87
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
88
89
 
90
91
 
92
93
if Character:findFirstChild("Rapier",true) ~= nil then 
94
95
Character:findFirstChild("Rapier",true).Parent = nil 
96
97
end 
98
99
if Character:findFirstChild("Block",true) ~= nil then 
100
101
Character:findFirstChild("Block",true).Parent = nil 
102
103
end 
104
105
 
106
107
 
108
109
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
110
111
local fp = it("Part")
112
113
fp.formFactor = formfactor 
114
115
fp.Parent = parent
116
117
fp.Reflectance = reflectance
118
119
fp.Transparency = transparency
120
121
fp.CanCollide = false 
122
123
fp.Locked=true
124
125
fp.BrickColor = brickcolor
126
127
fp.Name = name
128
129
fp.Size = size
130
131
fp.Position = Torso.Position 
132
133
fp.BottomSurface="Smooth"
134
135
fp.TopSurface="Smooth"
136
137
fp:BreakJoints()
138
139
return fp 
140
141
end 
142
143
 
144
145
function mesh(Mesh,part,meshtype,meshid,offset,scale)
146
147
local mesh = it(Mesh) 
148
149
mesh.Parent = part
150
151
if Mesh=="SpecialMesh" then
152
153
mesh.MeshType = meshtype
154
155
mesh.MeshId = meshid
156
157
end
158
159
mesh.Offset=offset
160
161
mesh.Scale=scale
162
163
return mesh
164
165
end
166
167
 
168
169
function weld(parent,part0,part1,c0)
170
171
local weld = it("Weld") 
172
173
weld.Parent = parent
174
175
weld.Part0 = part0 
176
177
weld.Part1 = part1 
178
179
weld.C0 = c0
180
181
return weld
182
183
end
184
185
 
186
187
local modelzorz = Instance.new("Model") 
188
189
modelzorz.Parent = Character 
190
191
modelzorz.Name = "Rapier" 
192
193
 
194
195
local prt1=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part1",vt(1,1,1))
196
197
local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
198
199
local prt3=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part3",vt(1,1,1))
200
201
local prt4=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part4",vt(1,1,1))
202
203
local prt5=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part5",vt(1,1,1))
204
205
local prt6=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part6",vt(1,1,1))
206
207
local prt7=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part7",vt(1,1,1))
208
209
local prt8=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part8",vt(1,1,1))
210
211
local prt9=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part9",vt(1,1,1))
212
213
local prt10=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part10",vt(1,1,1))
214
215
local prt11=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part11",vt(1,1,1))
216
217
local prt12=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part12",vt(1,1,1))
218
219
local prt13=part(3,modelzorz,0,1,BrickColor.new("Black"),"Part13",vt(0.5,4,0.5))
220
221
 
222
223
local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.2,1,0.2))
224
225
local msh2=mesh("SpecialMesh",prt2,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.2,0.5,0.2))
226
227
local msh3=mesh("SpecialMesh",prt3,"Sphere","",vt(0,0,0),vt(0.1,0.6,0.1))
228
229
local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(0.3,0.2,0.05))
230
231
local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.05,0.2,0.3))
232
233
local msh6=mesh("SpecialMesh",prt6,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4))
234
235
local msh7=mesh("CylinderMesh",prt7,"","",vt(0,0,0),vt(0.1,0.5,0.1))
236
237
local msh8=mesh("CylinderMesh",prt8,"","",vt(0,0,0),vt(0.4,0.5,0.4))
238
239
local msh9=mesh("CylinderMesh",prt9,"","",vt(0,0,0),vt(0.3,0.05,0.3))
240
241
local msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(0.2,0.1,0.2))
242
243
local msh11=mesh("SpecialMesh",prt11,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.2,1,0.2))
244
245
local msh12=mesh("SpecialMesh",prt12,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.2,3,0.2))
246
247
local msh13=mesh("BlockMesh",prt13,"","",vt(0,0,0),vt(1,1,1))
248
249
 
250
251
local wld1=weld(prt1,prt1,Torso,euler(-2,0,0)*cf(1,0.5,1.5))
252
253
local wld2=weld(prt2,prt2,prt1,cf(0,0.3,0))
254
255
local wld3=weld(prt3,prt3,prt2,cf(0,0.3,0))
256
257
local wld4=weld(prt4,prt4,prt2,cf(0,0.3,0))
258
259
local wld5=weld(prt5,prt5,prt2,cf(0,0.3,0))
260
261
local wld6=weld(prt6,prt6,prt1,cf(0,-0.5,0))
262
263
local wld7=weld(prt7,prt7,prt6,cf(0,-0.25,0))
264
265
local wld8=weld(prt8,prt8,prt7,cf(0,0,0))
266
267
local wld9=weld(prt9,prt9,prt7,cf(0,-0.3,0))
268
269
local wld10=weld(prt10,prt10,prt9,cf(0,-0.05,0))
270
271
local wld11=weld(prt11,prt11,prt10,cf(0,-0.5,0))
272
273
local wld12=weld(prt12,prt12,prt11,cf(0,-1.5,0))
274
275
local wld13=weld(prt13,prt13,prt12,cf(0,0,0))
276
277
 
278
279
numb=0
280
281
for i=1,4 do
282
283
local prt13=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part13",vt(1,1,1))
284
285
local prt14=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part14",vt(1,1,1))
286
287
local prt15=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part15",vt(1,1,1))
288
289
local prt16=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part16",vt(1,1,1))
290
291
 
292
293
local msh13=mesh("SpecialMesh",prt13,"Wedge","",vt(0,0,0),vt(0.05,0.5,0.5))
294
295
local msh14=mesh("SpecialMesh",prt14,"Wedge","",vt(0,0,0),vt(0.051,0.5,0.3))
296
297
local msh15=mesh("BlockMesh",prt15,"","",vt(0,0,0),vt(0.052,0.3,0.2))
298
299
local msh16=mesh("SpecialMesh",prt16,"Wedge","",vt(0,0,0),vt(0.051,0.5,0.5))
300
301
 
302
303
local wld13=weld(prt13,prt13,prt6,euler(0,0,3.14)*cf(0,0.2,0.3)*euler(0,numb,0))
304
305
local wld14=weld(prt14,prt14,prt13,euler(-0.3,0,3.14)*cf(0,0.4,0.2))
306
307
local wld15=weld(prt15,prt15,prt14,euler(-0.2,0,0)*cf(0,-0.3,-0.1))
308
309
local wld16=weld(prt16,prt16,prt15,euler(0.5,0,0)*cf(0,-0.3,0))
310
311
 
312
313
numb=numb+1.57
314
315
end
316
317
 
318
319
numb=0
320
321
color="Bright red"
322
323
for i=1,6 do
324
325
if i==1 then color="White" elseif i==2 then color="Bright blue" elseif i==3 then color="Bright green" elseif i==4 then color="Black" elseif i==5 then color="Bright red" elseif i==6 then color="Bright yellow" end
326
327
local prt17=part(3,modelzorz,0,0,BrickColor.new(color),"Part17",vt(1,1,1))
328
329
 
330
331
local msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(0.1,0.2,0.1))
332
333
 
334
335
local wld17=weld(prt17,prt17,prt7,cf(0.15,0.13,0)*euler(0,numb,0))
336
337
 
338
339
numb=numb+1.046
340
341
end
342
343
 
344
345
if (script.Parent.className ~= "HopperBin") then 
346
347
Tool = Instance.new("HopperBin") 
348
349
Tool.Parent = Backpack 
350
351
Tool.Name = "Rapier" 
352
353
script.Parent = Tool 
354
355
end 
356
357
Bin = script.Parent 
358
359
 
360
361
local bg = it("BodyGyro") 
362
363
bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge 
364
365
bg.P = 20e+003 
366
367
bg.Parent = nil 
368
369
        bp=it("BodyPosition")
370
371
        bp.P=2000
372
373
        bp.D=100
374
375
        bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
376
377
 
378
379
so = function(id,par,vol,pit) 
380
381
coroutine.resume(coroutine.create(function()
382
383
local sou = Instance.new("Sound",par or workspace)
384
385
sou.Volume=vol
386
387
sou.Pitch=pit or 1
388
389
sou.SoundId=id
390
391
wait() 
392
393
sou:play() 
394
395
wait(6) 
396
397
sou:Remove() 
398
399
end))
400
401
end
402
403
 
404
405
function unequipweld() 
406
407
wld1.Part1=Torso
408
409
wld1.C0=euler(-2,0,0)*cf(1,0.5,1.5)
410
411
end 
412
413
 
414
415
function equipweld() 
416
417
wld1.Part1=LeftArm
418
419
wld1.C0=euler(1.57,0,0)*cf(0,1,0)
420
421
end 
422
423
 
424
425
function hideanim() 
426
427
equipped=false
428
429
wait(0.1) 
430
431
Torso.Neck.C0=necko
432
433
RootJoint.C0=RootCF
434
435
unequipweld() 
436
437
end 
438
439
 
440
441
function equipanim() 
442
443
equipped=true
444
445
wait(0.1) 
446
447
equipweld() 
448
449
Torso.Neck.C0=necko*euler(0,0,1)
450
451
RootJoint.C0=RootCF*euler(0,0,-1)
452
453
RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.3)
454
455
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
456
457
LW.C0=cf(-1.5, 0.5, 0) * euler(0.5,-1.57,0)
458
459
LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
460
461
end 
462
463
 
464
465
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
466
467
return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
468
469
end 
470
471
 
472
473
function oneslash()
474
475
attack=true
476
477
for i=0,1,0.1 do
478
479
wait()
480
481
LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0.5+1.5*i,-1.57+0.2*i,0)
482
483
LW.C1=cf(0, 0.5, 0) * euler(0.2-0.8*i,0,0)
484
485
end
486
487
so("http://roblox.com/asset/?id=10209640",prt12,1,1) 
488
489
local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
490
491
con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) 
492
493
for i=0,1,0.2 do
494
495
wait()
496
497
Torso.Neck.C0=necko*euler(0,0,1-2*i)
498
499
RootJoint.C0=RootCF*euler(0,0,-1+2*i)
500
501
wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
502
503
LW.C0=cf(-1-0.5*i, 0.5, -0.5+0.5*i) * euler(2-0.5*i,-1.37,0)
504
505
LW.C1=cf(0, 0.5, 0) * euler(0.2-0.8+1.6*i,0,0)
506
507
local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
508
509
local Point2 = prt12.CFrame
510
511
effect("White",0.5,0.1,LastPoint,Point)
512
513
LastPoint = Point
514
515
end
516
517
con1:disconnect()
518
519
attack=false
520
521
end
522
523
 
524
525
function twoslash()
526
527
attack=true
528
529
for i=0,1,0.1 do
530
531
wait()
532
533
RootJoint.C0=RootCF*euler(0,0,1+3.14*i)
534
535
wld1.C0=euler(1.57+1-1*i,0,0)*cf(0,1,0)
536
537
LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(1.5+0.07*i,-1.37-0.2*i,0)
538
539
LW.C1=cf(0, 0.5, 0) * euler(1-2*i,0,0)
540
541
end
542
543
so("http://roblox.com/asset/?id=10209640",prt12,1,1.1) 
544
545
local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
546
547
con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) 
548
549
for i=0,1,0.2 do
550
551
wait()
552
553
RootJoint.C0=RootCF*euler(0,0,1+3.14+3.14*i)
554
555
wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
556
557
LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(1.57,-1.57,0)
558
559
LW.C1=cf(0, 0.5, 0) * euler(-1+2*i,0,0)
560
561
local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
562
563
effect("White",0.5,0.1,LastPoint,Point)
564
565
LastPoint = Point
566
567
end
568
569
con1:disconnect()
570
571
attack=false
572
573
end
574
575
 
576
577
function threeslash()
578
579
attack=true
580
581
for i=0,1,0.1 do
582
583
wait()
584
585
RootJoint.C0=RootCF*euler(0,0,1-1*i)
586
587
Torso.Neck.C0=necko*euler(0,0,-1+1*i)
588
589
wld1.C0=euler(1.57+1-1*i,0,0)*cf(0,1,0)
590
591
LW.C0=cf(-1.5, 0.5, 0) * euler(1.57+3.64*i,-1.57+1*i,0)
592
593
LW.C1=cf(0, 0.5, 0) * euler(1,0,0)
594
595
end
596
597
so("http://roblox.com/asset/?id=10209640",prt12,1,1) 
598
599
local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
600
601
con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) 
602
603
for i=0,1,0.2 do
604
605
wait()
606
607
RootJoint.C0=RootCF*euler(0,0,-1*i)
608
609
Torso.Neck.C0=necko*euler(0,0,1*i)
610
611
LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(5.21-0.3*i,-0.57,0)
612
613
LW.C1=cf(0, 0.5, 0) * euler(1+4*i,0,0)
614
615
local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
616
617
effect("White",0.5,0.1,LastPoint,Point)
618
619
LastPoint = Point
620
621
end
622
623
con1:disconnect()
624
625
attack=false
626
627
end
628
629
 
630
631
function fourslash()
632
633
attack=true
634
635
so("rbxasset://sounds\\swordlunge.wav",prt12,1,1.5) 
636
637
local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
638
639
con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,15,10) end) 
640
641
for i=0,1,0.2 do
642
643
wait()
644
645
RootJoint.C0=RootCF*euler(0,0,-1-0.57*i)
646
647
Torso.Neck.C0=necko*euler(0,0,1+0.57*i)
648
649
wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
650
651
LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(4.91+1.57*i,-0.57+0.57*i,0)
652
653
LW.C1=cf(0, 0.5, 0) * euler(5,-1.57*i,0)
654
655
local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
656
657
effect("White",0.5,0.1,LastPoint,Point)
658
659
LastPoint = Point
660
661
end
662
663
for i=0,1,0.2 do
664
665
wait()
666
667
local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
668
669
effect("White",0.5,0.1,LastPoint,Point)
670
671
LastPoint = Point
672
673
end
674
675
con1:disconnect()
676
677
attack=false
678
679
end
680
681
 
682
683
function FlameBarrage()
684
685
attack=true
686
687
magic=true
688
689
for i=0,1,0.1 do
690
691
wait()
692
693
Torso.Neck.C0=necko*euler(0.5*i,0,1-1*i)
694
695
wld1.C0=euler(1.57+0.2*i,0,0)*cf(0,1,0)
696
697
RW.C0=cf(1.5-1*i, 0.5, -0.5*i) * euler(1*i,0,0.3-1*i)
698
699
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
700
701
LW.C0=cf(-1.5, 0.5, 0) * euler(0.5+0.5*i,-1.57,0)
702
703
LW.C1=cf(0, 0.5, 0) * euler(0.2-0.4*i,0,0)
704
705
end
706
707
for i=0,1,0.1 do
708
709
wait()
710
711
RW.C0=cf(1.5-1, 0.5, -0.5) * euler(1-0.4*i,0,0.3-1)
712
713
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
714
715
wld7.C0=wld7.C0*euler(0,-0.2,0)
716
717
so("http://roblox.com/asset/?id=28445431",prt7,1,20) 
718
719
end
720
721
coroutine.resume(coroutine.create(function()
722
723
for i=1,10 do
724
725
so("http://roblox.com/asset/?id=131382140",prt12,1,10) 
726
727
wait(0)
728
729
end
730
731
end))
732
733
reffect=prt12:Clone()
734
735
reffect.Parent=modelzorz
736
737
reffect.Transparency=1
738
739
reffect.Mesh.Scale=vt(0.3,3,0.3)
740
741
reffect.BrickColor=BrickColor.new("Bright red")
742
743
local efwld=weld(reffect,reffect,prt12,cf(0,-0.4,0))
744
745
coroutine.resume(coroutine.create(function(Part)
746
747
for i=0,1,0.1 do
748
749
wait()
750
751
Part.Transparency=Part.Transparency-0.05
752
753
end
754
755
while magic==true do
756
757
wait()
758
759
MagicBlock(BrickColor.new("Bright red"),prt12.CFrame*cf((math.random()/4)-(math.random()/4),math.random(-2,1)+math.random(),(math.random()/4)-(math.random()/4)),.5,.5,.5,.05,.05,.05)
760
761
end
762
763
for i=0,1,0.1 do
764
765
wait()
766
767
Part.Transparency=Part.Transparency+0.1
768
769
end
770
771
Part.Parent=nil
772
773
end),reffect)
774
775
for i=0,1,0.05 do
776
777
wait()
778
779
Torso.Neck.C0=necko*euler(0.5-0.5*i,0,1*i)
780
781
RW.C0=cf(1.5-1+0.5*i, 0.5, -0.5+0.3*i) * euler(0.6,0,-0.7)
782
783
RW.C1=cf(0, 0.5, 0) * euler(-0.4*i,0,0)
784
785
LW.C0=cf(-1.5, 0.5, 0) * euler(1+0.2*i,-1.57,0)
786
787
LW.C1=cf(0, 0.5, 0) * euler(-0.2-0.2*i,0,0)
788
789
end
790
791
so("http://roblox.com/asset/?id=10209640",prt12,1,1) 
792
793
local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
794
795
con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) 
796
797
for i=1,3 do
798
799
so("http://roblox.com/asset/?id=130865054",Torso,1,1.5) 
800
801
end
802
803
for i=0,0.2,0.1 do
804
805
wait()
806
807
RootJoint.C0=RootCF*euler(0,0,-1+7.28*i)
808
809
Torso.Neck.C0=necko*euler(0,0,1-1*i)
810
811
RW.C0=cf(1.5-0.5, 0.5, -0.5+0.3-0.3*i) * euler(0.6,0,-0.7-0.5*i)
812
813
RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0)
814
815
LW.C0=cf(-1.5, 0.5, 0) * euler(1.2+0.37*i,-1.57,0)
816
817
LW.C1=cf(0, 0.5, 0) * euler(-0.4+2.4*i,0,0)
818
819
local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
820
821
effect("Bright red",0.5,0.3,LastPoint,Point)
822
823
LastPoint = Point
824
825
end 
826
827
local exprt=part(3,modelzorz,0,1,BrickColor.new("Bright red"),"Explosion Part",vt(1,1,1))
828
829
exprt.Anchored=true
830
831
exprt.CFrame=RootPart.CFrame*cf(0,0,-7)
832
833
so("http://www.roblox.com/asset/?id=2101148",exprt,1,0.6)
834
835
game:GetService("Debris"):AddItem(exprt,1)
836
837
MagicCircle(BrickColor.new("Bright red"),exprt.CFrame,3,3,3,3,3,3)
838
839
for i=1,4 do
840
841
MagicRing(BrickColor.new("Bright red"),exprt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,0.1,1,1,0.05)
842
843
end
844
845
local c = game.Workspace:GetChildren()
846
847
for i = 1, #c do
848
849
local hum = c[i]:findFirstChild("Humanoid")
850
851
if hum ~= nil and hum.Health ~= 0 then
852
853
local head = c[i]:findFirstChild("Head")
854
855
if head ~= nil then
856
857
local targ = head.Position - exprt.Position
858
859
local mag = targ.magnitude
860
861
if mag <= 10 and c[i].Name ~= Player.Name then 
862
863
attackdebounce=false
864
865
Damagefunc1(head,15,50)
866
867
end
868
869
end
870
871
end
872
873
end
874
875
for i=0.2,1,0.1 do
876
877
wait()
878
879
RootJoint.C0=RootCF*euler(0,0,-1+7.28*i)
880
881
Torso.Neck.C0=necko*euler(0,0,1-1*i)
882
883
RW.C0=cf(1.5-0.5, 0.5, -0.5+0.3-0.3*i) * euler(0.6,0,-0.7-0.5*i)
884
885
RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0)
886
887
LW.C0=cf(-1.5, 0.5, 0) * euler(1.2+0.37*i,-1.57,0)
888
889
LW.C1=cf(0, 0.5, 0) * euler(-0.4+2.4*i,0,0)
890
891
local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
892
893
effect("Bright red",0.5,0.3,LastPoint,Point)
894
895
LastPoint = Point
896
897
end
898
899
con1:disconnect()
900
901
for i=0,1,0.1 do
902
903
wait()
904
905
RootJoint.C0=RootCF*euler(0,0,1*i)
906
907
Torso.Neck.C0=necko*euler(0,0,-1*i)
908
909
wld1.C0=euler(1.77-1.2*i,0,0)*cf(0,1,0)
910
911
RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(0.6,0,-1.2)
912
913
RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0)
914
915
LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,-1.57,0)
916
917
LW.C1=cf(0, 0.5, 0) * euler(2-0.43*i,0,0)
918
919
end
920
921
so("rbxasset://sounds\\swordlunge.wav",prt12,1,1.2) 
922
923
local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
924
925
con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,30) end) 
926
927
for i=0,1,0.2 do
928
929
wait()
930
931
RootJoint.C0=RootCF*euler(0,0,1-2.57*i)
932
933
Torso.Neck.C0=necko*euler(0,0,-1+2.57*i)
934
935
wld1.C0=euler(0.57+2.57*i,0,0)*cf(0,1,0)
936
937
RW.C0=cf(1.5-0.5+0.5*i, 0.5, -0.5+0.5*i) * euler(0.6,0,-1.2+2.4*i)
938
939
RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0)
940
941
LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,-1.57,0)
942
943
LW.C1=cf(0, 0.5, 0) * euler(1.57,0,0)
944
945
local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
946
947
effect("Bright red",0.5,0.3,LastPoint,Point)
948
949
LastPoint = Point
950
951
end
952
953
con1:disconnect()
954
955
numb=-7
956
957
for i=1,3 do
958
959
local exprt=part(3,modelzorz,0,1,BrickColor.new("Bright red"),"Explosion Part",vt(1,1,1))
960
961
exprt.Anchored=true
962
963
exprt.CFrame=RootPart.CFrame*cf(0,0,numb)
964
965
so("http://www.roblox.com/asset/?id=2101148",exprt,1,1)
966
967
game:GetService("Debris"):AddItem(exprt,1)
968
969
MagicCircle(BrickColor.new("Bright red"),exprt.CFrame,3,3,3,3,3,3)
970
971
coroutine.resume(coroutine.create(function(Part)
972
973
for i=1,4 do
974
975
MagicBlock(BrickColor.new("Bright red"),Part.CFrame,3,3,3,2,2,2)
976
977
wait(0.1)
978
979
end
980
981
end),exprt)
982
983
local c = game.Workspace:GetChildren()
984
985
for i = 1, #c do
986
987
local hum = c[i]:findFirstChild("Humanoid")
988
989
if hum ~= nil and hum.Health ~= 0 then
990
991
local head = c[i]:findFirstChild("Head")
992
993
if head ~= nil then
994
995
local targ = head.Position - exprt.Position
996
997
local mag = targ.magnitude
998
999
if mag <= 10 and c[i].Name ~= Player.Name then 
1000
1001
attackdebounce=false
1002
1003
Damagefunc1(head,5,30)
1004
1005
end
1006
1007
end
1008
1009
end
1010
1011
end
1012
1013
numb=numb-5
1014
1015
wait(0.2)
1016
1017
end
1018
1019
wait(1)
1020
1021
Torso.Neck.C0=necko*euler(0,0,1)
1022
1023
RootJoint.C0=RootCF*euler(0,0,-1)
1024
1025
magic=false
1026
1027
attack=false
1028
1029
end
1030
1031
 
1032
1033
function IcePrison()
1034
1035
attack=true
1036
1037
magic=true
1038
1039
for i=0,1,0.1 do
1040
1041
wait()
1042
1043
Torso.Neck.C0=necko*euler(0,0,1-1*i)
1044
1045
RootJoint.C0=RootCF*euler(0,0,-1+1*i)
1046
1047
wld1.C0=euler(1.57,0,0)*cf(0,1,0)
1048
1049
RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(1.9*i,0,0.3-0.8*i)
1050
1051
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
1052
1053
LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0.5+1.07*i,-1.57+1.57*i,0.7*i)
1054
1055
LW.C1=cf(0, 0.5, 0) * euler(0.2-0.2*i,0,0)
1056
1057
end
1058
1059
for i=0,1,0.1 do
1060
1061
wait()
1062
1063
RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(1.9,0,-0.5-0.2*i)
1064
1065
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
1066
1067
wld7.C0=wld7.C0*euler(0,0.2,0)
1068
1069
so("http://roblox.com/asset/?id=28445431",prt7,1,20) 
1070
1071
end
1072
1073
reffect=prt12:Clone()
1074
1075
reffect.Parent=modelzorz
1076
1077
reffect.Transparency=1
1078
1079
reffect.Mesh.Scale=vt(0.3,3,0.3)
1080
1081
reffect.BrickColor=BrickColor.new("Bright blue")
1082
1083
local efwld=weld(reffect,reffect,prt12,cf(0,-0.4,0))
1084
1085
coroutine.resume(coroutine.create(function(Part)
1086
1087
for i=0,1,0.1 do
1088
1089
wait()
1090
1091
Part.Transparency=Part.Transparency-0.05
1092
1093
end
1094
1095
while magic==true do
1096
1097
wait()
1098
1099
MagicBlock(BrickColor.new("Bright blue"),prt12.CFrame*cf((math.random()/4)-(math.random()/4),math.random(-2,1)+math.random(),(math.random()/4)-(math.random()/4)),.5,.5,.5,.05,.05,.05)
1100
1101
end
1102
1103
for i=0,1,0.1 do
1104
1105
wait()
1106
1107
Part.Transparency=Part.Transparency+0.1
1108
1109
end
1110
1111
Part.Parent=nil
1112
1113
end),reffect)
1114
1115
for i=1,3 do
1116
1117
so("http://roblox.com/asset/?id=25605551",prt12,1,1) 
1118
1119
end
1120
1121
wait(0.5)
1122
1123
for i=0,1,0.1 do
1124
1125
wait()
1126
1127
wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
1128
1129
RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(1.9-0.6*i,0,-0.7)
1130
1131
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
1132
1133
LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.57-0.57*i,0,0.7-0.2*i)
1134
1135
LW.C1=cf(0, 0.5, 0) * euler(0,1.57*i,0)
1136
1137
end
1138
1139
local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
1140
1141
con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end) 
1142
1143
for i=1,3 do
1144
1145
so("http://roblox.com/asset/?id=10209640",prt12,1,1) 
1146
1147
for i=0,1,0.2 do
1148
1149
wait()
1150
1151
RootJoint.C0=RootCF*euler(0,0,6.32*i)
1152
1153
local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
1154
1155
effect("Bright blue",0.5,0.3,LastPoint,Point)
1156
1157
LastPoint = Point
1158
1159
end
1160
1161
end
1162
1163
so("http://roblox.com/asset/?id=10209640",prt12,1,1) 
1164
1165
for i=0,1,0.2 do
1166
1167
wait()
1168
1169
RootJoint.C0=RootCF*euler(0,0,3.14*i)
1170
1171
local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
1172
1173
effect("Bright blue",0.5,0.3,LastPoint,Point)
1174
1175
LastPoint = Point
1176
1177
end
1178
1179
con1:disconnect()
1180
1181
for i=0,1,0.1 do
1182
1183
wait()
1184
1185
wld1.C0=euler(2.57-1*i,3.14*i,0)*cf(0,1,0)
1186
1187
RootJoint.C0=RootCF*euler(0,0,3.14+3.14*i)
1188
1189
RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(1.3+1.2*i,0,-0.7)
1190
1191
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
1192
1193
LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1+1.5*i,0,0.5+0.2*i)
1194
1195
LW.C1=cf(0, 0.5, 0) * euler(0,1.57-1.57*i,0)
1196
1197
end
1198
1199
local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
1200
1201
so("http://roblox.com/asset/?id=10209640",prt12,1,1.1) 
1202
1203
bg.Parent=Torso
1204
1205
bg.cframe=Torso.CFrame
1206
1207
local bp = Instance.new("BodyPosition")
1208
1209
bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1210
1211
bp.P = 10000
1212
1213
local CF = Torso.CFrame
1214
1215
bp.position = CF.p
1216
1217
bp.Parent=Torso
1218
1219
for i=0,1,0.2 do
1220
1221
wait()
1222
1223
bp.position = CF.p - Vector3.new(0,1.5,0)
1224
1225
Torso["Left Hip"].C0=LHC0*cf(-0.7*i,1.2*i,0)
1226
1227
Torso["Right Hip"].C0=RHC0*cf(0,1.2*i,0)*euler(0,0,-0.5*i)
1228
1229
RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(2.5-1*i,0,-0.7)
1230
1231
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
1232
1233
LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(2.5-1*i,0,0.7)
1234
1235
LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
1236
1237
local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
1238
1239
effect("Bright blue",0.5,0.3,LastPoint,Point)
1240
1241
LastPoint = Point
1242
1243
end
1244
1245
numb=-3
1246
1247
numb2=0
1248
1249
for i=1,40 do
1250
1251
local exprt=part(3,modelzorz,0,1,BrickColor.new("Bright red"),"Explosion Part",vt(1,1,1))
1252
1253
exprt.Anchored=true
1254
1255
exprt.CFrame=RootPart.CFrame*cf(numb2,0,numb)
1256
1257
so("http://www.roblox.com/asset/?id=32656754",exprt,0.5,1) 
1258
1259
game:GetService("Debris"):AddItem(exprt,3)
1260
1261
for i=1,5 do
1262
1263
--Icicle(exprt.CFrame*euler(math.random(-2,1)+math.random(),0,math.random(-2,1)+math.random()),2,5,2)
1264
1265
MagicFreeze(BrickColor.new("Bright blue"),exprt.CFrame*cf(0,-3,0),0.5,0.5,0.5,0.1,0.3,0.1)
1266
1267
end
1268
1269
local c = game.Workspace:GetChildren()
1270
1271
for i = 1, #c do
1272
1273
local hum = c[i]:findFirstChild("Humanoid")
1274
1275
if hum ~= nil and hum.Health ~= 0 then
1276
1277
local head = c[i]:findFirstChild("Head")
1278
1279
if head ~= nil then
1280
1281
local targ = head.Position - exprt.Position
1282
1283
local mag = targ.magnitude
1284
1285
if mag <= 5 and c[i].Name ~= Player.Name then 
1286
1287
attackdebounce=false
1288
1289
freezeDamagefunc(head,0,0)
1290
1291
end
1292
1293
end
1294
1295
end
1296
1297
end
1298
1299
numb=numb-1
1300
1301
if numb2==1 then
1302
1303
wait(0)
1304
1305
numb2=0
1306
1307
end
1308
1309
numb2=numb2+1
1310
1311
end
1312
1313
wait(0.5)
1314
1315
bg.Parent=nil
1316
1317
bp.Parent=nil
1318
1319
Torso["Left Hip"].C0=LHC0
1320
1321
Torso["Right Hip"].C0=RHC0
1322
1323
Torso.Neck.C0=necko*euler(0,0,1)
1324
1325
RootJoint.C0=RootCF*euler(0,0,-1)
1326
1327
magic=false
1328
1329
attack=false
1330
1331
end
1332
1333
 
1334
1335
function AirDash()
1336
1337
attack=true
1338
1339
magic=true
1340
1341
for i=0,1,0.1 do
1342
1343
wait()
1344
1345
wld1.C0=euler(1.57-1.2*i,0,0)*cf(0,1,0.3*i)
1346
1347
Torso.Neck.C0=necko*euler(0,0,1+0.57*i)
1348
1349
RootJoint.C0=RootCF*euler(0,0,-1-0.57*i)
1350
1351
RW.C0=cf(1.5, 0.5, 0) * euler(0.7*i,0,0.3-0.9*i)
1352
1353
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
1354
1355
LW.C0=cf(-1.5+1*i, 0.5, -0.5*i) * euler(0.5+1.07*i,-1.57+3.16*i,0)
1356
1357
LW.C1=cf(0, 0.5, 0) * euler(0.2+0.8*i,0,0)
1358
1359
end
1360
1361
for i=0,1,0.1 do
1362
1363
wait()
1364
1365
wld7.C0=wld7.C0*euler(0,0.2,0)
1366
1367
so("http://roblox.com/asset/?id=28445431",prt7,1,20) 
1368
1369
end
1370
1371
so("http://roblox.com/asset/?id=10209640",prt12,1,0.7) 
1372
1373
local vel2 = Instance.new("BodyVelocity")
1374
1375
vel2.Parent = RootPart
1376
1377
vel2.maxForce = vt(4e+005,4e+005,4e+005)*1
1378
1379
vel2.velocity = Head.CFrame.lookVector*100
1380
1381
local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
1382
1383
bg.Parent = Head
1384
1385
bg.cframe=Head.CFrame
1386
1387
jointhit=false
1388
1389
con1=prt13.Touched:connect(function(hit) 
1390
1391
coroutine.resume(coroutine.create(function()
1392
1393
        if hit.Parent==nil then
1394
1395
                return
1396
1397
        end
1398
1399
        h=hit.Parent:FindFirstChild("Humanoid")
1400
1401
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil and jointhit==false then
1402
1403
jointhit=true
1404
1405
        bp.position=RootPart.Position
1406
1407
--        bp.Parent=RootPart
1408
1409
bg.Parent=RootPart
1410
1411
bg.cframe=RootPart.CFrame
1412
1413
for i=0,1,0.1 do
1414
1415
wait()
1416
1417
RootJoint.C0=RootCF*cf(0,-5*i,5*i)*euler(1.57*i,0,-1.57)
1418
1419
end
1420
1421
for i=0,1,0.1 do
1422
1423
wait()
1424
1425
Torso.Neck.C0=necko*euler(0,0,1.57-1.57*i)
1426
1427
RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.6+0.97*i)
1428
1429
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
1430
1431
LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,1.57,0)
1432
1433
LW.C1=cf(0, 0.5, 0) * euler(-1.57,0,0)
1434
1435
RootJoint.C0=RootCF*cf(0,-5-5*i,5+5*i)*euler(1.57+1.57*i,0,-1.57-3.14*i)
1436
1437
end
1438
1439
coroutine.resume(coroutine.create(function()
1440
1441
while attack==true do
1442
1443
wait()
1444
1445
Torso.Neck.C0=necko
1446
1447
wld1.C0=euler(1.57-1.2+2.77,0,0)*cf(0,1,0)
1448
1449
RW.C0=cf(1.5, 0.5, 0) * euler(0,0,1.57)
1450
1451
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
1452
1453
LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,1.57,0)
1454
1455
LW.C1=cf(0, 0.5, 0) * euler(-1.57,0,0)
1456
1457
end
1458
1459
end))
1460
1461
vel2.Parent=nil
1462
1463
for i=0,1,0.1 do
1464
1465
wait()
1466
1467
RootJoint.C0=RootCF*cf(0,-10,10-3*i)*euler(3.14+1.57*i,0,-1.57-3.14-1.57*i)
1468
1469
end
1470
1471
for i=0,1,0.15 do
1472
1473
wait()
1474
1475
RootJoint.C0=RootCF*cf(0,-10,7-3*i)*euler(3.14+1.57+1.57*i,0,-1.57-3.14-1.57+1.57*i)
1476
1477
end
1478
1479
for i=0,1,0.2 do
1480
1481
wait()
1482
1483
RootJoint.C0=RootCF*cf(0,-10,4-4*i)*euler(3.14+3.14,0,-1.57-3.14-1.57+1.57+1.57*i)
1484
1485
end
1486
1487
RootPart.CFrame=Torso.CFrame*euler(0,1,0)
1488
1489
RootJoint.C0=RootCF*euler(0,0,-1)
1490
1491
bg.Parent=nil
1492
1493
bp.Parent=nil
1494
1495
wait(0.5)
1496
1497
attack=false
1498
1499
wait()
1500
1501
Torso.Neck.C0=necko*euler(0,0,1)
1502
1503
end
1504
1505
end))
1506
1507
Damagefunc1(hit,10,10) 
1508
1509
end) 
1510
1511
numb=-1
1512
1513
for i=0,1,0.2 do
1514
1515
wait()
1516
1517
so("http://roblox.com/asset/?id=10209640",prt12,1,numb) 
1518
1519
numb=numb+0.2
1520
1521
wld1.C0=euler(1.57-1.2+2.77*i,0,0)*cf(0,1,0.3-0.3*i)
1522
1523
Torso.Neck.C0=necko*euler(0,0,1.57)
1524
1525
RW.C0=cf(1.5, 0.5, 0) * euler(0.7-0.7*i,0,-0.6+1.2*i)
1526
1527
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
1528
1529
LW.C0=cf(-1.5+1-1*i, 0.5, -0.5+0.5*i) * euler(1.57,1.57,0)
1530
1531
LW.C1=cf(0, 0.5, 0) * euler(1-2.57*i,0,0)
1532
1533
local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
1534
1535
local Point2 = prt12.CFrame
1536
1537
effect("White",0.5,0.1,LastPoint,Point)
1538
1539
LastPoint = Point
1540
1541
end
1542
1543
for i=0,1,0.1 do
1544
1545
wait()
1546
1547
local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
1548
1549
local Point2 = prt12.CFrame
1550
1551
effect("White",0.5,0.1,LastPoint,Point)
1552
1553
LastPoint = Point
1554
1555
end
1556
1557
con1:disconnect()
1558
1559
if jointhit==false then
1560
1561
vel2.Parent=nil
1562
1563
end
1564
1565
wait(1)
1566
1567
Torso.Neck.C0=necko*euler(0,0,1)
1568
1569
if jointhit==false then
1570
1571
bg.Parent=nil
1572
1573
RootJoint.C0=RootCF*euler(0,0,-1)
1574
1575
attack=false
1576
1577
end
1578
1579
magic=false
1580
1581
end
1582
1583
 
1584
1585
local LastPoint = prt12.CFrame * CFrame.new(0,-prt12.Size.Y*2.5,0)
1586
1587
local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
1588
1589
function effect(Color,Ref,Size,LP,P1,returnn)
1590
1591
local effectsmsh = Instance.new("BlockMesh")
1592
1593
effectsmsh.Scale = Vector3.new(0.4,1,0.4)
1594
1595
effectsmsh.Name = "Mesh"
1596
1597
local effectsg = Instance.new("Part")
1598
1599
effectsg.formFactor = 3
1600
1601
effectsg.CanCollide = false
1602
1603
effectsg.Name = "Eff"
1604
1605
effectsg.Locked = true
1606
1607
effectsg.Anchored = true
1608
1609
effectsg.Size = Vector3.new(0.2,1,0.2)
1610
1611
effectsg.Parent = workspace
1612
1613
effectsmsh.Parent = effectsg
1614
1615
effectsg.BrickColor = BrickColor.new(Color)
1616
1617
effectsg.Reflectance = Ref
1618
1619
local point1 = P1
1620
1621
local mg = (LP.p - point1.p).magnitude
1622
1623
effectsg.Size = Vector3.new(Size,mg,Size)
1624
1625
effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
1626
1627
if returnn then return effectsg end
1628
1629
coroutine.resume(coroutine.create(function()
1630
1631
if not returnn then
1632
1633
for i = 0 , 1 , 0.1 do
1634
1635
wait()
1636
1637
effectsg.Transparency = 1*i
1638
1639
effectsmsh.Scale = Vector3.new(Size-Size*i,1,Size-Size*i)
1640
1641
end
1642
1643
wait()
1644
1645
effectsg.Parent = nil
1646
1647
end
1648
1649
end))
1650
1651
end
1652
1653
 
1654
1655
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
1656
1657
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1658
1659
prt.Anchored=true
1660
1661
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1662
1663
local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1664
1665
coroutine.resume(coroutine.create(function(Part,Mesh) 
1666
1667
for i=0,1,0.1 do
1668
1669
wait()
1670
1671
Part.CFrame=Part.CFrame
1672
1673
Part.Transparency=i
1674
1675
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1676
1677
end
1678
1679
Part.Parent=nil
1680
1681
end),prt,msh)
1682
1683
end
1684
1685
 
1686
1687
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
1688
1689
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1690
1691
prt.Anchored=true
1692
1693
prt.CFrame=cframe
1694
1695
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1696
1697
coroutine.resume(coroutine.create(function(Part,Mesh) 
1698
1699
for i=0,1,0.1 do
1700
1701
wait()
1702
1703
Part.CFrame=Part.CFrame
1704
1705
Part.Transparency=i
1706
1707
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1708
1709
end
1710
1711
Part.Parent=nil
1712
1713
end),prt,msh)
1714
1715
end
1716
1717
 
1718
1719
function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
1720
1721
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1722
1723
prt.Anchored=true
1724
1725
prt.CFrame=cframe
1726
1727
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
1728
1729
coroutine.resume(coroutine.create(function(Part,Mesh) 
1730
1731
for i=0,1,0.03 do
1732
1733
wait()
1734
1735
Part.CFrame=Part.CFrame
1736
1737
Part.Transparency=i
1738
1739
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1740
1741
end
1742
1743
Part.Parent=nil
1744
1745
end),prt,msh)
1746
1747
end
1748
1749
 
1750
1751
function MagicFreeze(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
1752
1753
local prt=part(3,workspace,0.4,0.3,brickcolor,"Effect",vt(0.5,0.5,0.5))
1754
1755
prt.Anchored=true
1756
1757
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1758
1759
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(x1,y1,z1))
1760
1761
coroutine.resume(coroutine.create(function(Part,Mesh) 
1762
1763
for i=0,1,0.1 do
1764
1765
Part.CFrame=Part.CFrame*cf(0,0.3,0)
1766
1767
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1768
1769
end
1770
1771
wait(5)
1772
1773
Part.Parent=nil
1774
1775
end),prt,msh)
1776
1777
end
1778
1779
 
1780
1781
Damagefunc1=function(hit,Damage,Knockback)
1782
1783
        if hit.Parent==nil then
1784
1785
                return
1786
1787
        end
1788
1789
        CPlayer=Bin 
1790
1791
        h=hit.Parent:FindFirstChild("Humanoid")
1792
1793
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
1794
1795
        if attackdebounce == false then 
1796
1797
        attackdebounce = true 
1798
1799
        coroutine.resume(coroutine.create(function() 
1800
1801
        wait(0.2) 
1802
1803
        attackdebounce = false 
1804
1805
        end)) 
1806
1807
        Damage=Damage
1808
1809
--[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
1810
1811
                        return
1812
1813
                end]]
1814
1815
--                        hs(hit,1.2) 
1816
1817
                        c=Instance.new("ObjectValue")
1818
1819
                        c.Name="creator"
1820
1821
                        c.Value=game.Players.LocalPlayer
1822
1823
                        c.Parent=h
1824
1825
                        game:GetService("Debris"):AddItem(c,.5)
1826
1827
                Damage=Damage+math.random(0,10)
1828
1829
--                h:TakeDamage(Damage)
1830
1831
                blocked=false
1832
1833
                block=hit.Parent:findFirstChild("Block")
1834
1835
                if block~=nil then
1836
1837
                print("herp")
1838
1839
                if block.Value>0 then
1840
1841
                blocked=true
1842
1843
                block.Value=block.Value-1
1844
1845
                print(block.Value)
1846
1847
                end
1848
1849
                end
1850
1851
                if blocked==false then
1852
1853
--                h:TakeDamage(Damage)
1854
1855
                h.Health=h.Health-Damage
1856
1857
                showDamage(hit.Parent,Damage,.5)
1858
1859
                else
1860
1861
                h:TakeDamage(1)
1862
1863
                showDamage(hit.Parent,1,.5)
1864
1865
                end
1866
1867
                vp=Instance.new("BodyVelocity")
1868
1869
                vp.P=500
1870
1871
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
1872
1873
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
1874
1875
                vp.velocity=RootPart.CFrame.lookVector*Knockback+RootPart.Velocity/1.05
1876
1877
                if Knockback>0 then
1878
1879
                        vp.Parent=hit.Parent.Torso
1880
1881
                end
1882
1883
                game:GetService("Debris"):AddItem(vp,.25)
1884
1885
                game:GetService("Debris"):AddItem(r,.5)
1886
1887
                                c=Instance.new("ObjectValue")
1888
1889
                        c.Name="creator"
1890
1891
                        c.Value=Player
1892
1893
                        c.Parent=h
1894
1895
                        game:GetService("Debris"):AddItem(c,.5)
1896
1897
                CRIT=false
1898
1899
                hitDeb=true
1900
1901
                AttackPos=6
1902
1903
        end
1904
1905
        end 
1906
1907
end
1908
1909
 
1910
1911
freezeDamagefunc=function(hit,Damage,Knockback)
1912
1913
        if hit.Parent==nil then
1914
1915
                return
1916
1917
        end
1918
1919
        CPlayer=Bin 
1920
1921
        h=hit.Parent:FindFirstChild("Humanoid")
1922
1923
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
1924
1925
        if attackdebounce == false then 
1926
1927
        attackdebounce = true 
1928
1929
        coroutine.resume(coroutine.create(function() 
1930
1931
        wait(0.2) 
1932
1933
        attackdebounce = false 
1934
1935
        end)) 
1936
1937
        Damage=Damage
1938
1939
--[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
1940
1941
                        return
1942
1943
                end]]
1944
1945
--                        hs(hit,1.2) 
1946
1947
                        c=Instance.new("ObjectValue")
1948
1949
                        c.Name="creator"
1950
1951
                        c.Value=game.Players.LocalPlayer
1952
1953
                        c.Parent=h
1954
1955
                        game:GetService("Debris"):AddItem(c,.5)
1956
1957
                Damage=Damage+math.random(0,5)
1958
1959
--                h:TakeDamage(Damage)
1960
1961
                blocked=false
1962
1963
                block=hit.Parent:findFirstChild("Block")
1964
1965
                if block~=nil then
1966
1967
                print("herp")
1968
1969
                if block.Value>0 then
1970
1971
                blocked=true
1972
1973
                block.Value=block.Value-1
1974
1975
                print(block.Value)
1976
1977
                end
1978
1979
                end
1980
1981
                if blocked==false then
1982
1983
--                h:TakeDamage(Damage)
1984
1985
                h.Health=h.Health-Damage
1986
1987
                showDamage(hit.Parent,Damage,.5)
1988
1989
                else
1990
1991
                h:TakeDamage(1)
1992
1993
                showDamage(hit.Parent,1,.5)
1994
1995
                end
1996
1997
                if math.random(1,1)==1 then
1998
1999
                BodPos=Instance.new("BodyPosition")
2000
2001
                BodPos.P=50000
2002
2003
                BodPos.D=1000
2004
2005
                BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
2006
2007
                BodPos.position=hit.Parent.Torso.Position
2008
2009
                BodPos.Parent=hit.Parent.Torso
2010
2011
                BodGy = it("BodyGyro") 
2012
2013
                BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge 
2014
2015
                BodGy.P = 20e+003 
2016
2017
                BodGy.Parent=hit.Parent.Torso
2018
2019
                BodGy.cframe = hit.Parent.Torso.CFrame
2020
2021
                showDamage(hit.Parent,Damage,.5)
2022
2023
                so("http://www.roblox.com/asset/?id=41763367",hit,1,2) 
2024
2025
--[[                for i=1,10 do
2026
2027
                local freezepart=part(3,hit.Parent,0.5,0.5,BrickColor.new("Bright blue"),"Ice Part",vt(math.random(2,3)+math.random(),math.random(2,3)+math.random(),math.random(2,3)+math.random()))
2028
2029
                freezepart.Anchored=true
2030
2031
                freezepart.CFrame=hit.Parent.Torso.CFrame*cf(math.random(-1,0)+math.random(),-2.5,math.random(-1,0)+math.random())*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2032
2033
                coroutine.resume(coroutine.create(function(Part) 
2034
2035
                wait(5)
2036
2037
                Part.Anchored=false
2038
2039
                Part.Velocity=vt(math.random(-20,20),math.random(20,30),math.random(-20,20))
2040
2041
                wait(5)
2042
2043
                Part.Parent=nil
2044
2045
                end),freezepart)
2046
2047
                end]]
2048
2049
                coroutine.resume(coroutine.create(function(BodyPos,BodyGy,Hitted) 
2050
2051
                wait(5)
2052
2053
                BodyPos.Parent=nil
2054
2055
                BodyGy.Parent=nil
2056
2057
                end),BodPos,BodGy,hit)
2058
2059
                end
2060
2061
                vp=Instance.new("BodyVelocity")
2062
2063
                vp.P=500
2064
2065
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
2066
2067
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
2068
2069
                vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
2070
2071
                if Knockback>0 then
2072
2073
                        vp.Parent=hit.Parent.Torso
2074
2075
                end
2076
2077
                game:GetService("Debris"):AddItem(vp,.25)
2078
2079
                                c=Instance.new("ObjectValue")
2080
2081
                        c.Name="creator"
2082
2083
                        c.Value=Player
2084
2085
                        c.Parent=h
2086
2087
                        game:GetService("Debris"):AddItem(c,.5)
2088
2089
                CRIT=false
2090
2091
                hitDeb=true
2092
2093
                AttackPos=6
2094
2095
        end
2096
2097
        end 
2098
2099
end
2100
2101
 
2102
2103
showDamage=function(Char,Dealt,du)
2104
2105
        m=Instance.new("Model")
2106
2107
        m.Name=tostring(Dealt)
2108
2109
        h=Instance.new("Humanoid")
2110
2111
        h.Health=0
2112
2113
        h.MaxHealth=0
2114
2115
        h.Parent=m
2116
2117
        c=Instance.new("Part")
2118
2119
        c.Transparency=0
2120
2121
        c.BrickColor=BrickColor:Red()
2122
2123
        if CRIT==true then
2124
2125
                c.BrickColor=BrickColor.new("Really red")
2126
2127
        end
2128
2129
        c.Name="Head"
2130
2131
        c.TopSurface=0
2132
2133
        c.BottomSurface=0
2134
2135
        c.formFactor="Plate"
2136
2137
        c.Size=Vector3.new(1,.4,1)
2138
2139
        ms=Instance.new("CylinderMesh")
2140
2141
        ms.Scale=Vector3.new(.8,.8,.8)
2142
2143
        if CRIT==true then
2144
2145
                ms.Scale=Vector3.new(1,1.25,1)
2146
2147
        end
2148
2149
        ms.Parent=c
2150
2151
        c.Reflectance=0
2152
2153
        Instance.new("BodyGyro").Parent=c
2154
2155
        c.Parent=m
2156
2157
        c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
2158
2159
        f=Instance.new("BodyPosition")
2160
2161
        f.P=2000
2162
2163
        f.D=100
2164
2165
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
2166
2167
        f.position=c.Position+Vector3.new(0,3,0)
2168
2169
        f.Parent=c
2170
2171
        game:GetService("Debris"):AddItem(m,.5+du)
2172
2173
        c.CanCollide=false
2174
2175
        m.Parent=workspace
2176
2177
        c.CanCollide=false
2178
2179
end
2180
2181
 
2182
2183
function ob1d(mouse) 
2184
2185
if attack == true then return end 
2186
2187
hold=true
2188
2189
if combo==0 then
2190
2191
combo=1
2192
2193
oneslash()
2194
2195
elseif combo==1 then
2196
2197
combo=2
2198
2199
twoslash()
2200
2201
elseif combo==2 then
2202
2203
combo=3
2204
2205
threeslash()
2206
2207
elseif combo==3 then
2208
2209
combo=4
2210
2211
fourslash()
2212
2213
end
2214
2215
coroutine.resume(coroutine.create(function() 
2216
2217
wait(0.5)
2218
2219
if attack==false then
2220
2221
combo=0
2222
2223
Torso.Neck.C0=necko*euler(0,0,1)
2224
2225
RootJoint.C0=RootCF*euler(0,0,-1)
2226
2227
wld1.C0=euler(1.57,0,0)*cf(0,1,0)
2228
2229
RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.3)
2230
2231
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
2232
2233
LW.C0=cf(-1.5, 0.5, 0) * euler(0.5,-1.57,0)
2234
2235
LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
2236
2237
end
2238
2239
end))
2240
2241
end 
2242
2243
 
2244
2245
function ob1u(mouse) 
2246
2247
hold = false 
2248
2249
end 
2250
2251
 
2252
2253
buttonhold = false 
2254
2255
 
2256
2257
function key(key) 
2258
2259
if attack == true then return end 
2260
2261
--attack=true
2262
2263
if key=="z" then
2264
2265
FlameBarrage()
2266
2267
end
2268
2269
if key=="x" then
2270
2271
IcePrison()
2272
2273
end
2274
2275
if key=="c" then
2276
2277
AirDash()
2278
2279
end
2280
2281
if key=="f" then
2282
2283
--so("http://roblox.com/asset/?id=130839563",Torso,1,1) 
2284
2285
so("http://www.roblox.com/asset/?id=10209810",Torso,1,1) 
2286
2287
wait(5)
2288
2289
for i=0,1,0.1 do
2290
2291
wait()
2292
2293
so("http://www.roblox.com/asset/?id=10209810",Torso,1,2) 
2294
2295
end
2296
2297
end
2298
2299
combo=0
2300
2301
wld1.C0=euler(1.57,0,0)*cf(0,1,0)
2302
2303
RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.3)
2304
2305
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
2306
2307
LW.C0=cf(-1.5, 0.5, 0) * euler(0.5,-1.57,0)
2308
2309
LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
2310
2311
Humanoid.WalkSpeed=16
2312
2313
end
2314
2315
 
2316
2317
function key2(key) 
2318
2319
end 
2320
2321
 
2322
2323
function s(mouse) 
2324
2325
mouse.Button1Down:connect(function() ob1d(mouse) end) 
2326
2327
mouse.Button1Up:connect(function() ob1u(mouse) end) 
2328
2329
mouse.KeyDown:connect(key) 
2330
2331
mouse.KeyUp:connect(key2) 
2332
2333
unsheathed = true 
2334
2335
player = Player 
2336
2337
ch = Character 
2338
2339
MMouse = mouse 
2340
2341
RSH = ch.Torso["Right Shoulder"] 
2342
2343
LSH = ch.Torso["Left Shoulder"] 
2344
2345
-- 
2346
2347
RSH.Parent = nil 
2348
2349
LSH.Parent = nil 
2350
2351
-- 
2352
2353
RW.Part0 = ch.Torso 
2354
2355
RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
2356
2357
RW.C1 = CFrame.new(0, 0.5, 0) 
2358
2359
RW.Part1 = ch["Right Arm"] 
2360
2361
RW.Parent = ch.Torso 
2362
2363
--_G.R = RW 
2364
2365
-- 
2366
2367
LW.Part0 = ch.Torso 
2368
2369
LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
2370
2371
LW.C1 = CFrame.new(0, 0.5, 0) 
2372
2373
LW.Part1 = ch["Left Arm"] 
2374
2375
LW.Parent = ch.Torso 
2376
2377
--_G.L = LW 
2378
2379
--
2380
2381
equipanim() 
2382
2383
end 
2384
2385
 
2386
2387
function ds(mouse) 
2388
2389
hideanim() 
2390
2391
wait(0) 
2392
2393
RW.Parent = nil 
2394
2395
LW.Parent = nil 
2396
2397
RSH.Parent = player.Character.Torso 
2398
2399
LSH.Parent = player.Character.Torso 
2400
2401
end 
2402
2403
 
2404
2405
Bin.Selected:connect(s) 
2406
2407
Bin.Deselected:connect(ds) 
2408
2409
print("Spell Rapier loaded.")
2410
2411
-- mediafire
2412
2413
--[[ 
2414
2415
Copyrighted (C) Fenrier 2013
2416
2417
]]