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