View difference between Paste ID: 611kBj5W and aG2gNwht
SHOW: | | - or go back to the newest paste.
1
--MADE BY OneLegend (NOT THE SCRIPT) REGULAR SCRIPT: Go to line 8 and put your name where it says "YOUR NAME HERE"
2
3
4
Plrs = game:GetService("Players")
5
6
7
8-
me = Plrs.YOURNAMEHERE
8+
me = Plrs.TheOfficalNoob4788
9
10
char = me.Character
11
12
13
14
Modelname = "xWep"
15
16
Toolname = "Drage"
17
18
Able = true
19
20
Selected = false
21
22
Deb = true
23
24
Hurt = false
25
26
CritMultiplier = 1.6
27
28
ComboOn = false
29
30
AbleToBreak = false
31
32
CounterKey = false
33
34
Attack = 1
35
36
AddDamage = 0
37
38
AddDamageX = 1
39
40
AddShield = 0
41
42
Dmgs = {Smash = {"Smash", 25, 2, 3, false}, Slash = {"Slash", 18, 1, 3, false}, SideSlash = {"SideSlash", 18, 1, 3, false},
43
44
DoubleSlash = {"Double Slash", 20, 1, 2, false}, Spin = {"Spin Slash", 30, 2, 5, true, 30}, Boom = {"Boom", 60, 6, 6, true, 50, 16},
45
46
RageMode = {"RAGE", 8, 1.35, 1, 50}, Counter = {"Counter", 25, 1, 1, true, 15}, RageSlash = {"Rage Slash", 40, 3, 7, true, 30}}
47
48
RageMode = false
49
50
Mode = Dmgs.Slash
51
52
AbleAll = true
53
54
necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) 
55
56
Aim = false
57
58
59
60
LineColor = "White"
61
62
EffectColor3 = "Bright red"
63
64
EffectColor2 = "White"
65
66
EffectColor = "Pastel Blue"
67
68
MainColor = "Navy blue"
69
70
BladeColor = "Pastel Blue"
71
72
73
74
BlockBars = {}
75
76
77
78
MaxRage = 100
79
80
Rage = MaxRage
81
82
83
84
CritChance = 5 --Percent
85
86
87
88
for _, v in pairs(char:children()) do
89
90
	if v.Name == "Block" then v:remove() end
91
92
end
93
94
95
96
BlockRealPowa = 4
97
98
99
100
Block = Instance.new("BoolValue")
101
102
Block.Name = "Block"
103
104
Block.Value = false
105
106
BlockPower = Instance.new("IntValue")
107
108
BlockPower.Name = "BlockPower"
109
110
BlockPower.Value = BlockRealPowa
111
112
BlockPower.Parent = Block
113
114
Block.Parent = char
115
116
117
118
CA = CFrame.Angles
119
120
CN = CFrame.new
121
122
MR = math.rad
123
124
MP = math.pi
125
126
MD = math.deg
127
128
MH = math.huge
129
130
MRA = math.random
131
132
133
134
EffPos = CFrame.new(0, 0.5, 0)
135
136
137
138
Sounds = {
139
140
	Equip = {"rbxasset://sounds//unsheath.wav", 0.7, 0.6},
141
142
	Hit = {"http://www.roblox.com/asset/?id=2801263", 0.9, 0.6},
143
144
	Block = {"", 1, 0.5},
145
146
	Slash = {"rbxasset://sounds//swordslash.wav", 2, 0.8},
147
148
	SmashHit = {"rbxasset://sounds\\metal.ogg", 1.5, 0.8},
149
150
	Jump = {"rbxasset://sounds/swoosh.wav", 1, 1},
151
152
	Boom = {"http://www.roblox.com/asset?id=1369158", 1.2, 1},
153
154
	SmashBoom = {"http://www.roblox.com/asset/?id=2760979", 0.25, 1},
155
156
	Jump2 = {"http://www.roblox.com/asset/?id=2101148", 2, 1},
157
158
	GoRage = {"http://www.roblox.com/asset/?id=2767090", 1, 1},
159
160
	Shout = {"http://www.roblox.com/asset/?id=2676305", 1.1, 0.8},
161
162
	RageOff = {"http://www.roblox.com/asset/?id=3264793", 1.6, 0.6},
163
164
}
165
166
167
168
Add = {
169
170
	Sphere = function(P)
171
172
		local m = Instance.new("SpecialMesh",P)
173
174
		m.MeshType = "Sphere"
175
176
		return m
177
178
	end,
179
180
	BP = function(P)
181
182
		local bp = Instance.new("BodyPosition",P)
183
184
		bp.maxForce = Vector3.new(MH, MH, MH)
185
186
		bp.P = 14000
187
188
		return bp
189
190
	end,
191
192
	BG = function(P)
193
194
		local bg = Instance.new("BodyGyro",P)
195
196
		bg.maxTorque = Vector3.new(MH, MH, MH)
197
198
		bg.P = 14000
199
200
		return bg
201
202
	end,
203
204
	Mesh = function(P, ID, x, y, z)
205
206
		local m = Instance.new("SpecialMesh")
207
208
		m.MeshId = ID
209
210
		m.Scale = Vector3.new(x, y, z)
211
212
		m.Parent = P
213
214
		return m
215
216
	end,
217
218
	Head = function(P)
219
220
		local s = Instance.new("SpecialMesh")
221
222
		s.MeshType = "Head"
223
224
		s.Parent = P
225
226
		return s
227
228
	end,
229
230
	Sound = function(P, ID, vol, pitch)
231
232
		local s = Instance.new("Sound")
233
234
		s.SoundId = ID
235
236
		s.Volume = vol
237
238
		s.Pitch = pitch
239
240
		s.Parent = P
241
242
		return s
243
244
	end
245
246
}
247
248
249
250
function RC(Pos, Dir, Max, Ignore)
251
252
	return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999)), Ignore)
253
254
end
255
256
257
258
function RayC(Start, En, MaxDist, Ignore)
259
260
	return RC(Start, (En - Start), MaxDist, Ignore)
261
262
end
263
264
265
266
function Notime(func, tim)
267
268
	coroutine.resume(coroutine.create(function()
269
270
		if tim then
271
272
			wait(tim)
273
274
		end
275
276
		func()
277
278
	end))
279
280
end
281
282
283
284
function waitChild(parent, name)
285
286
	local child = parent:findFirstChild(name)
287
288
	if child then return child end
289
290
	while true do
291
292
		child = parent.ChildAdded:wait()
293
294
		if child.Name == name then return child end
295
296
	end
297
298
end
299
300
301
302
function ComputePos(pos1, pos2)
303
304
	local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
305
306
	return CFrame.new(pos1, pos3)
307
308
end
309
310
311
312
function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
313
314
	local p = Instance.new("Part")
315
316
	p.formFactor = "Custom"
317
318
	p.Anchored = Anchor
319
320
	p.CanCollide = Collide
321
322
	p.Transparency = Tran
323
324
	p.Reflectance = Ref
325
326
	p.BrickColor = BrickColor.new(Color)
327
328
	p.TopSurface = 0
329
330
	p.BottomSurface = 0
331
332
	p.Size = Vector3.new(X, Y, Z)
333
334
	if Break then
335
336
		p:BreakJoints()
337
338
	else p:MakeJoints() end
339
340
	p.Parent = Parent
341
342
	p.Locked = true
343
344
	return p
345
346
end
347
348
349
350
function Weld(p0, p1, x, y, z, a, b, c)
351
352
	local w = Instance.new("Weld")
353
354
	w.Parent = p0
355
356
	w.Part0 = p0
357
358
	w.Part1 = p1
359
360
	w.C1 = CN(x,y,z) * CA(a,b,c)
361
362
	return w
363
364
end
365
366
367
368
torso = char.Torso
369
370
neck = torso.Neck
371
372
hum = char.Humanoid
373
374
Rarm = char["Right Arm"]
375
376
Larm = char["Left Arm"]
377
378
Rleg = char["Right Leg"]
379
380
Lleg = char["Left Leg"]
381
382
383
384
hc = Instance.new("Humanoid")
385
386
hc.Health = 0
387
388
hc.MaxHealth = 0
389
390
391
392
function getHumanoid(c)
393
394
	local h = nil
395
396
	for i,v in pairs(c:children()) do
397
398
		if v:IsA("Humanoid") and c ~= char then
399
400
			if v.Health > 0 then
401
402
				h = v
403
404
			end
405
406
		end
407
408
	end
409
410
	return h
411
412
end
413
414
415
416
function getCharacters(where, pos, dist)
417
418
	local chars = {}
419
420
	for _, v in pairs(where:children()) do
421
422
		local hum = getHumanoid(v)
423
424
		local tors = v:findFirstChild("Torso")
425
426
		if tors ~= nil and hum ~= nil then
427
428
			local anypart = nil
429
430
			for _,k in pairs(v:children()) do
431
432
				if k:IsA("BasePart") then
433
434
					if (k.Position - pos).magnitude <= dist then
435
436
						anypart = k
437
438
						break
439
440
					end
441
442
				end
443
444
			end
445
446
			if anypart then
447
448
				table.insert(chars, {v, tors, hum})
449
450
			end
451
452
		end
453
454
	end
455
456
	return chars
457
458
end
459
460
461
462
function PlaySound(id, pitch, vol)
463
464
	local s = Add.Sound(nil, id, vol, pitch)
465
466
	if pitch ~= nil then
467
468
		if tonumber(pitch) then
469
470
			s.Pitch = tonumber(pitch)
471
472
		end
473
474
	end
475
476
	if vol ~= nil then
477
478
		if tonumber(vol) then
479
480
			s.Volume = tonumber(vol)
481
482
		end
483
484
	end
485
486
	s.Parent = torso
487
488
	s.PlayOnRemove = true
489
490
	Notime(function()
491
492
		wait()
493
494
		s:remove()
495
496
	end)
497
498
end
499
500
501
502
function playz(sound)
503
504
	PlaySound(sound[1], sound[2], sound[3])
505
506
end
507
508
509
510
PlrGui = waitChild(me, "PlayerGui")
511
512
513
514
for _, v in pairs(char:children()) do if v.Name == Modelname then v:remove() end end 
515
516
for _, v in pairs(PlrGui:children()) do
517
518
	if v.Name == "HealthGUI" or v.Name == "MyGui" then
519
520
		v:remove()
521
522
	end
523
524
end
525
526
527
528
function EditGui(obj, parent, size, position, bgcolor, bordercolor, transparency, text, textcolor, auto)
529
530
	obj.Size = size
531
532
	obj.Position = position
533
534
	obj.BackgroundColor3 = bgcolor
535
536
	obj.BorderColor3 = bordercolor
537
538
	obj.BackgroundTransparency = transparency
539
540
	if obj:IsA("TextLabel") or obj:IsA("TextButton") then
541
542
		obj.Text = text
543
544
		obj.TextColor3 = textcolor
545
546
	end
547
548
	if obj:IsA("ImageButton") or obj:IsA("TextButton") then
549
550
		obj.AutoButtonColor = auto
551
552
		obj.MouseButton1Down:connect(function()
553
554
			RemoveOptions()
555
556
		end)
557
558
	end
559
560
	obj.Parent = parent
561
562
end
563
564
565
566
C3 = Color3.new
567
568
UD = UDim2.new
569
570
571
572
Sc = Instance.new("ScreenGui", PlrGui)
573
574
Sc.Name = "MyGui"
575
576
577
578
Fr = Instance.new("Frame")
579
580
EditGui(Fr, Sc, UD(0, 60, 0, 250), UD(1, -70, 0.5, -125), C3(0.1, 0.2, 0.5), C3(), 0)
581
582
583
584
HealthBack = Instance.new("Frame")
585
586
EditGui(HealthBack, Fr, UD(0, 25, 1, -20), UD(0, 3, 0, 10), C3(0.2, 0, 0), C3(), 0)
587
588
589
590
RageBack = Instance.new("Frame")
591
592
EditGui(RageBack, Fr, UD(0, 25, 1, -20), UD(1, -27, 0, 10), C3(0.2, 0, 0), C3(), 0)
593
594
595
596
local hp = hum.Health/hum.MaxHealth
597
598
if hp > 1 then hp = 1 elseif hp < 0 then hp = 0 end
599
600
601
602
HealthBar = Instance.new("ImageLabel")
603
604
EditGui(HealthBar, HealthBack, UD(1, 0, hp, 0), UD(0, 0, 0, 0), C3(0.1, 0.65, 0), C3(), 0)
605
606
HealthBar.Image = "http://www.roblox.com/asset/?id=50051953"
607
608
609
610
RageBar = Instance.new("ImageLabel")
611
612
EditGui(RageBar, RageBack, UD(1, 0, Rage/MaxRage, 0), UD(0, 0, 0, 0), C3(1, 0.6, 0.15), C3(), 0)
613
614
RageBar.Image = "http://www.roblox.com/asset/?id=50051953"
615
616
617
618
RageAmount = Instance.new("TextLabel")
619
620
EditGui(RageAmount, RageBack, UD(1, 0, 0, 0), UD(0, 0, 0, 0), C3(1, 0.6, 0.15), C3(), 0, Rage, C3(1,1,1))
621
622
RageAmount.TextYAlignment = "Top"
623
624
625
626
AimButton = Instance.new("TextButton")
627
628
EditGui(AimButton, Fr, UD(1, 0, 0, 35), UD(0, 0, 1, 0), C3(0.9, 0.2, 0.3), C3(), 0, "AIM: OFF", C3(), true)
629
630
AimButton.TextWrap = true
631
632
AimButton.Font = "ArialBold"
633
634
AimButton.FontSize = "Size14"
635
636
AimButton.MouseButton1Down:connect(function()
637
638
	if Aim then
639
640
		Aim = false
641
642
		AimButton.Text = "AIM: OFF"
643
644
		AimButton.BackgroundColor3 = C3(0.9, 0.2, 0.3)
645
646
	else
647
648
		Aim = true
649
650
		AimButton.Text = "AIM: ON"
651
652
		AimButton.BackgroundColor3 = C3(0.3, 0.85, 0.1)
653
654
	end
655
656
end)
657
658
659
660
for i = 1, BlockRealPowa do
661
662
	local gui = Instance.new("ImageLabel")
663
664
	EditGui(gui, Fr, UD(0, 16, 0, 16), UD(0, -18, 0.5, 20*(i-1)-((BlockRealPowa*20)/2)), C3(), C3(), 1)
665
666
	gui.Image = "http://www.roblox.com/asset/?id=48908046"
667
668
	table.insert(BlockBars, gui)
669
670
end
671
672
673
674
BlockPower.Changed:connect(function()
675
676
	for _, v in pairs(BlockBars) do
677
678
		v.Image = ""
679
680
	end
681
682
	for i = 1, BlockPower.Value do
683
684
		local gui = BlockBars[i]
685
686
		if gui then
687
688
			gui.Image = "http://www.roblox.com/asset/?id=48908046"
689
690
		end
691
692
	end
693
694
end)
695
696
697
698
Mo = Instance.new("Model")
699
700
Mo.Name = Modelname
701
702
703
704
RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
705
706
LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
707
708
RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
709
710
LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
711
712
713
714
RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
715
716
LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
717
718
RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
719
720
LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
721
722
723
724
RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
725
726
LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
727
728
RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
729
730
LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
731
732
733
734
HB = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
735
736
HBW = Weld(Rarm, HB, 0, 0, 1, MP/2, 0, 0)
737
738
HW = Weld(HB, nil, 0, 0, 0, 0, 0, 0)
739
740
741
742
SW = Weld(Larm, nil, -0.5, 0, 0.3, MP/2, 0, 0)
743
744
745
746
TH = Weld(torso, nil, 0, 2.5, 0, MR(145), 0, 0)
747
748
TH.C0 = CN(0, -0.3, 0.75) * CA(0, MP/2, 0)
749
750
751
752
Weapon = Instance.new("Model")
753
754
Weapon.Name = "Weapon"
755
756
757
758
Handle = Part(Weapon, false, false, 0, 0, MainColor, 0.4, 1.8, 0.4)
759
760
Add.Head(Handle)
761
762
763
764
Tip1 = Part(Weapon, false, false, 0, 0, "Deep blue", 0.45, 1.2, 0.45)
765
766
Add.Head(Tip1)
767
768
Weld(Handle, Tip1, 0, 0, 0, 0, 0, 0)
769
770
771
772
Tip2 = Part(Weapon, false, false, 0, 0, "Bright blue", 0.5, 0.5, 0.5)
773
774
Weld(Handle, Tip2, 0, 0.9, 0, 0, 0, 0)
775
776
Add.Mesh(Tip2, "http://www.roblox.com/asset/?id=9756362", 0.75, 0.5, 0.75)
777
778
779
780
Tip3 = Part(Weapon, false, false, 0, 0, "Deep blue", 0.7, 0.3, 1.2)
781
782
Weld(Handle, Tip3, 0, -0.9, 0, 0, 0, 0)
783
784
Add.Mesh(Tip3, "http://www.roblox.com/asset/?id=9756362", 0.7, 0.35, 1.35)
785
786
787
788
Tip4 = Part(Weapon, false, false, 0, 0, "Deep blue", 0.6, 0.2, 1.8)
789
790
Weld(Handle, Tip4, 0, -0.9, 0, 0, 0, 0)
791
792
793
794
Tip5 = Part(Weapon, false, false, 0, 0, "Bright blue", 0.6, 0.6, 0.3)
795
796
Weld(Tip4, Tip5, 0, -0.4, -0.85, MR(-15), 0, 0)
797
798
799
800
Tip6 = Part(Weapon, false, false, 0, 0, "Bright blue", 0.6, 0.6, 0.3)
801
802
Weld(Tip4, Tip6, 0, -0.4, 0.85, MR(15), 0, 0)
803
804
805
806
Blades = {}
807
808
809
810
for i = 0, 180, 180 do
811
812
	for x = -20, 20, 40 do
813
814
		local lol = i-90
815
816
		local lol2 = math.abs(lol/480)
817
818
		local lol3 = x/90
819
820
		local Blade1 = Part(Weapon, false, false, 0, 0.3, BladeColor, 0.2, 3.5, 0.6)
821
822
		Instance.new("BlockMesh",Blade1).Scale = Vector3.new(0.2, 1, 0.99)
823
824
		local w = Weld(Tip4, Blade1, lol2, 0, -lol3, 0, 0, 0)
825
826
		w.C0 = CN(0, 1.7, 0) * CA(0, MR(i+x), 0)
827
828
		table.insert(Blades, Blade1)
829
830
	end
831
832
end
833
834
835
836
Tip7 = Part(Weapon, false, false, 0, 0.3, BladeColor, 0.3, 1.3, 0.7)
837
838
Add.Mesh(Tip7, "http://www.roblox.com/asset/?id=9756362", 0.31, 1.4, 0.8)
839
840
Weld(Tip4, Tip7, 0, -3.45, 0, 0, 0, 0)
841
842
843
844
table.insert(Blades, Tip7)
845
846
847
848
TH.Part1 = Handle
849
850
851
852
Shield = Instance.new("Model")
853
854
Shield.Name = "Shield"
855
856
857
858
SHandle = Part(Weapon, false, false, 0, 0, "Really black", 0.2, 0.9, 0.4)
859
860
SW.Part1 = SHandle
861
862
863
864
for i = 65, 115, 25 do
865
866
	local STip1 = Part(Weapon, false, false, 0, 0, "Really black", 0.2, 0.5, 0.4)
867
868
	local w = Weld(SHandle, STip1, 0.8, 0, 0, 0, 0, 0)
869
870
	w.C0 = CN(-0.5, 0.2, 0) * CA(0, 0, MR(i))
871
872
end
873
874
875
876
for i = -65, -115, -25 do
877
878
	local STip1 = Part(Weapon, false, false, 0, 0, "Really black", 0.2, 0.5, 0.4)
879
880
	local w = Weld(SHandle, STip1, 0.8, 0, 0, 0, 0, 0)
881
882
	w.C0 = CN(-0.5, -0.2, 0) * CA(0, 0, MR(i))
883
884
end
885
886
887
888
SHandle2 = Part(Weapon, false, false, 0, 0, "Really black", 0.2, 0.9, 0.4)
889
890
Weld(SHandle, SHandle2, 1, 0, 0, 0, 0, 0)
891
892
893
894
ShieldMain = Part(Weapon, false, false, 0, 0, "Medium grey", 0.3, 3.5, 1.1)
895
896
ShieldW = Weld(SHandle2, ShieldMain, 0, 0, 0, 0, 0, 0)
897
898
ShieldW.C0 = CN(0, -0.2, 0) * CA(0, MR(-5), 0)
899
900
901
902
STip1 = Part(Weapon, false, false, 0, 0, "Navy blue", 0.35, 0.4, 1.15)
903
904
Weld(ShieldMain, STip1, 0, -1.75, 0, 0, 0, 0)
905
906
907
908
STip2 = Part(Weapon, false, false, 0, 0, "Navy blue", 0.35, 0.4, 1.15)
909
910
Weld(ShieldMain, STip2, 0, 1.75, 0, 0, 0, 0)
911
912
913
914
for i = -15, 15, 30 do
915
916
	local ShieldPlate = Part(Weapon, false, false, 0, 0, "Medium grey", 0.3, 3.5, 1.1)
917
918
	local w = Weld(ShieldMain, ShieldPlate, 3.5, 0, 0, 0, 0, 0)
919
920
	w.C0 = CN(3.5, 0, 0) * CA(0, math.rad(i), 0)
921
922
	for x = -1.75, 1.75, 1.75*2 do
923
924
		local STip3 = Part(Weapon, false, false, 0, 0, "Navy blue", 0.35, 0.4, 1.15)
925
926
		Weld(ShieldPlate, STip3, 0, x, 0, 0, 0, 0)
927
928
	end
929
930
	local i2 = i/40
931
932
	local STip3 = Part(Weapon, false, false, 0, 0, "Navy blue", 0.35, 3.9, 0.4)
933
934
	Weld(ShieldPlate, STip3, 0, 0, -i2, 0, 0, 0)
935
936
end
937
938
939
940
Weapon.Parent = Mo
941
942
Shield.Parent = Mo
943
944
945
946
Mo.Parent = char
947
948
949
950
function ShowDamage(Dmg, Par, Crit, block)
951
952
	local Pos = Par.CFrame * CN(0, 2.5, 0)
953
954
	local M = Instance.new("Model")
955
956
	local Loldmg = Dmg
957
958
	if Loldmg < 0 then
959
960
		Loldmg = 0
961
962
	end
963
964
	if tostring(Loldmg):sub(1,1) == "-" then
965
966
		Loldmg = tostring(Loldmg):sub(2)
967
968
	end
969
970
	M.Name = Loldmg
971
972
	local Col = "Bright red"
973
974
	if Crit then Col = "Bright yellow" elseif block then Col = "Bright blue" end
975
976
	local P = Part(M, false, false, 0, 0, Col, 0.8, 0.3, 0.8, true)
977
978
	P.CFrame = CN(Par.Position)
979
980
	P.Name = "Head"
981
982
	local BP = Add.BP(P)
983
984
	BP.position = Pos.p
985
986
	BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
987
988
	BP.P = 11000
989
990
	Add.BG(P)
991
992
	local H = hc:clone()
993
994
	H.Parent = M
995
996
	H.MaxHealth = 0
997
998
	H.Health = 0
999
1000
	M.Parent = workspace
1001
1002
	Notime(function()
1003
1004
		wait(1.5)
1005
1006
		M:remove()
1007
1008
	end)
1009
1010
end
1011
1012
1013
1014
function Damage(P, Hum, dmg, crit, block)
1015
1016
	if Hum then
1017
1018
		if Hum.Health > 0 then
1019
1020
			local Damg = dmg
1021
1022
			if crit then
1023
1024
				Damg = dmg*CritMultiplier
1025
1026
			end
1027
1028
			Damg = math.ceil(((Damg+AddDamage)*AddDamageX)-0.5)
1029
1030
			Hum.Health = Hum.Health - Damg
1031
1032
			ShowDamage(Damg, P, crit, block)
1033
1034
		end
1035
1036
	end
1037
1038
end
1039
1040
1041
1042
function ShieldDamage(mode, blockval, blockpowerval, crit)
1043
1044
	if blockval and blockpowerval then
1045
1046
		local ShieldDmg = mode[3]+AddShield
1047
1048
		if crit then
1049
1050
			ShieldDmg = mode[4]+AddShield
1051
1052
		end
1053
1054
		if blockpowerval then
1055
1056
			blockpowerval.Value = blockpowerval.Value - ShieldDmg
1057
1058
			if blockpowerval.Value < 1 then
1059
1060
				blockval.Value = false
1061
1062
			end
1063
1064
		end
1065
1066
	end
1067
1068
end
1069
1070
1071
1072
function getBlock(c)
1073
1074
	local block, blockpow = nil
1075
1076
	local blockin = false
1077
1078
	for _,v in pairs(c:children()) do
1079
1080
		if v.Name == "Block" and v:IsA("BoolValue") then
1081
1082
			block = v
1083
1084
			blockin = v.Value
1085
1086
			local bp = v:findFirstChild("BlockPower")
1087
1088
			if bp then
1089
1090
				blockpow = bp
1091
1092
			end
1093
1094
		end
1095
1096
	end
1097
1098
	return block, blockpow, blockin
1099
1100
end
1101
1102
1103
1104
function TouchDamage(hit)
1105
1106
	local Hum = getHumanoid(hit.Parent)
1107
1108
	if Hum and Deb and Hurt then
1109
1110
		Deb = false
1111
1112
		local Crit = false
1113
1114
		local BlockVal, BlockPowaVal, Blawk = getBlock(Hum.Parent)
1115
1116
		local BlockPowa = 0
1117
1118
		local blocksound = Sounds.SmashHit
1119
1120
		if math.random(1,100/CritChance) == 1 then
1121
1122
			Crit = true
1123
1124
		end
1125
1126
		local Damg = math.random(Mode[2]/3, Mode[2])
1127
1128
		if Blawk then
1129
1130
			Damg = 0
1131
1132
			ShieldDamage(Mode, BlockVal, BlockPowaVal, Crit)
1133
1134
			if BlockPowaVal then
1135
1136
				if BlockPowaVal.Value < 1 then
1137
1138
					blocksound = Sounds.Equip
1139
1140
				end
1141
1142
			end
1143
1144
		end
1145
1146
		if Mode[5] == false and RageMode == false and Blawk == false then
1147
1148
			Rage = Rage + math.ceil(Damg*0.75-0.5)
1149
1150
		end
1151
1152
		if Blawk then
1153
1154
			PlaySound(blocksound[1], blocksound[2]-0.15, blocksound[3])
1155
1156
		else
1157
1158
			PlaySound(Sounds.Hit[1], Sounds.Hit[2], Sounds.Hit[3])
1159
1160
		end
1161
1162
		Damage(hit, Hum, Damg, Crit, Blawk)
1163
1164
		if Mode == Dmgs.Spin then
1165
1166
			Notime(function()
1167
1168
				wait(0.35)
1169
1170
				Deb = true
1171
1172
			end)
1173
1174
		end
1175
1176
	end
1177
1178
end
1179
1180
1181
1182
for _, v in pairs(Blades) do
1183
1184
	v.Touched:connect(TouchDamage)
1185
1186
end
1187
1188
1189
1190
if script.Parent.className ~= "HopperBin" then
1191
1192
	H = Instance.new("HopperBin", me.Backpack)
1193
1194
	H.Name = Toolname
1195
1196
	script.Parent = H
1197
1198
end
1199
1200
1201
1202
Bin = script.Parent
1203
1204
1205
1206
EffectOn = false
1207
1208
1209
1210
function StartEffect(color)
1211
1212
	EffectOn = true
1213
1214
	local lastPoint = Tip7.CFrame * EffPos.p
1215
1216
	Notime(function()
1217
1218
		while EffectOn do
1219
1220
			wait()
1221
1222
			local pos = Tip7.CFrame * EffPos.p
1223
1224
			local magn = (lastPoint - pos).magnitude
1225
1226
			local col = LineColor
1227
1228
			if color and col ~= EffectColor3 then
1229
1230
				col = color
1231
1232
			end
1233
1234
			local p = Part(workspace, true, false, 0.1, 0, col, 0.3, 1, 0.3, true)
1235
1236
			local mesh = Add.Head(p)
1237
1238
			mesh.Scale = Vector3.new(1, magn+0.1, 1)
1239
1240
			p.CFrame = CN(lastPoint, pos) * CA(-MP/2, 0, 0) * CN(0, magn/2+0.05, 0)
1241
1242
			lastPoint = pos
1243
1244
			Notime(function()
1245
1246
				wait(0.05)
1247
1248
				for i = 0, 1, 0.12 do
1249
1250
					p.Transparency = 0.1+0.9*i
1251
1252
					mesh.Scale = Vector3.new(1-1*i, magn+0.1-0.1*i, 1-1*i)
1253
1254
					wait()
1255
1256
				end
1257
1258
				p:remove()
1259
1260
			end)
1261
1262
		end
1263
1264
	end)
1265
1266
end
1267
1268
1269
1270
function EndEffect()
1271
1272
	EffectOn = false
1273
1274
end
1275
1276
1277
1278
function Detach()
1279
1280
	RAW.Part1 = nil
1281
1282
	LAW.Part1 = nil
1283
1284
	RLW.Part1 = nil
1285
1286
	LLW.Part1 = nil
1287
1288
	RAW.C0 = CN()
1289
1290
	LAW.C0 = CN()
1291
1292
	RLW.C0 = CN()
1293
1294
	LLW.C0 = CN()
1295
1296
end
1297
1298
1299
1300
function Normalize()
1301
1302
	RAW.C0 = CA(MR(40), MR(50), 0)
1303
1304
	LAW.C0 = CA(MR(20), MR(-20), MR(-20))
1305
1306
	HW.C0 = CA(0, 0, 0)
1307
1308
	neck.C0 = necko
1309
1310
end
1311
1312
1313
1314
SelectAnim = function()
1315
1316
	RAW.Part1 = Rarm
1317
1318
	HW.Part1 = nil
1319
1320
	TH.Part1 = Handle
1321
1322
	for i = 0.1, 1, 0.14 do
1323
1324
		RAW.C0 = CA(MR(220*i), MR(-30*i), MR(-35*i)) * CN(0.4*i, 0, 0)
1325
1326
		neck.C0 = necko * CA(MR(-10*i), 0, MR(-60*i))
1327
1328
		wait()
1329
1330
	end
1331
1332
	PlaySound(Sounds.Equip[1], Sounds.Equip[2], Sounds.Equip[3])
1333
1334
	HW.C0 = CN(0.4, 0, 0) * CA(MR(-60), MR(10), MR(100))
1335
1336
	HW.Part1 = Handle
1337
1338
	TH.Part1 = nil
1339
1340
	LAW.Part1 = Larm
1341
1342
	for i = 0.09, 1, 0.11 do
1343
1344
		RAW.C0 = CA(MR(220-70*i), MR(-30+25*i), MR(-35+70*i)) * CN(0.4-0.4*i, 0, 0)
1345
1346
		HW.C0 = CN(0.4-0.4*i, 0, 0) * CA(MR(-60+40*i), MR(10-10*i), MR(100-40*i))
1347
1348
		LAW.C0 = CA(MR(20*i), MR(-20*i), MR(-20*i))
1349
1350
		neck.C0 = necko * CA(MR(-10+10*i), 0, MR(-60+40*i))
1351
1352
		wait()
1353
1354
	end
1355
1356
	for i = 0.14, 1, 0.25 do
1357
1358
		RAW.C0 = CA(MR(150-60*i), MR(-5+15*i), MR(35-10*i))
1359
1360
		HW.C0 = CA(MR(-20+20*i), 0, MR(60-30*i))
1361
1362
		neck.C0 = necko * CA(0, 0, MR(-60+40+5*i))
1363
1364
		wait()
1365
1366
	end
1367
1368
	for i = 0.1, 1, 0.14 do
1369
1370
		RAW.C0 = CA(MR(90-50*i), MR(10+40*i), MR(25-25*i))
1371
1372
		HW.C0 = CA(0, 0, MR(30-30*i))
1373
1374
		neck.C0 = necko * CA(0, 0, MR(-15+15*i))
1375
1376
		wait()
1377
1378
	end
1379
1380
	Normalize()
1381
1382
end
1383
1384
1385
1386
DeselectAnim = function()
1387
1388
	for i = 0.09, 1, 0.14 do
1389
1390
		RAW.C0 = CA(MR(40+100*i), MR(50-50*i), MR(20*i))
1391
1392
		LAW.C0 = CA(MR(20-20*i), MR(-20+20*i), MR(-20+20*i))
1393
1394
		HW.C0 = CN(0.4*i, 0, 0) * CA(MR(-30*i), MR(5*i), MR(20*i))
1395
1396
		neck.C0 = necko * CA(MR(-5*i), 0, MR(-35*i))
1397
1398
		wait()
1399
1400
	end
1401
1402
	LAW.Part1 = nil
1403
1404
	for i = 0.08, 1, 0.14 do
1405
1406
		RAW.C0 = CA(MR(140+80*i), MR(-30*i), MR(20-55*i))
1407
1408
		HW.C0 = CN(0.4, 0, 0) * CA(MR(-30-30*i), MR(5+5*i), MR(20+80*i))
1409
1410
		neck.C0 = necko * CA(MR(-5-10*i), 0, MR(-35-25*i))
1411
1412
		wait()
1413
1414
	end
1415
1416
	HW.Part1 = nil
1417
1418
	TH.Part1 = Handle
1419
1420
	for i = 0.09, 1, 0.18 do
1421
1422
		RAW.C0 = CA(MR(220-220*i), MR(-30+30*i), MR(20-55+35*i))
1423
1424
		neck.C0 = necko * CA(MR(-5-10+15*i), 0, MR(-35-25+60*i))
1425
1426
		wait()
1427
1428
	end
1429
1430
	neck.C0 = necko
1431
1432
	Detach()
1433
1434
end
1435
1436
1437
1438
function setatk(s, e)
1439
1440
	Notime(function()
1441
1442
		Attack = e
1443
1444
		wait(0.25)
1445
1446
		Attack = s
1447
1448
	end)
1449
1450
end
1451
1452
1453
1454
Attacks = {
1455
1456
function()
1457
1458
	Attack = 1
1459
1460
	Able = false
1461
1462
	for i = 0.1, 1, 0.2 do
1463
1464
		RAW.C0 = CA(MR(40+90*i), MR(50-60*i), 0)
1465
1466
		HW.C0 = CA(0, 0, 0)
1467
1468
		LAW.C0 = CA(MR(20+55*i), MR(-20), MR(-20+60*i))
1469
1470
		neck.C0 = necko * CA(MR(-10*i), 0, MR(-25*i))
1471
1472
		wait()
1473
1474
	end
1475
1476
	PlaySound(Sounds.Slash[1], Sounds.Slash[2], Sounds.Slash[3])
1477
1478
	for i = 0.16, 1, 0.33 do
1479
1480
		RAW.C0 = CA(MR(130+5*i), MR(-10-20*i), 0)
1481
1482
		HW.C0 = CA(0, 0, 0)
1483
1484
		LAW.C0 = CA(MR(75+5*i), MR(-20), MR(40+5*i))
1485
1486
		neck.C0 = necko * CA(MR(-10-5*i), 0, MR(-25-5*i))
1487
1488
		wait()
1489
1490
	end
1491
1492
	Hurt = true
1493
1494
	Deb = true
1495
1496
	StartEffect()
1497
1498
	Mode = Dmgs.Slash
1499
1500
	for i = 0.11, 1, 0.22 do
1501
1502
		RAW.C0 = CA(MR(135-115*i), MR(-30), MR(-50*i)) * CN(0, -0.7*i, 0)
1503
1504
		HW.C0 = CA(MR(-70*i), 0, 0)
1505
1506
		LAW.C0 = CA(MR(80-120*i), MR(-20+20*i), MR(45-45*i))
1507
1508
		neck.C0 = necko * CA(MR(-15+30*i), 0, MR(-30+45*i))
1509
1510
		wait()
1511
1512
	end
1513
1514
	EndEffect()
1515
1516
	Hurt = false
1517
1518
	setatk(1,2)
1519
1520
	Able = true
1521
1522
	for i = 0.2, 1, 0.25 do
1523
1524
		RAW.C0 = CA(MR(20-18*i), MR(-30), MR(-50-3*i)) * CN(0, -0.7-0.05*i, 0)
1525
1526
		HW.C0 = CA(MR(-70-5*i), 0, 0)
1527
1528
		neck.C0 = necko * CA(MR(15+3*i), 0, MR(15+3*i))
1529
1530
		wait()
1531
1532
	end
1533
1534
	wait(0.1)
1535
1536
	for i = 0.1, 1, 0.15 do
1537
1538
		if Able == false then return end
1539
1540
		RAW.C0 = CA(MR(2+38*i), MR(-30+80*i), MR(-53+53*i)) * CN(0, -0.75+0.75*i, 0)
1541
1542
		HW.C0 = CA(MR(-75+75*i), 0, 0)
1543
1544
		LAW.C0 = CA(MR(-40+60*i), MR(-20+20-20*i), MR(-20*i))
1545
1546
		neck.C0 = necko * CA(MR(15+3-18*i), 0, MR(15+3-18*i))
1547
1548
		wait()
1549
1550
	end
1551
1552
	Normalize()
1553
1554
end,
1555
1556
1557
1558
function()
1559
1560
	Attack = 2
1561
1562
	Able = false
1563
1564
	PlaySound(Sounds.Slash[1], Sounds.Slash[2]+0.1, Sounds.Slash[3])
1565
1566
	for i = 0.05, 1, 0.1 do
1567
1568
		RAW.C0 = CA(MR(10+80*i), MR(-30+30*i), MR(-55+35*i)) * CN(0, -0.75+0.35*i, 0)
1569
1570
		LAW.C0 = CA(MR(-40), 0, 0)
1571
1572
		HW.C0 = CA(MR(-75+75*i), 0, MR(90*i))
1573
1574
		neck.C0 = necko * CA(MR(18-13*i), 0, MR(18+22*i))
1575
1576
		wait()
1577
1578
	end
1579
1580
	Hurt = true
1581
1582
	Deb = true
1583
1584
	StartEffect()
1585
1586
	Mode = Dmgs.SideSlash
1587
1588
	for i = 0.09, 1, 0.17 do
1589
1590
		RAW.C0 = CA(MR(90-40*i), 0, MR(-20+110*i)) * CN(0, -0.4+0.4*i, 0)
1591
1592
		HW.C0 = CA(0, MR(-65*i), MR(90))
1593
1594
		LAW.C0 = CA(MR(-40+120*i), MR(-20*i), MR(50*i)) * CN(0, -0.6*i, 0)
1595
1596
		neck.C0 = necko * CA(MR(5), 0, MR(40-90*i))
1597
1598
		wait()
1599
1600
	end
1601
1602
	EndEffect()
1603
1604
	Hurt = false
1605
1606
	Deb = false
1607
1608
	setatk(1,3)
1609
1610
	Able = true
1611
1612
	for i = 0.12, 1, 0.25 do
1613
1614
		RAW.C0 = CA(MR(50-5*i), 0, MR(90+10*i))
1615
1616
		HW.C0 = CA(0, MR(-65-5*i), MR(90))
1617
1618
		LAW.C0 = CA(MR(-40+120), MR(-20), MR(50+5*i)) * CN(0, -0.6, 0)
1619
1620
		neck.C0 = necko * CA(MR(5), 0, MR(40-90-5*i))
1621
1622
		wait()
1623
1624
	end
1625
1626
	wait(0.08)
1627
1628
	for i = 0.05, 1, 0.1 do
1629
1630
		if Able == false then return end
1631
1632
		RAW.C0 = CA(MR(45-5*i), MR(50*i), MR(100-100*i)) * CN(0, 0, 0)
1633
1634
		HW.C0 = CA(0, MR(-70+70*i), MR(90-90*i))
1635
1636
		LAW.C0 = CA(MR(-40+120-60*i), MR(-20), MR(55-75*i)) * CN(0, -0.6+0.6*i, 0)
1637
1638
		neck.C0 = necko * CA(MR(5-5*i), 0, MR(-55+55*i))
1639
1640
		wait()
1641
1642
	end
1643
1644
	Normalize()
1645
1646
end,
1647
1648
1649
1650
function()
1651
1652
	Able = false
1653
1654
	for i = 0.05, 1, 0.08 do
1655
1656
		RAW.C0 = CA(MR(50+130*i), 0, MR(90-125*i)) * CN(0, -1*i, 0)
1657
1658
		HW.C0 = CA(0, MR(-65-35*i), MR(90-90*i))
1659
1660
		LAW.C0 = CA(MR(80+100*i), MR(-20+20*i), MR(50-15*i)) * CN(0, -0.6-0.4*i, 0)
1661
1662
		neck.C0 = necko * CA(MR(5-25*i), 0, MR(-50+50*i))
1663
1664
		wait()
1665
1666
	end
1667
1668
	PlaySound(Sounds.Slash[1], Sounds.Slash[2]+0.05, Sounds.Slash[3])
1669
1670
	for i = 0.13, 1, 0.25 do
1671
1672
		RAW.C0 = CA(MR(180+10*i), 0, MR(-35)) * CN(0, -1, 0)
1673
1674
		HW.C0 = CA(0, MR(-100), 0)
1675
1676
		LAW.C0 = CA(MR(180+10*i), 0, MR(35)) * CN(0, -1, 0)
1677
1678
		neck.C0 = necko * CA(MR(5-25-5*i), 0, 0)
1679
1680
		wait()
1681
1682
	end
1683
1684
	StartEffect()
1685
1686
	Hurt = true
1687
1688
	Deb = true
1689
1690
	Mode = Dmgs.Smash
1691
1692
	for i = 0.06, 1, 0.12 do
1693
1694
		RAW.C0 = CA(MR(190-160*i), 0, MR(-35)) * CN(0, -1+0.2*i, 0)
1695
1696
		HW.C0 = CA(MR(-20*i), MR(-100-40*i), MR(40*i))
1697
1698
		LAW.C0 = CA(MR(190-160*i), 0, MR(35)) * CN(0, -1+0.2*i, 0)
1699
1700
		neck.C0 = necko * CA(MR(-25+45*i), 0, 0)
1701
1702
		wait()
1703
1704
	end
1705
1706
	PlaySound(Sounds.SmashHit[1], Sounds.SmashHit[2], Sounds.SmashHit[3])
1707
1708
	EndEffect()
1709
1710
	Hurt = false
1711
1712
	Deb = false
1713
1714
	for i = 0.2, 1, 0.5 do
1715
1716
		RAW.C0 = CA(MR(30+15*i), 0, MR(-35)) * CN(0, -0.8+0.4*i, 0)
1717
1718
		HW.C0 = CA(MR(-20), MR(-140), MR(40))
1719
1720
		LAW.C0 = CA(MR(30+15*i), 0, MR(35)) * CN(0, -0.8+0.4*i, 0)
1721
1722
		neck.C0 = necko * CA(MR(20), 0, 0)
1723
1724
		wait()
1725
1726
	end
1727
1728
	setatk(1,4)
1729
1730
	Able = true
1731
1732
	for i = 0.16, 1, 0.33 do
1733
1734
		if not Able then return end
1735
1736
		RAW.C0 = CA(MR(30+15-15*i), 0, MR(-35)) * CN(0, -0.8+0.4-0.2*i, 0)
1737
1738
		HW.C0 = CA(MR(-20), MR(-140), MR(40))
1739
1740
		LAW.C0 = CA(MR(30+15-15*i), 0, MR(35)) * CN(0, -0.8+0.4-0.2*i, 0)
1741
1742
		neck.C0 = necko * CA(MR(20), 0, 0)
1743
1744
		wait()
1745
1746
	end
1747
1748
	for i = 0.05, 1, 0.1 do
1749
1750
		if not Able then return end
1751
1752
		RAW.C0 = CA(MR(30+10*i), MR(50*i), MR(-35+35*i)) * CN(0, -0.8+0.4-0.2+0.6*i, 0)
1753
1754
		HW.C0 = CA(MR(-20+20*i), MR(-140+140*i), MR(40-40*i))
1755
1756
		LAW.C0 = CA(MR(30+15-15-10*i), MR(-20*i), MR(35-55*i)) * CN(0, -0.8+0.4-0.2+0.6*i, 0)
1757
1758
		neck.C0 = necko * CA(MR(20-20*i), 0, 0)
1759
1760
		wait()
1761
1762
	end
1763
1764
	Normalize()
1765
1766
end,
1767
1768
function()
1769
1770
	Able = false
1771
1772
	for i = 0.06, 1, 0.12 do
1773
1774
		RAW.C0 = CA(MR(30), MR(-20*i), MR(-35-25*i)) * CN(0, -0.8, 0)
1775
1776
		HW.C0 = CA(MR(-20-60*i), MR(-140-40*i), MR(40-40*i))
1777
1778
		LAW.C0 = CA(MR(30-110*i), 0, MR(35-35*i)) * CN(0, -0.8+0.8*i, 0)
1779
1780
		neck.C0 = necko * CA(MR(20-15*i), 0, MR(10*i))
1781
1782
		wait()
1783
1784
	end
1785
1786
	Mode = Dmgs.DoubleSlash
1787
1788
	StartEffect()
1789
1790
	playz(Sounds.Slash)
1791
1792
	Hurt = true
1793
1794
	Deb = true
1795
1796
	for i = 0.07, 1, 0.14 do
1797
1798
		RAW.C0 = CA(MR(30+120*i), MR(-20), MR(-60+80*i)) * CN(0, -0.8+0.8*i, 0)
1799
1800
		HW.C0 = CA(MR(-80+60*i), MR(180), 0)
1801
1802
		LAW.C0 = CA(MR(-50+100*i), 0, MR(30*i))
1803
1804
		neck.C0 = necko * CA(MR(5-25*i), 0, MR(10-30*i))
1805
1806
		wait()
1807
1808
	end
1809
1810
	EndEffect()
1811
1812
	Hurt = false
1813
1814
	for i = 0.17, 1, 0.33 do
1815
1816
		RAW.C0 = CA(MR(150+15*i), MR(-20), MR(20+5*i))
1817
1818
		HW.C0 = CA(MR(-20), MR(180), 0)
1819
1820
		LAW.C0 = CA(MR(50+5*i), 0, MR(30+10*i))
1821
1822
		neck.C0 = necko * CA(MR(-20-5*i), 0, MR(-20))
1823
1824
		wait()
1825
1826
	end
1827
1828
	for i = 0.13, 1, 0.25 do
1829
1830
		RAW.C0 = CA(MR(165-15*i), MR(-20+50*i), MR(25-75*i))
1831
1832
		HW.C0 = CA(MR(-20-20*i), MR(180), 0)
1833
1834
		LAW.C0 = CA(MR(55+45*i), 0, MR(40-30*i))
1835
1836
		neck.C0 = necko * CA(MR(-25), 0, MR(-20+35*i))
1837
1838
		wait()
1839
1840
	end
1841
1842
	StartEffect()
1843
1844
	Hurt = true
1845
1846
	Deb = true
1847
1848
	playz(Sounds.Slash)
1849
1850
	for i = 0.08, 1, 0.16 do
1851
1852
		RAW.C0 = CA(MR(150-110*i), MR(30), MR(-50+65*i))
1853
1854
		HW.C0 = CA(MR(-40-40*i), MR(180), 0)
1855
1856
		LAW.C0 = CA(MR(100-50*i), MR(-30*i), MR(10+30*i)) * CN(0, -1.1*i, 0)
1857
1858
		neck.C0 = necko * CA(MR(-25+45*i), 0, MR(15-30*i))
1859
1860
		wait()
1861
1862
	end
1863
1864
	EndEffect()
1865
1866
	Hurt = false
1867
1868
	for i = 0.13, 1, 0.25 do
1869
1870
		RAW.C0 = CA(MR(40-5*i), MR(30), MR(15+5*i))
1871
1872
		HW.C0 = CA(MR(-80-5*i), MR(180), 0)
1873
1874
		LAW.C0 = CA(MR(50), MR(-30), MR(40)) * CN(0, -1.1-0.1*i, 0)
1875
1876
		neck.C0 = necko * CA(MR(20+5*i), 0, MR(-15-5*i))
1877
1878
		wait()
1879
1880
	end
1881
1882
	for i = 0.09, 1, 0.16 do
1883
1884
		RAW.C0 = CA(MR(35+5*i), MR(30+20*i), MR(20-20*i))
1885
1886
		HW.C0 = CA(MR(-85+85*i), MR(180+180*i), 0)
1887
1888
		LAW.C0 = CA(MR(50-30*i), MR(-30+10*i), MR(40-60*i)) * CN(0, -1.2+1.2*i, 0)
1889
1890
		neck.C0 = necko * CA(MR(25-25*i), 0, MR(-20+20*i))
1891
1892
		wait()
1893
1894
	end
1895
1896
	Normalize()
1897
1898
	Able = true
1899
1900
	Attack = 1
1901
1902
end
1903
1904
}
1905
1906
1907
1908
SpinSlash = function(plaic)
1909
1910
	if Rage < Dmgs.Spin[6] then return end
1911
1912
	Rage = Rage - Dmgs.Spin[6]
1913
1914
	local cf = torso.CFrame
1915
1916
	local CF = ComputePos(cf.p, cf * CN(0, 0, -2))
1917
1918
	if plaic then
1919
1920
		CF = ComputePos(cf.p, plaic)
1921
1922
	end
1923
1924
	AbleAll = false
1925
1926
	local bg = Add.BG(torso)
1927
1928
	bg.cframe = CF
1929
1930
	for i = 0.07, 1, 0.14 do
1931
1932
		RAW.C0 = CA(MR(40+50*i), MR(50-65*i), 0)
1933
1934
		HW.C0 = CA(0, 0, MR(90*i))
1935
1936
		LAW.C0 = CA(MR(20-20*i), MR(-20+20*i), MR(-20-60*i))
1937
1938
		neck.C0 = necko * CA(0, 0, MR(-30*i))
1939
1940
		bg.cframe = CF * CA(0, MR(30*i), 0)
1941
1942
		wait()
1943
1944
	end
1945
1946
	StartEffect()
1947
1948
	Hurt = true
1949
1950
	Deb = true
1951
1952
	Mode = Dmgs.Spin
1953
1954
	Notime(function()
1955
1956
		while Hurt do
1957
1958
			PlaySound(Sounds.Slash[1], Sounds.Slash[2]+0.35, Sounds.Slash[3])
1959
1960
			wait(0.15)
1961
1962
		end
1963
1964
	end)
1965
1966
	for i = 0.04, 1, 0.06 do
1967
1968
		RAW.C0 = CA(MR(90-10*i), MR(-15), MR(90*i))
1969
1970
		HW.C0 = CA(0, MR(-70*i), MR(90))
1971
1972
		LAW.C0 = CA(MR(90*i), 0, MR(-20-60+120*i)) * CN(0, -0.7*i, 0)
1973
1974
		neck.C0 = necko * CA(0, 0, MR(-30+20*i))
1975
1976
		bg.cframe = CF * CA(0, MR(30-380*i), 0)
1977
1978
		wait()
1979
1980
	end
1981
1982
	EndEffect()
1983
1984
	for i = 0.09, 1, 0.17 do
1985
1986
		RAW.C0 = CA(MR(80), MR(-15), MR(90))
1987
1988
		HW.C0 = CA(0, MR(-70-10*i), MR(90))
1989
1990
		LAW.C0 = CA(MR(90), 0, MR(-20-60+120+20*i)) * CN(0, -0.7, 0)
1991
1992
		neck.C0 = necko * CA(0, 0, MR(-10+60*i))
1993
1994
		bg.cframe = CF * CA(0, MR(-350-60*i), 0)
1995
1996
		wait()
1997
1998
	end
1999
2000
	Hurt = false
2001
2002
	Deb = false
2003
2004
	for i = 0.05, 1, 0.1 do
2005
2006
		RAW.C0 = CA(MR(80-40*i), MR(-15+65*i), MR(90-90*i))
2007
2008
		HW.C0 = CA(0, MR(-80+80*i), MR(90-90*i))
2009
2010
		LAW.C0 = CA(MR(90-70*i), MR(-20*i), MR(60-80*i)) * CN(0, -0.7+0.7*i, 0)
2011
2012
		neck.C0 = necko * CA(0, 0, MR(-10+60-50*i))
2013
2014
		bg.cframe = CF * CA(0, MR(-410+50*i), 0)
2015
2016
		wait()
2017
2018
	end
2019
2020
	bg:remove()
2021
2022
	Normalize()
2023
2024
	AbleAll = true
2025
2026
end
2027
2028
2029
2030
Flawp = function(plaic)
2031
2032
	local cf = torso.CFrame
2033
2034
	local CF = ComputePos(cf.p, cf * CN(0, 0, -2))
2035
2036
	if plaic then
2037
2038
		CF = ComputePos(cf.p, plaic)
2039
2040
	end
2041
2042
	local cf2 = CF * CN(0, -1.1, -1)
2043
2044
	local Dist = 8
2045
2046
	local Hit1, Pos1 = RayC(CF.p, (CF * CN(0, -1, 0)).p, 4, char)
2047
2048
	local Hit2, Pos2 = RayC((CF * CN(0, 0, -Dist*2)).p, (CF * CN(0, -1, -Dist*2)).p, 4, char)
2049
2050
	local Hit3, Pos3 = RayC(CF.p, (CF * CN(0, 0, -Dist*2)).p, Dist*2, char)
2051
2052
	if Rage < Dmgs.Boom[6] then return end
2053
2054
	if Hit1 and Hit2 then
2055
2056
		Rage = Rage - Dmgs.Boom[6]
2057
2058
		local bp = Add.BP(torso)
2059
2060
		bp.position = cf.p
2061
2062
		local bg = Add.BG(torso)
2063
2064
		bg.cframe = CF
2065
2066
		AbleAll = false
2067
2068
		RLW.Part1 = Rleg
2069
2070
		LLW.Part1 = Lleg
2071
2072
		for i = 0.05, 1, 0.1 do
2073
2074
			RAW.C0 = CA(MR(40+30*i), MR(50-50*i), MR(25*i))
2075
2076
			LAW.C0 = CA(MR(20+50*i), MR(-20+20*i), MR(-20-5*i))
2077
2078
			HW.C0 = CA(MR(25*i), 0, 0)
2079
2080
			RLW.C0 = CN(0, 1*i, -1*i)
2081
2082
			LLW.C0 = CA(MR(-90*i), 0, 0) * CN(0, 0.5*i, -0.2*i)
2083
2084
			neck.C0 = necko * CA(MR(20*i), 0, 0)
2085
2086
			bp.position = CF * CN(0, -1*i, -1*i).p
2087
2088
			wait()
2089
2090
		end
2091
2092
		local Center = cf2 * CN(0, 0, -Dist)
2093
2094
		hum.PlatformStand = true
2095
2096
		PlaySound(Sounds.Jump[1], Sounds.Jump[2], Sounds.Jump[3])
2097
2098
		for i = 0.06, 1, 0.1 do
2099
2100
			RAW.C0 = CA(MR(70-160*i), 0, MR(25+15*i))
2101
2102
			LAW.C0 = CA(MR(70-160*i), 0, MR(-25-15*i))
2103
2104
			HW.C0 = CA(MR(25), 0, 0)
2105
2106
			RLW.C0 = CN(0, 1-1*i, -1+1*i)
2107
2108
			LLW.C0 = CA(MR(-90+70*i), 0, 0) * CN(0, 0.5+0.7*i, -0.2-0.3*i)
2109
2110
			neck.C0 = necko * CA(MR(20-50*i), 0, 0)
2111
2112
			bp.position = Center * CA(MR(180-45*i), 0, 0) * CN(0, 0, -Dist).p
2113
2114
			bg.cframe = CF * CA(MR(-90*i), 0, 0)
2115
2116
			wait()
2117
2118
		end
2119
2120
		for i = 0.06, 1, 0.1 do
2121
2122
			RAW.C0 = CA(MR(-90-90*i), 0, MR(40+50*i))
2123
2124
			LAW.C0 = CA(MR(-90-90*i), 0, MR(-40-50*i))
2125
2126
			HW.C0 = CA(MR(25-25*i), 0, MR(-90*i))
2127
2128
			RLW.C0 = CN(0, 0, 0)
2129
2130
			LLW.C0 = CA(MR(-20+20*i), 0, 0) * CN(0, 1.2-1.2*i, -0.5+0.5*i)
2131
2132
			bp.position = Center * CA(MR(135-45*i), 0, 0) * CN(0, 0, -Dist).p
2133
2134
			bg.cframe = CF * CA(MR(-90-90*i), 0, 0)
2135
2136
			wait()
2137
2138
		end
2139
2140
		StartEffect()
2141
2142
		for i = 0.06, 1, 0.1 do
2143
2144
			RAW.C0 = CA(MR(180+10*i), 0, MR(90-130*i)) * CN(0, -1*i, 0)
2145
2146
			LAW.C0 = CA(MR(180+10*i), 0, MR(-90+130*i)) * CN(0, -1*i, 0)
2147
2148
			HW.C0 = CA(0, 0, MR(-90-90*i))
2149
2150
			RLW.C0 = CN(0, 0, 0)
2151
2152
			LLW.C0 = CA(0, 0, 0) * CN(0, 0, 0)
2153
2154
			bp.position = Center * CA(MR(90-45*i), 0, 0) * CN(0, 0, -Dist).p
2155
2156
			bg.cframe = CF * CA(MR(-180-90*i), 0, 0)
2157
2158
			wait()
2159
2160
		end
2161
2162
		playz(Sounds.Slash)
2163
2164
		for i = 0.06, 1, 0.1 do
2165
2166
			RAW.C0 = CA(MR(190-100*i), 0, MR(-40)) * CN(0, -1-0.2*i, 0)
2167
2168
			LAW.C0 = CA(MR(190-80*i), MR(-25*i), MR(40-15*i)) * CN(0, -1-0.2*i, 0)
2169
2170
			HW.C0 = CA(0, MR(-45*i), MR(-180))
2171
2172
			RLW.C0 = CN(0, 1*i, -1*i)
2173
2174
			LLW.C0 = CA(MR(-20-70*i), 0, 0) * CN(0, 1.2-0.7*i, -0.5+0.3*i)
2175
2176
			neck.C0 = necko * CA(MR(-30+60*i), 0, 0)
2177
2178
			bp.position = Center * CA(MR(45-45*i), 0, 0) * CN(0, 0, -Dist).p
2179
2180
			bg.cframe = CF * CA(MR(-270-90*i), 0, 0)
2181
2182
			wait()
2183
2184
		end
2185
2186
		Mode = Dmgs.Boom
2187
2188
		EndEffect()
2189
2190
		RAW.C0 = CA(MR(90), 0, MR(-40)) * CN(0, -1.2, 0)
2191
2192
		LAW.C0 = CA(MR(110), MR(-25), MR(25)) * CN(0, -1.2, 0)
2193
2194
		HW.C0 = CA(0, MR(-45), MR(-180))
2195
2196
		RLW.C0 = CN(0, 1, -1)
2197
2198
		LLW.C0 = CA(MR(-90), 0, 0) * CN(0, 0.5, -0.2)
2199
2200
		bp.position = Center * CN(0, 0, -Dist).p
2201
2202
		bg.cframe = CF * CA(0, 0, 0)
2203
2204
		local PosEff = Center * CN(0, -2, -Dist-2.5)
2205
2206
		Notime(function()
2207
2208
			playz(Sounds.Boom)
2209
2210
			local disst = Dmgs.Boom[7]
2211
2212
			local chars = getCharacters(workspace, PosEff.p, disst)
2213
2214
			for _,v in pairs(chars) do
2215
2216
				local c, t, h = v[1], v[2], v[3]
2217
2218
				local d = (t.Position - PosEff.p).magnitude
2219
2220
				local bl, bp, blo = getBlock(c)
2221
2222
				if blo then
2223
2224
					ShieldDamage(Dmgs.Boom, bl, bp, false)
2225
2226
				end
2227
2228
				d = d/4
2229
2230
				if d < 1 then d = 1 end
2231
2232
				Damage(t, h, Dmgs.Boom[2]/d, false, false)
2233
2234
				for _,k in pairs(c:children()) do
2235
2236
					if k:IsA("BasePart") then
2237
2238
						k.Velocity = CFrame.new(PosEff.p, k.Position).lookVector * 40 + Vector3.new(0, 50, 0)
2239
2240
					end
2241
2242
				end
2243
2244
				h.PlatformStand = true
2245
2246
				Notime(function() h.PlatformStand = false end, 0.2)
2247
2248
			end
2249
2250
			local eff = Instance.new("Model",workspace)
2251
2252
			eff.Name = "Effect"
2253
2254
			local wave = Part(eff, true, false, 0, 0, EffectColor, 1, 1, 1, true)
2255
2256
			wave.CFrame = PosEff
2257
2258
			local wavem = Add.Mesh(wave, "http://www.roblox.com/asset/?id=20329976", 3, 2, 3)
2259
2260
			local ball = Part(eff, true, false, 0, 0, EffectColor2, 1, 1, 1, true)
2261
2262
			ball.CFrame = PosEff
2263
2264
			local ballm = Add.Sphere(ball)
2265
2266
			ballm.Scale = Vector3.new(2, 5, 2)
2267
2268
			local diamond = Part(eff, true, false, 0, 0, EffectColor, 1, 1, 1, true)
2269
2270
			diamond.CFrame = PosEff
2271
2272
			local diamondm = Add.Mesh(diamond, "http://www.roblox.com/asset/?id=9756362", 7, 0.5, 7)
2273
2274
			for i = 0, 1, 0.05 do
2275
2276
				wait()
2277
2278
				wave.CFrame = PosEff * CFrame.Angles(0, MR(180*i), 0)
2279
2280
				wave.Transparency = i
2281
2282
				wavem.Scale = Vector3.new(3+(disst*1.15)*i, 2+(disst/1.4)*i, 3+(disst*1.15)*i)
2283
2284
				ball.Transparency = i
2285
2286
				ballm.Scale = Vector3.new(1+(disst*2)*i, 5+(disst*1.2)*i, 1+(disst*2)*i)
2287
2288
				diamond.Transparency = i
2289
2290
				diamondm.Scale = Vector3.new(7-6.5*i, 0.5+(disst*2)*i, 7-6.5*i)
2291
2292
			end
2293
2294
			wait()
2295
2296
			eff:remove()
2297
2298
		end)
2299
2300
		wait(0.4)
2301
2302
		for i = 0.07, 1, 0.1 do
2303
2304
			RAW.C0 = CA(MR(90+50*i), 0, MR(-40)) * CN(0, -1.2+0.4*i, -0.4*i)
2305
2306
			LAW.C0 = CA(MR(110+30*i), MR(-25+25*i), MR(25+15*i)) * CN(0, -1.2+0.4*i, -0.4*i)
2307
2308
			HW.C0 = CA(MR(-30*i), MR(-45+45*i), MR(-180-30*i)) * CN(0, -0.7*i, 0)
2309
2310
			RLW.C0 = CN(0, 1-1*i, -1+1*i)
2311
2312
			LLW.C0 = CA(MR(-90+90*i), 0, 0) * CN(0, 0.5-0.5*i, -0.2+0.2*i)
2313
2314
			neck.C0 = necko * CA(MR(30-15*i), 0, 0)
2315
2316
			bp.position = Center * CN(0, 1.4*i, -Dist-1*i).p
2317
2318
			wait()
2319
2320
		end
2321
2322
		bp:remove()
2323
2324
		bg:remove()
2325
2326
		hum.PlatformStand = false
2327
2328
		for i = 0.05, 1, 0.1 do
2329
2330
			RAW.C0 = CA(MR(140-100*i), MR(50*i), MR(-40+40*i)) * CN(0, -0.8+0.8*i, -0.4+0.4*i)
2331
2332
			LAW.C0 = CA(MR(140-190*i), 0, MR(40-80*i)) * CN(0, -0.8+0.8*i, -0.4+0.4*i)
2333
2334
			HW.C0 = CA(MR(-30+30*i), 0, MR(-210-150*i)) * CN(0, -0.7+0.7*i, 0)
2335
2336
			RLW.C0 = CN()
2337
2338
			LLW.C0 = CN()
2339
2340
			neck.C0 = necko * CA(MR(15-15*i), 0, 0)
2341
2342
			bp.position = Center * CN(0, 1.4-0.4*i, -Dist-1-0.3*i).p
2343
2344
			wait()
2345
2346
		end
2347
2348
		RLW.Part1 = nil
2349
2350
		LLW.Part1 = nil
2351
2352
		for i = 0.1, 1, 0.2 do
2353
2354
			LAW.C0 = CA(MR(-50+70*i), MR(-20*i), MR(-40+20*i))
2355
2356
			wait()
2357
2358
		end
2359
2360
		Normalize()
2361
2362
		AbleAll = true
2363
2364
	end
2365
2366
end
2367
2368
2369
2370
function Raeg()
2371
2372
	if Rage < Dmgs.RageMode[5] then return end
2373
2374
	if RageMode == false and AbleAll and Able then
2375
2376
		AbleAll = false
2377
2378
		local CF = ComputePos(torso.Position, torso.CFrame * CN(0, 0, -2))
2379
2380
		for i = 0.05, 1, 0.1 do
2381
2382
			RAW.C0 = CA(MR(40-70*i), MR(50-45*i), MR(10*i))
2383
2384
			LAW.C0 = CA(MR(20-50*i), MR(-20+15*i), MR(-20+10*i))
2385
2386
			HW.C0 = CA(MR(20*i), 0, 0)
2387
2388
			wait()
2389
2390
		end
2391
2392
		for i = 0.12, 1, 0.25 do
2393
2394
			RAW.C0 = CA(MR(-30-10*i), MR(5-5*i), MR(10-5*i))
2395
2396
			LAW.C0 = CA(MR(-30-10*i), MR(-5+5*i), MR(-10+5*i))
2397
2398
			HW.C0 = CA(MR(20+5*i), 0, 0)
2399
2400
			wait()
2401
2402
		end
2403
2404
		hum.Jump = true
2405
2406
		playz(Sounds.Jump2)
2407
2408
		CF = ComputePos(torso.Position, torso.CFrame * CN(0, 0, -2))
2409
2410
		local p = Part(workspace, true, false, 0, 0, "Bright red", 0.2, 0.2, 0.2, true)
2411
2412
		p.CFrame = CF * CN(0, -2, 0)
2413
2414
		local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", 1, 3, 1)
2415
2416
		Notime(function()
2417
2418
			for i = 0, 1, 0.08 do
2419
2420
				wait()
2421
2422
				m.Scale = Vector3.new(1+5*i, 3-2.5*i, 1+5*i)
2423
2424
				p.Transparency = i
2425
2426
			end
2427
2428
			p:remove()
2429
2430
		end)
2431
2432
		for i = 0.05, 1, 0.1 do
2433
2434
			RAW.C0 = CA(MR(-40+220*i), 0, MR(5+35*i))
2435
2436
			LAW.C0 = CA(MR(-40+220*i), 0, MR(-5-35*i))
2437
2438
			HW.C0 = CA(MR(25-115*i), MR(90*i), MR(45*i))
2439
2440
			wait()
2441
2442
		end
2443
2444
		for i = 0.12, 1, 0.25 do
2445
2446
			RAW.C0 = CA(MR(180+8*i), 0, MR(40))
2447
2448
			LAW.C0 = CA(MR(180+8*i), 0, MR(-40))
2449
2450
			HW.C0 = CA(MR(-90), MR(90), MR(45))
2451
2452
			wait()
2453
2454
		end
2455
2456
		for i = 0.05, 1, 0.1 do
2457
2458
			RAW.C0 = CA(MR(188-98*i), 0, MR(40-80*i)) * CN(0, -1*i, 0)
2459
2460
			LAW.C0 = CA(MR(188-98*i), 0, MR(-40+80*i)) * CN(0, -1*i, 0)
2461
2462
			HW.C0 = CA(MR(-90+90*i), MR(90+45*i), MR(45-45*i))
2463
2464
			wait()
2465
2466
		end
2467
2468
		playz(Sounds.GoRage)
2469
2470
		local p2 = Part(workspace, false, false, 1, 0, EffectColor3, 1, 1, 1, true)
2471
2472
		Weld(Tip4, p2, 0, -2, 0, 0, 0, 0)
2473
2474
		local m2 = Add.Sphere(p2)
2475
2476
		m2.Scale = Vector3.new(0.2, 2, 0.5)
2477
2478
		for i = 0, 1, 0.06 do
2479
2480
			p2.Transparency = 1-1*i
2481
2482
			m2.Scale = Vector3.new(0.2+0.7*i, 2+3*i, 0.5+1.6*i)
2483
2484
			wait()
2485
2486
		end
2487
2488
		for _,v in pairs(Blades) do
2489
2490
			v.BrickColor = BrickColor.new(EffectColor3)
2491
2492
		end
2493
2494
		wait(0.5)
2495
2496
		for i = 0, 1, 0.1 do
2497
2498
			p2.Transparency = i
2499
2500
			wait()
2501
2502
		end
2503
2504
		p2:remove()
2505
2506
		playz(Sounds.Shout)
2507
2508
		for i = 0.1, 1, 0.1 do
2509
2510
			RAW.C0 = CA(MR(90-50*i), MR(50*i), MR(-40+40*i)) * CN(0, -1+1*i, 0)
2511
2512
			LAW.C0 = CA(MR(90-70*i), MR(-20*i), MR(-40+80-60*i)) * CN(0, -1+1*i, 0)
2513
2514
			HW.C0 = CA(0, MR(135+45*i), 0)
2515
2516
			wait()
2517
2518
		end
2519
2520
		Normalize()
2521
2522
		AbleAll = true
2523
2524
		RageMode = true
2525
2526
		AddDamage = Dmgs.RageMode[2]
2527
2528
		AddDamageX = Dmgs.RageMode[3]
2529
2530
		AddShield = Dmgs.RageMode[4]
2531
2532
		LineColor = EffectColor3
2533
2534
		Notime(function()
2535
2536
			repeat
2537
2538
				wait()
2539
2540
				Rage = Rage - 0.45
2541
2542
			until Rage < 1
2543
2544
			RageMode = false
2545
2546
			AddDamage = 0
2547
2548
			AddShield = 0
2549
2550
			AddDamageX = 1
2551
2552
			LineColor = "White"
2553
2554
			local p3 = Part(workspace, false, false, 1, 0, BladeColor, 1, 1, 1, true)
2555
2556
			Weld(Tip4, p3, 0, -2, 0, 0, 0, 0)
2557
2558
			local m3 = Add.Sphere(p3)
2559
2560
			m3.Scale = Vector3.new(0.85, 4.9, 1.8)
2561
2562
			playz(Sounds.RageOff)
2563
2564
			for i = 0.1, 1, 0.1 do
2565
2566
				p3.Transparency = 1-1*i
2567
2568
				wait()
2569
2570
			end
2571
2572
			p.Transparency = 0
2573
2574
			for _,v in pairs(Blades) do
2575
2576
				v.BrickColor = BrickColor.new(BladeColor)
2577
2578
			end
2579
2580
			wait(0.2)
2581
2582
			for i = 0.2, 1, 0.2 do
2583
2584
				p3.Transparency = 1*i
2585
2586
				m3.Scale = Vector3.new(0.85+2*i, 4.9+9*i, 1.8+4.5*i)
2587
2588
				wait()
2589
2590
			end
2591
2592
			p3:remove()
2593
2594
		end)
2595
2596
	end
2597
2598
end
2599
2600
2601
2602
function RageSlash(plaic)
2603
2604
	if Rage < Dmgs.RageSlash[6] then return end
2605
2606
	local cf = torso.CFrame
2607
2608
	local CF = ComputePos(cf.p, cf * CN(0, 0, -2))
2609
2610
	if plaic then
2611
2612
		CF = ComputePos(cf.p, plaic)
2613
2614
		local bg = Add.BG(torso)
2615
2616
		bg.cframe = CF
2617
2618
		Notime(function() bg:remove() end, 0.4)
2619
2620
	end
2621
2622
	Rage = Rage - Dmgs.RageSlash[6]
2623
2624
	AbleAll = false
2625
2626
	for i = 0.05, 1, 0.1 do
2627
2628
		RAW.C0 = CA(MR(40+105*i), MR(50-50*i), MR(-35*i)) * CN(0.15*i, -1*i, 0)
2629
2630
		LAW.C0 = CA(MR(20+125*i), MR(-20+20*i), MR(-20+55*i)) * CN(-0.15*i, -1*i, 0)
2631
2632
		HW.C0 = CA(0, MR(-35*i), 0)
2633
2634
		neck.C0 = necko * CA(MR(-20*i), 0, 0)
2635
2636
		wait()
2637
2638
	end
2639
2640
	for i = 0.09, 1, 0.18 do
2641
2642
		RAW.C0 = CA(MR(145+55*i), 0, MR(-35)) * CN(0.15, -1, 0)
2643
2644
		LAW.C0 = CA(MR(145+55*i), 0, MR(35)) * CN(-0.15, -1, 0)
2645
2646
		HW.C0 = CA(0, MR(-35), 0)
2647
2648
		neck.C0 = necko * CA(MR(-20-20*i), 0, 0)
2649
2650
		wait()
2651
2652
	end
2653
2654
	PlaySound(Sounds.Slash[1], Sounds.Slash[2]-0.7, Sounds.Slash[3])
2655
2656
	for i = 0.12, 1, 0.25 do
2657
2658
		RAW.C0 = CA(MR(200+10*i), 0, MR(-35)) * CN(0.15, -1, 0)
2659
2660
		LAW.C0 = CA(MR(200+10*i), 0, MR(35)) * CN(-0.15, -1, 0)
2661
2662
		HW.C0 = CA(0, MR(-35), 0)
2663
2664
		neck.C0 = necko * CA(MR(-20-20-5*i), 0, 0)
2665
2666
		wait()
2667
2668
	end
2669
2670
	Mode = Dmgs.RageSlash
2671
2672
	StartEffect("Neon orange")
2673
2674
	Hurt = true
2675
2676
	Deb = true
2677
2678
	for i = 0.07, 1, 0.14 do
2679
2680
		RAW.C0 = CA(MR(210-160*i), 0, MR(-35)) * CN(0.15, -1, 0)
2681
2682
		LAW.C0 = CA(MR(210-150*i), MR(-30*i), MR(35)) * CN(-0.15, -1, 0)
2683
2684
		HW.C0 = CA(MR(-70*i), MR(-35), MR(-35*i))
2685
2686
		neck.C0 = necko * CA(MR(-45+80*i), 0, 0)
2687
2688
		wait()
2689
2690
	end
2691
2692
	EndEffect()
2693
2694
	Hurt = false
2695
2696
	for i = 0.33, 1, 0.33 do
2697
2698
		RAW.C0 = CA(MR(50-15*i), 0, MR(-35)) * CN(0.15, -1, 0)
2699
2700
		LAW.C0 = CA(MR(60-15*i), MR(-30), MR(35)) * CN(-0.15, -1, 0)
2701
2702
		HW.C0 = CA(MR(-70-15*i), MR(-35), MR(-35-7*i))
2703
2704
		neck.C0 = necko * CA(MR(-45+80+5*i), 0, 0)
2705
2706
		wait()
2707
2708
	end
2709
2710
	for i = 0.07, 1, 0.14 do
2711
2712
		RAW.C0 = CA(MR(35+5*i), MR(50*i), MR(-35+35*i)) * CN(0.15-0.15*i, -1+1*i, 0)
2713
2714
		LAW.C0 = CA(MR(45-25*i), MR(-30+10*i), MR(35-55*i)) * CN(-0.15+0.15*i, -1+1*i, 0)
2715
2716
		HW.C0 = CA(MR(-70-15+85*i), MR(-35+35*i), MR(-35-7+42*i))
2717
2718
		neck.C0 = necko * CA(MR(-45+80+5-40*i), 0, 0)
2719
2720
		wait()
2721
2722
	end
2723
2724
	Normalize()
2725
2726
	AbleAll = true
2727
2728
end
2729
2730
2731
2732
--RAW ORIGINAL = CA(MR(40), MR(50), 0)
2733
2734
--LAW ORIGINAL = CA(MR(20), MR(-20), MR(-20))
2735
2736
--HW ORIGINAL = CA(0, 0, 0)
2737
2738
2739
2740
function Counter()
2741
2742
	local cf = torso.CFrame
2743
2744
	local CF = CFrame.new(cf.p, cf * CN(0, 0, -2).p)
2745
2746
	local bg = Add.BG(torso)
2747
2748
	bg.cframe = CF
2749
2750
	for i = 0.1, 1, 0.2 do
2751
2752
		RAW.C0 = CA(MR(-50+50*i), MR(-35), MR(80*i))
2753
2754
		LAW.C0 = CA(MR(90-20*i), 0, MR(80-20*i)) * CN(-0.75+0.25*i, -0.8+0.5*i, 0)
2755
2756
		HW.C0 = CA(MR(20-60*i), 0, 0)
2757
2758
		bg.cframe = CF * CA(0, MR(-35*i), 0)
2759
2760
		neck.C0 = necko * CA(0, 0, MR(35*i))
2761
2762
		wait()
2763
2764
	end
2765
2766
	StartEffect()
2767
2768
	Hurt = true
2769
2770
	Deb = true
2771
2772
	Mode = Dmgs.Counter
2773
2774
	playz(Sounds.Slash)
2775
2776
	for i = 0.09, 1, 0.18 do
2777
2778
		RAW.C0 = CA(0, MR(-35+130*i), MR(80)) * CN(0, -0.3*i, 0)
2779
2780
		LAW.C0 = CA(MR(70-130*i), 0, MR(60-60*i)) * CN(-0.5+0.5*i, -0.3+0.3*i, 0)
2781
2782
		HW.C0 = CA(MR(-40+40*i), 0, 0)
2783
2784
		bg.cframe = CF * CA(0, MR(-35+80*i), 0)
2785
2786
		neck.C0 = necko * CA(0, 0, MR(35-80*i))
2787
2788
		wait()
2789
2790
	end
2791
2792
	EndEffect()
2793
2794
	Hurt = false
2795
2796
	for i = 0.12, 1, 0.25 do
2797
2798
		RAW.C0 = CA(0, MR(95+10*i), MR(80)) * CN(0, -0.3, 0)
2799
2800
		LAW.C0 = CA(MR(-60-10*i), 0, 0)
2801
2802
		HW.C0 = CA(MR(5*i), 0, 0)
2803
2804
		bg.cframe = CF * CA(0, MR(45+5*i), 0)
2805
2806
		neck.C0 = necko * CA(0, 0, MR(-45-5*i))
2807
2808
		wait()
2809
2810
	end
2811
2812
	for i = 0.06, 1, 0.12 do
2813
2814
		RAW.C0 = CA(MR(40*i), MR(105-55*i), MR(80-80*i)) * CN(0, -0.3+0.3*i, 0)
2815
2816
		LAW.C0 = CA(MR(-70+90*i), MR(-20*i), MR(-20*i))
2817
2818
		HW.C0 = CA(MR(5-5*i), 0, 0)
2819
2820
		bg.cframe = CF * CA(0, MR(50-50*i), 0)
2821
2822
		neck.C0 = necko * CA(0, 0, MR(-50+50*i))
2823
2824
		wait()
2825
2826
	end
2827
2828
	Normalize()
2829
2830
	bg:remove()
2831
2832
end
2833
2834
2835
2836
function Bloc()
2837
2838
	if AbleAll and Able then
2839
2840
		AbleAll = false
2841
2842
		Block.Value = true
2843
2844
		for i = 0, 1, 0.15 do
2845
2846
			if not Block then break end
2847
2848
			RAW.C0 = CA(MR(40-90*i), MR(50-85*i), 0)
2849
2850
			LAW.C0 = CA(MR(20+70*i), MR(-20+20*i), MR(-20+100*i)) * CN(-0.75*i, -0.8*i, 0)
2851
2852
			HW.C0 = CA(MR(20*i), 0, 0)
2853
2854
			wait()
2855
2856
		end
2857
2858
		RAW.C0 = CA(MR(40-90), MR(50-85), 0)
2859
2860
		LAW.C0 = CA(MR(20+70), MR(-20+20), MR(-20+100)) * CN(-0.75, -0.8, 0)
2861
2862
		HW.C0 = CA(MR(20), 0, 0)
2863
2864
		PlaySound(Sounds.SmashHit[1], Sounds.SmashHit[2]-0.6, Sounds.SmashHit[3])
2865
2866
		repeat
2867
2868
			wait()
2869
2870
			if BlockPower.Value < 1 then
2871
2872
				Block.Value = false
2873
2874
				BlockPower.Value = BlockRealPowa
2875
2876
			end
2877
2878
		until Block.Value == false
2879
2880
		if CounterKey and Rage >= Dmgs.Counter[6] then
2881
2882
			Rage = Rage - Dmgs.Counter[6]
2883
2884
			Counter()
2885
2886
		else
2887
2888
			for i = 1, 0, -0.2 do
2889
2890
				RAW.C0 = CA(MR(40-90*i), MR(50-85*i), 0)
2891
2892
				LAW.C0 = CA(MR(20+70*i), MR(-20+20*i), MR(-20+100*i)) * CN(-0.75*i, -0.8*i, 0)
2893
2894
				HW.C0 = CA(MR(20*i), 0, 0)
2895
2896
				wait()
2897
2898
			end
2899
2900
			Normalize()
2901
2902
		end
2903
2904
		AbleAll = true
2905
2906
	end
2907
2908
end
2909
2910
2911
2912
function Clicked(mousepos)
2913
2914
	if Block.Value == false and Able and AbleAll then
2915
2916
		if Aim then
2917
2918
			Notime(function()
2919
2920
				local bg = Add.BG(torso)
2921
2922
				bg.cframe = ComputePos(torso.Position, mousepos)
2923
2924
				bg.P = 5500
2925
2926
				wait(0.4)
2927
2928
				bg:remove()
2929
2930
			end)
2931
2932
		end
2933
2934
		Attacks[Attack]()
2935
2936
	end
2937
2938
end
2939
2940
2941
2942
function KeyDown(key, mouse)
2943
2944
	key = key:lower()
2945
2946
	if Able then
2947
2948
		local aimplace = nil
2949
2950
		if Aim then
2951
2952
			aimplace = mouse.Hit.p
2953
2954
		end
2955
2956
		if key == string.char(48) then
2957
2958
			Notime(function()
2959
2960
				local k = nil
2961
2962
				repeat
2963
2964
					k = mouse.KeyUp:wait()
2965
2966
				until k == string.char(48)
2967
2968
				Block.Value = false
2969
2970
			end)
2971
2972
			Bloc()
2973
2974
		elseif key == "e" then
2975
2976
			if Block.Value == false and AbleAll then
2977
2978
				SpinSlash(aimplace)
2979
2980
			end
2981
2982
		elseif key == "r" then
2983
2984
			if Block.Value == false and AbleAll then
2985
2986
				Flawp(aimplace)
2987
2988
			end
2989
2990
		elseif key == "f" then
2991
2992
			if Block.Value == false and AbleAll then
2993
2994
				Raeg()
2995
2996
			end
2997
2998
		elseif key == "t" then
2999
3000
			Notime(function()
3001
3002
				local k = nil
3003
3004
				CounterKey = true
3005
3006
				repeat
3007
3008
					k = mouse.KeyUp:wait()
3009
3010
				until k == "t"
3011
3012
				CounterKey = false
3013
3014
			end)
3015
3016
		elseif key == "q" then
3017
3018
			if Block.Value == false and AbleAll then
3019
3020
				local a = nil
3021
3022
				if Aim then
3023
3024
					a = mouse.Hit.p
3025
3026
				end
3027
3028
				RageSlash(a)
3029
3030
			end
3031
3032
		end
3033
3034
	end
3035
3036
end
3037
3038
3039
3040
Select = function(mouse)
3041
3042
	SelectAnim()
3043
3044
	Selected = true
3045
3046
	mouse.Button1Down:connect(function()
3047
3048
		if Able then
3049
3050
			Clicked(mouse.Hit.p)
3051
3052
		end
3053
3054
	end)
3055
3056
	mouse.KeyDown:connect(function(key)
3057
3058
		KeyDown(key, mouse)
3059
3060
	end)
3061
3062
end
3063
3064
3065
3066
Deselect = function(mouse)
3067
3068
	Selected = false
3069
3070
	DeselectAnim()
3071
3072
end
3073
3074
3075
3076
Bin.Selected:connect(Select)
3077
3078
Bin.Deselected:connect(Deselect)
3079
3080
3081
3082
Notime(function()
3083
3084
	local parent = char.Parent
3085
3086
	while char.Parent == parent do
3087
3088
		wait()
3089
3090
		if Rage > MaxRage then Rage = MaxRage elseif Rage < 0 then Rage = 0 end
3091
3092
		RageBar.Size = UD(1, 0, Rage/MaxRage, 0)
3093
3094
		RageBar.Position = UD(0, 0, 1-(Rage/MaxRage), 0)
3095
3096
		RageAmount.Text = math.floor(Rage)
3097
3098
		local hp2 = hum.Health/hum.MaxHealth
3099
3100
		if hp2 > 1 then hp2 = 1 elseif hp2 < 0 then hp2 = 0 end
3101
3102
		HealthBar.Size = UD(1, 0, hp2, 0)
3103
3104
		if Block.Value then
3105
3106
			hum.WalkSpeed = 10
3107
3108
		elseif RageMode and Block.Value then
3109
3110
			hum.WalkSpeed = 16
3111
3112
		elseif RageMode then
3113
3114
			hum.WalkSpeed = 19
3115
3116
		else
3117
3118
			hum.WalkSpeed = 16
3119
3120
		end
3121
3122
	end
3123
3124
end)