-
Notifications
You must be signed in to change notification settings - Fork 4
/
Gale Fighter
3129 lines (2746 loc) · 113 KB
/
Gale Fighter
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
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
coroutine.wrap(function()
local function Main()
pcall(function() sethiddenproperty(game:GetService("Players").LocalPlayer, "MaximumSimulationRadius", math.pow(math.huge,math.huge) * math.huge) end)
pcall(function() sethiddenproperty(game:GetService("Players").LocalPlayer, "SimulationRadius", math.pow(math.huge,math.huge) * math.huge) end)
pcall(function() setsimulationradius(math.pow(math.huge,math.huge) * math.huge) end)
end
game:GetService("RunService").Heartbeat:Connect(Main)
end)()
--// MAIN \\--
Bypass = "death"
loadstring(game:GetObjects("rbxassetid://5325226148")[1].Source)()
-----OPTIONS
local IsDead = false
local StateMover = true
local playerss = workspace.non
local bbv,bullet
if Bypass == "death" then
bullet = game.Players.LocalPlayer.Character["HumanoidRootPart"]
bullet.Transparency = 0
bullet.Massless = true
if bullet:FindFirstChildOfClass("Attachment") then
for _,v in pairs(bullet:GetChildren()) do
if v:IsA("Attachment") then
v:Destroy()
end
end
end
bbv = Instance.new("BodyPosition",bullet)
bbv.Position = playerss.Torso.CFrame.p
end
if Bypass == "death" then
coroutine.wrap(function()
while true do
if not playerss or not playerss:FindFirstChildOfClass("Humanoid") or playerss:FindFirstChildOfClass("Humanoid").Health <= 0 then IsDead = true; return end
if StateMover then
bbv.Position = playerss.Torso.CFrame.p
bullet.Position = playerss.Torso.CFrame.p
end
game:GetService("RunService").RenderStepped:wait()
end
end)()
end
local CDDF = {}
local DamageFling = function(DmgPer)
if IsDead or Bypass ~= "death" or (DmgPer.Name == playerss.Name and DmgPer.Name == "non") or CDDF[DmgPer] or not DmgPer or not DmgPer:FindFirstChildOfClass("Humanoid") or DmgPer:FindFirstChildOfClass("Humanoid").Health <= 0 then return end
CDDF[DmgPer] = true; StateMover = false
local PosFling = (DmgPer:FindFirstChild("HumanoidRootPart") and DmgPer:FindFirstChild("HumanoidRootPart") .CFrame.p) or (DmgPer:FindFirstChildOfClass("Part") and DmgPer:FindFirstChildOfClass("Part").CFrame.p)
bbav = Instance.new("BodyAngularVelocity",bullet)
bbav.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
bbav.P = 1000000000000000000000000000
bbav.AngularVelocity = Vector3.new(10000000000000000000000000000000,100000000000000000000000000,100000000000000000)
game:GetService("Debris"):AddItem(bbav,0.1)
bullet.Rotation = playerss.Torso.Rotation
for _=1,15 do
bbv.Position = PosFling
bullet.Position = PosFling
wait(0.03)
end
bbv.Position = playerss.Torso.CFrame.p
bullet.Position = playerss.Torso.CFrame.p
CDDF[DmgPer] = false; StateMover = true
end
-- Created by Nebula_Zorua --
-- Your DeTERMINATION --
-- Y o u a c t l i k e y o u h a v e a c h o i c e. =) --
-- Discord: Nebula the Zorua#6969
-- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
--// Initializing \\--
local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
local Plrs = S.Players
local Plr = Plrs.LocalPlayer
local Char = workspace.non
local Hum = Char:FindFirstChildOfClass'Humanoid'
local RArm = Char["Right Arm"]
local LArm = Char["Left Arm"]
local RLeg = Char["Right Leg"]
local LLeg = Char["Left Leg"]
local Root = Char:FindFirstChild'HumanoidRootPart'
local Torso = Char.Torso
local Head = Char.Head
local NeutralAnims = true
local Attack = false
local BloodPuddles = {}
local Effects = {}
local Debounces = {Debounces={}}
local Mouse = Plr:GetMouse()
local Hit = {}
local Sine = 0
local Change = 1
local Souls = 0
--// Debounce System \\--
function Debounces:New(name,cooldown)
local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
setmetatable(aaaaa,{__index = Debounces})
Debounces.Debounces[name] = aaaaa
return aaaaa
end
function Debounces:Use(overrideUsable)
assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
if(self.Usable or overrideUsable)then
self.Usable = false
self.CoolingDown = true
local LastUse = time()
self.LastUse = LastUse
delay(self.Cooldown or 2,function()
if(self.LastUse == LastUse)then
self.CoolingDown = false
self.Usable = true
end
end)
end
end
function Debounces:Get(name)
assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
for i,v in next, Debounces.Debounces do
if(i == name)then
return v;
end
end
end
function Debounces:GetProgressPercentage()
assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
if(self.CoolingDown and not self.Usable)then
return math.max(
math.floor(
(
(time()-self.LastUse)/self.Cooldown or 2
)*100
)
)
else
return 100
end
end
--// Shortcut Variables \\--
local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
local R3 = {N=Region3.new}
local De = S.Debris
local WS = workspace
local Lght = S.Lighting
local RepS = S.ReplicatedStorage
local IN = Instance.new
local CSK = ColorSequenceKeypoint.new
local CS = ColorSequence.new
--// Instance Creation Functions \\--
function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
local Sound = IN("Sound")
Sound.SoundId = "rbxassetid://".. tostring(id or 0)
Sound.Pitch = pitch or 1
Sound.Volume = volume or 1
Sound.Looped = looped or false
if(autoPlay)then
coroutine.wrap(function()
repeat wait() until Sound.IsLoaded
Sound.Playing = autoPlay or false
end)()
end
if(not looped and effect)then
Sound.Stopped:connect(function()
Sound.Volume = 0
Sound:destroy()
end)
elseif(effect)then
warn("Sound can't be looped and a sound effect!")
end
Sound.Parent =parent or Torso
return Sound
end
function Part(parent,color,material,size,cframe,anchored,cancollide)
local part = IN("Part")
part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
part.Material = (material or Enum.Material.SmoothPlastic)
part.TopSurface,part.BottomSurface=10,10
part.Size = (size or V3.N(1,1,1))
part.CFrame = (cframe or CF.N(0,0,0))
part.Anchored = (anchored or false)
part.CanCollide = (cancollide or false)
part.Parent = (parent or Char)
return part
end
function Mesh(parent,meshtype,meshid,textid,scale,offset)
local part = IN("SpecialMesh")
part.MeshId = meshid or ""
part.TextureId = textid or ""
part.Scale = scale or V3.N(1,1,1)
part.Offset = offset or V3.N(0,0,0)
part.MeshType = meshtype or Enum.MeshType.Sphere
part.Parent = parent
return part
end
NewInstance = function(instance,parent,properties)
local inst = Instance.new(instance,parent)
if(properties)then
for i,v in next, properties do
pcall(function() inst[i] = v end)
end
end
return inst;
end
--[[ Name : Gale Fighter ]]--
-------------------------------------------------------
--A Collaboration Between makhail07 and KillerDarkness0105
--Base Animaion by makhail07, attacks by KillerDarkness0105
-------------------------------------------------------
local FavIDs = {
340106355, --Nefl Crystals
927529620, --Dimension
876981900, --Fantasy
398987889, --Ordinary Days
1117396305, --Oh wait, it's you.
885996042, --Action Winter Journey
919231299, --Sprawling Idiot Effigy
743466274, --Good Day Sunshine
727411183, --Knife Fight
1402748531, --The Earth Is Counting On You!
595230126 --Robot Language
}
--The reality of my life isn't real but a Universe -makhail07
wait(0.2)
local plr = game:service'Players'.LocalPlayer
local char = workspace.non
local hum = char.Humanoid
local hed = char.Head
local root = char.HumanoidRootPart
local rootj = root.RootJoint
local tors = char.Torso
local ra = char["Right Arm"]
local la = char["Left Arm"]
local rl = char["Right Leg"]
local ll = char["Left Leg"]
local neck = tors["Neck"]
local mouse = plr:GetMouse()
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
local maincolor = BrickColor.new("Institutional white")
hum.MaxHealth = 200
hum.Health = 200
-------------------------------------------------------
--Start Good Stuff--
-------------------------------------------------------
cam = game.Workspace.CurrentCamera
CF = CFrame.new
angles = CFrame.Angles
attack = false
Euler = CFrame.fromEulerAnglesXYZ
Rad = math.rad
IT = Instance.new
BrickC = BrickColor.new
Cos = math.cos
Acos = math.acos
Sin = math.sin
Asin = math.asin
Abs = math.abs
Mrandom = math.random
Floor = math.floor
-------------------------------------------------------
--End Good Stuff--
-------------------------------------------------------
necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
RSH, LSH = nil, nil
RW = Instance.new("Weld")
LW = Instance.new("Weld")
RH = tors["Right Hip"]
LH = tors["Left Hip"]
RSH = tors["Right Shoulder"]
LSH = tors["Left Shoulder"]
RSH.Parent = nil
LSH.Parent = nil
RW.Name = "RW"
RW.Part0 = tors
RW.C0 = CF(1.5, 0.5, 0)
RW.C1 = CF(0, 0.5, 0)
RW.Part1 = ra
RW.Parent = tors
LW.Name = "LW"
LW.Part0 = tors
LW.C0 = CF(-1.5, 0.5, 0)
LW.C1 = CF(0, 0.5, 0)
LW.Part1 = la
LW.Parent = tors
vt = Vector3.new
Effects = {}
-------------------------------------------------------
--Start HeartBeat--
-------------------------------------------------------
ArtificialHB = Instance.new("BindableEvent", script)
ArtificialHB.Name = "Heartbeat"
script:WaitForChild("Heartbeat")
frame = 1 / 90
tf = 0
allowframeloss = false
tossremainder = false
lastframe = tick()
script.Heartbeat:Fire()
function Fling_Touch(abc)
if abc.Parent:FindFirstChild("Humanoid") then DamageFling(abc.Parent) end
end
ra.Touched:Connect(Fling_Touch)
la.Touched:Connect(Fling_Touch)
game:GetService("RunService").Heartbeat:connect(function(s, p)
tf = tf + s
if tf >= frame then
if allowframeloss then
script.Heartbeat:Fire()
lastframe = tick()
else
for i = 1, math.floor(tf / frame) do
script.Heartbeat:Fire()
end
lastframe = tick()
end
if tossremainder then
tf = 0
else
tf = tf - frame * math.floor(tf / frame)
end
end
end)
-------------------------------------------------------
--End HeartBeat--
-------------------------------------------------------
-------------------------------------------------------
--Start Combo Function--
-------------------------------------------------------
local comboing = false
local combohits = 0
local combotime = 0
local maxtime = 65
function sandbox(var,func)
local env = getfenv(func)
local newenv = setmetatable({},{
__index = function(self,k)
if k=="script" then
return var
else
return env[k]
end
end,
})
setfenv(func,newenv)
return func
end
cors = {}
mas = Instance.new("Model",game:GetService("Lighting"))
comboframe = Instance.new("ScreenGui")
Frame1 = Instance.new("Frame")
Frame2 = Instance.new("Frame")
TextLabel3 = Instance.new("TextLabel")
comboframe.Name = "combinserter"
comboframe.Parent = mas
Frame1.Name = "combtimegui"
Frame1.Parent = comboframe
Frame1.Size = UDim2.new(0, 300, 0, 14)
Frame1.Position = UDim2.new(0, 900, 0.629999971, 0)
Frame1.BackgroundColor3 = Color3.new(0, 0, 0)
Frame1.BorderColor3 = Color3.new(0.0313726, 0.0470588, 0.0627451)
Frame1.BorderSizePixel = 5
Frame2.Name = "combtimeoverlay"
Frame2.Parent = Frame1
Frame2.Size = UDim2.new(0, 0, 0, 14)
Frame2.BackgroundColor3 = Color3.new(0, 1, 0)
Frame2.ZIndex = 2
TextLabel3.Parent = Frame2
TextLabel3.Transparency = 0
TextLabel3.Size = UDim2.new(0, 300, 0, 50)
TextLabel3.Text ="Hits: "..combohits
TextLabel3.Position = UDim2.new(0, 0, -5.5999999, 0)
TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
TextLabel3.BackgroundTransparency = 1
TextLabel3.Font = Enum.Font.Bodoni
TextLabel3.FontSize = Enum.FontSize.Size60
TextLabel3.TextColor3 = Color3.new(0, 1, 0)
TextLabel3.TextStrokeTransparency = 0
gui = game:GetService("Players").LocalPlayer.PlayerGui
for i,v in pairs(mas:GetChildren()) do
v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
pcall(function() v:MakeJoints() end)
end
mas:Destroy()
for i,v in pairs(cors) do
spawn(function()
pcall(v)
end)
end
coroutine.resume(coroutine.create(function()
while true do
wait()
if combotime>65 then
combotime = 65
end
if combotime>.1 and comboing == true then
TextLabel3.Transparency = 0
TextLabel3.TextStrokeTransparency = 0
TextLabel3.BackgroundTransparency = 1
Frame1.Transparency = 0
Frame2.Transparency = 0
TextLabel3.Text ="Hits: "..combohits
combotime = combotime - .34
Frame2.Size = Frame2.Size:lerp(UDim2.new(0, combotime/maxtime*300, 0, 14),0.42)
end
if combotime<.1 then
TextLabel3.BackgroundTransparency = 1
TextLabel3.Transparency = 1
TextLabel3.TextStrokeTransparency = 1
Frame2.Size = UDim2.new(0, 0, 0, 14)
combotime = 0
comboing = false
Frame1.Transparency = 1
Frame2.Transparency = 1
combohits = 0
end
end
end))
-------------------------------------------------------
--End Combo Function--
-------------------------------------------------------
-------------------------------------------------------
--Start Important Functions--
-------------------------------------------------------
function swait(num)
if num == 0 or num == nil then
game:service("RunService").Stepped:wait(0)
else
for i = 0, num do
game:service("RunService").Stepped:wait(0)
end
end
end
function thread(f)
coroutine.resume(coroutine.create(f))
end
function clerp(a, b, t)
local qa = {
QuaternionFromCFrame(a)
}
local qb = {
QuaternionFromCFrame(b)
}
local ax, ay, az = a.x, a.y, a.z
local bx, by, bz = b.x, b.y, b.z
local _t = 1 - t
return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
end
function QuaternionFromCFrame(cf)
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
local trace = m00 + m11 + m22
if trace > 0 then
local s = math.sqrt(1 + trace)
local recip = 0.5 / s
return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
else
local i = 0
if m00 < m11 then
i = 1
end
if m22 > (i == 0 and m00 or m11) then
i = 2
end
if i == 0 then
local s = math.sqrt(m00 - m11 - m22 + 1)
local recip = 0.5 / s
return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
elseif i == 1 then
local s = math.sqrt(m11 - m22 - m00 + 1)
local recip = 0.5 / s
return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
elseif i == 2 then
local s = math.sqrt(m22 - m00 - m11 + 1)
local recip = 0.5 / s
return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
end
end
end
function QuaternionToCFrame(px, py, pz, x, y, z, w)
local xs, ys, zs = x + x, y + y, z + z
local wx, wy, wz = w * xs, w * ys, w * zs
local xx = x * xs
local xy = x * ys
local xz = x * zs
local yy = y * ys
local yz = y * zs
local zz = z * zs
return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
end
function QuaternionSlerp(a, b, t)
local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
local startInterp, finishInterp
if cosTheta >= 1.0E-4 then
if 1 - cosTheta > 1.0E-4 then
local theta = math.acos(cosTheta)
local invSinTheta = 1 / Sin(theta)
startInterp = Sin((1 - t) * theta) * invSinTheta
finishInterp = Sin(t * theta) * invSinTheta
else
startInterp = 1 - t
finishInterp = t
end
elseif 1 + cosTheta > 1.0E-4 then
local theta = math.acos(-cosTheta)
local invSinTheta = 1 / Sin(theta)
startInterp = Sin((t - 1) * theta) * invSinTheta
finishInterp = Sin(t * theta) * invSinTheta
else
startInterp = t - 1
finishInterp = t
end
return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
end
function rayCast(Position, Direction, Range, Ignore)
return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
end
local Create = function(Class)
return function(Properties)
local ins = Instance.new(Class)
for i,v in pairs(Properties) do
ins[i] = v
end
return ins
end
end
-------------------------------------------------------
--Start Damage Function--
-------------------------------------------------------
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
if hit.Parent == nil then
return
end
local h = hit.Parent:FindFirstChildOfClass("Humanoid")
for _, v in pairs(hit.Parent:children()) do
if v:IsA("Humanoid") then
h = v
end
end
if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
hit.Parent:FindFirstChild("Head"):BreakJoints()
end
if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
if hit.Parent:findFirstChild("DebounceHit") ~= nil then
if hit.Parent.DebounceHit.Value == true then
return
end
end
if insta == true then
hit.Parent:FindFirstChild("Head"):BreakJoints()
end
local c = Create("ObjectValue"){
Name = "creator",
Value = game:service("Players").LocalPlayer,
Parent = h,
}
game:GetService("Debris"):AddItem(c, .5)
if HitSound ~= nil and HitPitch ~= nil then
CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
end
local Damage = math.random(minim, maxim)
local blocked = false
local block = hit.Parent:findFirstChild("Block")
if block ~= nil then
if block.className == "IntValue" then
if block.Value > 0 then
blocked = true
block.Value = block.Value - 1
print(block.Value)
end
end
end
if blocked == false then
h.Health = h.Health - Damage
ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
else
h.Health = h.Health - (Damage / 2)
ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
end
if Type == "Knockdown" then
local hum = hit.Parent.Humanoid
hum.PlatformStand = true
coroutine.resume(coroutine.create(function(HHumanoid)
swait(1)
HHumanoid.PlatformStand = false
end), hum)
local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
local bodvol = Create("BodyVelocity"){
velocity = angle * knockback,
P = 5000,
maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
Parent = hit,
}
local rl = Create("BodyAngularVelocity"){
P = 3000,
maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
Parent = hit,
}
game:GetService("Debris"):AddItem(bodvol, .5)
game:GetService("Debris"):AddItem(rl, .5)
elseif Type == "Normal" then
local vp = Create("BodyVelocity"){
P = 500,
maxForce = Vector3.new(math.huge, 0, math.huge),
velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
}
if knockback > 0 then
vp.Parent = hit.Parent.Torso
end
game:GetService("Debris"):AddItem(vp, .5)
elseif Type == "Up" then
local bodyVelocity = Create("BodyVelocity"){
velocity = Vector3.new(0, 20, 0),
P = 5000,
maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
Parent = hit,
}
game:GetService("Debris"):AddItem(bodyVelocity, .5)
elseif Type == "DarkUp" then
coroutine.resume(coroutine.create(function()
for i = 0, 1, 0.1 do
swait()
Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
end
end))
local bodyVelocity = Create("BodyVelocity"){
velocity = Vector3.new(0, 20, 0),
P = 5000,
maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
Parent = hit,
}
game:GetService("Debris"):AddItem(bodyVelocity, 1)
elseif Type == "Snare" then
local bp = Create("BodyPosition"){
P = 2000,
D = 100,
maxForce = Vector3.new(math.huge, math.huge, math.huge),
position = hit.Parent.Torso.Position,
Parent = hit.Parent.Torso,
}
game:GetService("Debris"):AddItem(bp, 1)
elseif Type == "Freeze" then
local BodPos = Create("BodyPosition"){
P = 50000,
D = 1000,
maxForce = Vector3.new(math.huge, math.huge, math.huge),
position = hit.Parent.Torso.Position,
Parent = hit.Parent.Torso,
}
local BodGy = Create("BodyGyro") {
maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
P = 20e+003,
Parent = hit.Parent.Torso,
cframe = hit.Parent.Torso.CFrame,
}
hit.Parent.Torso.Anchored = true
coroutine.resume(coroutine.create(function(Part)
swait(1.5)
Part.Anchored = false
end), hit.Parent.Torso)
game:GetService("Debris"):AddItem(BodPos, 3)
game:GetService("Debris"):AddItem(BodGy, 3)
end
local debounce = Create("BoolValue"){
Name = "DebounceHit",
Parent = hit.Parent,
Value = true,
}
game:GetService("Debris"):AddItem(debounce, Delay)
c = Create("ObjectValue"){
Name = "creator",
Value = Player,
Parent = h,
}
game:GetService("Debris"):AddItem(c, .5)
end
end
kDamagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
if hit.Parent==nil then
return
end
h=hit.Parent:FindFirstChild("Humanoid")
for _,v in pairs(hit.Parent:children()) do
if v:IsA("Humanoid") then
h=v
end
end
if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
h=hit.Parent.Parent:FindFirstChild("Humanoid")
end
if hit.Parent.className=="Hat" then
hit=hit.Parent.Parent:findFirstChild("Head")
end
if h~=nil and hit.Parent.Name~=char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
--[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
return
end]]
-- hs(hit,1.2)
c=Instance.new("ObjectValue")
c.Name="creator"
c.Value=game:service("Players").LocalPlayer
c.Parent=h
game:GetService("Debris"):AddItem(c,.5)
Damage=math.random(minim,maxim)
DamageFling(h.Parent)
-- h:TakeDamage(Damage)
blocked=false
block=hit.Parent:findFirstChild("Block")
if block~=nil then
print(block.className)
if block.className=="NumberValue" then
if block.Value>0 then
blocked=true
if decreaseblock==nil then
block.Value=block.Value-1
end
end
end
if block.className=="IntValue" then
if block.Value>0 then
blocked=true
if decreaseblock~=nil then
block.Value=block.Value-1
end
end
end
end
if blocked==false then
DamageFling(h.Parent)
-- h:TakeDamage(Damage)
-- h.Health=h.Health-Damage
kshowDamage(hit.Parent,Damage,.5,BrickColor.new("White"))
else
h.Health=h.Health-(Damage/2)
kshowDamage(hit.Parent,Damage/2,.5,BrickColor.new("White"))
end
if Type=="Knockdown" then
hum=hit.Parent.Humanoid
hum.PlatformStand=true
coroutine.resume(coroutine.create(function(HHumanoid)
swait(1)
HHumanoid.PlatformStand=false
end),hum)
local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
local bodvol=Instance.new("BodyVelocity")
bodvol.velocity=angle*knockback
bodvol.P=5000
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
bodvol.Parent=hit
rl=Instance.new("BodyAngularVelocity")
rl.P=3000
rl.maxTorque=Vector3.new(500,500,500)
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
rl.Parent=hit
game:GetService("Debris"):AddItem(bodvol,.5)
game:GetService("Debris"):AddItem(rl,.5)
elseif Type=="Normal" then
vp=Instance.new("BodyVelocity")
vp.P=500
vp.maxForce=Vector3.new(math.huge,0,math.huge)
-- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
if KnockbackType==1 then
vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
elseif KnockbackType==2 then
vp.velocity=Property.CFrame.lookVector*knockback
end
if knockback>0 then
vp.Parent=hit.Parent.Torso
end
game:GetService("Debris"):AddItem(vp,.5)
elseif Type=="Up" then
hit.Parent.Humanoid.PlatformStand = true
local bodyVelocity=Instance.new("BodyVelocity")
bodyVelocity.velocity=vt(0,15,0)
bodyVelocity.P=5000
bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
bodyVelocity.Parent=hit
game:GetService("Debris"):AddItem(bodyVelocity,1)
rl=Instance.new("BodyAngularVelocity")
rl.P=3000
rl.AngularVelocity = Vector3.new(2000,2000,2000)
rl.MaxTorque = Vector3.new(40000,40000,40000)
rl.Parent=hit
hit.Parent.Humanoid.PlatformStand = false
game:GetService("Debris"):AddItem(rl,.5)
elseif Type=="Snare" then
bp=Instance.new("BodyPosition")
bp.P=2000
bp.D=100
bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
bp.position=hit.Parent.Torso.Position
bp.Parent=hit.Parent.Torso
game:GetService("Debris"):AddItem(bp,1)
elseif Type=="Float" then
hit.Parent.Humanoid.PlatformStand = true
bp=Instance.new("BodyPosition")
bp.P=2000
bp.D=400
bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
bp.position=hit.Parent.Torso.Position+vt(0,35,24)
bp.Parent=hit.Parent.Torso
local rl=Instance.new("BodyAngularVelocity",hit.Parent.Torso)
rl.P=377705
rl.maxTorque=Vector3.new(1,1,1)*500
rl.angularvelocity=Vector3.new(math.random(-3,3),math.random(-6,6),math.random(-3,3))
local BF = Instance.new("BodyForce",hit.Parent.Torso)
BF.force = Vector3.new(0, workspace.Gravity/1.10, 0)
game:GetService("Debris"):AddItem(bp,5)
game:GetService("Debris"):AddItem(BF,5)
game:GetService("Debris"):AddItem(rl,5)
elseif Type=="Target" then
if Targetting==false then
ZTarget=hit.Parent.Torso
coroutine.resume(coroutine.create(function(Part)
so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
swait(5)
so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
end),ZTarget)
TargHum=ZTarget.Parent:findFirstChild("Humanoid")
targetgui=Instance.new("BillboardGui")
targetgui.Parent=ZTarget
targetgui.Size=UDim2.new(10,100,10,100)
targ=Instance.new("ImageLabel")
targ.Parent=targetgui
targ.BackgroundTransparency=1
targ.Image="rbxassetid://4834067"
targ.Size=UDim2.new(1,0,1,0)
cam.CameraType="Scriptable"
cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
Targetting=true
RocketTarget=ZTarget
for i=1,Property do
--while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
if Humanoid.Health>0 and char.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
swait()
end
--workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
end
Targetting=false
RocketTarget=nil
targetgui.Parent=nil
cam.CameraType="Custom"
end
end
debounce=Instance.new("BoolValue")
debounce.Name="DebounceHit"
debounce.Parent=hit.Parent
debounce.Value=true
game:GetService("Debris"):AddItem(debounce,Delay)
c=Instance.new("ObjectValue")
c.Name="creator"
c.Value=Player
c.Parent=h
game:GetService("Debris"):AddItem(c,.5)
CRIT=false
hitDeb=true
AttackPos=6
comboing = true
combohits = combohits+1
combotime = combotime+3.4
if hitfloor == nil then
local velo=Instance.new("BodyVelocity")
velo.velocity=vt(0,5.5,0)
velo.P=8000
velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
velo.Parent=root
game:GetService("Debris"):AddItem(velo,0.06)
local hitvelo=Instance.new("BodyVelocity")
hitvelo.velocity=vt(0,5.5,0)
hitvelo.P=8000
hitvelo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
hitvelo.Parent=hit
game:GetService("Debris"):AddItem(hitvelo,0.06)
coroutine.resume(coroutine.create(function()
for i = 0,3.7,0.1 do
swait()
hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,0,-2.4)
root.Velocity = root.CFrame.lookVector*0
hit.Velocity = hit.CFrame.lookVector*130
end
end))
coroutine.resume(coroutine.create(function()
while ultra == true do
swait()
hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,0,-2.4)
end
end))
end
end
end
kshowDamage=function(Char,Dealt,du,Color)
m=Instance.new("Model")
m.Name=tostring(Dealt)
h=Instance.new("Humanoid")
h.Health=0
h.MaxHealth=0
h.Parent=m
c=Instance.new("Part")
c.Transparency=0
c.BrickColor=Color
c.Name="Head"
c.Material = "Neon"
c.TopSurface=0
c.BottomSurface=0
c.formFactor="Plate"
c.Size=Vector3.new(1,.4,1)
ms=Instance.new("CylinderMesh")
ms.Scale=Vector3.new(.8,.8,.8)
if CRIT==true then
ms.Scale=Vector3.new(1,1.25,1)
end