-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathFullKatana
More file actions
732 lines (729 loc) · 24.2 KB
/
FullKatana
File metadata and controls
732 lines (729 loc) · 24.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
Me = game:service("Players").LocalPlayer
Char = Me.Character
Mouse = Me:GetMouse()
Mode={"BloodLust","Normal"}
DTable={}
Combo = 0
Name="Broken's Katana" --name your katana--
PrimaryColor = "Really black" -- sword color --
SecondaryColor="Bright orange" -- blade and magic color--
ID = 138932314 --hat--
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
plr2 = game.Players.LocalPlayer
cyan = true
green = false
red = false
purple = false
local plr = game.Players.LocalPlayer.Character
cleanup = true
path = false
local m = Instance.new("Model")
m.Name = "m"
m.Parent = plr
mouse.KeyDown:connect(function(key)
if key == "q" then
if path == true then path = false elseif path == false then path = true end
elseif key == "]" then
----------------------------------------------------
pcall(function()Char.Shirt:Destroy()
Char.Pants:Destroy()
end)
shirt = Instance.new("Shirt", Char)
shirt.Name = "Shirt"
pants = Instance.new("Pants", Char)
pants.Name = "Pants"
Char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=359403460" -- shirt use source if id is 1234 use 1233--
Char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=267376586" -- pants use source if id is 1234 use 1233--
----------------------------------------------------
----------------------------------------------------
p = game:GetService("InsertService"):LoadAsset(ID)
p.Parent = workspace
p:makeJoints()
d = Me.Character:getChildren()
for i = 1,#d do
if d[i].className=="Hat" then
d[i].Parent = nil
end
end
c = p:getChildren()
for i = 1,#c do
c[i].Parent = Me.Character
end
p.Parent = nil
----------------------------------------------------
elseif key == "[" then
----------------------------------------------------
z = Instance.new("Sound", Char)
z.SoundId = "rbxassetid://165065112 " --MUSIC ID GOES HERE--
z.Looped = true
z.Pitch = 1
z.Volume = 10
wait(.01)
z:Play()
end
end)
spawn(function()
while wait(1.35) do
if cyan == true then
green = true
cyan = false
elseif green == true then
red = true
green = false
elseif red == true then
purple = true
red = false
elseif purple == true then
cyan = true
purple = false
end
end
end)
function fade(part)
wait(0.15)
for i = 0.3,1,0.1 do wait()
part.Transparency = i
if i == 0.8 or i == 0.9 or i == 0.7 or i == 0.6 or i == 0.5 or i == 0.4 then
if cyan == true then
part.BrickColor = BrickColor.new("Cyan")
elseif green == true then
part.BrickColor = BrickColor.new("Lime green")
elseif red == true then
part.BrickColor = BrickColor.new("Really red")
elseif purple == true then
part.BrickColor = BrickColor.new("Royal purple")
end
part.Material = "Neon"
end
end
part:remove''
end
local num = 0.1
spawn(function()
while true do coroutine.yield()
if path == true then
num = num + 3.5
local p = Instance.new("Part")
p.Name = "p"
p.Parent = plr.m
p.FormFactor = "Custom"
p.Size = Vector3.new(3,0.4,3)
p.CFrame = plr.Torso.CFrame * CFrame.new(0,-3-(p.Size.Y/2),0) * CFrame.Angles(0,math.rad(num),0)
p.Transparency = 0.3
p.BrickColor = BrickColor.new("Really black")
p.Anchored = true
p.TopSurface = "Smooth"
p.BottomSurface = "Smooth"
spawn(function()
if cleanup == true then
fade(p)
end
end)
else
end
end
end)
print("Made by: Null/Broken_Code \n press q for path \n x for dash \n for dominus mode press ] \n for music press [")
pcall(function() Char:FindFirstChild("WepModel"):Destroy() Me.Backpack:FindFirstChild(Name):Destroy() end)
Activated = false
Sheathed = true
Dashing = false
Selected = false
ADB=false
DiffColor = false
Camera=game:service("Workspace").CurrentCamera
LeftArm = Char["Left Arm"]
RightArm = Char["Right Arm"]
HRP = Char.HumanoidRootPart["RootJoint"]
SavedRoot = HRP.C0
necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
if script.Parent.className ~= "HopperBin" then
h = Instance.new("HopperBin", Me.Backpack)
h.Name = Name
script.Name = "''"
script.Parent = h
end
bin = script.Parent
local WepModel = Instance.new("Model", Char)
WepModel.Name = "WepModel"
local Debz = game:service("Debris")
------[[ Create Function ]]------
Create = {}
function Create:Part(parent, x,y,z, color, transparency, cancollide, anchored, shape)
c = Instance.new("Part",parent)
c.Material = "Neon"
if shape ~= nil then
c.Shape = shape
end
c.TopSurface,c.BottomSurface = 0,0
c.Locked = true
c.formFactor = "Custom"
c.Size = Vector3.new(x,y,z)
if color ~= "random" then
c.BrickColor = color
else c.BrickColor = BrickColor:Random() end
c.Transparency = transparency
c.CanCollide = cancollide
if anchored ~= nil then c.Anchored = anchored end
if parent ~= nil then c.Parent = parent end
return c
end;
function Create:BG(parent)
local c = Instance.new("BodyGyro",parent)
c.P = 20e+003
c.cframe = parent.CFrame
c.maxTorque = Vector3.new(c.P,c.P,c.P)
return c
end;
function Create:BP(parent, pos)
local bp = Instance.new("BodyPosition",parent)
bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
bp.position = pos
return bp
end;
function Create:F(parent, size, heat, color, secondarycolor, enabled)
f = Instance.new("Fire",parent)
f.Size = size
f.Heat = heat
if enabled ~= nil then f.Enabled = enabled end
if color ~= nil then f.Color = BrickColor.new(color).Color end
if secondarycolor ~= nil then f.SecondaryColor = BrickColor.new(secondarycolor).Color end
return f
end;
function Create:FM(parent, meshid, x,y,z, meshtexture)
if meshid == "cylinder" then
mesh = Instance.new("CylinderMesh",parent)
mesh.Scale = Vector3.new(x,y,z)
return mesh
else
mesh = Instance.new("SpecialMesh",parent)
if meshid ~= "sphere" then
if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else
mesh.MeshId = "rbxassetid://"..meshids[meshid]
end
else mesh.MeshType = 3 end
mesh.Scale = Vector3.new(x,y,z)
if meshtexture ~= nil then
if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
end
return mesh
end
end
function Create:Weld(parent,P0,P1,nam,c0,c1)
Weld = Instance.new("Weld",parent)
if P0 then Weld.Part0 = P0 else error("Invalid Part0",2) end
if P1 then Weld.Part1 = P1 else print("Invalid Part1") end
if name then Weld.Name = nam else Weld.Name = "Weld" end
if c0 then Weld.C0 = c0 else print("Invalid C0") end
if c1 then Weld.C1 = c1 else Weld.C1 = CFrame.new(0,0.5,0) end
return Weld
end
M = {["Cos"] = function(a) return math.cos(a) end;
["Sin"] = function(a) return math.sin(a) end;
["Rad"] = function(a) return math.rad(a) end}
L0L=Create:Part(WepModel,1,1,1,BrickColor.new(PrimaryColor),1,false,false)
L0LWeld=Create:Weld(L0L,Char.Torso,L0L,"L0LWeld",CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,math.rad(-90),math.rad(90)),CFrame.new(0,-0.951,0))
coroutine.wrap(function()
for i = 0,1,1/50 do wait()
angle = math.rad(360*i)
end
end)()
local Delete = function(parent,time)
if time then
Debz:AddItem(parent,time)
else
parent:Destroy()
end end
Lite = Instance.new("PointLight")
Lite.Color = Color3.new(255,165,0) -- CHANGE THIS--
Lite.Range = 10
Lite.Brightness = 10
Lite.Parent = Char.Torso
Handle = Create:Part(WepModel,1,1,1,BrickColor.new(PrimaryColor),0,false,false)
Instance.new("BlockMesh",Handle).Scale = Vector3.new(0.2,1.15,0.275)
HandleWeld=Create:Weld(Handle,Char.Torso,Handle,"HandleWeld",CFrame.new(1.5,1.8,0.65)*CFrame.fromEulerAnglesXYZ(0,0,math.pi/-4.75))
Hitbox = Create:Part(WepModel,1,6,0.5,BrickColor.new(PrimaryColor),1,false,false)
Hitbox.Name = "Hitbox"
Instance.new("BlockMesh", Hitbox)
BoxWeld=Create:Weld(Hitbox,Handle,Hitbox,"Boxweld",CFrame.new(0,-2.5,0),CFrame.new(0,-0.25,0))
Sheath = Create:Part(WepModel,1,1,1,BrickColor.new(PrimaryColor),0,false,false)
Instance.new("BlockMesh",Sheath).Scale = Vector3.new(0.3,3,0.3)
SheathWeld=Create:Weld(Char.Torso,Char.Torso,Sheath,"SheathWeld",CFrame.new(0.25,-0.1,0.65)*CFrame.fromEulerAnglesXYZ(0,0,math.pi/-4.75),CFrame.new(0.2,0.5,0))
for i = 1,6 do
Boxes = Create:Part(WepModel,1,1,1,BrickColor.new(SecondaryColor),0,false,false)
Instance.new("BlockMesh",Boxes).Scale = Vector3.new(0.225,0.2,0.31)
BoxesWeld=Create:Weld(Boxes,Char.Torso,Boxes,"BoxesWeld",CFrame.new(1.95,0,0.65)*CFrame.fromEulerAnglesXYZ(0,0,math.pi/-4.75),CFrame.new(1.55,i*0.5,0))
end
SheathTip = Create:Part(WepModel,1,1,1,BrickColor.new(PrimaryColor),0,false,false)
SheathMesh = Instance.new("SpecialMesh", SheathTip)
SheathMesh.MeshType = "Wedge"
SheathMesh.Scale = Vector3.new(0.3,0.75,0.3)
SheathTipWeld=Create:Weld(Char.Torso,Sheath,SheathTip,"SheathTipWeld",CFrame.new(0.25,-2,0.65)*CFrame.fromEulerAnglesXYZ(0,math.pi/2,3.15),CFrame.new(0.65,0.14,0.25))
print(SheathTip.Position,SheathTip.Transparency)
HandleBase = Create:Part(WepModel,1,1,1,BrickColor.new(PrimaryColor),0,false,false)
Instance.new("BlockMesh",HandleBase).Scale = Vector3.new(0.45,0.25,0.45)
HandleBaseWeld=Create:Weld(HandleBase,Handle,HandleBase,"HandleBaseWeld",CFrame.new(0,-0.175,0))
Blade = Create:Part(WepModel,1,1,1,BrickColor.new(SecondaryColor),0,false,false)
Instance.new("BlockMesh",Blade).Scale = Vector3.new(0.2,3,0.155)
BladeWeld=Create:Weld(Blade,Handle,Blade,"BladeWeld",CFrame.new(0,-1.75,0))
Blade2 = Create:Part(WepModel,1,1,1,BrickColor.new(PrimaryColor),0,false,false)
Instance.new("BlockMesh",Blade2).Scale = Vector3.new(0.1,3,0.156)
Blade2Weld=Create:Weld(Blade2,Handle,Blade2,"Blade2Weld",CFrame.new(0,-1.75,0))
Tip = Create:Part(WepModel,1,1,1,BrickColor.new(SecondaryColor),0,false,false)
TipMesh = Instance.new("SpecialMesh", Tip)
TipMesh.MeshType = "Wedge"
TipMesh.Scale = Vector3.new(0.155,0.5,0.2)
TipWeld=Create:Weld(Tip,Handle,Tip,"TipWeld",CFrame.new(0,-4.5,0)*CFrame.fromEulerAnglesXYZ(0,math.pi/2,3.15),CFrame.new(0.01,0.5,0))
Tip2 = Create:Part(WepModel,1,1,1,BrickColor.new(PrimaryColor),0,false,false)
Tip2Mesh = Instance.new("SpecialMesh", Tip2)
Tip2Mesh.MeshType = "Wedge"
Tip2Mesh.Scale = Vector3.new(0.16,0.3,0.1)
Tip2Weld=Create:Weld(Tip2,Handle,Tip2,"Tip2Weld",CFrame.new(0,-4.4,0)*CFrame.fromEulerAnglesXYZ(0,math.pi/2,3.15),CFrame.new(0.01,0.5,0))
function Dash()
Dashing = true
DBounce=true
playSound(153092348,Hitbox,1,1)
local vel = Instance.new("BodyVelocity", Char.Torso)
vel.maxForce = Vector3.new(math.huge,math.huge,math.huge)
coroutine.resume(coroutine.create(function()
while Dashing == true do wait()
vel.velocity = Char.Head.CFrame.lookVector * 70
Effect(Char.Torso, 1,0.5,1, 0,0,1, 0,0,0,BrickColor.new(SecondaryColor),true, 20329976,Char.Torso.CFrame*CFrame.new(0,-2.75,0).p)
end
end))
wait(1)
vel:remove()
Dashing = false
wait(1)
DBounce=false
end
--Sound Func
function playSound(id,parent,volume,pitch)
local sound = Instance.new("Sound",parent or workspace)
sound.SoundId = "http://www.roblox.com/asset?id="..id
sound.Volume = volume or 1
sound.Pitch = pitch or 1
coroutine.wrap(function()
wait()
sound:Play()
wait(10)
sound:Stop()
sound:Destroy()
end)()
return sound
end
--Play Sound
function Shoot()
Activated = true
Charging = true
Idle()
StartTrail(Tip)
for i = 0,1,0.1 do wait()
RW.C0 = CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(1.5,0,0)
RW.C1 = CFrame.new(0.1,0.4,0)*CFrame.fromEulerAnglesXYZ(0,-i*1.575,i*0.15)
end
coroutine.wrap(function()
while Charging == true do wait()
Effect2(Tip,0.4,0.4,0.4,0,0,0,BrickColor.new(SecondaryColor))
end
end)()
end
function FirstSlash()
playSound(10209645,Hitbox,1,1)
Activated = true
Combo = 1
StartTrail(Tip)
pcall(function() Hitdmg=Hitbox.Touched:connect(function(hit) Damage(hit, math.random(5,10), hit.CFrame.p) end) end)
Walk()
for i = 0,1,0.175 do wait()
LW.C1 = CFrame.new(0,0.5,0)*CFrame.fromEulerAnglesXYZ(0,0,i*0.3)
RW.C1 = CFrame.new(0.1,0.4,0)*CFrame.fromEulerAnglesXYZ(i*2.15,i*-0.75,i*-1.5)
HRP.C0 = SavedRoot*CFrame.fromEulerAnglesXYZ(0,0,i*2)
Char.Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-1.45*i)
end
EndTrail()
Hitdmg:disconnect(wait(0.1))
Activated = false
end
function SecondSlash()
playSound(10209645,Hitbox,1,1.2)
Activated = true
Combo = 2
StartTrail(Tip)
pcall(function() Hitdmg=Hitbox.Touched:connect(function(hit) Damage(hit, math.random(5,10), hit.CFrame.p) end) end)
for i = 0,1,0.2 do wait()
RW.C0 = CFrame.new(1.45,0.4,0)*CFrame.fromEulerAnglesXYZ(1.5,0,0)
RW.C1 = CFrame.new(0.1,0.4,0)*CFrame.fromEulerAnglesXYZ(0,-i*1.5,0)
end
for i = 0,1,0.2 do wait()
Char.Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0.725*i)
RW.C1 = CFrame.new(0,0.4,0)*CFrame.fromEulerAnglesXYZ(0,-1.5,i*-1.5)
HRP.C0 = HRP.C1*CFrame.fromEulerAnglesXYZ(0,0,i*-0.875)
end
EndTrail()
Hitdmg:disconnect(wait(0.1))
Activated = false
end
function ThirdSlash()
playSound(10209645,Hitbox,1,1.3)
Activated=true
Combo=3
StartTrail(Tip)
for i = 0,1,0.2 do wait()
HRP.C1 = HRP.C1*CFrame.fromEulerAnglesXYZ(0,0,i*-0.25)
RW.C0 = CFrame.new(1.45,0.4,0)*CFrame.fromEulerAnglesXYZ(1.5,0,0)
RW.C1 = CFrame.new(0,i,-0.15)*CFrame.fromEulerAnglesXYZ(i*-1.05,0,i*0.85)
LW.C0 = CFrame.new(-1.45,0.4,0)*CFrame.fromEulerAnglesXYZ(1.5,0,0)
LW.C1 = CFrame.new(0,i,-0.15)*CFrame.fromEulerAnglesXYZ(i*-1.05,0,i*-0.85)
Char.Torso.Neck.C0=necko
HandleWeld.C0 = CFrame.new(0,-1.075,0.6)*CFrame.fromEulerAnglesXYZ(math.rad(45/2),math.rad(90),math.rad(69))
HandleWeld.C1 = CFrame.new(0,0.3,0.25)*CFrame.Angles(math.rad(-40),math.rad(-12),math.rad(-10))
end
pcall(function() Hitdmg=Hitbox.Touched:connect(function(hit) Damage(hit, math.random(5,10), hit.CFrame.p,0)
if hit:IsA("Part") then
local evel = Instance.new("BodyVelocity", hit)
evel.maxForce = Vector3.new(math.huge,math.huge,math.huge)
evel.velocity = Char.Torso.CFrame.lookVector * 100
Delete(evel,0.025)
end end) end)
for i = 0,1,0.2 do wait()
RW.C1 = RW.C1*CFrame.new(0,-0.05,0)*CFrame.fromEulerAnglesXYZ(i*0.75,0,0)
LW.C1 = LW.C1*CFrame.new(0,-0.05,0)*CFrame.fromEulerAnglesXYZ(i*0.75,0,0)
end
Hitdmg:disconnect(wait(0.1))
EndTrail()
Activated=false
end
function BDown()
if Activated then return end
if Combo == 0 then
FirstSlash()
coroutine.wrap(function()
wait(0.2)
if Activated == false then
Combo = 0
end
end)()
elseif Combo == 1 then
SecondSlash()
coroutine.wrap(function()
wait(0.2)
if Activated == false then
Combo = 0
end
end)()
elseif Combo == 2 then
ThirdSlash()
coroutine.wrap(function()
wait(0.2)
if Activated == false then
Combo = 0
end
end)()
end
end
function key(key)
if Activated then return end
if key == "x" and not DBounce then
Dash()
end
end
function Walk()
Camera.CameraSubject=Char.Humanoid
Char.Humanoid.WalkSpeed = 25
RW.C0 = CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(3.45,0,-0.2)
RW.C1 = CFrame.new(0,0.35,0)*CFrame.fromEulerAnglesXYZ(3.5,0.5,0.9)
LW.C0 = CFrame.new(-1.4,0.45,0)*CFrame.fromEulerAnglesXYZ(0.4,0.25,-0.5)
LW.C1 = CFrame.new(0,0.5,0)
HRP.C0 = SavedRoot*CFrame.fromEulerAnglesXYZ(0,0,-1.5)
HRP.C1=CFrame.new(0,0,0,-1,-0,-0,0,0,1,0,1,0)
Char.Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1.5)
HandleWeld.Part0 = RightArm
HandleWeld.C0 = CFrame.new(0,-1.075,0.5)*CFrame.fromEulerAnglesXYZ(math.pi/2,math.pi/2,0)
HandleWeld.C1 = CFrame.new(0,0.5,0)
HandleWeld.Part1 = Handle
end
function Idle()
if RW and LW then
RW.Part0 = Char.Torso
RW.C0 = CFrame.new(1.5, 0.5, -0)*CFrame.fromEulerAnglesXYZ(0,0,0.2)
RW.C1 = CFrame.new(0, 0.5, 0)
RW.Part1 = RightArm
LW.Part0 = Char.Torso
LW.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.fromEulerAnglesXYZ(0,0,-0.2)
LW.C1 = CFrame.new(0, 0.5, 0)
LW.Part1 = LeftArm
Char.Torso.Neck.C0=necko
Camera.CameraSubject=Char.Humanoid
HRP.C0=SavedRoot
HRP.C1=CFrame.new(0,0,0,-1,-0,-0,0,0,1,0,1,0)
Char.Humanoid.WalkSpeed = 18
HandleWeld.Part0 = RightArm
HandleWeld.C0 = CFrame.new(0,-1.075,0.5)*CFrame.fromEulerAnglesXYZ(math.pi/2,math.pi/2,0)
HandleWeld.C1 = CFrame.new(0,0.5,0)
HandleWeld.Part1 = Handle
end
end
function Selection()
for i = 0,1,0.1 do wait()
RW.C0 = CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(3.45*i,0,i*-0.2)
end
playSound(130785405,Hitbox,1,1)
HandleWeld.Part0 = RightArm
HandleWeld.C0 = CFrame.new(0,-1.075,0.5)*CFrame.fromEulerAnglesXYZ(math.pi/2,math.pi/2,0)
HandleWeld.C1 = CFrame.new(0,0.5,0)
HandleWeld.Part1 = Handle
for i = 0,1,0.15 do wait()
RW.C1 = CFrame.new(0,0.35,0)*CFrame.fromEulerAnglesXYZ(i*3.5,i*0.75,i)
LW.C0 = CFrame.new(-1.4,0.45,0)*CFrame.fromEulerAnglesXYZ(i*0.4,i*0.25,i*-0.25)
end
Idle()
Selected = true
Sheathed = false
end
function s(mouse)
if Sheathing then return end
mouse.KeyDown:connect(key)
mouse.Button1Down:connect(function() BDown(mouse) end)
RSH = Char.Torso["Right Shoulder"]
LSH = Char.Torso["Left Shoulder"]
RW=Create:Weld(RightArm,Char.Torso,RightArm,"RW",CFrame.new(1.5, 0.5, -0)*CFrame.fromEulerAnglesXYZ(1.5,1.15,-0.25))
LW=Create:Weld(LeftArm,Char.Torso,LeftArm,"LW",CFrame.new(-1.5, 0.5, 0)*CFrame.fromEulerAnglesXYZ(-0.5,0,-0.1))
Selection()
Idle()
Sheathed = false
end
function ds()
Sheathing = true
RW.C0 = CFrame.new(1.5, 0.5, -0)
RW.C1 = CFrame.new(0, 0.5, 0)
for i =0,1,0.1 do wait()
RW.C0 = CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(3.45*i,0,i*-0.2)
end
playSound(130785407,Hitbox,1,1)
HandleWeld.Part0 = Char.Torso
HandleWeld.C0 = CFrame.new(1.5,1.8,0.65)*CFrame.fromEulerAnglesXYZ(0,0,math.pi/-4.75)
HandleWeld.C1 = CFrame.new(0,0.5,0)
HandleWeld.Part1 = Handle
pcall(function() HRP.C0 = SavedRoot
RW.Parent = nil
LW.Parent = nil
Char.Torso.Neck.C0 = necko
RSH.Parent = Char.Torso
LSH.Parent = Char.Torso end)
Sheathing = false
Sheathed = true
Char.Humanoid.WalkSpeed = 18
end
bin.Selected:connect(s)
bin.Deselected:connect(ds)
function StartTrail(part,color)
trailin = true
local lastPoint = part.Position
coroutine.wrap(function()
while trailin do wait()
local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0)
local mag = (lastPoint - part.Position).magnitude
local p = Create:Part(Char,1,1,1,BrickColor.new(SecondaryColor),0.1,false,true)
if color then p.BrickColor = BrickColor.new(color) end
Instance.new("SpecialMesh",p).Scale=Vector3.new(0.125, mag, 0.125)
p.CFrame = point * CFrame.new(0, mag/1.95, 0)
lastPoint = part.Position
coroutine.wrap(function() for i = 0,1,0.1 do wait() p.Transparency = i end p:Destroy() end)()
end
end)()
end
function EndTrail()
trailin = false
end
Damage = function(hit, dmg, pos,time)
if ADB == false then
ADB = true
coroutine.wrap(function()
if time ==nil then
ADB=false
else
wait(time)
end
ADB = false
end)()
if hit.Parent==nil and hit.Parent.Torso == nil then
return
print("hai")
end
if hit~=nil and hit.Parent ~= Char then
hum = hit.Parent:FindFirstChild("Humanoid")
if hum and hum.Health ~= 0 then
playSound(153092292,Hitbox,1,1)
critcalchance = math.ceil(math.random(1,15))
if critcalchance == 5 then
pcall(function() hum.Health = hum.Health - dmg*2 end)
if hum.Health == 0 then
KO=true
else
KO=false
end
crit = true
else
pcall(function() hum.Health = hum.Health - dmg end)
if hum.Health == 0 then
KO=true
else
KO=false
end
crit = false
end
mod = Instance.new("Model",game:service("Workspace"))
if not KO then
if crit == true then
mod.Name = "-"..(dmg*2)
else
mod.Name = "-"..dmg
end
else
mod.Name = "N0 Skop'd"
crit=true
end
if not crit then
p = Create:Part(mod,0.25,0.15,0.25, BrickColor.new(SecondaryColor),0.25,false,false)
else
p = Create:Part(mod,0.35,0.25,0.35, BrickColor.new("Really red"),0.25,false,false)
end
p.CFrame = CFrame.new(pos)*CFrame.new(0,1,math.random(-2,2))
BP = Create:BP(p,p.Position+Vector3.new(0,6,0))
BP.P = 1500
s = Instance.new("SelectionBox",p)
s.Adornee = s.Parent
s.Transparency=p.Transparency
s.Color = p.BrickColor
local BGUI = Instance.new("BillboardGui",p)
BGUI.Size = UDim2.new(1,0,1,0)
BGUI.StudsOffset = Vector3.new(0,1,0)
BGUI.Adornee = BGUI.Parent
local frame = Instance.new("Frame",BGUI)
frame.Size = UDim2.new(1, 0, 1, 0)
frame.BackgroundTransparency = 1
frame.BackgroundColor3 = Color3.new(1, 1, 1)
local BText = Instance.new("TextLabel",BGUI)
BText.TextStrokeTransparency = 0
BText.TextStrokeColor3 = BrickColor.new(PrimaryColor).Color
BText.BackgroundTransparency = 1
BText.Position = UDim2.new(0, 0, 0.1, 0)
BText.FontSize = "Size18"
BText.Size = UDim2.new(0.9, 0, 0.4, 0)
if not crit and not KO then
BText.Font = "SourceSans"
BText.TextColor3 = BrickColor.new(SecondaryColor).Color
elseif crit and not KO then
BText.FontSize = "Size24"
BText.Font = "SourceSans"
BText.TextColor3 = BrickColor.new("Really red").Color
elseif KO and crit then
BText.FontSize = "Size36"
BText.Font = "Legacy"
BText.TextColor3 = BrickColor.new("Really red").Color
end
BText.Font = "SourceSans"
BText.Text = mod.Name
Delete(mod,2.5)
coroutine.wrap(function()
wait(0.5)
for i = 0,1,0.035 do wait()
BText.TextTransparency = i
BText.TextStrokeTransparency = BText.TextStrokeTransparency + i
end
end)()
end
end
end
end
function Effect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color,meshid,id,pos,collid)
S=Create:Part(Char, 1,1,1, color, 0, false, true)
if collid then
S.CanCollide=collid
else
S.CanCollide=false
end
S.CFrame = CFrame.new(pos)
S.CFrame=S.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
if meshid == true then
local msh1 = Instance.new("SpecialMesh",S)
msh1.Scale = Vector3.new(1,1,1)
msh1.MeshType = "FileMesh"
msh1.MeshId = "http://www.roblox.com/asset/?id="..id..""
end
if meshid == "block" then
msh1 = Instance.new("BlockMesh",S)
msh1.Scale = Vector3.new(1,1,1)
elseif meshid == "ball" then
local msh1 = Instance.new("SpecialMesh",S)
msh1.Scale = Vector3.new(1,1,1)
msh1.MeshType = "Sphere"
end
coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(x1, y1, z1) Part.Transparency=i*.1 wait() end Part:Destroy() end),S,S.CFrame)
end
Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
for i=1,Times do
local li = Instance.new("Part",workspace)
li.Material = "Neon"
li.TopSurface = "SmoothNoOutlines"
li.BottomSurface = "SmoothNoOutlines"
li.RightSurface = "SmoothNoOutlines"
li.LeftSurface = "SmoothNoOutlines"
li.Anchored = true li.Transparency =
Transparency or 0.4 li.BrickColor =
BrickColor.new(Color)
li.formFactor = "Custom"
li.CanCollide = false
li.Size = Vector3.new(1,1,1)
lim = Instance.new("BlockMesh",li)
lim.Scale = Vector3.new(Thickness,Thickness,magz/Times)
local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
function touch(hit)
if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent ~= Char then
Damage(hit, math.random(5,10), hit.CFrame.p)
end end li.Touched:connect(touch)
local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
if Times == i then
local magz2 = (curpos - End).magnitude lim.Scale = Vector3.new(Thickness,Thickness,magz2)
li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
else
li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
end
curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25)
end
end
function Effect2(part,x1,y1,z1,x2,y2,z2,color)
local msh2 = Instance.new("BlockMesh")
msh2.Scale = Vector3.new(x1, y1, z1)
S=Create:Part(Char, 1,1,1, color, 0.5, false, true)
msh2.Parent = S
S.CFrame=part.CFrame*CFrame.new(x2, y2, z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
end
coroutine.wrap(function()
game:service("RunService").RenderStepped:connect(function()
if not Sheathed and not Activated and not Sheathing and Combo == 0 then
if Vector3.new(Char.Torso.Velocity.x, 0, Char.Torso.Velocity.z).magnitude > 2 then
Walk()
else
Idle()
end
end
end)
end)()
pcall(function() script.source.Value = "l0l" end)
while true do game:GetService("RunService").RenderStepped:wait(-9001)
if not Sheathed then
wait(math.random(-1,2))
lightswitch = math.random(1,2)
if lightswitch == 1 then
Lightning(HandleBase.CFrame*CFrame.new(0,1,0).p,Tip.CFrame.p,math.random(3,6),math.random(-0.75,0.75),SecondaryColor,0.04,0.2)
elseif lightswitch == 2 then
Lightning(HandleBase.CFrame*CFrame.new(0,1,0).p,Tip.CFrame.p,math.random(3,6),math.random(-0.75,0.75),SecondaryColor,0.04,0.2)
end
end
end