View difference between Paste ID: LQDR8HF5 and hKJ1JTnr
SHOW: | | - or go back to the newest paste.
1
--MADE BY OneLegend (NOT THE SCRIPT) REGULAR SCRIPT: Go to line 7 and 9 and put your name where it says "RazorShockk"
2
3
Plrs = game:GetService("Players")
4
5
6
7-
Name = "RazorShockk"
7+
Name = "mikee112"
8
9-
me = Plrs.RazorShockk
9+
me = Plrs.mikee112
10
11
char = me.Character
12
13
Modelname = "AxE of Doom"
14
15
Toolname = "AxE of Doom"
16
17
Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
18
19
necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) 
20
21
selected = false
22
23
Hurt = false
24
25
Able = true
26
27
28
29
CA = CFrame.Angles
30
31
CN = CFrame.new
32
33
MR = math.rad
34
35
MP = math.pi
36
37
MD = math.deg
38
39
MH = math.huge
40
41
MRA = math.random
42
43
44
45
Add = {
46
47
    Sphere = function(P)
48
49
        local m = Instance.new("SpecialMesh",P)
50
51
        m.MeshType = "Sphere"
52
53
        return m
54
55
    end,
56
57
    BF = function(P)
58
59
        local bf = Instance.new("BodyForce",P)
60
61
        bf.force = Vector3.new(0, P:GetMass()*187, 0)
62
63
        return bf
64
65
    end,
66
67
    BP = function(P)
68
69
        local bp = Instance.new("BodyPosition",P)
70
71
        bp.maxForce = Vector3.new(math.huge, 0, math.huge)
72
73
        bp.P = 14000
74
75
        return bp
76
77
    end,
78
79
    BG = function(P)
80
81
        local bg = Instance.new("BodyGyro",P)
82
83
        bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
84
85
        bg.P = 14000
86
87
        return bg
88
89
    end,
90
91
    Mesh = function(P, ID, x, y, z)
92
93
        local m = Instance.new("SpecialMesh")
94
95
        m.MeshId = ID
96
97
        m.Scale = Vector3.new(x, y, z)
98
99
        m.Parent = P
100
101
        return m
102
103
    end,
104
105
    Sound = function(P, ID, vol, pitch)
106
107
        local s = Instance.new("Sound")
108
109
        s.SoundId = ID
110
111
        s.Volume = vol
112
113
        s.Pitch = pitch
114
115
        s.Parent = P
116
117
        return s
118
119
    end
120
121
}
122
123
124
125
function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
126
127
    local p = Instance.new("Part")
128
129
    p.formFactor = "Custom"
130
131
    p.Anchored = Anchor
132
133
    p.CanCollide = Collide
134
135
    p.Transparency = Tran
136
137
    p.Reflectance = Ref
138
139
    p.BrickColor = BrickColor.new(Color)
140
141
    for _, Surf in pairs(Surfaces) do
142
143
        p[Surf] = "Smooth"
144
145
    end
146
147
    p.Size = Vector3.new(X, Y, Z)
148
149
    if Break then
150
151
        p:BreakJoints()
152
153
    else p:MakeJoints() end
154
155
    p.Parent = Parent
156
157
    return p
158
159
end
160
161
162
163
function Weld(p0, p1, x, y, z, a, b, c)
164
165
    local w = Instance.new("Weld")
166
167
    w.Parent = p0
168
169
    w.Part0 = p0
170
171
    w.Part1 = p1
172
173
    w.C1 = CN(x,y,z) * CA(a,b,c)
174
175
    return w
176
177
end
178
179
180
181
function ComputePos(pos1, pos2)
182
183
    local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
184
185
    return CN(pos1, pos3)
186
187
end
188
189
190
191
function getHumanoid(c)
192
193
    local h = nil
194
195
    for i,v in pairs(c:children()) do
196
197
        if v:IsA("Humanoid") and c ~= char then
198
199
            if v.Health > 0 then
200
201
                h = v
202
203
            end
204
205
        end
206
207
    end
208
209
    return h
210
211
end
212
213
214
215
for i,v in pairs(char:children()) do
216
217
    if v.Name == Modelname then
218
219
        v:remove()
220
221
    end
222
223
end
224
225
226
227
torso = char.Torso
228
229
neck = torso.Neck
230
231
hum = char.Humanoid
232
233
Rarm = char["Right Arm"]
234
235
Larm = char["Left Arm"]
236
237
Rleg = char["Right Leg"]
238
239
Lleg = char["Left Leg"]
240
241
242
243
hc = Instance.new("Humanoid")
244
245
hc.Health = 0
246
247
hc.MaxHealth = 0
248
249
250
251
slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 1)
252
253
hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6)
254
255
charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65)
256
257
boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3)
258
259
260
261
function PlaySound(sound)
262
263
    local s = sound:clone()
264
265
    s.Parent = torso
266
267
    s.PlayOnRemove = true
268
269
    coroutine.resume(coroutine.create(function()
270
271
        wait()
272
273
        s:remove()
274
275
    end))
276
277
end
278
279
280
281
282
283
--[[ PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS 
284
285
PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS 
286
287
PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS 
288
289
]]
290
291
Mo = Instance.new("Model")
292
293
Mo.Name = Modelname
294
295
296
297
RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
298
299
LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
300
301
RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
302
303
LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
304
305
306
307
RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
308
309
LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
310
311
RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
312
313
LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
314
315
316
317
RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
318
319
LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
320
321
RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
322
323
LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
324
325
326
327
HB = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
328
329
HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0)
330
331
HW = Weld(HB, nil, 0, -1, 0, math.pi/2, 0, 0)
332
333
334
335
TH = Weld(torso, nil, -0.75, 0.7, 0.4, 0, math.pi/2, MR(-140))
336
337
TH.C0 = CA(MR(-10), MR(10), 0)
338
339
340
341
handle = Part(Mo, false, false, 0, 0, "Camo", 0.45, 5.5, 0.45, true)
342
343
Instance.new("SpecialMesh",handle)
344
345
handle.Name = "Handle"
346
347
348
349
dec1 = Part(Mo, false, false, 0, 0, "Dark green", 0.2, 6, 0.2, true)
350
351
Add.Mesh(dec1, "http://www.roblox.com/asset/?id=16606212", 0.38, 0.38, 1.55)
352
353
Weld(handle, dec1, 0, 0, 0, math.pi/2, 0, 0)
354
355
356
357
dec2 = Part(Mo, false, false, 0, 0, "Earth green", 0.2, 6, 0.2, true)
358
359
Add.Mesh(dec2, "http://www.roblox.com/asset/?id=16606212", -0.3, 0.3, 1.55)
360
361
Weld(handle, dec2, 0, 0, 0, math.pi/2, math.pi/2, 0)
362
363
364
365
skull = Part(Mo, false, false, 0, 0, "Bright green", 0.2, 6, 0.2, true)
366
367
Add.Mesh(skull, "http://www.roblox.com/asset/?id=4770583", 2.9, 2.9, 2.3)
368
369
Weld(handle, skull, 0, -2.5, 0, 0, 0, 0)
370
371
372
373
for x = 0, 180, 180 do
374
375
    for i = -40, 70, 110/3 do
376
377
        local asd = (i+90)/85
378
379
        local p = Part(Mo, false, false, 0, 0, "Camo", 0.3, 0.8, 0.3, true)
380
381
        Add.Mesh(p, "http://www.roblox.com/asset/?id=1033714", 0.16, asd*1.2, 0.16)
382
383
        local w = Weld(skull, p, 0, 0, 0, 0, 0, 0)
384
385
        w.C0 = CA(0, MR(x), MR(i))
386
387
        w.C1 = CN(0, -1, 0) * CA(math.pi/2, math.pi/2, 0)
388
389
    end
390
391
end
392
393
394
395
handletip1 = Part(Mo, false, false, 0, 0.2, "Earth green", 0.5, 0.5, 0.5, true)
396
397
w1 = Weld(handle, handletip1, 0, 2.6, 0, 0, 0, 0)
398
399
Add.Mesh(handletip1, "http://www.roblox.com/asset/?id=9756362", 0.6, 0.5, 0.6)
400
401
402
403
handletip2 = Part(Mo, false, false, 0, 0.2, "Camo", 0.5, 0.5, 0.5, true)
404
405
Weld(handletip1, handletip2, 0, 0, 0, 0, MR(45), 0)
406
407
Add.Mesh(handletip2, "http://www.roblox.com/asset/?id=9756362", 0.6, 0.55, 0.6)
408
409
410
411
Mo.Parent = char
412
413
TH.Part1 = handle
414
415
416
417
if script.Parent.className ~= "HopperBin" then
418
419
    h = Instance.new("HopperBin",me.Backpack)
420
421
    h.Name = Toolname
422
423
    script.Parent = h
424
425
end
426
427
428
429
bin = script.Parent
430
431
432
433
--[[ ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS 
434
435
ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS 
436
437
ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS 
438
439
]]
440
441
442
443
function detach(bool)
444
445
    LLW.C0 = CN(0, 0, 0)
446
447
    RLW.C0 = CN(0, 0, 0)
448
449
    LAW.C0 = CN(0, 0, 0)
450
451
    RAW.C0 = CN(0, 0, 0)
452
453
    if bool then
454
455
        LLW.Part1 = nil
456
457
        RLW.Part1 = nil
458
459
        RAW.Part1 = nil
460
461
        LAW.Part1 = nil
462
463
        TH.Part1 = handle
464
465
        HW.Part1 = nil
466
467
    end
468
469
end
470
471
472
473
function attach()
474
475
    RAW.Part1 = Rarm
476
477
    LAW.Part1 = Larm
478
479
    RLW.Part1 = Rleg
480
481
    LLW.Part1 = Lleg
482
483
end
484
485
486
487
function normal()
488
489
    neck.C0 = necko
490
491
    RAW.C0 = RAWStand
492
493
    LAW.C0 = LAWStand
494
495
    RLW.C0 = RLWStand
496
497
    LLW.C0 = LLWStand
498
499
    HW.C0 = HWStand
500
501
end
502
503
504
505
function idleanim()
506
507
    attach()
508
509
    for i = 0, 1, 0.016 do
510
511
        RAW.C0 = RAWStand * CA(0, MR(-7*i), MR(12*i))
512
513
        LAW.C0 = LAWStand * CA(0, MR(-5*i), MR(7*i)) * CN(0, -0.2*i, 0)
514
515
        RLW.C0 = RLWStand * CA(MR(-4*i), 0, MR(3*i))
516
517
        LLW.C0 = LLWStand * CA(MR(4*i), 0, MR(-3*i))
518
519
        neck.C0 = necko * CA(MR(7*i), 0, MR(-6*i))
520
521
        if selected == false or torso.Velocity.magnitude > 4 or Able == false then break end
522
523
        wait()
524
525
    end
526
527
    wait()
528
529
    for i = 1, 0, -0.013 do
530
531
        RAW.C0 = RAWStand * CA(0, MR(-7*i), MR(12*i))
532
533
        LAW.C0 = LAWStand * CA(0, MR(-5*i), MR(7*i)) * CN(0, -0.2*i, 0)
534
535
        RLW.C0 = RLWStand * CA(MR(-4*i), 0, MR(3*i))
536
537
        LLW.C0 = LLWStand * CA(MR(4*i), 0, MR(-3*i))
538
539
        neck.C0 = necko * CA(MR(7*i), 0, MR(-6*i))
540
541
        if selected == false or torso.Velocity.magnitude > 4 or Able == false then break end
542
543
        wait()
544
545
    end
546
547
    normal()
548
549
end
550
551
552
553
function runanim()
554
555
    RLW.Part1 = nil
556
557
    LLW.Part1 = nil
558
559
end
560
561
562
563
coroutine.resume(coroutine.create(function()
564
565
    while true do
566
567
        wait()
568
569
        if selected and Able == true then
570
571
            if torso.Velocity.magnitude < 0.1 then
572
573
                idleanim()
574
575
            else
576
577
                runanim()
578
579
            end
580
581
            wait()
582
583
        end
584
585
    end
586
587
end))
588
589
590
591
function selectanim()
592
593
    RAW.Part1 = Rarm
594
595
    LLW.Part1 = Lleg
596
597
    RLW.Part1 = Rleg
598
599
    for i = 0, 1, 0.2 do
600
601
        RAW.C0 = CA(MR(185*i), MR(70*i), 0)
602
603
        LLW.C0 = CA(MR(2*i), 0, MR(-5*i))
604
605
        RLW.C0 = CA(MR(-2*i), 0, MR(5*i))
606
607
        neck.C0 = necko * CA(0, 0, MR(-40*i))
608
609
        wait()
610
611
    end
612
613
    TH.Part1 = nil
614
615
    HW.Part1 = handle
616
617
    HW.C0 = CA(MR(40), 0, MR(-20))
618
619
    for i = 0, 1, 0.08 do
620
621
        RAW.C0 = CA(MR(185-110*i), MR(70-60*i), MR(30*i))
622
623
        LLW.C0 = CA(MR(2-8*i), 0, MR(-5-10*i))
624
625
        RLW.C0 = CA(MR(-2+8*i), 0, MR(5+10*i))
626
627
        neck.C0 = necko * CA(MR(-15*i), 0, MR(-40+35*i))
628
629
        HW.C0 = CA(MR(40-80*i), 0, MR(-20+20*i))
630
631
        wait()
632
633
    end
634
635
    LAW.Part1 = Larm
636
637
    for i = 0, 1, 0.1 do
638
639
        RAW.C0 = CA(MR(185-110+15*i), MR(70-60-10*i), MR(30-65*i)) * CN(0, -0.8*i, 0)
640
641
        LAW.C0 = CA(MR(90*i), 0, MR(35*i)) * CN(0.1*i, -0.1*i, 0) * CN(0, -0.8*i, 0)
642
643
        LLW.C0 = CA(MR(-6), 0, MR(-5-10+10*i))
644
645
        RLW.C0 = CA(MR(6), 0, MR(5+10-10*i))
646
647
        neck.C0 = necko * CA(MR(-15+15*i), 0, MR(-5+5*i))
648
649
        HW.C0 = CA(MR(-40+40*i), 0, MR(35*i)) * CN(0, 0, 1.6*i)
650
651
        wait()
652
653
    end
654
655
    selected = true
656
657
end
658
659
660
661
function deselanim()
662
663
    selected = false
664
665
    for i = 1, 0, -0.1 do
666
667
        RAW.C0 = CA(MR(185-110+15*i), MR(70-60-10*i), MR(30-65*i)) * CN(0, -0.8*i, 0)
668
669
        LAW.C0 = CA(MR(90*i), 0, MR(35*i)) * CN(0.1*i, -0.1*i, 0) * CN(0, -0.8*i, 0)
670
671
        LLW.C0 = CA(MR(-6), 0, MR(-5-10+10*i))
672
673
        RLW.C0 = CA(MR(6), 0, MR(5+10-10*i))
674
675
        neck.C0 = necko * CA(MR(-15+15*i), 0, MR(-5+5*i))
676
677
        HW.C0 = CA(MR(-40+40*i), 0, 0) * CN(0, 0, 1.6*i)
678
679
        wait()
680
681
    end
682
683
    LAW.Part1 = nil
684
685
    for i = 1, 0, -0.08 do
686
687
        RAW.C0 = CA(MR(185-110*i), MR(70-60*i), MR(30*i))
688
689
        LLW.C0 = CA(MR(2-8*i), 0, MR(-5-10*i))
690
691
        RLW.C0 = CA(MR(-2+8*i), 0, MR(5+10*i))
692
693
        neck.C0 = necko * CA(MR(-15*i), 0, MR(-40+35*i))
694
695
        HW.C0 = CA(MR(40-70*i), 0, MR(-20+20*i))
696
697
        wait()
698
699
    end
700
701
    TH.Part1 = handle
702
703
    HW.Part1 = nil
704
705
    HW.C0 = CA(MR(40), 0, MR(-20))
706
707
    for i = 1, 0, -0.2 do
708
709
        RAW.C0 = CA(MR(185*i), MR(70*i), 0)
710
711
        LLW.C0 = CA(MR(2*i), 0, MR(-5*i))
712
713
        RLW.C0 = CA(MR(-2*i), 0, MR(5*i))
714
715
        neck.C0 = necko * CA(0, 0, MR(-40*i))
716
717
        wait()
718
719
    end
720
721
    detach(true)
722
723
end
724
725
726
727
function slash(mp)
728
729
    attach()
730
731
    local Orig = torso.CFrame
732
733
    local bg = Add.BG(torso)
734
735
    local bp = Add.BP(torso)
736
737
    bp.position = Orig.p
738
739
    local CF = ComputePos(Orig.p, mp)
740
741
    bg.cframe = CF
742
743
    for i = 0, 1, 0.05 do
744
745
        RAW.C0 = RAWStand * CA(MR(-80*i), 0, MR(20*i)) * CN(0, 0.2*i, 0.8*i)
746
747
        LAW.C0 = LAWStand * CA(MR(-50*i), 0, MR(40*i)) * CN(0, -0.8*i, 0)
748
749
        HW.C0 = HWStand * CA(0, 0, 0) * CN(0, 0, 0.4*i)
750
751
        neck.C0 = necko * CA(MR(20*i), 0, MR(-40*i))
752
753
        wait()
754
755
    end
756
757
    for i = 0, 1, 0.1 do
758
759
        RAW.C0 = RAWStand * CA(MR(-80-4*i), 0, MR(20+2*i)) * CN(0, 0.2-0.1*i, 0.8-0.1*i)
760
761
        LAW.C0 = LAWStand * CA(MR(-50-3*i), 0, MR(40-2*i)) * CN(0, -0.8-0.1*i, 0)
762
763
        HW.C0 = HWStand * CA(0, 0, MR(-35*i)) * CN(0, 0, 0.4)
764
765
        neck.C0 = necko * CA(MR(20+2*i), 0, MR(-40))
766
767
        wait()
768
769
    end
770
771
    wait(1)
772
773
    for i = 0, 1, 0.03 do
774
775
        RAW.C0 = RAWStand * CA(MR(-84+64*i), 0, MR(22)) * CN(0, 0.1, 0.7)
776
777
        LAW.C0 = LAWStand * CA(MR(-53), 0, MR(38)) * CN(0, -0.9, 0)
778
779
        HW.C0 = HWStand * CA(MR(-45*i), MR(15*i), MR(-35)) * CN(-1.5*i, 0, 0.4-2.4*i)
780
781
        neck.C0 = necko * CA(MR(22), 0, MR(-40))
782
783
        wait()
784
785
    end
786
787
    normal()
788
789
    bg:remove()
790
791
    bp:remove()
792
793
end
794
795
796
797
function select(mouse)
798
799
    selectanim()
800
801
    mouse.Button1Down:connect(function()
802
803
        if Able then
804
805
            Able = false
806
807
            slash(mouse.Hit.p)
808
809
            Able = true
810
811
        end
812
813
    end)
814
815
end
816
817
818
819
function deselect(mouse)
820
821
    deselanim()
822
823
end
824
825
826
827
bin.Selected:connect(select)
828
829
bin.Deselected:connect(deselect)
830
831
--lego