View difference between Paste ID: FQajHv6u and zuzLcfKz
SHOW: | | - or go back to the newest paste.
1
game.Workspace.XxXexe5.Humanoid.MaxHealth=400
2-
game.Workspace.YOURNAME.Humanoid.MaxHealth=400
2+
3
char = plr.Character
4
mouse = plr:GetMouse()
5
humanoid = char:findFirstChild("Humanoid")
6
torso = char:findFirstChild("Torso")
7
head = char.Head
8
ra = char:findFirstChild("Right Arm")
9
la = char:findFirstChild("Left Arm")
10
rl = char:findFirstChild("Right Leg")
11
ll = char:findFirstChild("Left Leg")
12
rs = torso:findFirstChild("Right Shoulder")
13
ls = torso:findFirstChild("Left Shoulder")
14
rh = torso:findFirstChild("Right Hip")
15
lh = torso:findFirstChild("Left Hip")
16
neck = torso:findFirstChild("Neck")
17
rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
18
rootpart = char:findFirstChild("HumanoidRootPart")
19
camera = workspace.CurrentCamera
20
21
local s = Instance.new('Sound', head)
22
s.Volume = 1
23
s.SoundId = "rbxassetid://330630853" --EG: Music to my ears
24
s.Looped = true
25
s.Pitch = 1
26
s:play()
27
28
humanoid.WalkSpeed = 40
29
30
31
-------------------------------------------------------------------------------------
32
33
local Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(0,0,0))
34
35
local Num = .8
36
37
local Num2 = 6 -------------Mods:1,4,8,10,15,20-------------------------------------
38
local Size = 0.4
39
local Rate = 300
40
-------------------------------------------------------------------------------------
41
local Player = game:service'Players'.LocalPlayer
42
local Character = Player.Character
43
Torso = Character:WaitForChild'Torso'
44
45
local Wing1 = Instance.new("Part",Character)
46
Wing1.FormFactor = Enum.FormFactor.Custom
47
Wing1.Size = Vector3.new(.2, .2, .2)
48
Wing1.Name = "WIng_1"
49
50
local fire          = Instance.new("ParticleEmitter", Wing1)
51
fire.VelocitySpread = 0
52
fire.Lifetime       = NumberRange.new(2)
53
fire.Acceleration   = Vector3.new(0, 2, 2)
54
fire.RotSpeed       = NumberRange.new(10)
55
fire.Rate           = Rate
56
fire.Rotation       = NumberRange.new(1515)
57
fire.Name           = "Fire"
58
fire.LightEmission  = 0
59
fire.LockedToPart   = true
60
fire.Texture        = "http://www.roblox.com/asset/?id=42305693"
61
fire.Color          = ColorSequence.new(Color3.new(0,0,0), Color3.new(0,0,0))
62
63
local Wing2 = Instance.new("Part",Character)
64
Wing2.FormFactor = Enum.FormFactor.Custom
65
Wing2.Size = Vector3.new(.2, .2, .2)
66
Wing2.Name = "WIng_2"
67
68
local fire          = Instance.new("ParticleEmitter", Wing2)
69
fire.VelocitySpread = 0
70
fire.Lifetime       = NumberRange.new(2)
71
fire.Acceleration   = Vector3.new(0, 4, 4)
72
fire.RotSpeed       = NumberRange.new(10)
73
fire.Rate           = Rate
74
fire.Rotation       = NumberRange.new(1515)
75
fire.Name           = "Fire"
76
fire.LightEmission  = 1
77
fire.LockedToPart   = true
78
fire.Texture        = "rbxasset://textures/particles/explosion01_implosion_main.dds"
79
fire.Color          = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255))
80
local x,y,z = 0,-1,-6
81
82
Wld = function(a,b,cf)
83
local Weld = Instance.new('Weld',a)
84
Weld.Part0 = a
85
Weld.Part1 = b
86
Weld.C1 = cf
87
return Weld
88
end
89
90
local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
91
local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
92
93
94
game:service'RunService'.Stepped:connect(function()
95
z = 6+math.sin(tick()*2)
96
y = -1+math.sin(tick()*Num)*Num2
97
Wing1.Fire.Acceleration = Vector3.new(x,y,z)
98
Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
99
end)
100
------------------------------------------------------------------------------------------------
101
local Player = game:service'Players'.LocalPlayer
102
local Character = Player.Character
103
Torso = Character:WaitForChild'Torso'
104
105
local Wing1 = Instance.new("Part",Character)
106
Wing1.FormFactor = Enum.FormFactor.Custom
107
Wing1.Size = Vector3.new(.2, .2, .2)
108
Wing1.Name = "WIng_1"
109
110
local fire          = Instance.new("ParticleEmitter", Wing1)
111
fire.VelocitySpread = 0
112
fire.Lifetime       = NumberRange.new(2.5)
113
fire.Acceleration   = Vector3.new(0, 4, 4)
114
fire.RotSpeed       = NumberRange.new(10)
115
fire.Rate           = Rate
116
fire.Rotation       = NumberRange.new(1515)
117
fire.Name           = "Fire"
118
fire.LightEmission  = 0
119
fire.LockedToPart   = true
120
fire.Texture        = "http://www.roblox.com/asset/?id=42305693"
121
fire.Color          = ColorSequence.new(Color3.new(0,0,0), Color3.new(0,0,0))
122
123
local Wing2 = Instance.new("Part",Character)
124
Wing2.FormFactor = Enum.FormFactor.Custom
125
Wing2.Size = Vector3.new(.2, .2, .2)
126
Wing2.Name = "WIng_2"
127
128
local fire = Instance.new("ParticleEmitter", Wing2)
129
fire.VelocitySpread = 0
130
fire.Lifetime = NumberRange.new(2.5)
131
fire.Acceleration = Vector3.new(0, 4, 4)
132
fire.RotSpeed = NumberRange.new(10)
133
fire.Rate = Rate
134
fire.Rotation = NumberRange.new(1515)
135
fire.Name = "Fire"
136
fire.LightEmission = 1
137
fire.LockedToPart = true
138
fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
139
fire.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255))
140
local x,y,z = 0,-1,-6
141
142
Wld = function(a,b,cf)
143
local Weld = Instance.new('Weld',a)
144
Weld.Part0 = a
145
Weld.Part1 = b
146
Weld.C1 = cf
147
return Weld
148
end
149
150
local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
151
local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
152
153
print'Loaded'
154
155
game:service'RunService'.Stepped:connect(function()
156
z = 6+math.sin(tick()*2)
157
y = -1+math.sin(tick()*Num)*Num2
158
Wing1.Fire.Acceleration = Vector3.new(x,y,z)
159
Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
160
end)
161
162
------------------------------------------------------------------------------------------------
163
local Player = game:service'Players'.LocalPlayer
164
local Character = Player.Character
165
Torso = Character:WaitForChild'Torso'
166
167
local Wing1 = Instance.new("Part",Character)
168
Wing1.FormFactor = Enum.FormFactor.Custom
169
Wing1.Size = Vector3.new(.2, .2, .2)
170
Wing1.Name = "WIng_1"
171
172
local fire = Instance.new("ParticleEmitter", Wing1)
173
fire.VelocitySpread = 0
174
fire.Lifetime = NumberRange.new(2.8)
175
fire.Acceleration = Vector3.new(0, 4, 4)
176
fire.RotSpeed = NumberRange.new(10)
177
fire.Rate = Rate
178
fire.Rotation = NumberRange.new(1515)
179
fire.Name = "Fire"
180
fire.LightEmission = 0
181
fire.LockedToPart = true
182
fire.Texture = "http://www.roblox.com/asset/?id=42305693"
183
fire.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(0,0,0))
184
185
local Wing2 = Instance.new("Part",Character)
186
Wing2.FormFactor = Enum.FormFactor.Custom
187
Wing2.Size = Vector3.new(.2, .2, .2)
188
Wing2.Name = "WIng_2"
189
190
local fire = Instance.new("ParticleEmitter", Wing2)
191
fire.VelocitySpread = 0
192
fire.Lifetime = NumberRange.new(2.8)
193
fire.Acceleration = Vector3.new(0, 4, 4)
194
fire.RotSpeed = NumberRange.new(10)
195
fire.Rate = Rate
196
fire.Rotation = NumberRange.new(1515)
197
fire.Name = "Fire"
198
fire.LightEmission = 1
199
fire.LockedToPart = true
200
fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
201
fire.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255))
202
local x,y,z = 0,-1,-6
203
204
Wld = function(a,b,cf)
205
local Weld = Instance.new('Weld',a)
206
Weld.Part0 = a
207
Weld.Part1 = b
208
Weld.C1 = cf
209
return Weld
210
end
211
212
local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
213
local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
214
215
print'Loaded'
216
217
game:service'RunService'.Stepped:connect(function()
218
z = 6+math.sin(tick()*2)
219
y = -1+math.sin(tick()*Num)*Num2
220
Wing1.Fire.Acceleration = Vector3.new(x,y,z)
221
Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
222
end)
223
224
------------------------------------------------------------------------------------------------
225
local Player = game:service'Players'.LocalPlayer
226
local Character = Player.Character
227
Torso = Character:WaitForChild'Torso'
228
229
local Wing1 = Instance.new("Part",Character)
230
Wing1.FormFactor = Enum.FormFactor.Custom
231
Wing1.Size = Vector3.new(.2, .2, .2)
232
Wing1.Name = "WIng_1"
233
234
local fire = Instance.new("ParticleEmitter", Wing1)
235
fire.VelocitySpread = 0
236
fire.Lifetime = NumberRange.new(3)
237
fire.Acceleration = Vector3.new(0, 4, 4)
238
fire.RotSpeed = NumberRange.new(10)
239
fire.Rate = Rate
240
fire.Rotation = NumberRange.new(1515)
241
fire.Name = "Fire"
242
fire.LightEmission = 0
243
fire.LockedToPart = true
244
fire.Texture = "http://www.roblox.com/asset/?id=42305693"
245
fire.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(0,0,0))
246
247
local Wing2 = Instance.new("Part",Character)
248
Wing2.FormFactor = Enum.FormFactor.Custom
249
Wing2.Size = Vector3.new(.2, .2, .2)
250
Wing2.Name = "WIng_2"
251
252
local fire = Instance.new("ParticleEmitter", Wing2)
253
fire.VelocitySpread = 0
254
fire.Lifetime = NumberRange.new(3)
255
fire.Acceleration = Vector3.new(0, 4, 4)
256
fire.RotSpeed = NumberRange.new(10)
257
fire.Rate = Rate
258
fire.Rotation = NumberRange.new(1515)
259
fire.Name = "Fire"
260
fire.LightEmission = 1
261
fire.LockedToPart = true
262
fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
263
fire.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255))
264
local x,y,z = 0,-1,-6
265
266
Wld = function(a,b,cf)
267
local Weld = Instance.new('Weld',a)
268
Weld.Part0 = a
269
Weld.Part1 = b
270
Weld.C1 = cf
271
return Weld
272
end
273
274
local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
275
local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
276
277
print'Loaded'
278
279
game:service'RunService'.Stepped:connect(function()
280
z = 6+math.sin(tick()*2)
281
y = -1+math.sin(tick()*Num)*Num2
282
Wing1.Fire.Acceleration = Vector3.new(x,y,z)
283
Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
284
end)
285
286
------------------------------------------------------------------------------------------------
287
local Player = game:service'Players'.LocalPlayer
288
local Character = Player.Character
289
Torso = Character:WaitForChild'Torso'
290
291
local Wing1 = Instance.new("Part",Character)
292
Wing1.FormFactor = Enum.FormFactor.Custom
293
Wing1.Size = Vector3.new(.2, .2, .2)
294
Wing1.Name = "WIng_1"
295
296
local fire = Instance.new("ParticleEmitter", Wing1)
297
fire.VelocitySpread = 0
298
fire.Lifetime = NumberRange.new(3.1)
299
fire.Acceleration = Vector3.new(0, 4, 4)
300
fire.RotSpeed = NumberRange.new(10)
301
fire.Rate = Rate
302
fire.Rotation = NumberRange.new(1515)
303
fire.Name = "Fire"
304
fire.LightEmission = 0
305
fire.LockedToPart = true
306
fire.Texture = "http://www.roblox.com/asset/?id=42305693"
307
fire.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(0,0,0))
308
309
local Wing2 = Instance.new("Part",Character)
310
Wing2.FormFactor = Enum.FormFactor.Custom
311
Wing2.Size = Vector3.new(.2, .2, .2)
312
Wing2.Name = "WIng_2"
313
314
local fire = Instance.new("ParticleEmitter", Wing2)
315
fire.VelocitySpread = 0
316
fire.Lifetime = NumberRange.new(3.1)
317
fire.Acceleration = Vector3.new(0, 4, 4)
318
fire.RotSpeed = NumberRange.new(10)
319
fire.Rate = Rate
320
fire.Rotation = NumberRange.new(1515)
321
fire.Name = "Fire"
322
fire.LightEmission = 1
323
fire.LockedToPart = true
324
fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
325
fire.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255))
326
local x,y,z = 0,-1,-6
327
328
Wld = function(a,b,cf)
329
local Weld = Instance.new('Weld',a)
330
Weld.Part0 = a
331
Weld.Part1 = b
332
Weld.C1 = cf
333
return Weld
334
end
335
336
local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
337
local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
338
339
print'Loaded'
340
341
game:service'RunService'.Stepped:connect(function()
342
z = 6+math.sin(tick()*2)
343
y = -1+math.sin(tick()*Num)*Num2
344
Wing1.Fire.Acceleration = Vector3.new(x,y,z)
345
Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
346
end)
347
348
Player = game:GetService("Players").LocalPlayer
349
Character = Player.Character
350
PlayerGui = Player.PlayerGui
351
Backpack = Player.Backpack
352
Torso = Character.Torso
353
Head = Character.Head
354
Humanoid = Character.Humanoid
355
LeftArm = Character["Left Arm"]
356
LeftLeg = Character["Left Leg"]
357
RightArm = Character["Right Arm"]
358
RightLeg = Character["Right Leg"]
359
local HBill = Instance.new("BillboardGui", Head)
360
local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
361
local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
362
HBill.Size = UDim2.new(15,0,2.2,0)
363
HBill.Name = "Health Display"
364
HBill.StudsOffset = Vector3.new(0,4,0)
365
HBill.AlwaysOnTop = true
366
HBill.Enabled=true
367
HMain.BackgroundColor3 = Color3.new(255, 255, 255)
368
HMain.BackgroundTransparency = 0.6
369
HMain.Size = UDim2.new(1,0,1,0)
370
HBarBack.Parent = HMain
371
HBarBack.BackgroundColor3 = Color3.new(255,255,255)
372
HBarBack.BorderColor3 = Color3.new(255,255,255)
373
HBarBack.BorderSizePixel = 2
374
HBarBack.Position = UDim2.new(.025, 0, .55, 0)
375
HBarBack.Size = UDim2.new(.95, 0, .3, 0)
376
HBar.Parent = HBarBack
377
HBar.BackgroundColor3 = Color3.new(255, 255, 255)
378
HBar.BorderColor3 = Color3.new(0,0,0)
379
HBar.Size = UDim2.new(.5,0,1,0)
380
HHealth.BackgroundTransparency = 1
381
HHealth.Size = UDim2.new(1,0,1,0)
382
HHealth.Font = "SourceSans"
383
HHealth.Text = "[10/10]"
384
HHealth.TextScaled = true
385
HHealth.TextColor3 = Color3.new(255,255,255)
386
HHealth.TextStrokeColor3 = Color3.new(0, 0, 0)
387
HHealth.TextStrokeTransparency = 0
388
HName.Parent = HMain
389
HName.BackgroundTransparency = 1
390
HName.Size = UDim2.new(1,0,.5,0)
391
HName.Font = "SourceSansItalic"
392
HName.Text = "Akiro"
393
HName.TextScaled = true
394
HName.TextColor3 = BrickColor.new("Black metallic").Color
395
HName.TextStrokeColor3 = Color3.new(0,0,0)
396
HName.TextStrokeTransparency = 0
397
HName.TextYAlignment = "Top"
398
local runServ = game:GetService("RunService").RenderStepped
399
runServ:connect(function()
400
    HHealth.Text = "["..Humanoid.Health.."]"
401
    HBar:TweenSize(UDim2.new((Humanoid.Health/Humanoid.MaxHealth),0,1,0), _, "Linear", .4)
402
end)
403
404
--Tinfold
405
--If you log this, don't leak it
406
--Apparently an older version of this script was already leaked. If you get this one, please don't leak it. Leak it when it's done, for god's sake.
407
--Akiro
408
math.randomseed(tick())
409
plr=game:service'Players'.LocalPlayer
410
ch,char=plr.Character,plr.Character
411
hum=ch.Humanoid
412
tor,torso,rootpart,rj=ch.Torso,ch.Torso,ch.HumanoidRootPart,ch.HumanoidRootPart.RootJoint
413
m,mouse=plr:GetMouse(),plr:GetMouse()
414
cfn,ang,mr,int=CFrame.new,CFrame.Angles,math.rad,Instance.new
415
bc=BrickColor.new
416
head=ch.Head
417
cam=workspace.CurrentCamera
418
debris=game.Debris
419
420
rj.C0=cfn()
421
rj.C1=cfn()
422
423
lib={}
424
lib.cone='1033714'
425
lib.ring="3270017"
426
lib.yato='579392805'
427
lib.diamond='9756362'
428
lib.crown='20329976'
429
lib.darkmagiccircle='223123319'
430
rbx='rbxassetid://'
431
432
for _,v in pairs(lib) do
433
    game:GetService'ContentProvider':Preload('rbxassetid'..v)
434
end
435
436
--tb and anti sc
437
v3 = Vector3.new
438
cn = CFrame.new
439
ca2 = CFrame.Angles
440
mf = math.floor
441
mran = math.random rn=mran
442
mrad = math.rad rd=mrad
443
mdeg = math.deg dg=mdeg
444
ca = function(x,y,z) return ca2(mrad(x),mrad(y),mrad(z)) end 
445
mran2 = function(a,b) return mran(a*1000,b*1000)/1000 end 
446
ud=UDim2.new
447
bn = BrickColor.new
448
c3 = Color3.new
449
--tb and anti sc
450
451
getSound=function(id)
452
    game:service'ContentProvider':Preload('rbxassetid'..tostring(id))
453
    local s=int("Sound",ch.Head)
454
    s.SoundId='rbxassetid://' .. tostring(id-1)
455
    s.Volume=1
456
    return s
457
end
458
459
--declarations
460
461
--strings
462
local combostring=[[]]
463
local attackstring=[[]]
464
465
--sounds, some by qaeo
466
blocksound=getSound(260433722)
467
blocksound.Pitch=1
468
startsound=getSound(588738950) --260433747
469
startsound.Pitch=1
470
endsound=getSound(588736246) --260433769
471
endsound.Pitch=1
472
endsound.Volume=2
473
swsound=getSound(588736970)
474
--swsound.Pitch=0.8
475
swexp=getSound(365002939)
476
swexp.Pitch=1
477
spexp=getSound(365002939)
478
spexp.Pitch=1.2
479
startsound2=getSound(260433769)--260433769
480
startsound2.Pitch=0.8
481
startsound3=getSound(260433769)
482
startsound3.Pitch=0.89
483
chargesound=getSound(181004944)
484
chargesound.Pitch=1
485
basicsound=getSound(588736246)--260433747
486
basicsound.Pitch=1.2
487
dodgesound=getSound(177162407)
488
dodgesound.Pitch=1.4
489
landsound=getSound(315775190)
490
rushsound=getSound(134012323)--134012323
491
swoosh=getSound(231917988)
492
--swoosh.Pitch=1.2
493
swoosh.Volume=2
494
aerialcharge=getSound(265109959)
495
aerialcharge.Pitch=1.1
496
curse=getSound(231917971)
497
glass=getSound(130779172)
498
magictone1=getSound(588738950)
499
chargedupbeam=getSound(588735946)
500
chargedupbeam.Volume=2.5
501
diamondproj=getSound(231917751)
502
diamondproj.PlaybackSpeed=5
503
diamondbreak=getSound(130779172)
504
diamondbreak.Pitch=2
505
magicriff=getSound(588735156)
506
bigmagic=getSound(231917773)
507
walksound=getSound(142665236)
508
apoc=getSound(235097615)
509
rise=getSound(231917834)
510
rise.Pitch=1.4
511
ultdi=getSound(231917823)
512
giantexplosion=getSound(233091206)
513
local explodcharg=getSound(588697035)
514
explodcharg.Volume=10
515
516
local magcd=rbx..lib.darkmagiccircle
517
518
--tables
519
tweenTable={}
520
altTweenTable={}
521
local alljoints={}
522
textTable={}
523
local fx={}
524
moves={}
525
connectlist={}
526
cooldowns={}
527
movers={}
528
local linetable={}
529
moveDescriptions={
530
    ['Dark Missile']={move='Dark Missile',key='Left Mouse Button',desc=[[A basic, dark blast that is cheap on mana and easy to use. Deals low damage.]]},
531
    ['Normal Block']={move='Normal Block',desc=[[Blocks projectile attacks where you aim.]]},
532
    ['Rive Beam']={move='Rive Beam',desc=[[A beam of energy that deals heavy damage and knocks down foes.]]},
533
    ['Dark Spikes']={move='Dark Spikes',desc=[[A series of dark stakes that explode to push enemies back and deal medium damage.]]},
534
    ['Down Slam']={move='Down Slam',key=[[Space, Space, Q]],desc=[[An aerial attack that slams the character against the ground to create a shockwave that knocks down and deals low damage to enemies.]]},
535
    ['Aerial Sword']={move='Aerial Sword',key=[[Space, Space, Hold R]],desc=[[An aerial attack with huge power; creates a sphere of dark energy that flings spectral swords which explode and deal damage.]]},
536
    ['Curse']={move='Curse',desc=[[An attack that inflicts the Cursed debuff (5% maxhealth damage every second) and lifesteals half of damage dealt.]]},
537
    ['Dark Slash']={move='Dark Slash',desc=[[Summons a spectral sword that slashes to deal huge critical damage. Very high crit chance.]]},
538
    ['Diamond Storm']={move='Diamond Storm',desc=[[Charge up dark energy to release a flurry of diamonds that explode to deal damage with high crit chance. Heals twice damage dealt. High mana cost.]]},
539
    ['Origin Beam']={move='Origin Beam',key='LMB, LMB, E',desc=[[Combo move: charges a beam that is held for a short time and deals rapid damage.]]},
540
    ['Nightmare Overture']={move='Nightmare Overture',key='Z',desc=[[Ultimate move: Four pillars rise, charges a diamond levitates the user. Creates four diamonds than can be shot, dealing massive damage. Final diamond explodes, dealing massive damage and the Curse debuff to anyone inside the blast radius. ]]}
541
}
542
543
--bool global
544
local run=false
545
idle=false
546
local animPlaying=false
547
local runLeg=false
548
canRunLeg=false
549
local deb=false
550
local basicswitch=false
551
local canExecuteMoves=true
552
local bg=false
553
local sprinting=false
554
ascension=false
555
local aright=false
556
local aleft=false
557
local aforward=false
558
local aback=false
559
local mult=2
560
561
--string
562
rcombostring=[[]]
563
564
--num
565
maxmana=50233
566
mana=43034
567
chain=0
568
regws=30
569
bigws=14
570
hum.MaxHealth=300
571
spawn(function()
572
    wait() hum.Health=300
573
end)
574
575
-- gui
576
local managui=int('ScreenGui',plr.PlayerGui)
577
managui.Name='Mana Gui'
578
local frame=int('Frame',managui)
579
frame.Size=UDim2.new(0.15,0,0.02,0)
580
frame.Position=UDim2.new(1-0.17,0,0.7,0)
581
frame.BackgroundColor3=BrickColor.new('Black').Color
582
frame.BorderColor3=BrickColor.new('Really black').Color
583
frame.BorderSizePixel=6
584
585
local manabartext=int('TextLabel',frame)
586
manabartext.ZIndex=2
587
manabartext.Size=UDim2.new(1,0,1,0)
588
manabartext.TextColor3=BrickColor.new('White').Color
589
manabartext.TextStrokeTransparency=1
590
manabartext.Font='SourceSansLight'
591
manabartext.Text=tostring(mana)..'/'..tostring(maxmana)
592
manabartext.FontSize='Size18'
593
manabartext.BackgroundTransparency=1
594
595
local manabar=int('Frame',frame)
596
manabar.Size=UDim2.new(1,0,1,0)
597
manabar.BorderSizePixel=0
598
manabar.BackgroundColor3=BrickColor.new('White').Color
599
manabar.Size=UDim2.new(mana/maxmana,0,1,0)
600
601
local chainframe=int('Frame',managui)
602
chainframe.Size=frame.Size
603
chainframe.BackgroundTransparency=1
604
chainframe.Position=frame.Position+UDim2.new(0.07,0,-0.05,0)
605
local chaintext=int('TextLabel',chainframe)
606
chaintext.BackgroundTransparency=1
607
chaintext.TextStrokeColor3=BrickColor.new('White').Color
608
chaintext.TextStrokeTransparency=0
609
chaintext.Size=UDim2.new(1,0,1,0)
610
chaintext.Font='Antique'
611
chaintext.FontSize='Size48'
612
chaintext.Text='0x'
613
614
local r=int('TextLabel',chainframe)
615
r.BackgroundTransparency=1
616
r.TextColor3=BrickColor.new('White').Color
617
--r.TextStrokeTransparency=0
618
r.Size=UDim2.new(1,0,1,0)
619
r.Font='Antique'
620
r.FontSize='Size24'
621
r.Text=string.reverse('neviR')
622
r.Position=UDim2.new(-0.9,0,0.5,0)
623
624
local cooldownframe=int('Frame',managui)
625
cooldownframe.Size=UDim2.new(0.3,0,0.2,0)
626
cooldownframe.BorderSizePixel=0
627
cooldownframe.Transparency=1
628
cooldownframe.Position=UDim2.new(0.7,0,0.8,0)
629
630
local movebutton=int('TextButton',managui)
631
movebutton.Position=UDim2.new(0.93,0,0.73,0)
632
movebutton.Text='Moves'
633
movebutton.Font='Antique'
634
movebutton.BackgroundColor3=BrickColor.new('Really black').Color
635
movebutton.BorderSizePixel=0
636
movebutton.TextColor3=BrickColor.new('White').Color
637
movebutton.FontSize='Size24'
638
movebutton.Size=UDim2.new(0.05,0,0.025,0)
639
640
movesframe=int('Frame',managui)
641
movesframe.Size=UDim2.new(0.3,0,0.5,0)
642
movesframe.BackgroundColor3=BrickColor.new('Really black').Color
643
movesframe.BorderSizePixel=6
644
movesframe.Position=UDim2.new(0.35,0,0.25,0)
645
movesframe.BorderColor3=BrickColor.new('White').Color
646
movesframe.Visible=false
647
648
local scrollframe=int('ScrollingFrame',movesframe)
649
scrollframe.Size=UDim2.new(0.35,0,1,0)
650
scrollframe.BackgroundColor3=BrickColor.new('Really black').Color
651
scrollframe.ZIndex=2
652
scrollframe.BorderColor3=BrickColor.new('White').Color
653
scrollframe.BorderSizePixel=2
654
655
local descbox=int('Frame',movesframe)
656
descbox.Size=UDim2.new(1-0.35,0,1,0)
657
descbox.Position=UDim2.new(0.35,0,0,0)
658
descbox.ZIndex=3
659
descbox.BackgroundTransparency=1
660
descbox.BorderSizePixel=0
661
662
local nam=int('TextLabel',descbox)
663
nam.Size=UDim2.new(1,0,0.05,0)
664
nam.Position=UDim2.new(0,0,0.1,0)
665
nam.ZIndex=4
666
nam.Font='Antique'
667
nam.FontSize='Size24'
668
nam.BackgroundTransparency=1
669
nam.TextColor3=BrickColor.new('White').Color
670
nam.Text='Select a move!'
671
672
local desc=int('TextLabel',descbox)
673
desc.BackgroundTransparency=1
674
desc.TextWrapped=true
675
desc.Font='Antique'
676
desc.FontSize='Size32'
677
desc.Text=''
678
desc.TextColor3=BrickColor.new('White').Color
679
desc.TextXAlignment='Center'
680
desc.TextYAlignment='Top'
681
desc.Size=UDim2.new(1,0,0.6,0)
682
desc.Position=UDim2.new(0,0,0.2,0)
683
desc.ZIndex=4
684
685
local manacostg=int('TextLabel',desc)
686
manacostg.Size=UDim2.new(1,0,0.1,0)
687
manacostg.Text=''
688
manacostg.Font='Antique'
689
manacostg.FontSize='Size28'
690
manacostg.TextColor3=BrickColor.new('White').Color
691
manacostg.Position=UDim2.new(0,0,0.85,0)
692
manacostg.BackgroundTransparency=1
693
694
local cmb=int('TextLabel',desc)
695
cmb.Size=UDim2.new(1,0,0.1,0)
696
cmb.Text=''
697
cmb.Font='Antique'
698
cmb.FontSize='Size28'
699
cmb.TextColor3=BrickColor.new('White').Color
700
cmb.Position=UDim2.new(0,0,0.7,0)
701
cmb.BackgroundTransparency=1
702
703
local buttony=0.002
704
705
for _,v in pairs(moveDescriptions) do
706
   local button=int('TextButton',scrollframe)
707
   button.Size=UDim2.new(0.85,0,0.05,0)
708
   button.BorderSizePixel=0
709
   button.BackgroundColor3=BrickColor.new('White').Color
710
   button.Font='Antique'
711
   button.FontSize='Size24'
712
   button.TextColor3=BrickColor.new('White').Color
713
   button.TextWrapped=true
714
   button.Text=v.move
715
   button.ZIndex=3
716
   button.Position=UDim2.new(0.03,0,buttony,0)
717
   buttony=buttony+0.052
718
   button.MouseButton1Down:connect(function()
719
        desc.Text=v.desc
720
        nam.Text=v.move
721
        if v.key then
722
           cmb.Text='Keys: ' .. v.key
723
        else
724
            cmb.Text='Keys: ' .. string.upper(moves[v.move].key)
725
        end
726
        manacostg.Text='Mana Cost: ' .. tostring(moves[v.move].manacost)
727
    end)
728
end
729
730
movebutton.MouseButton1Down:connect(function()
731
    if movesframe.Visible==false then
732
        movesframe.Visible=true
733
    else
734
        movesframe.Visible=false
735
    end
736
end)
737
738
local cx=0
739
local cy=0
740
741
addCoolDownGui=function(v)
742
    local thing=int('TextLabel',cooldownframe)
743
    thing.TextWrapped=true
744
    thing.Size=UDim2.new(0.19,0,0.5,0)
745
    thing.Position=UDim2.new(cx,0,cy,0)
746
    thing.BackgroundColor3=BrickColor.new('Really black').Color
747
    thing.Font='Antique'
748
    thing.FontSize='Size24'
749
    thing.TextColor3=BrickColor.new('White').Color
750
    thing.BorderSizePixel=0
751
    thing.Text=v.move .. ' ' .. tostring(v.timeleft)
752
    spawn(function()
753
        repeat wait(0.1) thing.Text=v.move .. ' ' .. tostring(v.timeleft) until v.timeleft<0.1
754
        thing:Destroy()
755
      --  if cy<1 and cx>0 then
756
          --  cx=cx-0.2
757
       -- end
758
       -- if cy>1 and cx>0 then
759
          --  cx=cx-0.2 
760
        --end
761
        updateCoolDowns()
762
    end)
763
    if cx<1-0.2 then
764
        cx=cx+0.2
765
    else
766
        cy=0.5
767
        cx=0
768
    end
769
end
770
771
updateCoolDowns=function()
772
    cooldownframe:clearAllChildren()
773
   cx=0
774
   cy=0
775
    for _,v in pairs(cooldowns) do
776
        addCoolDownGui(v)   
777
    end
778
end
779
780
ypcall(function()
781
    ch.Animate:Destroy()
782
    ch.Humanoid.Animator:Destroy()
783
end)
784
785
if ch:findFirstChild("Riven") then
786
    ch['Riven']:Destroy()
787
end
788
789
local tube=int("Model",ch)
790
tube.Name='Riven'
791
script.Parent=tube
792
793
--functions
794
795
Weld = function(p0,p1,x,y,z,rx,ry,rz,par)--recommend to use this with my weld. use this function only with arm lockers.
796
    p0.Position = p1.Position
797
    local w = Instance.new('Motor',par or p0)
798
    w.Part0 = p1
799
    w.Part1 = p0
800
    w.C0 = CFrame.new(x or 0,y or 0,z or 0)*CFrame.Angles(rx or 0,ry or 0,rz or 0)
801
    w.MaxVelocity = .1
802
    return w
803
end
804
805
function clerp(c1,c2,sp)
806
    local R1,R2,R3 = c1:toEulerAnglesXYZ()
807
    local R21,R22,R23 = c2:toEulerAnglesXYZ()
808
    return CFrame.new(
809
    c1.X + (c2.X-c1.X)*sp,
810
    c1.Y + (c2.Y-c1.Y)*sp,
811
    c1.Z + (c2.Z-c1.Z)*sp)*CFrame.Angles(
812
    R1 + (R21-R1)*sp,
813
    R2 + (R22-R2)*sp,
814
    R3 + (R23-R3)*sp
815
    )
816
end
817
818
Tween = function(Weld, Stop, Step,a)
819
    ypcall(function()
820
        local func = function()
821
            local Start = Weld.C1
822
            local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
823
            local Stop = Stop
824
            local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
825
            if not Step then Step=0.1 end
826
            table.insert(tweenTable,{th=0,Weld=Weld,Step=Step,Start=Start,X1=X1,Y1=Y1,Z1=Z1,Stop=Stop,X2=X2,Y2=Y2,Z2=Z2}) 
827
        end
828
            if a then coroutine.wrap(func)() else func() end
829
    end)
830
end
831
832
altTween = function(Weld, Stop, Step,a)
833
    ypcall(function()
834
        local func = function()
835
            local Start = Weld.C1
836
            local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
837
            local Stop = Stop
838
            local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
839
            if not Step then Step=0.1 end
840
            table.insert(altTweenTable,{th=0,Weld=Weld,Step=Step,Start=Start,X1=X1,Y1=Y1,Z1=Z1,Stop=Stop,X2=X2,Y2=Y2,Z2=Z2}) 
841
        end
842
            if a then coroutine.wrap(func)() else func() end
843
    end)
844
end
845
846
weld=function(p0,p1,c0)
847
    local w=Instance.new("Weld",p0)
848
    w.Part0=p0
849
    w.Part1=p1
850
    w.C0=c0
851
    return w
852
end
853
854
cp=function(parent,color,size,anchored,cancollide)
855
    local newp=Instance.new("Part",parent)
856
    newp.TopSurface='SmoothNoOutlines'
857
    newp.BottomSurface='SmoothNoOutlines'
858
    newp.FrontSurface='SmoothNoOutlines'
859
    newp.BackSurface='SmoothNoOutlines'
860
    newp.RightSurface='SmoothNoOutlines'
861
    newp.LeftSurface='SmoothNoOutlines'
862
    newp.FormFactor="Custom"
863
    newp.BrickColor=bc(color)
864
    local rn=math.random(3)
865
    if rn==1 then
866
      -- newp.BrickColor=BrickColor.new('White') 
867
    end
868
    newp.Size=size
869
    newp.Anchored=anchored
870
    newp.CanCollide=cancollide
871
    newp:BreakJoints()
872
    return newp
873
end
874
875
876
if ch:findFirstChild('Body Colors') then
877
    ch['Body Colors'].HeadColor=BrickColor.new('Really black')
878
    ch['Body Colors'].TorsoColor=BrickColor.new('Really black')
879
    ch['Body Colors'].LeftLegColor=BrickColor.new('Really black')
880
    ch['Body Colors'].RightLegColor=BrickColor.new('White')
881
    ch['Body Colors'].RightArmColor=BrickColor.new('Really black')
882
    ch['Body Colors'].LeftArmColor=BrickColor.new('Really black')
883
end
884
885
for _,v in pairs(ch:GetChildren()) do
886
    if v.className=='Accessory' then
887
        v:Destroy()
888
    elseif v.className=='Part' then
889
        v.BrickColor=BrickColor.new('Really black')
890
    end
891
    if v.Name=='Right Leg' then
892
       v.BrickColor=BrickColor.new('White')
893
    end
894
end
895
896
if ch:findFirstChild('Pants') then
897
   ch.Pants:Destroy() 
898
end
899
900
if ch:findFirstChild('Shirt') then
901
   ch.Shirt:Destroy() 
902
end
903
904
destroyJoints=function()
905
    for i=1,5 do
906
        for _,v in pairs(alljoints) do
907
            ypcall(function()
908
                v:Destroy()
909
                table.remove(alljoints,_)
910
            end)
911
        end
912
    end
913
end
914
915
initializeJoints=function()
916
    destroyJoints()
917
    rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker'
918
    rabr.Position = torso.Position
919
    rw = Weld(rabr,torso,1.5,.5,0,0,0,0) rw.Parent = tube rw.Name = 'rw'
920
    w = Instance.new("Weld",tube)
921
    w.Part0,w.Part1 = ch['Right Arm'],rabr
922
    w.C1 = CFrame.new(0,-.5,0)
923
    labr = cp(tube,'White',Vector3.new(1,1,1),false,false) labr.Transparency = 1 labr.Name='Locker'
924
    labr.Position = torso.Position
925
    lw = Weld(labr,torso,-1.5,.5,0,0,0,0) lw.Parent = tube lw.Name = 'lw'
926
    ww = Instance.new("Weld",tube)
927
    ww.Part0,ww.Part1 = ch['Left Arm'],labr
928
    ww.C1 = CFrame.new(0,-.5,0)
929
    rlabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rlabr.Transparency = 1 rlabr.Name='Locker'
930
    rlabr.Position = torso.Position
931
    rlw = Weld(rlabr,torso,0.5,-1.5,0,0,0,0) rlw.Parent = tube rlw.Name = 'rlw'
932
    wl = Instance.new("Weld",tube)
933
    wl.Part0,wl.Part1 = ch['Right Leg'],rlabr
934
    wl.C1 = CFrame.new(0,-.5,0)
935
    llabr = cp(tube,'White',Vector3.new(1,1,1),false,false) llabr.Transparency = 1 llabr.Name='Locker'
936
    llabr.Position = torso.Position
937
    llw = Weld(llabr,torso,-0.5,-1.5,0,0,0,0) llw.Parent = tube llw.Name = 'llw'
938
    wwl = Instance.new("Weld",tube)
939
    wwl.Part0,wwl.Part1 = ch['Left Leg'],llabr
940
    wwl.C1 = CFrame.new(0,-.5,0)
941
    nk = cp(tube,'White',Vector3.new(1,1,1),false,false) nk.Transparency = 1 nk.Name='Locker'
942
    nk.Position = torso.Position
943
    neck = Weld(nk,torso,0,2,0,0,0,0) neck.Parent = tube neck.Name = 'neck'
944
    www = Instance.new("Weld",tube)
945
    www.Part0,www.Part1 = ch['Head'],nk
946
    www.C1 = CFrame.new(0,-.5,0)
947
    table.insert(alljoints,rabr)
948
    table.insert(alljoints,labr)
949
    table.insert(alljoints,rw)
950
    table.insert(alljoints,lw)
951
    table.insert(alljoints,w)
952
    table.insert(alljoints,ww)
953
    table.insert(alljoints,rlabr)
954
    table.insert(alljoints,llabr)
955
    table.insert(alljoints,rlw)
956
    table.insert(alljoints,llw)
957
    table.insert(alljoints,wl)
958
    table.insert(alljoints,wwl)
959
    table.insert(alljoints,nk)
960
    table.insert(alljoints,neck)
961
    table.insert(alljoints,www)
962
end
963
964
cyl=function(prt)
965
    local c=int("CylinderMesh",prt)
966
    c.Name='mesh'
967
    return c
968
end
969
970
blo=function(prt)
971
    local c=int("BlockMesh",prt)
972
    c.Name='bmsh'
973
    return c
974
end
975
976
sphere=function(prt)
977
   local c=int('SpecialMesh',prt)
978
   c.MeshType='Sphere'
979
   return c
980
end
981
982
newSpm=function(prt)
983
   local nspm=int('SpecialMesh',prt)
984
   nspm.MeshType='FileMesh'
985
   return nspm
986
end
987
988
989
--cool hat
990
local hat=cp(tube,'Really black',Vector3.new(1,1,1))
991
local hatmesh=int('SpecialMesh',hat)
992
hatmesh.MeshId=rbx..'24102243'
993
weld(ch.Head,hat,cfn(0,0.6,0))
994
995
996
local rarmdiamond=cp(tube,'White',Vector3.new(1,1,1))
997
local dia=newSpm(rarmdiamond)
998
dia.MeshId=rbx..lib.diamond
999
dia.Scale=Vector3.new(0.4,0.8,0.4)
1000
weld(ch['Right Arm'],rarmdiamond,cfn(0.4,0,0))
1001
1002
local testshoulder=cp(tube,'White',Vector3.new(1.1,0.6,1.1))
1003
testshoulder.Material='SmoothPlastic'
1004
weld(ch['Right Arm'],testshoulder,cfn(0,0.8,0))
1005
1006
--local testtorso=cp(tube,'White',Vector3.new(2.8,0.4,1.1))
1007
--blo(testtorso).Scale=Vector3.new(0.95,1,0.95)
1008
--weld(tor,testtorso,cfn(0,0,0)*ang(0,0,mr(45)))
1009
1010
local testhalf=cp(tube,'White',Vector3.new(1,2,1))
1011
testhalf.Material='SmoothPlastic'
1012
blo(testhalf).Scale=Vector3.new(1.01,1.01,1.01)
1013
weld(tor,testhalf,cfn(0.5,0,0))
1014
1015
blo(ch['Right Leg'])
1016
ch['Right Leg'].Material='SmoothPlastic'
1017
ch['Right Leg'].TopSurface='SmoothNoOutlines'
1018
ch['Right Leg'].BottomSurface='SmoothNoOutlines'
1019
ch['Right Leg'].LeftSurface='SmoothNoOutlines'
1020
ch['Right Leg'].RightSurface='SmoothNoOutlines'
1021
ch['Right Leg'].FrontSurface='SmoothNoOutlines'
1022
ch['Right Leg'].BackSurface='SmoothNoOutlines'
1023
1024
local cooldiamond=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
1025
local dia=newSpm(cooldiamond)
1026
dia.Scale=Vector3.new(0.4,0.8,0.45)
1027
dia.MeshId=rbx..lib.diamond
1028
weld(testhalf,cooldiamond,cfn(0,0.3,-0.3))
1029
1030
local cooldiamond2=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
1031
local dia=newSpm(cooldiamond2)
1032
dia.Scale=Vector3.new(0.4,0.8,0.45)
1033
dia.MeshId=rbx..lib.diamond
1034
weld(testhalf,cooldiamond2,cfn(0.2,-0.15,-0.3))
1035
1036
local cooldiamond3=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
1037
local dia=newSpm(cooldiamond3)
1038
dia.Scale=Vector3.new(0.4,0.8,0.45)
1039
dia.MeshId=rbx..lib.diamond
1040
weld(testhalf,cooldiamond3,cfn(-0.2,-0.15,-0.3))
1041
1042
local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
1043
p1.Material='SmoothPlastic'
1044
local bm=blo(p1)
1045
bm.Scale=Vector3.new(0.05,0.15,0.5)
1046
weld(testshoulder,p1,cfn(0.55,0.1,0.225))
1047
1048
local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
1049
p1.Material='SmoothPlastic'
1050
local bm=blo(p1)
1051
bm.Scale=Vector3.new(0.05,0.5,0.15)
1052
weld(testshoulder,p1,cfn(0.55,0,0.225))
1053
1054
local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
1055
p1.Material='SmoothPlastic'
1056
local bm=blo(p1)
1057
bm.Scale=Vector3.new(0.05,0.525,0.15)
1058
weld(testshoulder,p1,cfn(0.55,0.005,0))
1059
1060
local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
1061
p1.Material='SmoothPlastic'
1062
local bm=blo(p1)
1063
bm.Scale=Vector3.new(0.05,0.525,0.15)
1064
weld(testshoulder,p1,cfn(0.55,0.005,-0.15))
1065
1066
local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
1067
p1.Material='SmoothPlastic'
1068
local bm=blo(p1)
1069
bm.Scale=Vector3.new(0.05,0.525,0.15)
1070
weld(testshoulder,p1,cfn(0.55,0.005,-0.23)*ang(mr(35),0,0))
1071
1072
local p1=cp(tube,'Really black',Vector3.new(0.5,0.5,0.5))
1073
p1.Material='SmoothPlastic'
1074
local bm=blo(p1)
1075
bm.Scale=Vector3.new(0.05,0.525,0.15)
1076
weld(testshoulder,p1,cfn(0.55,0.005,-0.3))
1077
1078
--blo(ch['Right Leg'])
1079
--ch['Right Leg'].Material='SmoothPlastic'
1080
1081
--[[
1082
local testp=cp(tube,'White',Vector3.new(2.1,1.3,1.2))
1083
local tpb=blo(tstp)
1084
tpb.Scale=Vector3.new(1.01,1.01,1)
1085
weld(tor,testp,cfn(0,0.4,0))
1086
]]
1087
1088
1089
1090
initializeJoints()
1091
1092
reset=function()
1093
    if run == false and animPlaying == false then
1094
        altTweenTable={}
1095
        Tween(llw,cfn(0,-0.08*math.sin(tick()*1.5),0)*ang(0,0,mr(5)))
1096
        Tween(rlw,cfn(0,-0.08*math.sin(tick()*1.5),0)*ang(0,0,mr(-5)))
1097
        Tween(rw,cfn(0,0.03*math.sin(tick()*1.5),0)*ang(0,0,mr(-15)+mr(-5*math.sin(tick()*1.5))))
1098
        Tween(lw,cfn(0,0.03*math.sin(tick()*1.5),0)*ang(0,0,mr(15)+mr(5*math.sin(tick()*1.5))))
1099
        Tween(neck,cfn())
1100
        Tween(rj,cfn(0,0.08*math.sin(tick()*1.5),0),0.3)
1101
    end
1102
end
1103
1104
bigreset=function()
1105
    if run == false and animPlaying == false then
1106
        altTweenTable={}
1107
        Tween(llw,cfn(0,-0.08*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(5)))
1108
        Tween(rlw,cfn(0,-0.08*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(-5)))
1109
        Tween(rw,cfn(0,0.03*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(-15)+mr(-5*math.sin(tick()*1.5))))
1110
        Tween(lw,cfn(0,0.03*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(15)+mr(5*math.sin(tick()*1.5))))
1111
        Tween(neck,cfn())
1112
        Tween(rj,cfn(0,0.08*math.sin(tick()*1.5*mult),0),0.3)
1113
    end
1114
end
1115
1116
1117
resetLegs=function()
1118
    altTweenTable={}
1119
    Tween(llw,cfn())
1120
    Tween(rlw,cfn())
1121
end
1122
1123
walkCycle=function()
1124
    if run==true and animPlaying==false then
1125
        tweenTable={}
1126
        Tween(neck,cfn())
1127
        Tween(rj,cfn())
1128
        Tween(llw,cfn(0,0,-0.2*math.sin(tick()*8))*ang(mr(10)+mr(40*math.sin(tick()*8)),0,0),0.6)
1129
        Tween(rlw,cfn(0,0,0.2*math.sin(tick()*8))*ang(mr(10)+mr(-40*math.sin(tick()*8)),0,0),0.6)
1130
        Tween(rw,cfn()*ang(mr(-40),0,mr(-30)),0.07)
1131
        Tween(lw,cfn()*ang(mr(20),0,mr(20)),0.07)
1132
    end
1133
end
1134
1135
walkCycleBig=function()
1136
    if run==true and animPlaying==false then
1137
        tweenTable={}
1138
        Tween(neck,cfn())
1139
        Tween(rj,cfn())
1140
        Tween(llw,cfn(0,0,-0.2*math.sin(tick()*8)*mult)*ang(mr(10)+mr(40*math.sin(tick()*8)),0,0),0.6)
1141
        Tween(rlw,cfn(0,0,0.2*math.sin(tick()*8)*mult)*ang(mr(10)+mr(-40*math.sin(tick()*8)),0,0),0.6)
1142
        Tween(rw,cfn()*ang(mr(-40),0,mr(-30)),0.07)
1143
        Tween(lw,cfn()*ang(mr(20),0,mr(20)),0.07)
1144
    end
1145
end
1146
1147
sprintCycle=function()
1148
    if run==true and animPlaying==false then
1149
        tweenTable={}
1150
        Tween(rj,cfn()*ang(mr(10),0,0))
1151
        Tween(llw,cfn(0,0,-0.2*math.sin(tick()*11))*ang(mr(20)+mr(60*math.sin(tick()*11)),0,0),0.25)
1152
        Tween(rlw,cfn(0,0,0.2*math.sin(tick()*11))*ang(mr(20)+mr(-60*math.sin(tick()*11)),0,0),0.25)
1153
        Tween(rw,cfn()*ang(mr(-20)+mr(60*math.sin(tick()*11)),0,mr(-10)),0.25)
1154
        Tween(lw,cfn()*ang(mr(-20)+mr(-60*math.sin(tick()*11)),0,mr(10)),0.25)
1155
    end
1156
end
1157
1158
local jumping=false
1159
1160
jump=function()
1161
    if animPlaying==false then
1162
        jumping=true
1163
        run=false
1164
        resetLegs()
1165
        tweenTable={}
1166
        altTweenTable={}
1167
      --  animPlaying=true
1168
       -- Tween(rj,cfn()*ang(mr(-15),0,0),0.2)
1169
        Tween(neck,cfn(0,0,-0.2)*ang(mr(-20),0,0),0.1)
1170
        Tween(rw,cfn()*ang(mr(15),0,mr(-25)),0.1)
1171
        Tween(lw,cfn()*ang(mr(15),0,mr(25)),0.1)
1172
        Tween(rlw,cfn()*ang(mr(15),0,0),0.1)
1173
        Tween(llw,cfn()*ang(mr(15),0,0),0.1)
1174
        wait(0.2)
1175
        reset()
1176
        wait(0.1)
1177
       -- animPlaying=false
1178
        jumping=false
1179
    end
1180
end
1181
1182
walkLegs=function()
1183
    if runLeg==true then
1184
        altTweenTable={}
1185
        altTween(llw,cfn(0,0,-0.2*math.sin(tick()*8))*ang(mr(20)+mr(50*math.sin(tick()*8)),0,0),0.6)
1186
        altTween(rlw,cfn(0,0,0.2*math.sin(tick()*8))*ang(mr(20)+mr(-50*math.sin(tick()*8)),0,0),0.6)
1187
    end
1188
end
1189
1190
dealDamage=function(man,damage,crit,multi,lifesteal)
1191
    if man and man:findFirstChild'Humanoid' and man:findFirstChild'Head' then
1192
        local dm=damage
1193
        local cr=false
1194
        local hm=man.Humanoid
1195
        if crit then
1196
            if crit>0 then
1197
                local c=math.random(crit)
1198
                if c==1 then
1199
                    cr=true
1200
                end
1201
            end
1202
        end
1203
        if cr==true then
1204
            if not multi then
1205
                dm=dm*1.5
1206
            else
1207
                dm=dm*multi
1208
            end
1209
        end
1210
        hm:TakeDamage(dm)
1211
        if lifesteal then
1212
            --print'lifesteal'
1213
            local plife=lifesteal*dm
1214
            if hum.Health<hum.MaxHealth then
1215
                hum.Health=hum.Health+plife
1216
                local bbg=int('BillboardGui',tube)
1217
                bbg.Size=UDim2.new(1,0,1,0)
1218
                bbg.StudsOffset=Vector3.new(0,2,0)
1219
                bbg.StudsOffset=bbg.StudsOffset+Vector3.new(math.random(-math.random(50)/10,math.random(50)/10),0,math.random(-math.random(50)/10,math.random(50)/10))
1220
                bbg.Adornee=ch.Head
1221
                bbg.AlwaysOnTop=true
1222
                local tlabl=int('TextLabel',bbg)
1223
                tlabl.Size=UDim2.new(1,0,1,0)
1224
                tlabl.Text=tostring(plife)
1225
                tlabl.BackgroundTransparency=1
1226
                tlabl.TextColor3=BrickColor.new('Bright green').Color
1227
                tlabl.TextStrokeColor3=BrickColor.new('White').Color
1228
                tlabl.TextStrokeTransparency=0
1229
                tlabl.Font='Antique'
1230
                tlabl.FontSize='Size60'
1231
                table.insert(textTable,bbg)
1232
            end
1233
        end
1234
        chain=chain+1
1235
        if hm.MaxHealth>=99999 then
1236
            hm.Parent:BreakJoints()
1237
        end
1238
        local bbg=int('BillboardGui',tube)
1239
        bbg.Size=UDim2.new(1,0,1,0)
1240
        bbg.StudsOffset=Vector3.new(0,2,0)
1241
        bbg.StudsOffset=bbg.StudsOffset+Vector3.new(math.random(-math.random(50)/10,math.random(50)/10),0,math.random(-math.random(50)/10,math.random(50)/10))
1242
        bbg.Adornee=man.Head
1243
        bbg.AlwaysOnTop=true
1244
        local tlabl=int('TextLabel',bbg)
1245
        tlabl.Size=UDim2.new(1,0,1,0)
1246
        tlabl.Text=tostring(dm)
1247
        tlabl.BackgroundTransparency=1
1248
        tlabl.TextColor3=BrickColor.new('Really black').Color
1249
        tlabl.TextStrokeColor3=BrickColor.new('White').Color
1250
        if cr==true then
1251
            tlabl.TextColor3=BrickColor.new('White').Color
1252
            tlabl.TextStrokeColor3=BrickColor.new('Really black').Color
1253
        end
1254
        tlabl.TextStrokeTransparency=0
1255
        tlabl.Font='Antique'
1256
        tlabl.FontSize='Size60'
1257
        table.insert(textTable,bbg)
1258
        return dm
1259
    end
1260
end
1261
1262
displayText=function(thing,text,color)
1263
    local bbg=int('BillboardGui',tube)
1264
    bbg.Size=UDim2.new(1,0,1,0)
1265
    bbg.StudsOffset=Vector3.new(0,3,0)
1266
    bbg.Adornee=thing
1267
    bbg.AlwaysOnTop=true
1268
    local tlabl=int('TextLabel',bbg)
1269
    tlabl.Size=UDim2.new(1,0,1,0)
1270
    tlabl.Text=text
1271
    tlabl.BackgroundTransparency=1
1272
    tlabl.TextColor3=BrickColor.new('Really black').Color
1273
    tlabl.TextStrokeColor3=BrickColor.new('White').Color
1274
    tlabl.TextStrokeTransparency=0
1275
    tlabl.Font='Antique'
1276
    tlabl.FontSize='Size60'
1277
    table.insert(textTable,bbg)
1278
end
1279
1280
local tp=cp(tube,'White',Vector3.new(1,1,1))
1281
tp.Transparency=1
1282
weld(ch['Right Arm'],tp,cfn(0,-1,0))
1283
1284
addFx=function(item,int,final,func)
1285
   table.insert(fx,{item=item,int=int,func=func,final=final,stepval=0}) 
1286
end
1287
1288
addMove=function(name,key,cooldown,func,manacost)
1289
    moves[name]={key=key,cooldown=cooldown,func=func,manacost=manacost}
1290
end
1291
1292
drawLine=function(point_a,point_b,bc_code,angle,mag,width)
1293
    local dist=(point_a-point_b).magnitude;
1294
    local num=1
1295
    if mag then
1296
       num=mag 
1297
    end
1298
    if dist>num then
1299
        local rad=dist/2;
1300
        local line=Instance.new('Part',tube)
1301
            line.Anchored=true;
1302
            line.FormFactor='Custom';
1303
            line.BrickColor=BrickColor.new(bc_code);
1304
            line.TopSurface='SmoothNoOutlines'
1305
            line.BottomSurface='SmoothNoOutlines'
1306
            line.LeftSurface='SmoothNoOutlines'
1307
            line.RightSurface='SmoothNoOutlines'
1308
            line.FrontSurface='SmoothNoOutlines'
1309
            line.BackSurface='SmoothNoOutlines'
1310
            line.Material='Neon'
1311
            line.CanCollide=false;
1312
            line.Size=Vector3.new(0.7,dist,0.7);
1313
            if width then
1314
                line.Size=Vector3.new(width,dist,width);
1315
            end
1316
            cyl(line).Name='blok'
1317
           -- Instance.new("BlockMesh",line).Name='blok'
1318
            line.CFrame=CFrame.new(point_a,point_b)*CFrame.new(0,0,-rad)*ang(mr(90),0,0)--*angle;
1319
        return line;
1320
    end
1321
end;
1322
1323
depleteMana=function(amount)
1324
    if mana>0 then
1325
        if mana-amount>0 then
1326
            mana=mana-amount
1327
            return true
1328
        else
1329
            return false
1330
        end
1331
    end
1332
end
1333
1334
executeMove=function(name)
1335
    if canExecuteMoves==true then
1336
        if ch and hum and hum.Health>0 then
1337
            local can=true
1338
            for _,v in pairs(cooldowns) do
1339
               if v.move==name then
1340
                   can=false
1341
                   break
1342
                   --return false
1343
                end
1344
            end
1345
            if name=='Nightmare Overture' then
1346
                if Vector3.new(0,tor.Velocity.Y,0).magnitude>2 or Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>2 then
1347
                    can=false
1348
                end
1349
            end
1350
            if can==true then
1351
                local can2=true
1352
                if moves[name].manacost then
1353
                    local a=mana-moves[name].manacost
1354
                    local b=false
1355
                    if a>0 then
1356
                        b=true
1357
                    end
1358
                    if not b then
1359
                        can2=false
1360
                    end
1361
                end
1362
                if can2 then
1363
                    local c
1364
                    depleteMana(moves[name].manacost) 
1365
                    moves[name].func()
1366
                end
1367
                return true
1368
            else
1369
                return false
1370
            end
1371
        end
1372
    end
1373
end
1374
1375
addToCList=function(what,key)
1376
    local a={what,key=key,up=false}
1377
    table.insert(connectlist,a)
1378
    return a
1379
end
1380
1381
waitForUp=function(what)
1382
    repeat wait() until what.up==true
1383
end
1384
1385
addMover=function(what,step,func)
1386
    table.insert(movers,{mover=what,step=step,lastpoint=what.CFrame,func=func})
1387
end
1388
1389
local function CreateRegion3FromLocAndSize(Position, Size)
1390
    local SizeOffset = Size/2
1391
    local Point1 = Position - SizeOffset
1392
    local Point2 = Position + SizeOffset
1393
    return Region3.new(Point1, Point2)
1394
end
1395
1396
local righthandle=cp(tube,"White",Vector3.new(1,1,1))
1397
weld(ch['Right Arm'],righthandle,cfn(0,-1,0))
1398
righthandle.Transparency=1
1399
1400
local lefthandle=cp(tube,"White",Vector3.new(1,1,1))
1401
weld(ch['Left Arm'],lefthandle,cfn(0,-1,0))
1402
lefthandle.Transparency=1
1403
1404
addCoolDown=function(move)
1405
    local a={timeleft=moves[move].cooldown,move=move}
1406
    addCoolDownGui(a)
1407
    table.insert(cooldowns,a)
1408
end
1409
1410
addMove('Normal Block','f',0.5,function()
1411
    deb=true
1412
    idle=false
1413
    local ws=hum.WalkSpeed
1414
    tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
1415
    hum.WalkSpeed=0
1416
    tweenTable={}
1417
    animPlaying=true
1418
    local pcf=tor.CFrame
1419
    Tween(rj,cfn()*ang(0,mr(-45),0),0.2)
1420
    Tween(rw,cfn()*ang(mr(-86),mr(-15),0),0.2)
1421
    Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
1422
    blocksound:Play()
1423
    local block=cp(workspace,'Really black',Vector3.new(8,6,1),true,true)
1424
    block.CFrame=pcf*CFrame.new(0,0,-5)
1425
    block.Material='Neon'
1426
    local bm=blo(block)
1427
    bm.Scale=Vector3.new(0,0,0.9)
1428
    addFx(block,0.05,nil,function() bm.Scale=bm.Scale+Vector3.new(0.05,0.05,0) end)
1429
    local a=addToCList('block_connect','f')
1430
    waitForUp(a)
1431
    addCoolDown('Normal Block')
1432
    hum.WalkSpeed=ws
1433
    deb=false
1434
    addFx(block,0.05,"destroy",function() block.Transparency=block.Transparency+0.05 block.bmsh.Scale=block.bmsh.Scale+Vector3.new(0.07,0.07,0) end)
1435
    idle=true
1436
    reset()
1437
    animPlaying=false
1438
end,15)
1439
1440
addMove('Dark Lock','mb1mb1t',1,function()
1441
    tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
1442
    local lv=tor.CFrame
1443
    tweenTable={}
1444
    animPlaying=true
1445
    deb=true
1446
    canRunLeg=true
1447
    magictone1:Play()
1448
    Tween(rj,cfn()*ang(0,mr(25),0),0.2)
1449
    Tween(rw,cfn()*ang(mr(25),mr(-20),0),0.2)
1450
    wait(0.2)
1451
    Tween(rj,cfn()*ang(0,mr(-55),0),0.15)
1452
    Tween(rw,cfn()*ang(mr(-115),mr(45),0),0.15)
1453
    Tween(neck,cfn()*ang(0,mr(55),0))
1454
    local spot=4
1455
    addCoolDown('Dark Lock')
1456
    for i=1,10 do
1457
        wait(0.1)
1458
        local v=lv.lookVector*spot
1459
        --print(v)
1460
        spot=spot+14
1461
        local spike=cp(tube,'Really black',Vector3.new(10,1,10),true,false)
1462
        spike.CFrame=lv*CFrame.new(0,0,-spot)
1463
        local dam=cp(tube,'Really black',Vector3.new(7,14,7),true,false)
1464
        local dml=cyl(dam)
1465
        local angls=CFrame.Angles(spike.CFrame:toEulerAnglesXYZ())
1466
        local bhit,pos=FindGround(cn(spike.CFrame.p),ch)
1467
        if bhit then
1468
            spike.CFrame=pos*CFrame.new(0,0,0)
1469
            local mgp=cp(tube,'White',Vector3.new(1,1,1),true,false)
1470
            mgp.Transparency=1
1471
            mgp.CFrame=spike.CFrame
1472
            game.Debris:AddItem(mgp,2)
1473
            local sn=spexp:clone()
1474
            sn.Parent=mgp
1475
            sn.Volume=2
1476
            sn:Play()
1477
            dam.CFrame=spike.CFrame*CFrame.new(0,7,0)
1478
            local blast=dam
1479
            local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
1480
            local people={}
1481
            for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
1482
               if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
1483
                   local can=false
1484
                   if not v.Parent:findFirstChild('HitDeb') then
1485
                      can=true
1486
                   end
1487
                   if can==true then
1488
                     local db=Instance.new('StringValue',v.Parent)
1489
                     db.Name='HitDeb'
1490
                     game.Debris:AddItem(db,0.2)
1491
                      local humin=v.Parent.Humanoid
1492
                      if humin then
1493
                          local php=humin.Health
1494
                          dealDamage(humin.Parent,10+math.random(3),2)
1495
                          local testvel=int('BodyVelocity',v)
1496
                          testvel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
1497
                          testvel.Velocity=Vector3.new()
1498
                          game.Debris:addItem(testvel,1)
1499
                          local fxb=cp(tube,'Really black',Vector3.new(10,10,10),true)
1500
                          fxb.CFrame=spike.CFrame*CFrame.new(0,5,0)
1501
                          fxb.Transparency=0.5
1502
                          fxb.Material='Neon'
1503
                          local blm=blo(fxb)
1504
                          blm.Scale=Vector3.new(0,0,0)
1505
                          addFx(fxb,0.1,nil,function() blm.Scale=blm.Scale+Vector3.new(0.1,0.1,0.1) end)
1506
                          Delay(3.4,function()
1507
                            dealDamage(v.Parent,10,5,2)
1508
                            addFx(fxb,0.07,'destroy',function() blm.Scale=blm.Scale+Vector3.new(0.07,0.07,0.07) fxb.Transparency=fxb.Transparency-0.035 end)
1509
                        end)
1510
                          humin.Sit=true
1511
                          if humin.Health>=php and humin.MaxHealth~=math.huge then
1512
                             print('equal')
1513
                             humin:TakeDamage(20)
1514
                          end
1515
                      end
1516
                   end
1517
               end
1518
            end
1519
            local cl=cyl(spike)
1520
            addFx(spike,0.05,'destroy',function() cl.Scale=cl.Scale-Vector3.new(0.05,0,0.05) spike.Transparency=spike.Transparency+0.05 end)
1521
            addFx(dml,0.05,'destroy',function() dml.Scale=dml.Scale-Vector3.new(0.05,-0.05,0.05) dam.Transparency=dam.Transparency+0.05 end)
1522
        else
1523
            spike:Destroy()
1524
        end
1525
    end
1526
    wait(0.7)
1527
    deb=false
1528
    canRunLeg=false
1529
    animPlaying=false
1530
    reset()
1531
end,50)
1532
1533
addMove('Diamond Storm','v',10,function()
1534
    animPlaying=true
1535
    deb=true
1536
    canExecuteMoves=false
1537
    hum.WalkSpeed=0
1538
    tweenTable={}
1539
    altTweenTable={}
1540
    Tween(rw,cfn(0,1,0)*ang(mr(-70),mr(-45),0))
1541
    Tween(lw,cfn()*ang(mr(-70),mr(45),0))
1542
    magicriff:Play()
1543
    game.Debris:AddItem(bgmc,1)
1544
    spawn(function()
1545
        for i=1,20 do
1546
            wait()
1547
            local fx=cp(tube,'Really black',Vector3.new(1.2,1.2,1.2),true)
1548
            fx.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
1549
            local bl=blo(fx)
1550
            addFx(fx,0.07,'destroy',function() bl.Scale=bl.Scale+Vector3.new(.1,.1,.1) fx.Transparency=fx.Transparency+0.07 end)
1551
        end
1552
    end)
1553
    wait(1)
1554
    bg=true
1555
    local a=addToCList('diamond_connect','v')
1556
    Tween(rj,cfn()*ang(0,mr(-90),0),0.2)
1557
    Tween(rw,cfn()*ang(0,0,mr(-90)),0.2)
1558
    Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
1559
    repeat wait(0.1)
1560
        local d=depleteMana(10)
1561
        if d then
1562
            local bgmc=bigmagic:clone()
1563
            bgmc.Parent=ch.Head
1564
            bgmc.Volume=1
1565
            bgmc:Play()
1566
            local crn=cp(tube,'Really black',Vector3.new(1,1,1),true)
1567
            crn.CFrame=tor.CFrame*cfn(0,-2.5,0)
1568
            local ms=newSpm(crn)
1569
            ms.TextureId=rbx..'132155326'
1570
            ms.MeshId=rbx..lib.crown
1571
            ms.VertexColor=Vector3.new(0,0,0)
1572
            ms.Scale=Vector3.new(1.5,1,1.5)
1573
            addFx(crn,0.07,'destroy',function() crn.Transparency=crn.Transparency+0.07 ms.Scale=ms.Scale+Vector3.new(0.3,0,0.3) end)
1574
            diamondproj:Play()
1575
            local dia=cp(tube,'Really black',Vector3.new(1,1,1))
1576
            local ran=math.random(2)
1577
            if ran==1 then
1578
               dia.BrickColor=BrickColor.new('White') 
1579
            end
1580
            local dmm=newSpm(dia)
1581
            dmm.Scale=Vector3.new(0.5,1,0.5)
1582
            dmm.MeshId=rbx..lib.diamond
1583
            dia.CFrame=righthandle.CFrame
1584
            local sw=dia
1585
            local vel=int('BodyVelocity',dia)
1586
            sw.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))*ang(mr(math.random(-math.random(3.4),math.random(3.4))),mr(math.random(-math.random(3.4),math.random(3.4))),mr(math.random(-math.random(3.4),math.random(3.4))))--*ang(mr(90),0,0)
1587
            vel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
1588
            vel.Velocity=sw.CFrame.lookVector*152
1589
            sw.CFrame=sw.CFrame*ang(mr(90),0,0)
1590
            game.Debris:AddItem(sw,2)
1591
            local dmgdealt=false
1592
            local nct=sw.Touched:connect(function(part)
1593
                if part.Parent and part.Parent:findFirstChild('Humanoid') and not part:IsDescendantOf(ch) and not dmgdealt then
1594
                    dealDamage(part.Parent,6.5,5,2,2)
1595
                    dmgdealt=true
1596
                end
1597
                if part:IsDescendantOf(ch)==false then
1598
                    local snd=diamondbreak:clone()
1599
                    snd.Parent=sw
1600
                    snd:Play()
1601
                    vel:Destroy()
1602
                    sw.Anchored=true
1603
                    addFx(sw,0.07,'destroy',function() dmm.Scale=dmm.Scale+Vector3.new(0.1,0.1,0.1) dia.Transparency=dia.Transparency+0.07 end) 
1604
                end
1605
            end)
1606
        else
1607
            a.up=true
1608
        end
1609
    until a.up==true
1610
    animPlaying=false
1611
    deb=false
1612
    bg=false
1613
    canExecuteMoves=true
1614
    hum.WalkSpeed=regws
1615
    reset()
1616
end,100)
1617
1618
addMove('Curse','g',25,function()
1619
    deb=true
1620
    idle=false
1621
    animPlaying=true
1622
    canRunLeg=true
1623
    tweenTable={}
1624
    altTweenTable={}
1625
    Tween(rj,cfn()*ang(0,mr(-90),0),0.2)
1626
    Tween(rw,cfn()*ang(0,0,mr(-90)),0.2)
1627
    Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
1628
    tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
1629
    wait(0.15)
1630
    curse:Play()
1631
    addCoolDown('Curse')
1632
    local bullet=cp(tube,'Really black',Vector3.new(1,1,1))
1633
    bullet.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
1634
    bullet.Transparency=1
1635
    local bulletfx=bullet:clone()
1636
    bulletfx.Transparency=1
1637
    bulletfx.Parent=bullet
1638
    bulletfx.Anchored=true
1639
    sphere(bulletfx)
1640
    local angle=0
1641
    local lastpoint=bullet.CFrame
1642
    spawn(function()
1643
        repeat wait(0.06)
1644
        local cfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
1645
            cfx.Transparency=1
1646
            local rfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
1647
            rfx.Material='Neon'
1648
            local ran=math.random(2)
1649
            if ran==1 then
1650
               rfx.BrickColor=BrickColor.new('White') 
1651
            end
1652
            local bm=int('SpecialMesh',rfx)--blo(rfx)
1653
            bm.MeshType='FileMesh'
1654
            bm.MeshId=rbx..'9756362'
1655
            bm.Scale=Vector3.new(0.3,0.7,0.3)
1656
            local angls=ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
1657
            addFx(cfx,0.02,'destroy',function() rfx.Transparency=rfx.Transparency+0.02 rfx.CFrame=cfx.CFrame*angls cfx.CFrame=cfx.CFrame*CFrame.new(0,0,0) --[[bm.Scale=bm.Scale+Vector3.new(0.02,0.02,0.02)]]  end)
1658
            cfx.CFrame=bullet.CFrame*CFrame.new(math.random(-math.random(25/10),math.random(25)/10),0,math.random(-math.random(25)/10,math.random(25)/10))
1659
            rfx.CFrame=cfx.CFrame*angls*CFrame.Angles(math.rad(-90),0,0)
1660
            game.Debris:AddItem(cfx,1.1)
1661
            game.Debris:AddItem(rfx,1.1)
1662
        until bullet.Parent==nil
1663
    end)
1664
    addMover(bullet,0.8,function()
1665
        angle=angle+1
1666
        local angles=CFrame.Angles(0,0,mr(angle))
1667
        bulletfx.CFrame=bullet.CFrame--*angles
1668
        --bullet.CFrame=bullet.CFrame*angles
1669
        local fxp=cp(tube,'Really black',Vector3.new(1,1,1),true)
1670
        fxp.CFrame=bulletfx.CFrame--*ang(mr(-90),0,0)
1671
        local bmesh=int('SpecialMesh',fxp)
1672
        bmesh.MeshType='FileMesh'
1673
        bmesh.MeshId=rbx..lib.ring
1674
        bmesh.Scale=Vector3.new(2,2,2)
1675
        addFx(fxp,0.07,'destroy',function() bulletfx.CFrame=bullet.CFrame bmesh.Scale=bmesh.Scale-Vector3.new(0.1,0.1,0) fxp.Transparency=fxp.Transparency+0.07 end)
1676
    end)
1677
    bullet.Touched:connect(function(p)
1678
        if not p:isDescendantOf(ch) then
1679
            local thing
1680
            local region=CreateRegion3FromLocAndSize(bullet.Position,bullet.Size*2)
1681
            for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},50)) do
1682
                if v.Parent and v.Parent:findFirstChild'Humanoid' then
1683
                    thing=v
1684
                    break
1685
                end
1686
            end
1687
            if thing and thing.Parent then
1688
                if thing.Parent:findFirstChild('Head') then
1689
                    displayText(thing.Parent.Head,'Cursed','Really black')
1690
                else
1691
                    displayText(thing,'Cursed','Really black')
1692
                end
1693
            end
1694
            local mgp=cp(tube,'White',Vector3.new(1,1,1),true)
1695
            mgp.Transparency=1
1696
            mgp.CFrame=bullet.CFrame
1697
            game.Debris:AddItem(mgp,3)
1698
            local tsound=glass:clone()
1699
            tsound.Volume=2
1700
            tsound.Parent=mgp
1701
            tsound:Play()
1702
            --local explosound=getSound(142070128)
1703
            --explosound.Volume=0.8
1704
            --explosound.Pitch=1.2
1705
           -- explosound.Parent=p
1706
            --explosound:Play()
1707
            local position=bullet.CFrame
1708
            if thing and thing.Parent then
1709
               dealDamage(thing.Parent,5,5)
1710
               local humin=thing.Parent.Humanoid
1711
               spawn(function()
1712
                    for i=1,10 do
1713
                       wait(1)
1714
                        if thing.Parent then
1715
                            dealDamage(thing.Parent,0.05*humin.MaxHealth,10,1.5,0.5)   
1716
                        end
1717
                    end
1718
               end)
1719
            end
1720
            local blast=cp(tube,"Really black",Vector3.new(2,2,2),true,false)
1721
            blast.Material='Neon'
1722
            local spm2=blo(blast)
1723
            spm2.Name='mesh'
1724
            blast.CFrame=CFrame.new(position.X,position.Y,position.Z)*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
1725
            if p.Name=='Torso' or p.Parent and p.Parent:findFirstChild'Torso' then
1726
               blast.CFrame=p.Parent.Torso.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
1727
            end
1728
            for i=1,5 do
1729
               local fx=blast:clone()
1730
               fx.Parent=tube
1731
               fx.CFrame=blast.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
1732
               addFx(fx,0.05,"destroy",function()
1733
                fx.mesh.Scale=fx.mesh.Scale+Vector3.new(0.1,0.1,0.1)
1734
                fx.Transparency=fx.Transparency+0.05
1735
                end)
1736
            end
1737
            addFx(blast,0.05,"destroy",function()
1738
                spm2.Scale=spm2.Scale+Vector3.new(0.1,0.1,0.1)
1739
                blast.Transparency=blast.Transparency+0.05
1740
            end)
1741
            bullet:Destroy()
1742
            bulletfx:Destroy()
1743
        end
1744
    end)
1745
    game.Debris:AddItem(bullet,3)
1746
    local bv=int('BodyVelocity',bullet)
1747
    bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
1748
    bv.Velocity=bullet.CFrame.lookVector*150
1749
    wait(0.5)
1750
    reset()
1751
    deb=false
1752
    canRunLeg=false
1753
    animPlaying=false
1754
end,100)
1755
1756
addMove('Rive Beam','e',5,function()
1757
    tweenTable={}
1758
    altTweenTable={}
1759
    animPlaying=true
1760
    idle=false
1761
    deb=true
1762
    local pcf=tor.CFrame
1763
    canRunLeg=true
1764
    startsound:Play()
1765
    chargesound.Looped=true
1766
    chargesound:Play()
1767
    Tween(rj,cfn()*ang(0,mr(-90),0),0.2)
1768
    Tween(rw,cfn()*ang(0,0,mr(-90)),0.2)
1769
    Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
1770
    bg=true
1771
    local a=addToCList('beam_connect','e')
1772
    local charge=cp(tube,"Really black",Vector3.new(1,1,1))
1773
    charge.Material='Neon'
1774
    local spm=int('SpecialMesh',charge)
1775
    spm.MeshType='Sphere'
1776
    spm.Name='sphere'
1777
    weld(ch['Right Arm'],charge,cfn(0,-2,0))
1778
    local up=false
1779
    local multiplier=1
1780
    local cn=chargesound.DidLoop:connect(function()
1781
        local fx=charge:clone()
1782
        fx.Parent=tube
1783
        fx.CFrame=charge.CFrame
1784
        fx.BrickColor=BrickColor.new('White')
1785
        weld(charge,fx,cfn())
1786
        addFx(fx,0.07,'destroy',function() if fx and fx:findFirstChild'sphere' then fx.sphere.Scale=fx.sphere.Scale+Vector3.new(0.1,0.1,0.1) fx.Transparency=fx.Transparency+0.07 end end)
1787
    end)
1788
    spawn(function()
1789
        repeat wait() if spm.Scale.X<2 then spm.Scale=spm.Scale+Vector3.new(0.05,0.05,0.05) multiplier=multiplier+0.1 end until up==true
1790
    end)
1791
    waitForUp(a)
1792
    cn:Disconnect()
1793
    up=true
1794
    addCoolDown('Rive Beam')
1795
    chargesound:Stop()
1796
    if multiplier<3.1 then
1797
        endsound:Play()
1798
    else
1799
       chargedupbeam:Play() 
1800
    end
1801
    local ringFx=cp(tube,"Really black",Vector3.new(2,2,2),true,false)
1802
    ringFx.CFrame=charge.CFrame*ang(mr(-90),0,0)
1803
    ringFx.Material='Neon'
1804
    local spm=int('SpecialMesh',ringFx)
1805
    spm.MeshId=rbx..lib.ring
1806
    spm.Scale=Vector3.new(2,2,2)
1807
    addFx(ringFx,0.08,"destroy",function()
1808
        spm.Scale=spm.Scale+Vector3.new(0.2,0.2,0)
1809
        ringFx.Transparency=ringFx.Transparency+0.08
1810
    end)
1811
    print(multiplier)
1812
    local beam=cp(tube,"Really black",Vector3.new(1,1,1),true,false)
1813
    if multiplier>=3.1 then
1814
        beam.BrickColor=BrickColor.new('White')
1815
    end
1816
    local ray = Ray.new(charge.CFrame.p, (mouse.Hit.p - charge.CFrame.p).unit * 300)
1817
    local part, position = workspace:FindPartOnRay(ray, ch, false, true)
1818
    local distance = (charge.CFrame.p - position).magnitude
1819
    beam.Size = Vector3.new(1, 1, distance)
1820
    beam.Material='Neon'
1821
    beam.CFrame = CFrame.new(charge.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
1822
    local blast=cp(tube,"Really black",Vector3.new(2.6*multiplier,2.6*multiplier,2.6*multiplier),true,false)
1823
    blast.Material='Neon'
1824
    blast.CFrame=CFrame.new(position.X,position.Y,position.Z)
1825
        if multiplier>=3.1 then
1826
        local blast2=blast:clone()
1827
        --blast2.Size=blast.Size-Vector3.new(1,1,1)
1828
        blast2.CFrame=blast.CFrame
1829
        blast2.Parent=blast
1830
       blast2.BrickColor=BrickColor.new('White')
1831
       local spml=sphere(blast2)
1832
       spml.Scale=Vector3.new(0.8,0.8,0.8)
1833
       addFx(blast2,0.008,'destroy',function() spml.Scale=spml.Scale+Vector3.new(0.05,0.05,0.05) blast2.Transparency=blast2.Transparency+0.008  end )
1834
    end
1835
    local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
1836
    local people={}
1837
    for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
1838
       if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
1839
           local can=false
1840
           if not v.Parent:findFirstChild('HitDeb') then
1841
              can=true
1842
           end
1843
           if can==true then
1844
             local db=Instance.new('StringValue',v.Parent)
1845
             db.Name='HitDeb'
1846
             game.Debris:AddItem(db,0.5)
1847
              local humin=v.Parent.Humanoid
1848
              if humin then
1849
                  local php=humin.Health
1850
                  dealDamage(humin.Parent,20*multiplier,10,1,0.05)
1851
                  humin.Sit=true
1852
                  humin.PlatformStand=true
1853
                  if humin.Health>=php and humin.MaxHealth~=math.huge then
1854
                      print('equal')
1855
                     humin:TakeDamage(20*multiplier)
1856
                  end
1857
              end
1858
           end
1859
       end
1860
    end
1861
    local blastsound=getSound(262562443)
1862
    blastsound.Parent=blast
1863
    blastsound.Volume=5
1864
    blastsound:Play()
1865
    blastsound:Stop()
1866
    blastsound:Play()
1867
    canRunLeg=false
1868
    runLeg=false
1869
    animPlaying=false
1870
    tweenTable={}
1871
    local spm2=int('SpecialMesh',blast)
1872
    spm2.MeshType='Sphere'
1873
    addFx(blast,0.008,"destroy",function()
1874
        spm2.Scale=spm2.Scale+Vector3.new(0.05,0.05,0.05)
1875
        blast.Transparency=blast.Transparency+0.008
1876
    end)
1877
    addFx(beam,0.1,"destroy",function()
1878
        beam.Transparency=beam.Transparency+0.1
1879
    end)
1880
    addFx(charge,0.1,"destroy",function()
1881
        charge.Transparency=charge.Transparency+0.1
1882
    end)
1883
    bg=false
1884
    run=false
1885
    idle=true
1886
    reset()
1887
    deb=false
1888
end,60)
1889
1890
addMove('Down Slam','q',4,function()
1891
    currentkey=key
1892
    deb=true
1893
    animPlaying=true
1894
    altTweenTable={}
1895
    tweenTable={}
1896
    local rv=tor.CFrame.upVector
1897
    local bv=int('BodyVelocity',tor)
1898
    bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
1899
    bv.Velocity=rv*-150
1900
    rushsound:Play()
1901
    Tween(rj,cfn()*ang(mr(180),0,0))
1902
    Tween(rw,cfn()*ang(mr(-180),0,0))
1903
    Tween(lw,cfn()*ang(mr(-180),0,0))
1904
    addCoolDown('Down Slam',4)
1905
    spawn(function()
1906
        repeat
1907
            wait()
1908
            local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
1909
            local ran=math.random(2)
1910
                    if ran==1 then
1911
                        cfx.BrickColor=BrickColor.new('White')
1912
                        cfx.Material='Neon'
1913
                    end
1914
            cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
1915
            local b=blo(cfx)
1916
            addFx(cfx,0.05,'destroy',function()
1917
                cfx.Transparency=cfx.Transparency+0.05
1918
                b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
1919
            end)
1920
            until Vector3.new(0,tor.Velocity.Y,0).magnitude<2
1921
    end)
1922
    wait()
1923
    bv:Destroy()
1924
    multiplier=1
1925
    repeat wait() until Vector3.new(0,tor.Velocity.Y,0).magnitude<2
1926
    local bhit,pos=FindGround(cn(tor.CFrame.p),ch)
1927
    local blast=cp(tube,"Really black",Vector3.new(10,10,10),true,false)
1928
    blast.CFrame=pos
1929
    local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*3)
1930
    local people={}
1931
    for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
1932
       if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
1933
           local can=false
1934
           if not v.Parent:findFirstChild('HitDeb') then
1935
              can=true
1936
           end
1937
           if can==true then
1938
             local db=Instance.new('StringValue',v.Parent)
1939
             db.Name='HitDeb'
1940
             game.Debris:AddItem(db,0.5)
1941
              local humin=v.Parent.Humanoid
1942
              if humin then
1943
                  local php=humin.Health
1944
                  dealDamage(humin.Parent,20*multiplier,10)
1945
                  humin.Sit=true
1946
                  humin.PlatformStand=true
1947
                  if humin.Health>=php and humin.MaxHealth~=math.huge then
1948
                     print('equal')
1949
                     humin:TakeDamage(20*multiplier)
1950
                  end
1951
              end
1952
           end
1953
       end
1954
    end
1955
    local sp=sphere(blast)
1956
    blast.Material='Neon'
1957
    landsound:Play()
1958
    addFx(blast,0.02,'destroy',
1959
        function()
1960
            sp.Scale=sp.Scale+Vector3.new(0.1,0.1,0.1)
1961
            blast.Transparency=blast.Transparency+0.02
1962
        end)
1963
    animPlaying=false
1964
    deb=false
1965
end,40)
1966
1967
addMove('Aerial Sword','r',2,function()
1968
    deb=true
1969
    animPlaying=true
1970
    tweenTable={}
1971
    altTweenTable={}
1972
    canExecuteMoves=false
1973
    idle=false
1974
    run=false
1975
    aerialcharge:Play()
1976
    Tween(rw,cfn()*ang(mr(-90),0,0))
1977
    local bp
1978
    local bgg
1979
    local a=addToCList('Aerial Sword','r')
1980
    local still=true
1981
    bp=int('BodyPosition',tor)
1982
    bp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
1983
    bp.Position=tor.Position
1984
    local sphr=cp(tube,'Really black',Vector3.new(8,8,8),true)
1985
    sphr.Transparency=1
1986
    sphr.Material='Neon'
1987
    local spho=sphere(sphr)
1988
    spho.Name='spho'
1989
    spho.Scale=Vector3.new(0,0,0)
1990
    sphr.CFrame=tor.CFrame
1991
    addFx(sphr,0.07,nil,function() spho.Scale=spho.Scale+Vector3.new(0.1,0.1,0.1) sphr.Transparency=sphr.Transparency-0.07 end)
1992
    Delay(6,function()
1993
        if not a.up then
1994
           a.up=true 
1995
        end
1996
    end)
1997
    repeat wait(0.3)
1998
        local b=depleteMana(35)
1999
        if b then
2000
            swsound:Play()
2001
            local fx=sphr:clone()
2002
            fx.Parent=tube
2003
            fx.CFrame=sphr.CFrame
2004
            fx.BrickColor=BrickColor.new('White')
2005
            addFx(fx,0.07,'destroy',function() fx.spho.Scale=fx.spho.Scale+Vector3.new(0.1,0.1,0.1) fx.Transparency=fx.Transparency+0.07 end)
2006
            local sw=int('Part')
2007
            game.Debris:AddItem(sw,6)
2008
            sw.CanCollide=false
2009
            sw.Anchored=false
2010
            sw.BrickColor=BrickColor.new('Really black')
2011
            sw.Material='Neon'
2012
            sw.Size=Vector3.new(1,1,2)
2013
            sw.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))--*ang(mr(90),0,0)
2014
            sw.Parent=tube
2015
            sw.Transparency=1
2016
            addFx(sw,0.1,nil,function() sw.Transparency=sw.Transparency-.1 end)
2017
            local spm=int("SpecialMesh",sw)
2018
            spm.MeshType='FileMesh'
2019
            spm.MeshId=rbx..lib.yato
2020
            spm.Scale=Vector3.new(0.05,0.05,0.05)
2021
            local vel=int('BodyVelocity',sw)
2022
            vel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
2023
            vel.Velocity=sw.CFrame.lookVector*152
2024
            sw.CFrame=sw.CFrame*ang(0,mr(180),0)
2025
            sw.Touched:connect(function(p)
2026
                if p:IsDescendantOf(ch)==false then
2027
                    sw.Anchored=true
2028
                    local mgp=cp(tube,'White',Vector3.new(1,1,1),true,false)
2029
                    mgp.CFrame=sw.CFrame
2030
                    mgp.Transparency=1
2031
                    game.Debris:AddItem(mgp,2)
2032
                    ssp=swexp:clone()
2033
                    ssp.Parent=mgp
2034
                    ssp.Volume=2
2035
                    ssp:Play()
2036
                    local blast=cp(tube,'White',Vector3.new(8,8,8),true)
2037
                    blast.Material='Neon'
2038
                    blast.CFrame=sw.CFrame
2039
                    local sp=sphere(blast)
2040
                    addFx(sw,0.05,'destroy',function() sw.Transparency=sw.Transparency+0.05 spm.Scale=spm.Scale+Vector3.new(0.01,0.01,0.01) end)
2041
                    addFx(blast,0.07,'destroy',function() blast.Transparency=blast.Transparency+0.07 sp.Scale=sp.Scale+Vector3.new(0.1,0.1,0.1) end)
2042
                    local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
2043
                    local people={}
2044
                    for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
2045
                       if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
2046
                            local can=false
2047
                            if not v.Parent:findFirstChild('HitDeb') then
2048
                                can=true
2049
                            end
2050
                            if can==true then
2051
                                local db=Instance.new('StringValue',v.Parent)
2052
                                db.Name='HitDeb'
2053
                                game.Debris:AddItem(db,0.2)
2054
                                local humin=v.Parent.Humanoid
2055
                                if humin then
2056
                                    local php=humin.Health
2057
                                    dealDamage(humin.Parent,20+math.random(5),5)
2058
                                    humin.Sit=true
2059
                                  --humin.PlatformStand=true
2060
                                    if humin.Health>=php and humin.MaxHealth~=math.huge then
2061
                                        print('equal')
2062
                                        humin:TakeDamage(20)
2063
                                    end
2064
                                end
2065
                            end
2066
                        end
2067
                    end
2068
                end
2069
            end)
2070
        else
2071
            a.up=true
2072
        end
2073
    until a.up==true
2074
    addCoolDown('Aerial Sword')
2075
    addFx(sphr,0.07,'destroy',function() sphr.Transparency=sphr.Transparency+0.07 spho.Scale=spho.Scale+Vector3.new(0.1,0.1,0.1) end)
2076
    still=false
2077
    spawn(function()
2078
        wait(0.3)
2079
        canExecuteMoves=true
2080
    end)
2081
    bp:Destroy()
2082
    tor.Anchored=false
2083
    deb=false
2084
    animPlaying=false
2085
    reset()
2086
end,200)
2087
2088
addMove('Dark Missile','mb1',0.1,function()
2089
    tweenTable={}
2090
    animPlaying=true
2091
    deb=true
2092
    canRunLeg=true
2093
    tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
2094
    bg=true
2095
    idle=false
2096
    basicsound:Play()
2097
    if basicswitch==false then
2098
        Tween(rw,cfn()*ang(mr(-100),mr(45),0),0.2)
2099
        Tween(rj,cfn()*ang(0,mr(-45),0),0.2)
2100
    else
2101
        Tween(lw,cfn()*ang(mr(-100),mr(-45),0),0.2)
2102
        Tween(rj,cfn()*ang(0,mr(45),0),0.2)
2103
    end
2104
    wait(0.06)
2105
    local bullet=cp(tube,"Really black",Vector3.new(1,1,1),false,false)
2106
    bullet.Transparency=1
2107
    if basicswitch==false then
2108
        bullet.CFrame=righthandle.CFrame
2109
        bullet.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
2110
        basicswitch=true
2111
    else
2112
        bullet.CFrame=lefthandle.CFrame
2113
        bullet.CFrame=CFrame.new(lefthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
2114
        basicswitch=false
2115
    end
2116
    local bv=int('BodyVelocity',bullet)
2117
    bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
2118
    bv.Velocity=bullet.CFrame.lookVector*150
2119
    local bulletfx=cp(tube,"Bright red",Vector3.new(1,1,1),true,false)
2120
    if basicswitch==false then
2121
       bulletfx.BrickColor=BrickColor.new('Really black') 
2122
    end
2123
    bulletfx.CFrame=bullet.CFrame
2124
    bulletfx.Material='Neon'
2125
    sphere(bulletfx)
2126
    local angle=0
2127
    local bfsd=basicswitch
2128
    local lastpoint=bulletfx.CFrame
2129
    addCoolDown('Dark Missile')
2130
    addMover(bullet,0.8,function()
2131
        angle=angle+1
2132
        local angles=CFrame.Angles(math.rad(angle),mr(angle),0)
2133
        bulletfx.CFrame=bullet.CFrame
2134
        bulletfx.CFrame=bulletfx.CFrame*angles
2135
        if (lastpoint.p-bulletfx.CFrame.p).magnitude>1 then
2136
            local line=drawLine(lastpoint.p,bulletfx.CFrame.p,'Really black',angles)
2137
            --local ran=math.random(2)
2138
            if bfsd==true then
2139
               line.BrickColor=BrickColor.new('White') 
2140
            end
2141
            addFx(line,0.05,'destroy',function()
2142
                line.blok.Scale=line.blok.Scale+Vector3.new(0.05,0,0.05)
2143
                line.Transparency=line.Transparency+0.05
2144
            end)
2145
            lastpoint=bulletfx.CFrame
2146
        end
2147
    end)
2148
    bullet.Touched:connect(function(p)
2149
        if not p:isDescendantOf(ch) then
2150
            local thing
2151
            local region=CreateRegion3FromLocAndSize(bullet.Position,bullet.Size*2)
2152
            for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},50)) do
2153
                if v.Parent and v.Parent:findFirstChild'Humanoid' then
2154
                    thing=v
2155
                    break
2156
                end
2157
            end
2158
            local explosound=getSound(142070128)
2159
            explosound.Volume=0.8
2160
            explosound.Pitch=1.2
2161
            explosound.Parent=p
2162
            explosound:Play()
2163
            local position=bullet.CFrame
2164
            if thing and thing.Parent then
2165
               dealDamage(thing.Parent,20,5)
2166
            end
2167
            local blast=cp(tube,"Really black",Vector3.new(2,2,2),true,false)
2168
            if bfsd==false then
2169
               blast.BrickColor=BrickColor.new('White') 
2170
            end
2171
            blast.Material='Neon'
2172
            local spm2=sphere(blast)
2173
            blast.CFrame=CFrame.new(position.X,position.Y,position.Z)
2174
            addFx(blast,0.05,"destroy",function()
2175
                spm2.Scale=spm2.Scale+Vector3.new(0.1,0.1,0.1)
2176
                blast.Transparency=blast.Transparency+0.05
2177
            end)
2178
            bullet:Destroy()
2179
            bulletfx:Destroy()
2180
        end
2181
    end)
2182
    game.Debris:AddItem(bullet,2.5)
2183
    game.Debris:AddItem(bulletfx,2.5)
2184
    wait(0.1)
2185
    idle=true
2186
    reset()
2187
    deb=false
2188
    animPlaying=false
2189
    bg=false
2190
end,20)
2191
2192
local dumbbox=nil
2193
local dhand=nil
2194
local darknum=1
2195
2196
addMove('Dark Slash','r',2,function()
2197
    local oldspeed=hum.WalkSpeed
2198
    hum.WalkSpeed=0
2199
    local meshd='http://www.roblox.com/asset/?id=12171188'
2200
    tweenTable={}
2201
    altTweenTable={}
2202
    deb=true
2203
    animPlaying=true
2204
    canRunLeg=true
2205
    startsound2:Play()
2206
    local sp=cp(tube,'Really black',Vector3.new(10,10,10),false,false)
2207
    sp.CFrame=tor.CFrame
2208
    sp.Transparency=0.5
2209
    local sph=sphere(sp)
2210
    addFx(sp,0.07,'destroy',function() sph.Scale=sph.Scale-Vector3.new(0.05,0.05,0.05) sp.Transparency=sp.Transparency+0.035 end)
2211
    spawn(function()
2212
        for i=1,10 do
2213
            wait()
2214
            local cool1=cp(tube,'Really black',Vector3.new(1.5,1.5,1.5),true)
2215
            local rnd=math.random(2)
2216
            if rnd==1 then
2217
               cool1.BrickColor=BrickColor.new('White')
2218
               cool1.Material='Neon'
2219
            end
2220
            local ms1=blo(cool1)
2221
            cool1.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
2222
            addFx(cool1,0.07,'destroy',function() ms1.Scale=ms1.Scale+Vector3.new(0.08,0.08,0.08) cool1.Transparency=cool1.Transparency+0.07 end)
2223
        end
2224
    end)
2225
    addCoolDown('Dark Slash')
2226
    local allahsword=cp(tube,'White',Vector3.new(1,1,1))
2227
    local critmultiplier=2.4
2228
    local spm=int('SpecialMesh',allahsword)
2229
    spm.MeshType='FileMesh'
2230
    spm.MeshId=meshd
2231
    allahsword.Transparency=1
2232
    tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
2233
    local tv=Vector3.new(tor.CFrame.lookVector.X,0,tor.CFrame.lookVector.Z)--CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)).lookVector
2234
    local col=BrickColor.new("Really black").Color
2235
    spm.TextureId=rbx..'132155326'
2236
    spm.Name='mesh'
2237
    spm.VertexColor=Vector3.new(0,0,0)
2238
    spm.Scale=Vector3.new(1,1,1)
2239
    addFx(allahsword,0.05,nil,function() allahsword.Transparency=allahsword.Transparency-0.05  end)
2240
    weld(ch['Right Arm'],allahsword,cfn(0,-4,-0.5)*ang(mr(110),0,mr(180)))
2241
    Tween(rj,cfn()*ang(0,mr(-90),0))
2242
    Tween(rw,cfn(0.5,0.5,0.5)*ang(mr(-55),mr(-35),0))
2243
    Tween(lw,cfn(-0.5,0.5,0.5)*ang(mr(-55),mr(35),0))
2244
    Delay(0.08,function()
2245
        local tstvel=int('BodyVelocity',tor)
2246
        tstvel.MaxForce=Vector3.new(math.huge,0,math.huge)
2247
        tstvel.Velocity=tv*35
2248
        game.Debris:AddItem(tstvel,0.24)
2249
    end)
2250
    wait(0.22)
2251
    local hitbox=cp(tube,'White',Vector3.new(2,12,2))
2252
    hitbox.Transparency=1
2253
    hitbox.CFrame=allahsword.CFrame
2254
    dumbbox=hitbox
2255
    dumbhand=allahsword
2256
    swoosh:Play()
2257
    spawn(function()
2258
        for i=1,10 do
2259
            wait()
2260
            local trl=allahsword:clone()
2261
            trl.Parent=tube
2262
            trl.CFrame=allahsword.CFrame
2263
            if trl:findFirstChild('mesh') then
2264
             --   trl.mesh.VertexColor=Vector3.new(BrickColor.new('White').Color.r,BrickColor.new('White').Color.g,BrickColor.new('White').Color.b)
2265
            end
2266
           addFx(trl,0.07,'destroy',function() trl.Transparency=trl.Transparency+0.07  end)
2267
        end
2268
    end)
2269
    addFx(allahsword,.05,'destroy',function() allahsword.Transparency=allahsword.Transparency+.05 spm.Scale=spm.Scale+Vector3.new(0.1,0.1,0.1) --[[hitbox.CFrame=allahsword.CFrame*ang(mr(-90),0,0)]] end)
2270
    hitbox.Touched:connect(function(v)
2271
        if v and v.Parent and v.Parent:findFirstChild'Humanoid' and not v:IsDescendantOf(ch) then
2272
            --print'touched'
2273
            local can=false
2274
            if not v.Parent:findFirstChild('HitDeb') then
2275
                can=true
2276
            end
2277
            if can==true then
2278
                local sls=getSound(220834020)
2279
                sls.Pitch=1+(math.random(3)/10)
2280
                sls.Parent=v
2281
                sls:Play()
2282
                local db=Instance.new('StringValue',v.Parent)
2283
                db.Name='HitDeb'
2284
                game.Debris:AddItem(db,0.5)
2285
                dealDamage(v.Parent,20+math.random(20),2,critmultiplier)
2286
            end
2287
        end
2288
    end)
2289
    Tween(rj,cfn(0,0,0)*ang(mr(0),mr(90),0))
2290
    Tween(rw,cfn(0.5,0.8,0)*ang(mr(-80),mr(-35),0))
2291
    Tween(lw,cfn(-0.5,0.8,0)*ang(mr(-90),mr(35),0))
2292
    wait(0.2)
2293
    hitbox:Destroy()
2294
    hum.WalkSpeed=oldspeed
2295
    reset()
2296
    animPlaying=false
2297
    canRunLeg=false
2298
    deb=false
2299
end,80)
2300
2301
--[[
2302
addMove('Dark Slash2','r',2,function()
2303
    --http://www.roblox.com/asset/?id=12171188
2304
    local oldspeed=hum.WalkSpeed
2305
    if oldspeed==0 then
2306
       oldspeed=16 
2307
    end
2308
    hum.WalkSpeed=0
2309
    local meshd='http://www.roblox.com/asset/?id=12171188'
2310
    tweenTable={}
2311
    altTweenTable={}
2312
    deb=true
2313
    idle=false
2314
    animPlaying=true
2315
    canRunLeg=true
2316
    tweenTable={}
2317
    altTweenTable={}
2318
    startsound3:Play()
2319
    Tween(rj,cfn(),1)
2320
    tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
2321
    local sp=cp(tube,'Really black',Vector3.new(10,10,10),false,false)
2322
    sp.CFrame=tor.CFrame
2323
    sp.Transparency=0.5
2324
2325
    local sph=sphere(sp)
2326
    addFx(sp,0.07,'destroy',function() sph.Scale=sph.Scale-Vector3.new(0.05,0.05,0.05) sp.Transparency=sp.Transparency+0.035 end)
2327
    spawn(function()
2328
        for i=1,10 do
2329
            wait()
2330
            local cool1=cp(tube,'Really black',Vector3.new(1.5,1.5,1.5),true)
2331
            local ms1=blo(cool1)
2332
            cool1.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
2333
            addFx(cool1,0.07,'destroy',function() ms1.Scale=ms1.Scale+Vector3.new(0.08,0.08,0.08) cool1.Transparency=cool1.Transparency+0.07 end)
2334
        end
2335
    end)
2336
2337
    --addCoolDown('Dark Slash2')
2338
    local allahsword=cp(tube,'White',Vector3.new(1,1,1))
2339
    
2340
2341
    local spm=int('SpecialMesh',allahsword)
2342
    spm.MeshType='FileMesh'
2343
    spm.MeshId=meshd
2344
    allahsword.Transparency=1
2345
    tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
2346
    local tv=Vector3.new(tor.CFrame.lookVector.X,0,tor.CFrame.lookVector.Z)--CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)).lookVector
2347
    local col=BrickColor.new("Really black").Color
2348
    spm.TextureId=rbx..'132155326'
2349
    spm.Name='mesh'
2350
    spm.VertexColor=Vector3.new(0,0,0)
2351
    spm.Scale=Vector3.new(1,1,1)
2352
    addFx(allahsword,0.05,nil,function() allahsword.Transparency=allahsword.Transparency-0.05  end)
2353
    weld(ch['Right Arm'],allahsword,cfn(0,-4,-2)*ang(-180,0,mr(-25)))--(-25)
2354
    local hitbox=cp(tube,'White',Vector3.new(2,12,2))
2355
    hitbox.Transparency=1
2356
    hitbox.CFrame=allahsword.CFrame
2357
    dumbbox=hitbox
2358
    dumbhand=allahsword
2359
    Tween(rj,cfn()*ang(0,mr(90),0))
2360
    Tween(rw,cfn(0.5,0.5,0.5)*ang(mr(-90),mr(-35),0))
2361
    Tween(lw,cfn(-0.5,0.5,0.5)*ang(mr(-90),mr(35),0))
2362
2363
    Delay(0.08,function()
2364
        local tstvel=int('BodyVelocity',tor)
2365
        tstvel.MaxForce=Vector3.new(math.huge,0,math.huge)
2366
        tstvel.Velocity=tv*35
2367
        game.Debris:AddItem(tstvel,0.24)
2368
    end)
2369
2370
    wait(0.22)
2371
    swoosh:Play()
2372
    spawn(function()
2373
        for i=1,10 do
2374
            wait()
2375
            local trl=allahsword:clone()
2376
            trl.Parent=tube
2377
            trl.CFrame=allahsword.CFrame
2378
            addFx(trl,0.07,'destroy',function() trl.Transparency=trl.Transparency+0.07  end)
2379
        end
2380
    end)
2381
    addFx(allahsword,.05,'destroy',function() allahsword.Transparency=allahsword.Transparency+.05 spm.Scale=spm.Scale+Vector3.new(0.1,0.1,0.1) end)
2382
    hitbox.Touched:connect(function(v)
2383
        if v and v.Parent and v.Parent:findFirstChild'Humanoid' and not v:IsDescendantOf(ch) then
2384
            --print'touched'
2385
            local can=false
2386
            if not v.Parent:findFirstChild('HitDeb') then
2387
                can=true
2388
            end
2389
            if can==true then
2390
                local sls=getSound(220834020)
2391
                sls.Pitch=1+(math.random(3)/10)
2392
                sls.Parent=v
2393
                sls:Play()
2394
                local db=Instance.new('StringValue',v.Parent)
2395
                db.Name='HitDeb'
2396
                game.Debris:AddItem(db,0.5)
2397
                dealDamage(v.Parent,20+math.random(20),10)
2398
            end
2399
        end
2400
    end)
2401
    Tween(rj,cfn(0,0,0)*ang(mr(0),mr(-90),0))
2402
    Tween(rw,cfn(0.5,0.8,0)*ang(mr(-20),mr(-35),0)) --(-10)
2403
    Tween(lw,cfn(-0.5,0.8,0)*ang(mr(-20),mr(35),0))
2404
    wait(0.2)
2405
    hitbox:Destroy()
2406
    hum.WalkSpeed=oldspeed
2407
    reset()
2408
    deb=false
2409
    animPlaying=false
2410
    canRunLeg=false
2411
end)
2412
]]
2413
2414
addMove('Origin Beam','mb1,mb1,e',12,function()
2415
    tweenTable={}
2416
    altTweenTable={}
2417
    animPlaying=true
2418
    deb=true
2419
    apoc:Play()
2420
    spawn(function()
2421
        for i=1,15 do
2422
            wait()
2423
            local fx=cp(tube,'Really black',Vector3.new(1,1,1),true)
2424
            fx.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
2425
            local bl=blo(fx)
2426
            local ran=math.random(2)
2427
            if ran==1 then
2428
               fx.BrickColor=BrickColor.new('White') 
2429
            end
2430
            addFx(fx,0.07,'destroy',function() bl.Scale=bl.Scale+Vector3.new(.1,.1,.1) fx.Transparency=fx.Transparency+0.07 end)
2431
            local fx=cp(tube,'Really black',Vector3.new(1,1,1),true)
2432
            local ran=math.random(2)
2433
            if ran==1 then
2434
               fx.BrickColor=BrickColor.new('Bright red') 
2435
            end
2436
            fx.CFrame=lefthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
2437
            local bl=blo(fx)
2438
            addFx(fx,0.07,'destroy',function() bl.Scale=bl.Scale+Vector3.new(.1,.1,.1) fx.Transparency=fx.Transparency+0.07 end)
2439
        end
2440
    end)
2441
    Tween(rw,cfn()*ang(mr(-90),mr(45),0))
2442
    Tween(lw,cfn()*ang(mr(-90),mr(-45),0))
2443
    wait(0.2)
2444
    Tween(rw,cfn()*ang(mr(-90),mr(-45),0))
2445
    Tween(lw,cfn()*ang(mr(-90),mr(45),0))
2446
    wait(0.5)
2447
    apoc.Volume=2
2448
    local beam=cp(tube,"Really black",Vector3.new(1,1,1),true,false)
2449
    bg=true
2450
    local ray = Ray.new(righthandle.CFrame.p, (mouse.Hit.p - righthandle.CFrame.p).unit * 300)
2451
    local part, position = workspace:FindPartOnRay(ray, ch, false, true)
2452
    local distance = (righthandle.CFrame.p - position).magnitude
2453
    beam.Size = Vector3.new(2, distance, 2)
2454
    beam.Material='Neon'
2455
    beam.CFrame = CFrame.new(righthandle.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)*ang(mr(-90),0,0)
2456
    if part --[[and part.Parent]] then
2457
       --if part.Parent:findFirstChild'Humanoid' then
2458
         -- dealDamage(part.Parent,5,3,2) 
2459
       --end
2460
       local region=CreateRegion3FromLocAndSize(m.Hit.p,Vector3.new(6,6,6))
2461
            for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},50)) do
2462
                if v.Parent and v.Parent:findFirstChild'Humanoid' then
2463
                    thing=v
2464
                    break
2465
                end
2466
        end
2467
        if thing then
2468
            dealDamage(thing.Parent,5,3,2)
2469
        end
2470
    end
2471
    local msh=cyl(beam)
2472
    local up=false
2473
    addFx(beam,0.02,nil,function()
2474
       -- local mn=depleteMana(10)
2475
       -- if mn then
2476
            ray = Ray.new(righthandle.CFrame.p, (mouse.Hit.p - righthandle.CFrame.p).unit * 300)
2477
            local part, position = workspace:FindPartOnRay(ray, ch, false, true)
2478
            if part and part.Parent then
2479
                if part.Parent:findFirstChild'Humanoid' then
2480
                    dealDamage(part.Parent,2,3,2) 
2481
                end
2482
            end
2483
            local distance = (righthandle.CFrame.p - position).magnitude
2484
            beam.Size = Vector3.new(2, distance, 2)
2485
            beam.CFrame = CFrame.new(righthandle.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)*ang(mr(-90),0,0)
2486
            local brck=cp(tube,'Really black',Vector3.new(3.5,3.5,3.5),true)
2487
            brck.CFrame=m.Hit*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
2488
            brck.Material='Neon'
2489
            local ran=math.random(2)
2490
            if ran==1 then
2491
               brck.BrickColor=BrickColor.new('White') 
2492
            end
2493
            local bm=blo(brck)
2494
            addFx(brck,0.07,'destroy',function() bm.Scale=bm.Scale+Vector3.new(0.1,0.1,0.1) brck.Transparency=brck.Transparency+0.07 end)
2495
        --end
2496
    end)
2497
    wait(1)
2498
    addCoolDown('Origin Beam')
2499
    addFx(beam,0.07,'destroy',function() beam.Transparency=beam.Transparency+0.07 msh.Scale=msh.Scale-Vector3.new(0.07,0,0.07) end)
2500
    animPlaying=false
2501
    deb=false
2502
    bg=false
2503
    apoc.Volume=1
2504
end,180)
2505
2506
addMove('Nightmare Overture','z',60,function()
2507
    if Vector3.new(0,tor.Velocity.Y,0).magnitude<2 and Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2 then
2508
        hum.WalkSpeed=0
2509
        animPlaying=true
2510
        local ev
2511
        local tfn=tor.CFrame
2512
        deb=true
2513
        local done=false
2514
        local done2=false
2515
        local stakes={}
2516
        local dmds={}
2517
        tweenTable={}
2518
        altTweenTable={}
2519
        --Tween(rj,cfn()*ang(mr(45),0,0))
2520
        Tween(rw,cfn()*ang(mr(-110),mr(25),0),0.05)
2521
        Tween(lw,cfn()*ang(mr(-110),mr(-25),0),0.05)
2522
        resetLegs()
2523
        wait(0.5)
2524
        local circ=cp(tube,'Really black',Vector3.new(34,1,34),true)
2525
        circ.Transparency=1
2526
        circ.CFrame=tor.CFrame*CFrame.new(0,-3.3,0)
2527
        local d=int('Decal',circ)
2528
        d.Face='Top'
2529
        d.Texture=magcd
2530
        
2531
        local stake1=cp(tube,'Really black',Vector3.new(4,14,4),true)
2532
        local cm=cyl(stake1)
2533
        cm.Scale=Vector3.new(0,0,0)
2534
        stake1.CFrame=tfn*cfn(9,3,0)
2535
        stake1.Transparency=1
2536
        stake1.Material='Neon'
2537
        local snd=getSound(231917773)
2538
        snd.Parent=stake1
2539
        snd.Volume=2
2540
        snd:Play()
2541
        addFx(stake1,0.1,nil,function()
2542
            stake1.Transparency=stake1.Transparency-0.1
2543
            cm.Scale=cm.Scale+Vector3.new(0.1,0.1,0.1)
2544
        end)
2545
        table.insert(stakes,stake1)
2546
        local sdm1=cp(tube,'Really black',Vector3.new(4,6,4),true)
2547
        sdm1.CFrame=stake1.CFrame
2548
        sdm1.Transparency=1
2549
        local sdm1m=newSpm(sdm1)
2550
        sdm1m.MeshId=rbx..lib.diamond
2551
        sdm1m.Scale=Vector3.new(2,3,2)
2552
        sdm1m.Scale=Vector3.new(0,0,0)
2553
        addFx(sdm1,0.05,nil,function() 
2554
            sdm1.CFrame=sdm1.CFrame*CFrame.new(0,0.6,0)
2555
            sdm1m.Scale=sdm1m.Scale+Vector3.new(0.1,0.15,0.1)
2556
            sdm1.Transparency=sdm1.Transparency-0.05
2557
            --sdm1.CFrame=CFrame.new(sdm1.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
2558
        end)
2559
        table.insert(dmds,sdm1)
2560
        local angle=0
2561
        spawn(function()
2562
            repeat wait()
2563
                angle=angle+1
2564
                circ.CFrame=circ.CFrame*ang(0,mr(1),0)
2565
            until done==true
2566
        end)
2567
        spawn(function() --crown
2568
            repeat wait(0.1)
2569
            local crn=cp(tube,'Really black',Vector3.new(1,1,1),true)
2570
                crn.CFrame=tor.CFrame*cfn(0,-5.5,0)
2571
                local ms=newSpm(crn)
2572
                ms.TextureId=rbx..'132155326'
2573
                ms.MeshId=rbx..lib.crown
2574
                ms.VertexColor=Vector3.new(0,0,0)
2575
                ms.Scale=Vector3.new(1.5,1,1.5)
2576
                --angle=angle+1
2577
                --circ.CFrame=circ.CFrame*ang(0,mr(1),0)
2578
                addFx(crn,0.07,'destroy',function() crn.Transparency=crn.Transparency+0.07 ms.Scale=ms.Scale+Vector3.new(0.8,0.05,0.8) end)
2579
                local bgmc=bigmagic:clone()
2580
                bgmc.Parent=ch.Head
2581
                bgmc.Volume=0.3
2582
                bgmc.Pitch=0.8
2583
                bgmc:Play()
2584
            until done2==true
2585
        end)
2586
        spawn(function()
2587
            wait(0.4)
2588
            repeat wait()
2589
                sdm1.CFrame=CFrame.new(sdm1.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
2590
            until done==true
2591
        end)
2592
        wait(0.1)
2593
        local stake2=cp(tube,'Really black',Vector3.new(4,14,4),true)
2594
        local cm2=cyl(stake2)
2595
        cm2.Scale=Vector3.new(0,0,0)
2596
        stake2.CFrame=tfn*cfn(-9,3,0)
2597
        stake2.Transparency=1
2598
        stake2.Material='Neon'
2599
        local snd=getSound(231917773)
2600
        snd.Parent=stake2
2601
        snd.Volume=2
2602
        snd:Play()
2603
        addFx(stake2,0.1,nil,function()
2604
            stake2.Transparency=stake2.Transparency-0.1
2605
            cm2.Scale=cm2.Scale+Vector3.new(0.1,0.1,0.1)
2606
        end)
2607
        table.insert(stakes,stake2)
2608
        local sdm2=cp(tube,'Really black',Vector3.new(4,6,4),true)
2609
        sdm2.CFrame=stake2.CFrame
2610
        sdm2.Transparency=1
2611
        local sdm2m=newSpm(sdm2)
2612
        sdm2m.MeshId=rbx..lib.diamond
2613
        sdm2m.Scale=Vector3.new(2,3,2)
2614
        sdm2m.Scale=Vector3.new(0,0,0)
2615
        addFx(sdm2,0.05,nil,function() 
2616
            sdm2.CFrame=sdm2.CFrame*CFrame.new(0,0.6,0)
2617
            sdm2m.Scale=sdm2m.Scale+Vector3.new(0.1,0.15,0.1)
2618
            sdm2.Transparency=sdm2.Transparency-0.05
2619
            --sdm1.CFrame=CFrame.new(sdm1.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
2620
        end)
2621
        spawn(function()
2622
            wait(0.4)
2623
            repeat wait()
2624
                sdm2.CFrame=CFrame.new(sdm2.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
2625
            until done==true
2626
        end)
2627
        table.insert(dmds,sdm2)
2628
        wait(0.1)
2629
        local stake3=cp(tube,'Really black',Vector3.new(4,14,4),true)
2630
        local cm3=cyl(stake3)
2631
        cm3.Scale=Vector3.new(0,0,0)
2632
        stake3.CFrame=tfn*cfn(0,3,9)
2633
        stake3.Transparency=1
2634
        stake3.Material='Neon'
2635
        local snd=getSound(231917773)
2636
        snd.Parent=stake3
2637
        snd.Volume=2
2638
        snd:Play()
2639
        addFx(stake3,0.1,nil,function()
2640
            stake3.Transparency=stake3.Transparency-0.1
2641
            cm3.Scale=cm3.Scale+Vector3.new(0.1,0.1,0.1)
2642
        end)
2643
        table.insert(stakes,stake3)
2644
        local sdm3=cp(tube,'Really black',Vector3.new(4,6,4),true)
2645
        sdm3.CFrame=stake3.CFrame
2646
        sdm3.Transparency=1
2647
        local sdm3m=newSpm(sdm3)
2648
        sdm3m.MeshId=rbx..lib.diamond
2649
        sdm3m.Scale=Vector3.new(2,3,2)
2650
        sdm3m.Scale=Vector3.new(0,0,0)
2651
        addFx(sdm3,0.05,nil,function() 
2652
            sdm3.CFrame=sdm3.CFrame*CFrame.new(0,0.6,0)
2653
            sdm3m.Scale=sdm3m.Scale+Vector3.new(0.1,0.15,0.1)
2654
            sdm3.Transparency=sdm3.Transparency-0.05
2655
            --sdm3.CFrame=CFrame.new(sdm3.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
2656
        end)
2657
        spawn(function()
2658
            wait(0.4)
2659
            repeat wait()
2660
                sdm3.CFrame=CFrame.new(sdm3.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
2661
            until done==true
2662
        end)
2663
        table.insert(dmds,sdm3)
2664
        wait(0.1)
2665
        local stake4=cp(tube,'Really black',Vector3.new(4,14,4),true)
2666
        local cm4=cyl(stake4)
2667
        cm4.Scale=Vector3.new(0,0,0)
2668
        stake4.CFrame=tfn*cfn(0,3,-9)
2669
        stake4.Transparency=1
2670
        stake4.Material='Neon'
2671
        local snd=getSound(231917773)
2672
        snd.Parent=stake4
2673
        snd.Volume=2
2674
        snd:Play()
2675
        addFx(stake4,0.1,nil,function()
2676
            stake4.Transparency=stake4.Transparency-0.1
2677
            cm4.Scale=cm4.Scale+Vector3.new(0.1,0.1,0.1)
2678
        end)
2679
        table.insert(stakes,stake4)
2680
        local sdm4=cp(tube,'Really black',Vector3.new(4,6,4),true)
2681
        sdm4.CFrame=stake4.CFrame
2682
        sdm4.Transparency=1
2683
        local sdm4m=newSpm(sdm4)
2684
        sdm4m.MeshId=rbx..lib.diamond
2685
        sdm4m.Scale=Vector3.new(2,3,2)
2686
        sdm4m.Scale=Vector3.new(0,0,0)
2687
        addFx(sdm4,0.05,nil,function() 
2688
            sdm4.CFrame=sdm4.CFrame*CFrame.new(0,0.6,0)
2689
            sdm4m.Scale=sdm4m.Scale+Vector3.new(0.1,0.15,0.1)
2690
            sdm4.Transparency=sdm4.Transparency-0.05
2691
            --sdm4.CFrame=CFrame.new(sdm4.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
2692
        end)
2693
        spawn(function()
2694
            wait(0.4)
2695
            repeat wait()
2696
                sdm4.CFrame=CFrame.new(sdm4.CFrame.p, tor.CFrame.p)*ang(mr(90),0,0)
2697
            until done==true
2698
        end)
2699
        table.insert(dmds,sdm4)
2700
        wait(0.1)
2701
        local bv=int('BodyVelocity',tor)
2702
        bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
2703
        bv.Velocity=Vector3.new(0,7,0)
2704
        rise:Play()
2705
        local tdia=cp(tube,'Really black',Vector3.new(6,6,6))
2706
        tdia.Transparency=1
2707
        local tdiam=newSpm(tdia)
2708
        tdiam.MeshId=rbx..lib.diamond
2709
        tdiam.Name='mesh'
2710
        tdiam.Scale=Vector3.new(6,8,6)
2711
        tdiam.Scale=Vector3.new(0,0,0)
2712
        addFx(tdiam,0.05,nil,function()
2713
            tdiam.Scale=tdiam.Scale+Vector3.new(0.36,0.48,0.38)
2714
            tdia.Transparency=tdia.Transparency-0.05
2715
        end)
2716
        
2717
        weld(tor,tdia,cfn())
2718
        wait(3)
2719
        bv.Velocity=Vector3.new(0,0,0)
2720
        done2=true
2721
        for _,v in pairs(stakes) do
2722
           wait(0.1)
2723
           local nsnd=getSound(231917773)
2724
            snd.Parent=v
2725
            snd.Volume=2
2726
            snd.Pitch=1.3
2727
            snd:Play()
2728
           addFx(v,0.05,'destroy',function() v.mesh.Scale=v.mesh.Scale-Vector3.new(0.05,0.05,0.05) v.Transparency=v.Transparency+0.05 end)
2729
        end
2730
        local dm=1
2731
        local lastd=false
2732
        ev=m.Button1Down:connect(function()
2733
            if dm~=5 then
2734
                ultdi.Volume=2.4
2735
                ultdi:Play()
2736
                local pulse=tdia:clone()
2737
                pulse.Anchored=true
2738
                pulse.CFrame=tdia.CFrame
2739
                pulse.Parent=tube
2740
                pulse.BrickColor=BrickColor.new('White')
2741
                addFx(pulse,0.1,'destroy',function() pulse.mesh.Scale=pulse.mesh.Scale+Vector3.new(0.4,0.4,0.4) pulse.Transparency=pulse.Transparency+0.1  end)
2742
                local di=dmds[dm]:clone()
2743
                debris:AddItem(di,6)
2744
                di.CFrame=dmds[dm].CFrame
2745
                di.Parent=tube
2746
                dmds[dm]:Destroy()
2747
                di.Anchored=false
2748
                di:BreakJoints(0)
2749
                local nbv=int('BodyVelocity',di)
2750
                nbv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
2751
                di.CFrame=CFrame.new(di.CFrame.p,Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
2752
                nbv.Velocity=di.CFrame.lookVector*150
2753
                di.CFrame=di.CFrame*ang(mr(-90),0,0)
2754
                dm=dm+1
2755
                local bulletfx=di
2756
                addMover(di,0.8,function()
2757
                    --bullet.CFrame=bullet.CFrame*angles
2758
                    local fxp=cp(tube,'Really black',Vector3.new(1,1,1),true)
2759
                    fxp.CFrame=bulletfx.CFrame*ang(mr(-90),0,0)
2760
                    local bmesh=int('SpecialMesh',fxp)
2761
                    bmesh.MeshType='FileMesh'
2762
                    bmesh.MeshId=rbx..lib.ring
2763
                    bmesh.Scale=Vector3.new(2.5,2.5,2.5)
2764
                    addFx(fxp,0.07,'destroy',function() bmesh.Scale=bmesh.Scale+Vector3.new(0.2,0.2,0) fxp.Transparency=fxp.Transparency+0.07 end)
2765
                end)
2766
                di.Touched:connect(function(part)
2767
                    if part:IsDescendantOf(ch)==false then
2768
                        di:Destroy()
2769
                        local blast=cp(tube,'Really black',Vector3.new(20,20,20),true)
2770
                        blast.CFrame=di.CFrame
2771
                        local sp=sphere(blast)
2772
                        blast.Material='Neon'
2773
                        sp.Scale=Vector3.new(0.05,0.05,0.05)
2774
                        local bfx=blast:clone()
2775
                        bfx.Parent=tube
2776
                        bfx.CFrame=blast.CFrame
2777
                        local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
2778
                        local people={}
2779
                        for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
2780
                           if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
2781
                               local can=false
2782
                               if not v.Parent:findFirstChild('HitDeb') then
2783
                                  can=true
2784
                               end
2785
                               if can==true then
2786
                                 local db=Instance.new('StringValue',v.Parent)
2787
                                 db.Name='HitDeb'
2788
                                 game.Debris:AddItem(db,0.5)
2789
                                  local humin=v.Parent.Humanoid
2790
                                  if humin then
2791
                                      local php=humin.Health
2792
                                      dealDamage(humin.Parent,40,3,2,0.05)
2793
                                      humin.Sit=true
2794
                                      humin.PlatformStand=true
2795
                                      if humin.Health>=php and humin.MaxHealth~=math.huge then
2796
                                          print('equal')
2797
                                         humin:TakeDamage(40)
2798
                                      end
2799
                                  end
2800
                               end
2801
                           end
2802
                        end
2803
                        bfx.BrickColor=BrickColor.new('White')
2804
                       -- bfx.Mesh.Scale=Vector3.new(0,0,0)
2805
                        bfx:clearAllChildren()
2806
                        local sp2=sphere(bfx)
2807
                        sp2.Scale=Vector3.new(0,0,0)
2808
                        addFx(bfx,0.007,'destroy',function() sp2.Scale=sp2.Scale+Vector3.new(0.1,0.1,0.1) bfx.Transparency=bfx.Transparency+0.007 end)
2809
                        addFx(blast,0.007,'destroy',function() sp.Scale=sp.Scale+Vector3.new(0.1,0.1,0.1) blast.Transparency=blast.Transparency+0.007 end)
2810
                        local hg=giantexplosion:clone()
2811
                        hg.Volume=10
2812
                        hg.Parent=blast
2813
                        hg:Play()
2814
                    end
2815
                end)
2816
        else
2817
            ev:Disconnect()
2818
            explodcharg:Play()
2819
            repeat wait() 
2820
                local pulse=tdia:clone()
2821
                pulse.Anchored=true
2822
                pulse.CFrame=tdia.CFrame
2823
                pulse.Parent=tube
2824
                pulse.BrickColor=BrickColor.new('White')
2825
                pulse:clearAllChildren()
2826
                local pm=tdiam:clone()
2827
                pm.Parent=pulse
2828
                addFx(pulse,0.1,'destroy',function() pm.Scale=pm.Scale+Vector3.new(0.4,0.4,0.4) pulse.Transparency=pulse.Transparency+0.1  end)
2829
            until explodcharg.IsPlaying==false
2830
                circ:Destroy()
2831
                addFx(tdia,0.07,'destroy',function() tdia.Transparency=tdia.Transparency+0.07 end)
2832
                hum.WalkSpeed=regws
2833
                deb=false
2834
                animPlaying=false
2835
                bv:Destroy()
2836
                --mega explosion
2837
                local blast=cp(tube,'Really black',Vector3.new(60,60,60),true)
2838
                blast.CFrame=tor.CFrame
2839
                local sp=sphere(blast)
2840
                blast.Material='Neon'
2841
                blast.Transparency=0.1
2842
                sp.Scale=Vector3.new(0.05,0.05,0.05)
2843
                local bfx=blast:clone()
2844
                bfx.Parent=tube
2845
                bfx.CFrame=blast.CFrame
2846
                bfx.Transparency=0.1
2847
                local rng=cp(tube,'White',Vector3.new(60,60,60),true)
2848
                rng.CFrame=blast.CFrame*ang(mr(-90),0,0)
2849
                local rn=newSpm(rng)
2850
                rn.MeshId=rbx..lib.ring
2851
                rn.Scale=Vector3.new(90,40,90)
2852
                addFx(rng,0.005,'destroy',function()
2853
                    rn.Scale=rn.Scale+Vector3.new(5,5,0)
2854
                    rng.Transparency=rng.Transparency+0.005
2855
                end)
2856
                
2857
                local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*3)
2858
                local people={}
2859
2860
2861
                for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
2862
                    if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
2863
                               local can=false
2864
                               if not v.Parent:findFirstChild('HitDeb') then
2865
                                  can=true
2866
                               end
2867
                               if can==true then
2868
                                   local thing=v
2869
                                 local db=Instance.new('StringValue',v.Parent)
2870
                                 db.Name='HitDeb'
2871
                                 game.Debris:AddItem(db,0.5)
2872
                                  local humin=v.Parent.Humanoid
2873
                                  if humin then
2874
                                      local php=humin.Health
2875
                                      dealDamage(humin.Parent,.3*humin.MaxHealth,3,2,0.05)
2876
                                      humin.Sit=true
2877
                                      humin.PlatformStand=true
2878
                                      if humin.Health>=php and humin.MaxHealth~=math.huge then
2879
                                          print('equal')
2880
                                         humin:TakeDamage(30)
2881
                                      end
2882
                              end
2883
                                          if thing and thing.Parent then
2884
                                        if thing.Parent:findFirstChild('Head') then
2885
                                            displayText(thing.Parent.Head,'Cursed','Really black')
2886
                                        else
2887
                                            displayText(thing,'Cursed','Really black')
2888
                                        end
2889
                                    end
2890
                                    if thing and thing.Parent then
2891
                                       dealDamage(thing.Parent,5,5)
2892
                                       local humin=thing.Parent.Humanoid
2893
                                       spawn(function()
2894
                                            for i=1,10 do
2895
                                               wait(1)
2896
                                                if thing.Parent then
2897
                                                    dealDamage(thing.Parent,0.05*humin.MaxHealth,10,1.5,0.5)   
2898
                                                end
2899
                                            end
2900
                                       end)
2901
                                    end
2902
                               end
2903
                           end
2904
                        end
2905
                        bfx.BrickColor=BrickColor.new('White')
2906
                        done=true
2907
                       -- bfx.Mesh.Scale=Vector3.new(0,0,0)
2908
                        bfx:clearAllChildren()
2909
                        local sp2=sphere(bfx)
2910
                        sp2.Scale=Vector3.new(0,0,0)
2911
                        local mgp=cp(tube,'White',Vector3.new(1,1,1),true)
2912
                        mgp.Transparency=1
2913
                        mgp.CFrame=blast.CFrame
2914
                        game.Debris:AddItem(mgp,8)
2915
                        addFx(bfx,0.004,'destroy',function() sp2.Scale=sp2.Scale+Vector3.new(0.09,0.09,0.09) bfx.Transparency=bfx.Transparency+0.004 end)
2916
                        addFx(blast,0.004,'destroy',function() sp.Scale=sp.Scale+Vector3.new(0.09,0.09,0.09) blast.Transparency=blast.Transparency+0.004 end)
2917
                        local hg=getSound(221920822)
2918
                        hg.Pitch=0.8
2919
                        hg.Volume=10
2920
                        hg.Parent=mgp
2921
                        hg:Play()
2922
                        addCoolDown('Nightmare Overture')
2923
            end
2924
        end)
2925
    --end
2926
    else
2927
    return false
2928
    end
2929
end,800)
2930
2931
--links
2932
--[[
2933
https://gyazo.com/2bb44f565b143e8025e5cdfc555a641a
2934
https://gyazo.com/20a0fd027484f894623cd8d387196c09
2935
]]
2936
2937
addMove('Dark Spikes','t',0.4,function()
2938
    tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
2939
    local lv=tor.CFrame
2940
    tweenTable={}
2941
    animPlaying=true
2942
    deb=true
2943
    canRunLeg=true
2944
    magictone1:Play()
2945
    Tween(rj,cfn()*ang(0,mr(25),0),0.2)
2946
    Tween(rw,cfn()*ang(mr(25),mr(-20),0),0.2)
2947
    wait(0.2)
2948
    Tween(rj,cfn()*ang(0,mr(-55),0),0.15)
2949
    Tween(rw,cfn()*ang(mr(-115),mr(45),0),0.15)
2950
    Tween(neck,cfn()*ang(0,mr(55),0))
2951
    local spot=4
2952
    addCoolDown('Dark Spikes')
2953
    for i=1,10 do
2954
        wait(0.1)
2955
        local v=lv.lookVector*spot
2956
        --print(v)
2957
        spot=spot+14
2958
        local spike=cp(tube,'Really black',Vector3.new(10,1,10),true,false)
2959
        spike.CFrame=lv*CFrame.new(0,0,-spot)
2960
        local dam=cp(tube,'Really black',Vector3.new(7,14,7),true,false)
2961
        local dml=cyl(dam)
2962
        local angls=CFrame.Angles(spike.CFrame:toEulerAnglesXYZ())
2963
        local bhit,pos=FindGround(cn(spike.CFrame.p),ch)
2964
        if bhit then
2965
            spike.CFrame=pos*CFrame.new(0,0,0)
2966
            local mgp=cp(tube,'White',Vector3.new(1,1,1),true,false)
2967
            mgp.Transparency=1
2968
            mgp.CFrame=spike.CFrame
2969
            game.Debris:AddItem(mgp,2)
2970
            local sn=spexp:clone()
2971
            sn.Parent=mgp
2972
            sn.Volume=2
2973
            sn:Play()
2974
            dam.CFrame=spike.CFrame*CFrame.new(0,7,0)
2975
            local blast=dam
2976
            local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
2977
            local people={}
2978
            for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
2979
               if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
2980
                   local can=false
2981
                   if not v.Parent:findFirstChild('HitDeb') then
2982
                      can=true
2983
                   end
2984
                   if can==true then
2985
                     local db=Instance.new('StringValue',v.Parent)
2986
                     db.Name='HitDeb'
2987
                     game.Debris:AddItem(db,0.2)
2988
                      local humin=v.Parent.Humanoid
2989
                      if humin then
2990
                          local php=humin.Health
2991
                          dealDamage(humin.Parent,10+math.random(3),2)
2992
                          local testvel=int('BodyVelocity',v)
2993
                          testvel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
2994
                          testvel.Velocity=lv.lookVector*100
2995
                          game.Debris:addItem(testvel,1)
2996
                          humin.Sit=true
2997
                          if humin.Health>=php and humin.MaxHealth~=math.huge then
2998
                             print('equal')
2999
                             humin:TakeDamage(20)
3000
                          end
3001
                      end
3002
                   end
3003
               end
3004
            end
3005
            local cl=cyl(spike)
3006
            addFx(spike,0.05,'destroy',function() cl.Scale=cl.Scale-Vector3.new(0.05,0,0.05) spike.Transparency=spike.Transparency+0.05 end)
3007
            addFx(dml,0.05,'destroy',function() dml.Scale=dml.Scale-Vector3.new(0.05,-0.05,0.05) dam.Transparency=dam.Transparency+0.05 end)
3008
        else
3009
            spike:Destroy()
3010
        end
3011
    end
3012
    wait(0.7)
3013
    deb=false
3014
    canRunLeg=false
3015
    animPlaying=false
3016
    reset()
3017
end,30)
3018
3019
mouse.Button1Down:connect(function()
3020
    if not deb then
3021
        rcombostring=rcombostring..'mb1'
3022
        executeMove('Dark Missile')
3023
        --print('movers:' .. #movers)
3024
        --print('fx:' .. #fx)
3025
        --print('tweens: ' .. #tweenTable)
3026
    end
3027
end)
3028
3029
local vt
3030
local dodgecool=false
3031
3032
iPart=function(tab) --tigrebloodd
3033
    local v=Instance.new(tab.type or 'Part')
3034
    if tab.type~='CornerWedgePart' then v.formFactor='Custom' end
3035
    v.CanCollide=false
3036
    v.TopSurface=0 v.BottomSurface=0
3037
    v.Size=v3(tab[2],tab[3],tab[4])
3038
    if tab.co then v.BrickColor=bn(tab.co) end
3039
    if tab.tr then v.Transparency=tab.tr end
3040
    if tab.rf then v.Reflectance=tab.rf end
3041
    if tab.cf then v.CFrame=tab.cf end
3042
    if tab.an then v.Anchored=tab.an end
3043
    v.Parent=tab[1]
3044
    LastMade=v
3045
    return v
3046
end
3047
3048
iNew=function(tab) --tigrebloodd
3049
    local v=Instance.new(tab[1])
3050
    for Ind,Val in pairs(tab) do
3051
        if Ind~=1 and Ind~=2 then 
3052
            v[Ind] = Val
3053
        end
3054
    end
3055
    v.Parent=tab[2]==0 and LastMade or tab[2]
3056
    LastMade=v
3057
    return v
3058
end
3059
3060
-- Antiboomz0r's functions -----------------------------------------------------------------
3061
3062
local ppart = iPart{nil,0.2,0.2,0.2}
3063
ppart.Material = "SmoothPlastic" 
3064
ppart.TopSurface = "SmoothNoOutlines" 
3065
ppart.BottomSurface = "SmoothNoOutlines" 
3066
ppart.RightSurface = "SmoothNoOutlines"
3067
ppart.LeftSurface = "SmoothNoOutlines"
3068
ppart.Transparency=0
3069
ppart.Anchored=true
3070
--ppart.Parent=tube
3071
3072
local function CFrameFromTopBack(at, top, back)
3073
    local right = top:Cross(back)
3074
    return CFrame.new(at.x, at.y, at.z,
3075
    right.x, top.x, back.x,
3076
    right.y, top.y, back.y,
3077
    right.z, top.z, back.z)
3078
end
3079
3080
function Triangle(a, b, c)
3081
    local edg1 = (c-a):Dot((b-a).unit)
3082
    local edg2 = (a-b):Dot((c-b).unit)
3083
    local edg3 = (b-c):Dot((a-c).unit)
3084
    if edg1 <= (b-a).magnitude and edg1 >= 0 then
3085
        a, b, c = a, b, c
3086
    elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
3087
        a, b, c = b, c, a
3088
    elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
3089
        a, b, c = c, a, b
3090
    else 
3091
        print("unreachable")
3092
    end
3093
    local len1 = (c-a):Dot((b-a).unit)
3094
    local len2 = (b-a).magnitude - len1
3095
    local width = (a + (b-a).unit*len1 - c).magnitude
3096
    local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
3097
    local list = {}
3098
    if len1 > 0.01 then
3099
        local w1 = iNew{
3100
            "WedgePart",
3101
            Pack,
3102
            FormFactor="Custom",
3103
            BrickColor=ppart.BrickColor,
3104
            Transparency=ppart.Transparency,
3105
            Reflectance=ppart.Reflectance,
3106
            Material=ppart.Material,
3107
            CanCollide=ppart.CanCollide
3108
        }
3109
        local sz = v3(0.2, width, len1)
3110
        w1.Size = sz
3111
        local sp = iNew{"SpecialMesh",w1,MeshType="Wedge",Scale=v3(0,1,1)*sz/w1.Size}
3112
        w1.Parent=tube
3113
        w1:BreakJoints()
3114
        w1.Anchored = true
3115
        w1.Transparency = 0.7
3116
        Spawn(function()
3117
            for i=0,1,0.1 do
3118
                wait()
3119
                w1.Transparency=w1.Transparency+0.03
3120
            end
3121
        end)
3122
        w1.CFrame = maincf*ca2(math.pi,0,math.pi/2)*cn(0,width/2,len1/2)
3123
        table.insert(list,w1)
3124
    end
3125
    if len2 > 0.01 then
3126
        local w2 = iNew{
3127
            "WedgePart",
3128
            Pack,
3129
            FormFactor="Custom",
3130
            BrickColor=ppart.BrickColor,
3131
            Transparency=ppart.Transparency,
3132
            Reflectance=ppart.Reflectance,
3133
            Material=ppart.Material,
3134
            CanCollide=ppart.CanCollide
3135
        }
3136
        local sz = v3(0.2, width, len2) 
3137
        w2.Size = sz
3138
        local sp = iNew{"SpecialMesh",w2,MeshType="Wedge",Scale=v3(0,1,1)*sz/w2.Size}
3139
        w2.Parent=tube
3140
        w2:BreakJoints()
3141
        w2.Anchored = true
3142
        w2.Transparency = 0.7
3143
        Spawn(function()
3144
            for i=0,1,0.1 do
3145
                wait()
3146
                w2.Transparency=w2.Transparency+0.03
3147
            end
3148
        end)
3149
        w2.CFrame = maincf*ca2(math.pi,math.pi,-math.pi/2)*cn(0,width/2,-len1 - len2/2)
3150
        table.insert(list,w2)
3151
    end
3152
    return unpack(list)
3153
end
3154
3155
bclf=ch['Right Arm'].CFrame
3156
scfr=bclf
3157
3158
--[[
3159
while wait() do--test
3160
3161
    local h=3.8
3162
    local a,b=Triangle(scfr*CFrame.new(0,h/2,0).p,scfr*CFrame.new(0,-h/2,0).p,scfr*CFrame.new(0,h/2,0).p)
3163
    scfr=bclf
3164
    bclf=ch['Right Arm'].CFrame
3165
    local a,b=Triangle(bclf*CFrame.new(0,h/2,0).p,bclf*CFrame.new(0,-h/2,0).p,bclf*CFrame.new(0,h/2,0).p)
3166
    print(a.Parent)
3167
    print(a.CFrame)
3168
end
3169
]]
3170
3171
-- Antiboomz0r's functions -----------------------------------------------------------------
3172
3173
-------------------tigrebloodd functions------------------------------
3174
3175
ca=CFrame.Angles
3176
cn=CFrame.new
3177
v3=Vector3.new
3178
3179
function Raycast(Pos,Dir,Ign)
3180
    return workspace:FindPartOnRay(Ray.new(Pos,Dir.unit*300),Ign)
3181
end 
3182
 
3183
function FindGround(cf,ig)
3184
    local ax,ay,az = cf:toEulerAnglesXYZ()
3185
    local bhit,bpos=Raycast(cf.p,cf.p-(cf.p+v3(0,200,0)),ig) 
3186
    if bhit and bpos then 
3187
        return bhit,cn(bpos)*ca(ax,ay,az)
3188
    end 
3189
end
3190
-------------------tigrebloodd functions----------------------------
3191
3192
currentkey=''
3193
3194
mouse.KeyDown:connect(function(key)
3195
    if key=='q' and currentkey=='32' and Vector3.new(0,tor.Velocity.Y,0).magnitude>2 then
3196
        executeMove('Down Slam')
3197
    elseif key=='r' and currentkey=='32' and Vector3.new(0,tor.Velocity.Y,0).magnitude>2 then
3198
        executeMove('Aerial Sword')
3199
    end
3200
    if key=='i' then
3201
        print('movers:' .. #movers)
3202
        print('fx:' .. #fx)
3203
        print('tweens: ' .. #tweenTable) 
3204
    end
3205
    if string.byte(key)==32 and canExecuteMoves==true then
3206
        combostring=combostring..'.'
3207
        spawn(function()
3208
              jump()
3209
        end)
3210
        --jump()
3211
        if combostring:match('..') and dodgecool==false then
3212
            currentkey=tostring(string.byte(key))
3213
            animPlaying=true
3214
            altTween(rj,cfn()*ang(mr(-15),0,0))
3215
            altTween(rw,cfn()*ang(mr(10),0,mr(-15)))
3216
            altTween(lw,cfn()*ang(mr(10),0,mr(15)))
3217
            dodgecool=true
3218
            combostring=[[]]
3219
            local rv=tor.CFrame.upVector
3220
            local bv=int('BodyVelocity',tor)
3221
            dodgesound:Play()
3222
            bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
3223
            bv.Velocity=rv*150
3224
            spawn(function()
3225
                for i=1,14 do
3226
                    wait()
3227
                    local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
3228
                    --cfx.Material='Neon'
3229
                     local ran=math.random(2)
3230
                    if ran==1 then
3231
                        cfx.BrickColor=BrickColor.new('White')
3232
                        cfx.Material='Neon'
3233
                    end
3234
                    cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
3235
                    local b=blo(cfx)
3236
                    addFx(cfx,0.05,'destroy',function()
3237
                        cfx.Transparency=cfx.Transparency+0.05
3238
                        b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
3239
                    end)
3240
                end
3241
            end)
3242
            wait()
3243
            bv:Destroy()
3244
            wait(0.4)
3245
            reset()
3246
            dodgecool=false
3247
            wait(0.4)
3248
            if currentkey=='32' then
3249
               currentkey='' 
3250
            end
3251
            if not deb then
3252
                animPlaying=false
3253
            end
3254
            --repeat wait() until Vector3.new(0,tor.Velocity.Y,0).magnitude<2
3255
            --currentkey
3256
        end
3257
    elseif string.byte(key)==48 and canExecuteMoves==true then
3258
        sprinting=true
3259
        hum.WalkSpeed=24
3260
    end
3261
    if key=='d' and canExecuteMoves==true then
3262
        combostring=combostring..'d'
3263
        if combostring:match('dd') and dodgecool==false then
3264
            --animPlaying=true
3265
            dodgecool=true
3266
            combostring=[[]]
3267
            local rv=cam.CFrame.rightVector
3268
            local bv=int('BodyVelocity',tor)
3269
            dodgesound:Play()
3270
            bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
3271
            bv.Velocity=rv*150
3272
            --Tween(rj,cfn()*ang(mr(90),0,0))
3273
            spawn(function()
3274
                for i=1,16 do
3275
                    wait()
3276
                    local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
3277
                    local ran=math.random(2)
3278
                    if ran==1 then
3279
                        cfx.BrickColor=BrickColor.new('White')
3280
                        cfx.Material='Neon'
3281
                    end
3282
                    --cfx.Material='Neon'
3283
                    cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
3284
                    local b=blo(cfx)
3285
                    addFx(cfx,0.05,'destroy',function()
3286
                        cfx.Transparency=cfx.Transparency+0.05
3287
                        b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
3288
                    end)
3289
                end
3290
            end)
3291
            wait()
3292
            bv:Destroy()
3293
            wait(0.4)
3294
            dodgecool=false
3295
        end
3296
    elseif key=='w' and canExecuteMoves==true then
3297
        combostring=combostring..'w'
3298
        if combostring:match('ww') and dodgecool==false then
3299
            dodgecool=true
3300
            combostring=""
3301
            local rv=cam.CFrame:vectorToWorldSpace(Vector3.new(0,0,-1))
3302
            --tor.CFrame=CFrame.new(tor.Position,Vector3.new(rv.X,tor.Position.Y,rv.Z))
3303
            local bv=int('BodyVelocity',tor)
3304
            dodgesound:Play()
3305
            bv.MaxForce=Vector3.new(math.huge,0,math.huge)
3306
            bv.Velocity=rv*150
3307
            spawn(function()
3308
                for i=1,16 do
3309
                    wait()
3310
                    local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
3311
                    --cfx.Material='Neon'
3312
                     local ran=math.random(2)
3313
                    if ran==1 then
3314
                        cfx.BrickColor=BrickColor.new('White')
3315
                        cfx.Material='Neon'
3316
                    end
3317
                    cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
3318
                    local b=blo(cfx)
3319
                    addFx(cfx,0.05,'destroy',function()
3320
                        cfx.Transparency=cfx.Transparency+0.05
3321
                        b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
3322
                    end)
3323
                end
3324
            end)
3325
            wait()
3326
            bv:Destroy()
3327
            wait(0.4)
3328
            dodgecool=false
3329
        end
3330
    elseif key=='s' and canExecuteMoves==true then
3331
        combostring=combostring..'s'
3332
        if combostring:match('ss') and dodgecool==false then
3333
            dodgecool=true
3334
            combostring=""
3335
            local rv=cam.CFrame:vectorToWorldSpace(Vector3.new(0,0,1))
3336
            local bv=int('BodyVelocity',tor)
3337
            dodgesound:Play()
3338
            bv.MaxForce=Vector3.new(math.huge,0,math.huge)
3339
            bv.Velocity=rv*150
3340
            spawn(function()
3341
                for i=1,16 do
3342
                    wait()
3343
                    local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
3344
                    --cfx.Material='Neon'
3345
                     local ran=math.random(2)
3346
                    if ran==1 then
3347
                        cfx.BrickColor=BrickColor.new('White')
3348
                        cfx.Material='Neon'
3349
                    end
3350
                    cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
3351
                    local b=blo(cfx)
3352
                    addFx(cfx,0.05,'destroy',function()
3353
                        cfx.Transparency=cfx.Transparency+0.05
3354
                        b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
3355
                    end)
3356
                end
3357
            end)
3358
            wait()
3359
            bv:Destroy()
3360
            wait(.4)
3361
            dodgecool=false
3362
        end
3363
    elseif key=='a' and canExecuteMoves==true then
3364
        combostring=combostring..'a'
3365
        if combostring:match('aa') and dodgecool==false then
3366
            dodgecool=true
3367
            combostring=[[]]
3368
            local rv=cam.CFrame.rightVector
3369
            local bv=int('BodyVelocity',tor)
3370
            dodgesound:Play()
3371
            bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
3372
            bv.Velocity=rv*-150
3373
            spawn(function()
3374
                for i=1,16 do
3375
                    wait()
3376
                    local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
3377
                    --cfx.Material='Neon'
3378
                     local ran=math.random(2)
3379
                    if ran==1 then
3380
                        cfx.BrickColor=BrickColor.new('White')
3381
                        cfx.Material='Neon'
3382
                    end
3383
                    cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
3384
                    local b=blo(cfx)
3385
                    addFx(cfx,0.05,'destroy',function()
3386
                        cfx.Transparency=cfx.Transparency+0.05
3387
                        b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
3388
                    end)
3389
                end
3390
            end)
3391
            wait()
3392
            bv:Destroy()
3393
            wait(.4)
3394
            dodgecool=false
3395
        end
3396
    end
3397
    if key=='f' then
3398
        if deb==false then
3399
            executeMove('Normal Block')
3400
        end
3401
    elseif key=='z' then
3402
        if deb==false then
3403
           executeMove('Nightmare Overture') 
3404
        end
3405
    elseif key=='e' then
3406
        if deb==false then
3407
            rcombostring=rcombostring..'e'
3408
            local cmb=rcombostring
3409
            if cmb:match('mb1mb1e') then
3410
                rcombostring=[[]]
3411
                local a=executeMove('Origin Beam')
3412
                if not a then
3413
                   executeMove('Rive Beam') 
3414
                end
3415
            else
3416
                executeMove('Rive Beam')
3417
            end
3418
        end
3419
    elseif key=='v' then
3420
        if deb==false then
3421
           executeMove('Diamond Storm') 
3422
        end
3423
    elseif key=='t' then
3424
        if deb==false and not sprinting then
3425
             rcombostring=rcombostring..'t'
3426
                local cmb=rcombostring
3427
                if cmb:match('mb1mb1t') then
3428
                    rcombostring=[[]]
3429
                    local a=executeMove('Dark Lock')
3430
                    if not a then
3431
                       executeMove('Dark Spikes') 
3432
                    end
3433
                else
3434
                    executeMove('Dark Spikes')
3435
                end
3436
            --end
3437
          --  executeMove('Dark Spikes') 
3438
        end
3439
    elseif key=='g' then
3440
        if deb==false then
3441
           executeMove('Curse') 
3442
        end
3443
    elseif key=='l' then
3444
        if deb==false then
3445
           executeMove('Ascend') 
3446
        end
3447
    elseif key=='r' then
3448
        if deb==false and Vector3.new(0,tor.Velocity.Y,0).magnitude<2 and currentkey~='32' then
3449
           -- if darknum==1 then
3450
                executeMove('Dark Slash') 
3451
                --darknum=darknum+1
3452
           -- else
3453
             --  executeMove('Dark Slash2')
3454
              --  darknum=1
3455
           -- end
3456
        end
3457
    end
3458
end)
3459
3460
mouse.KeyUp:connect(function(key)
3461
    for _,v in pairs(connectlist) do
3462
        if v.up==false and v.key==key then
3463
           v.up=true
3464
           table.remove(connectlist,_)
3465
        end
3466
    end
3467
    if string.byte(key)==48 and canExecuteMoves==true then
3468
        sprinting=false
3469
        hum.WalkSpeed=regws
3470
    end
3471
end)
3472
3473
mouse.Button1Up:connect(function()
3474
    for _,v in pairs(connectlist) do
3475
        if v.up==false then
3476
           v.up=true
3477
           table.remove(connectlist,_)
3478
        end
3479
    end
3480
end)
3481
3482
local oldsize=mana/maxmana
3483
local oldchain=0
3484
spawn(function()
3485
    while wait(1) do
3486
        if deb==false then
3487
            if chain==oldchain then
3488
               chain=0
3489
            end
3490
            oldchain=chain
3491
        end
3492
    end
3493
end)
3494
3495
--darkustheory stuff
3496
3497
ArtificialHB = Instance.new("BindableEvent", script)
3498
ArtificialHB.Name = "Heartbeat"
3499
3500
script:WaitForChild("Heartbeat")
3501
3502
frame = 1 / 60
3503
tf = 0
3504
allowframeloss = true
3505
tossremainder = false
3506
lastframe = tick()
3507
script.Heartbeat:Fire()
3508
3509
game:GetService("RunService").Heartbeat:connect(function(s, p)
3510
    tf = tf + s
3511
    if tf >= frame then
3512
        if allowframeloss then
3513
            script.Heartbeat:Fire()
3514
            lastframe = tick()
3515
        else
3516
            for i = 1, math.floor(tf / frame) do
3517
                script.Heartbeat:Fire()
3518
            end
3519
            lastframe = tick()
3520
        end
3521
        if tossremainder then
3522
            tf = 0
3523
        else
3524
            tf = tf - frame * math.floor(tf / frame)
3525
        end
3526
    end
3527
end)
3528
3529
function swait(num)
3530
    if num == 0 or num == nil then
3531
        ArtificialHB.Event:wait()
3532
    else
3533
        for i = 0, num do
3534
            ArtificialHB.Event:wait()
3535
        end
3536
    end
3537
end
3538
3539
--darkustheory stuff
3540
3541
--game:service'RunService'.Heartbeat:connect(function()
3542
Spawn(function()
3543
    while true do
3544
        swait()
3545
        chaintext.Text=tostring(chain) .. 'x'
3546
        manabartext.Text=tostring(mana)..'/'..tostring(maxmana)
3547
        if mana/maxmana~=oldsize then
3548
            manabar:TweenSize(UDim2.new(mana/maxmana,0,1,0),'Out','Sine',1,true)
3549
            oldsize=mana/maxmana
3550
        end
3551
        if dumbbox then
3552
           dumbbox.CFrame=dumbhand.CFrame*cfn(0,0,4)*ang(mr(-90),0,0) 
3553
        end
3554
        for _,v in pairs(textTable) do
3555
            if v.TextLabel.TextTransparency<1 then
3556
                v.TextLabel.TextTransparency=v.TextLabel.TextTransparency+0.02
3557
                v.TextLabel.TextStrokeTransparency=v.TextLabel.TextStrokeTransparency+0.02
3558
                v.StudsOffset=v.StudsOffset+Vector3.new(0,0.02,0)
3559
            else
3560
                v:Destroy()
3561
                table.remove(textTable,_)
3562
            end
3563
        end
3564
        if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>2 and jumping==false then
3565
            run=true
3566
            --if walksound.IsPlaying==false then
3567
              --  walksound:Play()
3568
           -- end
3569
        elseif Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2 and jumping==false then
3570
            run=false
3571
            --walksound:Stop()
3572
            idle=true
3573
        end
3574
        --shift=48
3575
        if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>2 and canRunLeg==true then
3576
            runLeg=true
3577
        elseif Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2 and canRunLeg==true then
3578
            runLeg=false
3579
            resetLegs()
3580
        end
3581
        for _,v in pairs(movers) do
3582
            if v.mover and v.mover:IsDescendantOf(tube) then
3583
               v.func()
3584
            else
3585
                table.remove(movers,_)
3586
            end
3587
        end
3588
        if bg then
3589
            if hum.Health > 0 then
3590
                tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
3591
            end
3592
        end
3593
        for _,v in pairs(fx) do
3594
            if v.stepval<1 then
3595
                v.func()
3596
                v.stepval=v.stepval+v.int
3597
            else
3598
                if v.final then
3599
                    if v.final=='destroy' then
3600
                        v.item:Destroy()
3601
                        table.remove(fx,_)
3602
                       -- print(#fx)
3603
                    end
3604
                else
3605
                    table.remove(fx,_)
3606
                end
3607
            end
3608
        end
3609
        for _,v in pairs(tweenTable) do
3610
            if v.Weld.C1==v.Stop then
3611
                table.remove(tweenTable,_)
3612
            else
3613
                if v.th<1-v.Step then
3614
                    v.th=v.th+v.Step
3615
                    i=v.th
3616
                    
3617
                    v.Weld.C1 = v.Weld.C1:lerp(CFrame.new( (v.Start.p.X * (1 - i)) + (v.Stop.p.X * i), 
3618
                    (v.Start.p.Y * (1 - i)) + (v.Stop.p.Y * i), 
3619
                    (v.Start.p.Z * (1 - i)) + (v.Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
3620
                    (v.X1 * (1 - i)) + (v.X2 * i), (v.Y1 * (1 - i)) + (v.Y2 * i),
3621
                    (v.Z1 * (1 - i)) + (v.Z2 * i) ),1)
3622
                else
3623
                    v.Weld.C1 = v.Stop
3624
                end
3625
            end
3626
        end
3627
        for _,v in pairs(altTweenTable) do
3628
            if v.Weld.C1==v.Stop then
3629
                table.remove(tweenTable,_)
3630
            else
3631
                if v.th<1-v.Step then
3632
                    v.th=v.th+v.Step
3633
                    i=v.th
3634
                    v.Weld.C1 = v.Weld.C1:lerp(CFrame.new( (v.Start.p.X * (1 - i)) + (v.Stop.p.X * i), 
3635
                    (v.Start.p.Y * (1 - i)) + (v.Stop.p.Y * i), 
3636
                    (v.Start.p.Z * (1 - i)) + (v.Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
3637
                    (v.X1 * (1 - i)) + (v.X2 * i), (v.Y1 * (1 - i)) + (v.Y2 * i),
3638
                    (v.Z1 * (1 - i)) + (v.Z2 * i) ),1)
3639
                else
3640
                    v.Weld.C1 = v.Stop
3641
                end
3642
            end
3643
        end
3644
    end
3645
end)
3646
--end)
3647
3648
local oldcombo
3649
local thingz=false
3650
local oldcombo2
3651
local thingz2=false
3652
3653
spawn(function()
3654
    while wait(0.1) do
3655
        for _,v in pairs(cooldowns) do
3656
            if v.timeleft<0.1 then
3657
               table.remove(cooldowns,_) 
3658
            else
3659
                v.timeleft=v.timeleft-0.1
3660
            end
3661
        end
3662
        if thingz==false then
3663
           oldcombo=combostring
3664
           thingz=true
3665
        else
3666
            if string.len(oldcombo)==string.len(combostring) then
3667
                combostring=[[]]
3668
                oldcombo=[[]]
3669
            end
3670
            thingz=false
3671
        end
3672
    end
3673
end)
3674
3675
spawn(function()
3676
    while wait(0.8) do
3677
        if thingz2==false then
3678
           oldcombo2=rcombostring
3679
           thingz2=true
3680
        else
3681
            if string.len(oldcombo2)==string.len(rcombostring) then
3682
                rcombostring=[[]]
3683
                oldcombo2=[[]]
3684
            end
3685
            thingz2=false
3686
        end
3687
    end
3688
end)
3689
3690
spawn(function()
3691
    while wait(0.3) do
3692
        if run==false then
3693
            local cfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
3694
            cfx.Transparency=1
3695
            local rfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
3696
            rfx.Material='Neon'
3697
            local ran=math.random(2)
3698
            if ran==1 then
3699
               rfx.BrickColor=BrickColor.new('White') 
3700
            end
3701
            local bm=int('SpecialMesh',rfx)--blo(rfx)
3702
            bm.MeshType='FileMesh'
3703
            bm.MeshId=rbx..'9756362'
3704
            bm.Scale=Vector3.new(0.3,0.7,0.3)
3705
            local angls=ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
3706
            addFx(cfx,0.02,'destroy',function() rfx.Transparency=rfx.Transparency+0.02 rfx.CFrame=cfx.CFrame*angls cfx.CFrame=cfx.CFrame*CFrame.new(0,0.1,0) --[[bm.Scale=bm.Scale+Vector3.new(0.02,0.02,0.02)]]  end)
3707
            cfx.CFrame=tor.CFrame*CFrame.new(0,-2,0)*CFrame.new(math.random(-math.random(45/10),math.random(45)/10),0,math.random(-math.random(45)/10,math.random(45)/10))
3708
            rfx.CFrame=cfx.CFrame*angls*CFrame.Angles(math.rad(-90),0,0)
3709
            game.Debris:AddItem(cfx,1.1)
3710
            game.Debris:AddItem(rfx,1.1)
3711
        end
3712
    end
3713
end)
3714
3715
while wait() do
3716
    if mana<maxmana and not deb and not animPlaying then
3717
       mana=mana+2
3718
        if mana==maxmana+1 then
3719
            mana=maxmana   
3720
        end
3721
    end
3722
    if animPlaying==true and runLeg==true then
3723
        walkLegs()
3724
    end
3725
    if run==true and animPlaying==false then
3726
        altTweenTable={}
3727
        tweenTable={}
3728
        if not sprinting then
3729
            if not ascension then
3730
                walkCycle()
3731
            else
3732
                walkCycleBig()
3733
            end
3734
        else
3735
            sprintCycle()
3736
        end
3737
    elseif idle==true and animPlaying==false and not jumping then
3738
        tweenTable={}
3739
        if not ascension then
3740
            reset()
3741
        else
3742
            bigreset()
3743
        end
3744
    end
3745
end