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