View difference between Paste ID: 0SjxcPwD and iNN75MGe
SHOW: | | - or go back to the newest paste.
1
game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"With this blade forged with the blood of the great one's, you will be cut down!", "Green")
2
wait(2.6)
3
game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Mannitus's Annihilation Blade!", "Red")
4-
Player=game:GetService("Players").LocalPlayer
4+
Player=game:GetService("Players").TheAngryN00B
5
Character=Player.Character
6
PlayerGui=Player.PlayerGui
7
Backpack=Player.Backpack
8
Torso=Character.Torso
9
Head=Character.Head
10
Humanoid=Character.Humanoid
11
print('Player is Eliagable')
12
LeftArm=Character["Left Arm"]
13
LeftLeg=Character["Left Leg"]
14
RightArm=Character["Right Arm"]
15
RightLeg=Character["Right Leg"]
16
LS=Torso["Left Shoulder"]
17
LH=Torso["Left Hip"]
18
RS=Torso["Right Shoulder"]
19
RH=Torso["Right Hip"]
20
Neck=Torso.Neck
21
it=Instance.new
22
vt=Vector3.new
23
cf=CFrame.new
24
euler=CFrame.fromEulerAnglesXYZ
25
angles=CFrame.Angles
26
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
27
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
28
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
29
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
30
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
31
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
32
RootPart=Character.HumanoidRootPart
33
RootJoint=RootPart.RootJoint
34
RootCF=euler(-1.57,0,3.14)
35
attack=false
36
attackdebounce=false
37
MMouse=nil
38
combo=0
39
local Anim="Idle"
40
local Effects={}
41
equipped=false
42
local idle=0
43
local hold=false
44
local con1=nil
45
local con2=nil
46
local Mode="Binary"
47
local idleanim=0
48
local idleanim2=false
49
local impulse=1
50
local hitfloor,posfloor=nil,nil
51
local damcount=0
52
local guard=false
53
--player
54
player=nil
55
--save shoulders
56
RSH, LSH=nil, nil
57
--welds
58
RW, LW=Instance.new("Weld"), Instance.new("Weld")
59
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
60
LH=Torso["Left Hip"]
61
RH=Torso["Right Hip"]
62
Asset="http://www.roblox.com/asset/?id="
63
Health=879000
64
Humanoid.MaxHealth=879000
65
Humanoid.Health=879000
66
coroutine.resume(coroutine.create(function()
67
for i=1,20 do
68
Humanoid.MaxHealth=879000
69
Humanoid.Health=879000
70
end
71
Humanoid.MaxHealth=879000
72
Humanoid.Health=879000
73
Humanoid:TakeDamage(0)
74
Humanoid.Health=Health
75
end))
76
Humanoid.Health=Health
77
 
78
function swait(num)
79
if num==0 or num==nil then
80
game:service'RunService'.RenderStepped:wait()
81
else
82
for i=0,num do
83
game:service'RunService'.RenderStepped:wait()
84
end
85
end
86
end
87
 
88
if Character:findFirstChild("Hades Judgement Blade",true) ~= nil then
89
Character:findFirstChild("Hades Judgement Blade",true).Parent = nil
90
end
91
if Character:findFirstChild("Demon Blade",true) ~= nil then
92
Character:findFirstChild("Demon Blade",true).Parent = nil
93
end
94
if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
95
Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
96
end
97
 
98
 
99
function NoOutline(Part)
100
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
101
end
102
 
103
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
104
local fp=it("Part")
105
fp.formFactor=formfactor
106
fp.Parent=parent
107
fp.Reflectance=reflectance
108
fp.Transparency=transparency
109
fp.CanCollide=false
110
fp.Locked=true
111
fp.BrickColor=brickcolor
112
fp.Name=name
113
fp.Size=size
114
fp.Position=Torso.Position
115
NoOutline(fp)
116
fp.Material="Granite"
117
fp:BreakJoints()
118
return fp
119
end
120
 
121
function mesh(Mesh,part,meshtype,meshid,offset,scale)
122
local mesh=it(Mesh)
123
mesh.Parent=part
124
if Mesh=="SpecialMesh" then
125
mesh.MeshType=meshtype
126
mesh.MeshId=meshid
127
end
128
mesh.Offset=offset
129
mesh.Scale=scale
130
return mesh
131
end
132
 
133
function weld(parent,part0,part1,c0)
134
local weld=it("Weld")
135
weld.Parent=parent
136
weld.Part0=part0
137
weld.Part1=part1
138
weld.C0=c0
139
return weld
140
end
141
 
142
local fengui=it("GuiMain")
143
fengui.Parent=Player.PlayerGui
144
fengui.Name="WeaponGUI"
145
 
146
local Color1=BrickColor.new("Really red")
147
local Color2=BrickColor.new("Black")
148
local Colorr3=BrickColor.new("Black")
149
local Color4=BrickColor.new("Really red")
150
 
151
local model1=Instance.new("Model")
152
model1.Parent=Character
153
model1.Name="Hades Judgement Blade"
154
BSword={}
155
BSwordWelds={}
156
local model2=Instance.new("Model")
157
model2.Parent=nil
158
model2.Name="Demon Blade"
159
DBlade={}
160
DBladeWelds={}
161
 
162
prt1=part(3,model1,0,1,Color1,"Part1",vt())
163
prt2=part(3,model1,0,0,Color2,"Part2",vt())
164
prt3=part(3,model1,0,0,Color2,"Part3",vt())
165
prt4=part(3,model1,0,0,Colorr3,"Part4",vt())
166
prt5=part(3,model1,0,0,Colorr3,"Part5",vt())
167
prt6=part(3,model1,0.7,0,Color4,"Part6",vt())
168
prt7=part(3,model1,0.7,0,Color4,"Part7",vt())
169
prt8=part(3,model1,0.7,0,Color4,"Part8",vt())
170
prt9=part(3,model1,0.7,0,Color4,"Part9",vt())
171
prt10=part(3,model1,0,0,Colorr3,"Part10",vt())
172
prt11=part(3,model1,0,0,Colorr3,"Part11",vt())
173
prt12=part(3,model1,0,0,Colorr3,"Part12",vt())
174
 
175
prtd1=part(3,model2,0,0.4,BrickColor.new("Really red"),"DPart1",vt())
176
prtd2=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart2",vt())
177
prtd3=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart3",vt())
178
prtd4=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart4",vt())
179
prtd5=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart5",vt())
180
prtd6=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart6",vt())
181
prtd7=part(3,model2,0.8,0,BrickColor.new("Really red"),"DPart7",vt())
182
prtd8=part(3,model2,0.8,0,BrickColor.new("Really red"),"DPart8",vt())
183
prtd9=part(3,model2,0.5,0.2,BrickColor.new("Really red"),"DPart9",vt())
184
prtd10=part(3,model2,0.5,0.2,BrickColor.new("Really red"),"DPart10",vt())
185
prtd11=part(3,model2,0.5,0,BrickColor.new("Really red"),"DPart11",vt())
186
prtd12=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart12",vt())
187
for _,c in pairs(model2:children()) do
188
if c.className=="Part" then
189
table.insert(DBlade,c)
190
end
191
end
192
light=it("PointLight")
193
light.Brightness=.8
194
light.Color=Color3.new(255/255,50/255,0)
195
--light.Color=BrickColor.new("Really red")
196
light.Range=10
197
light.Parent=prtd9
198
 
199
msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
200
msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(2,10,2))
201
msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(2.5,2,2.5))
202
msh4=mesh("SpecialMesh",prt4,"Sphere","",vt(0,0,0),vt(3,3,3))
203
msh5=mesh("SpecialMesh",prt5,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,1))
204
msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(.5,20,1))
205
msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(.5,20,1))
206
msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(.5,5,1))
207
msh9=mesh("SpecialMesh",prt9,"Wedge","",vt(0,0,0),vt(.5,5,1))
208
msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(.6,20,0.2))
209
msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
210
msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
211
 
212
mshd1=mesh("BlockMesh",prtd1,"","",vt(0,0,0),vt(5.01,3,5.01))
213
mshd2=mesh("BlockMesh",prtd2,"","",vt(0,0,0),vt(5.1,3,5.1))
214
mshd3=mesh("SpecialMesh",prtd3,"Wedge","",vt(0,0,0),vt(5.05,4,3))
215
mshd4=mesh("SpecialMesh",prtd4,"Wedge","",vt(0,0,0),vt(5.05,4,3))
216
mshd5=mesh("SpecialMesh",prtd5,"Wedge","",vt(0,0,0),vt(5.5,6,6))
217
mshd6=mesh("SpecialMesh",prtd6,"Wedge","",vt(0,0,0),vt(5.5,6,6))
218
mshd7=mesh("BlockMesh",prtd7,"","",vt(0,0,0),vt(3,20,1))
219
mshd8=mesh("SpecialMesh",prtd8,"Wedge","",vt(0,0,0),vt(1,3,5))
220
mshd9=mesh("BlockMesh",prtd9,"","",vt(0,0,0),vt(4.5,20,.1))
221
mshd10=mesh("SpecialMesh",prtd10,"Wedge","",vt(0,0,0),vt(.1,4.5,8))
222
mshd11=mesh("CylinderMesh",prtd11,"","",vt(0,0,0),vt(4,5.8,4))
223
mshd12=mesh("CylinderMesh",prtd12,"","",vt(0,0,0),vt(3,5.9,3))
224
 
225
wld1=weld(prt1,prt1,Torso,euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5))
226
wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
227
wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0))
228
wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-1,0))
229
wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-0.2,0))
230
wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-2,0.1))
231
wld7=weld(prt7,prt7,prt5,euler(0,0,0)*cf(0,-2,-0.1))
232
wld8=weld(prt8,prt8,prt6,euler(0,0,0)*cf(0,-2.5,0))
233
wld9=weld(prt9,prt9,prt7,euler(0,3.14,0)*cf(0,-2.5,0))
234
wld10=weld(prt10,prt10,prt5,euler(0,0,0)*cf(0,-2,0))
235
wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,-2.5,0.01))
236
wld12=weld(prt12,prt12,prt10,euler(0,3.14,0)*cf(0,-2.5,-0.01))
237
 
238
wldd1=weld(prtd1,prtd1,RightArm,euler(0,0,0)*cf(0,.21,0))
239
wldd2=weld(prtd1,prtd2,prtd1,euler(0,0,0)*cf(0,.5,0))
240
wldd3=weld(prtd1,prtd3,prtd2,euler(0,1.57,0)*cf(.21,-.6,0))
241
wldd4=weld(prtd1,prtd4,prtd2,euler(0,-1.57,0)*cf(-.21,-.6,0))
242
wldd5=weld(prtd1,prtd5,prtd2,euler(0,-1.57,0)*cf(.1,-.1,0))
243
wldd6=weld(prtd1,prtd6,prtd5,euler(0,0,3.14)*cf(0,1.2,0))
244
wldd7=weld(prtd1,prtd7,prtd2,euler(0,0,0)*cf(0,2.5,0))
245
wldd8=weld(prtd1,prtd8,prtd7,euler(1.57,1.57,0)*cf(0,2.5,0))
246
wldd9=weld(prtd1,prtd9,prtd7,euler(0,0,0)*cf(0,0,0))
247
wldd10=weld(prtd1,prtd10,prtd8,euler(0,0,0)*cf(0,0,0.3))
248
wldd11=weld(prtd1,prtd11,prtd1,euler(1.57,0,0)*cf(0,1,0))
249
wldd12=weld(prtd1,prtd12,prtd11,euler(0,0,0)*cf(0,0,0))
250
for _,c in pairs(prtd1:children()) do
251
if c.className=="Weld" then
252
table.insert(DBladeWelds,c)
253
print(c)
254
end
255
end
256
 
257
for i=-.9,.9,0.2 do
258
prt13=part(3,model1,0,0,Color1,"Part13",vt())
259
msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(2.2,1,2.2))
260
wld13=weld(prt13,prt13,prt1,euler(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)*cf(0,i,0))
261
end
262
 
263
local hitbox1=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
264
local hitbox2=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
265
 
266
if (script.Parent.className~="HopperBin") then
267
Tool=Instance.new("HopperBin")
268
Tool.Parent=Backpack
269
Tool.Name="Hades Judgement Blade"
270
script.Parent=Tool
271
end
272
Bin=script.Parent
273
--Bin=Tool
274
 
275
local bodvel=Instance.new("BodyVelocity")
276
bodvel.Name="FixerVel"
277
local bg=Instance.new("BodyGyro")
278
bg.Name="FixerGyro"
279
 
280
so = function(id,par,vol,pit)
281
coroutine.resume(coroutine.create(function()
282
local sou = Instance.new("Sound",par or workspace)
283
sou.Parent=par
284
sou.Volume=vol
285
sou.Pitch=pit or 1
286
sou.SoundId=id
287
swait()
288
sou:Play()
289
game:GetService("Debris"):AddItem(sou,6)
290
end))
291
end
292
 
293
function clerp(a,b,t)
294
local qa = {QuaternionFromCFrame(a)}
295
local qb = {QuaternionFromCFrame(b)}
296
local ax, ay, az = a.x, a.y, a.z
297
local bx, by, bz = b.x, b.y, b.z
298
local _t = 1-t
299
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
300
end
301
 
302
function QuaternionFromCFrame(cf)
303
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
304
local trace = m00 + m11 + m22
305
if trace > 0 then
306
local s = math.sqrt(1 + trace)
307
local recip = 0.5/s
308
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
309
else
310
local i = 0
311
if m11 > m00 then
312
i = 1
313
end
314
if m22 > (i == 0 and m00 or m11) then
315
i = 2
316
end
317
if i == 0 then
318
local s = math.sqrt(m00-m11-m22+1)
319
local recip = 0.5/s
320
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
321
elseif i == 1 then
322
local s = math.sqrt(m11-m22-m00+1)
323
local recip = 0.5/s
324
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
325
elseif i == 2 then
326
local s = math.sqrt(m22-m00-m11+1)
327
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
328
end
329
end
330
end
331
 
332
function QuaternionToCFrame(px, py, pz, x, y, z, w)
333
local xs, ys, zs = x + x, y + y, z + z
334
local wx, wy, wz = w*xs, w*ys, w*zs
335
local xx = x*xs
336
local xy = x*ys
337
local xz = x*zs
338
local yy = y*ys
339
local yz = y*zs
340
local zz = z*zs
341
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
342
end
343
 
344
function QuaternionSlerp(a, b, t)
345
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
346
local startInterp, finishInterp;
347
if cosTheta >= 0.0001 then
348
if (1 - cosTheta) > 0.0001 then
349
local theta = math.acos(cosTheta)
350
local invSinTheta = 1/math.sin(theta)
351
startInterp = math.sin((1-t)*theta)*invSinTheta
352
finishInterp = math.sin(t*theta)*invSinTheta  
353
else
354
startInterp = 1-t
355
finishInterp = t
356
end
357
else
358
if (1+cosTheta) > 0.0001 then
359
local theta = math.acos(-cosTheta)
360
local invSinTheta = 1/math.sin(theta)
361
startInterp = math.sin((t-1)*theta)*invSinTheta
362
finishInterp = math.sin(t*theta)*invSinTheta
363
else
364
startInterp = t-1
365
finishInterp = t
366
end
367
end
368
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
369
end
370
 
371
function hideanim()
372
equipped=false
373
attack=true
374
if Mode=="Binary" then
375
so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
376
for i=0,1,0.1 do
377
swait()
378
wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
379
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
380
RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
381
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
382
end
383
wld1.Part1=Torso
384
wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
385
for i=0,1,0.2 do
386
swait()
387
RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(0.5,0,0),.3)
388
end
389
for i=0,1,0.1 do
390
swait()
391
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
392
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
393
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
394
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
395
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
396
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
397
end
398
--wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
399
else
400
for i=0,1,0.1 do
401
swait()
402
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
403
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
404
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.5,0,0),.3)
405
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
406
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
407
LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
408
end
409
so("http://roblox.com/asset/?id=161006163",RightArm,1,.4)
410
so("http://roblox.com/asset/?id=160867463",RightArm,1,1.2)
411
for i=0,1,0.015 do
412
swait()
413
for i=1,3 do
414
if math.random(1,5)==1 then
415
MagicBlock(BrickColor.new("Really Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,0-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
416
else
417
MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
418
end
419
end
420
end
421
model2.Parent=nil
422
for i=0,1,0.1 do
423
swait()
424
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
425
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
426
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
427
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
428
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
429
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
430
end
431
end
432
Torso.Neck.C0=necko
433
Torso.Neck.C1=necko2
434
RootJoint.C0=RootCF
435
RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
436
RW.C1=cf(0,0.5,0)*euler(0,0,0)
437
LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
438
LW.C1=cf(0,0.5,0)*euler(0,0,0)
439
RH.C0=RHC0
440
RH.C1=RHC1
441
LH.C0=LHC0
442
LH.C1=LHC1
443
Mode="Binary"
444
attack=false
445
end
446
 
447
function equipanim()
448
equipped=true
449
attack=true
450
for i=0,1,0.2 do
451
swait()
452
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
453
RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3,0,0),.4)
454
end
455
for i=0,1,0.1 do
456
swait()
457
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.5,0,-0.6),.3)
458
RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
459
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
460
end
461
so("rbxasset://sounds\\unsheath.wav",prt1,1,.6)
462
wld1.Part1=RightArm
463
wld1.C0=euler(.2,0,-.5)*cf(0,1,0)
464
for i=0,1,0.1 do
465
swait()
466
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
467
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-0.5),.3)
468
RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(.5,-0.5,0),.3)
469
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
470
end
471
for i=0,1,0.1 do
472
swait()
473
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
474
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
475
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
476
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1,-0.5,-0.7),.3)
477
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1,-0.5,0.5),.3)
478
end
479
--wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
480
wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
481
Torso.Neck.C0=necko*euler(0,0,0.5)
482
RootJoint.C0=RootCF*euler(0,0,-0.5)
483
RW.C0=cf(1,0.5,-0.5)*euler(1,-0.5,-0.7)
484
RW.C1=cf(0,0.5,0)*euler(0,0,0)
485
LW.C0=cf(-1,0.5,-0.5)*euler(1,-0.5,0.5)
486
LW.C1=cf(0,0.5,0)*euler(0,0,0)
487
attack=false
488
end
489
 
490
function Stomp()
491
Humanoid.WalkSpeed=0
492
Torso.Velocity=RootPart.CFrame.lookVector*0
493
so("http://roblox.com/asset/?id=157878578",Torso,1,0.8)
494
so("http://roblox.com/asset/?id=2760979",Torso,1,0.4)
495
--so("http://roblox.com/asset/?id=2101148",Torso,1,0.6)
496
MagicWave(BrickColor.new("Really red"),cf(Torso.Position)*cf(0,-1,0),1,1,1,1.5,1,1.5,0.05)
497
Dam=math.random(5,10)
498
Humanoid.Health=Humanoid.Health-Dam
499
MagniDamage(Torso,50,50,50,math.random(10000,20000),"Knockdown")
500
--[[for i=0,1,0.2 do
501
swait()
502
if Mode=="Binary" then
503
wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
504
end
505
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
506
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
507
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
508
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
509
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
510
LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
511
end
512
for i=0,1,0.1 do
513
swait()
514
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.6,0,0),.3)
515
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*euler(0,0,0),.3)
516
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.4,1.57,0),.3)
517
LH.C0=clerp(LH.C0,cf(-1.2,-.2,-0.5)*euler(-0.3,-1.3,0),.3)
518
end]]
519
swait(10)
520
Humanoid.WalkSpeed=16
521
end
522
 
523
function attackone()
524
attack=true
525
for i=0,1,0.1 do
526
swait()
527
wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
528
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
529
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
530
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2,-0.5,-0.2),.3)
531
LW.C0=clerp(LW.C0,cf(-.5,0.5,-0.5)*euler(2.5,-0.5,0.8),.3)
532
RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
533
LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
534
end
535
hitbox1.Parent=model1
536
hitbox1.Size=vt(1,5,1)
537
hitbox1.Transparency=1
538
hitbox1.CFrame=prt10.CFrame
539
--con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
540
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
541
so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
542
blcf=nil
543
scfr=nil
544
for i=0,1,0.25 do
545
swait()
546
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
547
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
548
local h = 5
549
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
550
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
551
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
552
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
553
scfr = blcf
554
elseif not scfr then
555
scfr = blcf
556
end
557
hitbox1.CFrame=prt10.CFrame
558
wld1.C0=clerp(wld1.C0,euler(1.8,0,0)*cf(0,1,-0.3),.3)
559
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.3),.3)
560
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3)
561
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.3,-.3),.3)
562
LW.C0=clerp(LW.C0,cf(-0.8,0.2,-0.5)*euler(.5,-0.5,1),.3)
563
end
564
for i=0,1,0.1 do
565
swait()
566
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
567
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
568
local h = 5
569
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
570
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
571
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
572
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
573
scfr = blcf
574
elseif not scfr then
575
scfr = blcf
576
end
577
hitbox1.CFrame=prt10.CFrame
578
wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,-0.3),.3)
579
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.9),.3)
580
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.9),.3)
581
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.8,-.3),.3)
582
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.1,-0.5,.7),.3)
583
end
584
con1:disconnect()
585
hitbox1.Parent=nil
586
attack=false
587
end
588
 
589
function attacktwo()
590
attack=true
591
for i=0,1,0.1 do
592
swait()
593
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
594
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
595
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
596
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
597
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
598
RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
599
LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
600
end
601
hitbox1.Parent=model1
602
hitbox1.Size=vt(1,5,1)
603
hitbox1.Transparency=1
604
hitbox1.CFrame=prt10.CFrame
605
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
606
so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
607
blcf=nil
608
scfr=nil
609
for i=0,1,0.1 do
610
swait()
611
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
612
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
613
local h = 5
614
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
615
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
616
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
617
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
618
scfr = blcf
619
elseif not scfr then
620
scfr = blcf
621
end
622
hitbox1.CFrame=prt10.CFrame
623
wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.3)
624
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
625
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
626
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
627
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
628
end
629
con1:disconnect()
630
hitbox1.Parent=nil
631
attack=false
632
end
633
 
634
function attackthree()
635
attack=true
636
for i=0,1,0.1 do
637
swait()
638
wld1.C0=clerp(wld1.C0,euler(1.57,0,-.785)*cf(0,.8,0),.3)
639
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
640
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
641
RW.C0=clerp(RW.C0,cf(1,1,0)*euler(2.8,0,-.785),.3)
642
LW.C0=clerp(LW.C0,cf(-1,1,0)*euler(2.8,0,.785),.3)
643
RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
644
LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
645
end
646
hitbox1.Parent=model1
647
hitbox1.Size=vt(1,5,1)
648
hitbox1.Transparency=1
649
hitbox1.CFrame=prt10.CFrame
650
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
651
so("http://roblox.com/asset/?id=161006212",prt10,1,.9)
652
blcf=nil
653
scfr=nil
654
for i=0,1,0.25 do
655
swait()
656
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
657
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
658
local h = 5
659
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
660
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
661
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
662
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
663
scfr = blcf
664
elseif not scfr then
665
scfr = blcf
666
end
667
hitbox1.CFrame=prt10.CFrame
668
wld1.C0=clerp(wld1.C0,euler(1.7,0,0)*cf(0,1,0),.4)
669
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-.6),.4)
670
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.4)
671
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.2),.4)
672
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.4)
673
end
674
for i=0,1,0.2 do
675
swait()
676
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
677
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
678
local h = 5
679
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
680
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
681
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
682
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
683
scfr = blcf
684
elseif not scfr then
685
scfr = blcf
686
end
687
hitbox1.CFrame=prt10.CFrame
688
wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,.7,-.3),.4)
689
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-.8),.4)
690
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.4)
691
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,-.4,.4),.4)
692
end
693
con1:disconnect()
694
hitbox1.Parent=nil
695
attack=false
696
end
697
 
698
function SpinSlash()
699
attack=true
700
for i=0,1,0.1 do
701
swait()
702
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
703
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.8),.4)
704
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.2,0,-0.8),.4)
705
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,-1.2,0)*euler(0,0,1),.4)
706
LW.C0=clerp(LW.C0,cf(.1,0.5,-0.8)*euler(1.8,-0.5,1),.4)
707
--RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
708
--LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
709
end
710
hitbox1.Parent=model1
711
hitbox1.Size=vt(1,5,1)
712
hitbox1.Transparency=1
713
hitbox1.CFrame=prt10.CFrame
714
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,15000,math.random(1,5),"Normal",RootPart,.2,1) end)
715
blcf=nil
716
scfr=nil
717
so("http://roblox.com/asset/?id=161006212",prt10,1,.6)
718
repeat
719
hitbox1.Parent=model1
720
hitbox1.Size=vt(1,5,1)
721
hitbox1.Transparency=1
722
hitbox1.CFrame=prt10.CFrame
723
for i=0,1,0.15 do
724
swait()
725
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
726
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
727
local h = 5
728
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
729
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
730
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
731
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
732
scfr = blcf
733
elseif not scfr then
734
scfr = blcf
735
end
736
hitbox1.CFrame=prt10.CFrame
737
wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
738
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.3,0,0),.3)
739
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3),.25)
740
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(-0.5,0,0),.3)
741
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(0.5,0,0),.3)
742
RH.C0=clerp(RH.C0,RHC0,.3)
743
LH.C0=clerp(LH.C0,LHC0,.3)
744
end
745
for i=0,1,0.05 do
746
swait()
747
if i>=0.45 and i<=0.5 then
748
so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
749
end
750
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
751
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
752
local h = 5
753
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
754
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
755
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
756
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
757
scfr = blcf
758
elseif not scfr then
759
scfr = blcf
760
end
761
hitbox1.CFrame=prt10.CFrame
762
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3+6*i),1)
763
end
764
until hold==false
765
con1:disconnect()
766
hitbox1.Parent=nil
767
attack=false
768
end
769
 
770
function BinarySwing()
771
attack=true
772
for i=0,1,0.1 do
773
swait()
774
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
775
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3)
776
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3)
777
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3)
778
LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3)
779
RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3)
780
LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3)
781
end
782
Humanoid.Jump=true
783
bodvol=Instance.new("BodyVelocity")
784
bodvol.Parent=RootPart
785
bodvol.velocity=vt(0,1,0)*100
786
bodvol.P=5000
787
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
788
--Torso.Velocity=vt(0,1,0)*100
789
hitbox1.Parent=model1
790
hitbox1.Size=vt(1,5,1)
791
hitbox1.Transparency=1
792
hitbox1.CFrame=prt10.CFrame
793
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10000,20000),"Normal",RootPart,.2,1) end)
794
so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
795
blcf=nil
796
scfr=nil
797
for i=0,1,0.1 do
798
swait()
799
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
800
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
801
local h = 5
802
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
803
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
804
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
805
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
806
scfr = blcf
807
elseif not scfr then
808
scfr = blcf
809
end
810
hitbox1.CFrame=prt10.CFrame
811
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3)
812
LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3)
813
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
814
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3)
815
RH.C0=clerp(RH.C0,RHC0,.3)
816
LH.C0=clerp(LH.C0,LHC0,.3)
817
end
818
con1:disconnect()
819
hitbox1.Parent=nil
820
bodvol.Parent=nil
821
attack=false
822
end
823
 
824
function BinaryImpulse()
825
attack=true
826
if impulse==1 then
827
impulse=2
828
Humanoid.Jump=true
829
for i=0,1,0.2 do
830
swait()
831
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
832
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
833
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45)
834
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
835
LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
836
RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
837
LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
838
end
839
blcf=nil
840
scfr=nil
841
hitbox1.Parent=model1
842
hitbox1.Size=vt(1,5,1)
843
hitbox1.Transparency=1
844
hitbox1.CFrame=prt10.CFrame
845
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20000,30000,math.random(10,20),"Normal",RootPart,.5,1) end)
846
for i=1,3 do
847
so("http://roblox.com/asset/?id=161006212",prt10,1,1)
848
for i=0,1,0.1 do
849
swait()
850
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
851
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
852
local h = 5
853
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
854
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
855
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
856
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
857
scfr = blcf
858
elseif not scfr then
859
scfr = blcf
860
end
861
hitbox1.CFrame=prt10.CFrame
862
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
863
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
864
RootJoint.C0=RootCF*euler(0,0.5,6.6*i)
865
end
866
end
867
con1:disconnect()
868
hitbox1.Parent=nil
869
elseif impulse==2 then
870
impulse=3
871
Humanoid.Jump=true
872
for i=0,1,0.2 do
873
swait()
874
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
875
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
876
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,-0.5,0),.45)
877
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
878
LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
879
RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
880
LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
881
end
882
blcf=nil
883
scfr=nil
884
hitbox1.Parent=model1
885
hitbox1.Size=vt(1,5,1)
886
hitbox1.Transparency=1
887
hitbox1.CFrame=prt10.CFrame
888
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,20000),"Normal",RootPart,.5,1) end)
889
for i=1,3 do
890
so("http://roblox.com/asset/?id=161006212",prt10,1,1.05)
891
for i=0,1,0.1 do
892
swait()
893
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
894
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
895
local h = 5
896
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
897
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
898
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
899
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
900
scfr = blcf
901
elseif not scfr then
902
scfr = blcf
903
end
904
hitbox1.CFrame=prt10.CFrame
905
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
906
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
907
RootJoint.C0=RootCF*euler(0,-0.5,6.6*i)
908
end
909
end
910
con1:disconnect()
911
hitbox1.Parent=nil
912
elseif impulse==3 then
913
impulse=1
914
for i=0,1,0.2 do
915
swait()
916
wld1.C0=clerp(wld1.C0,euler(1.57,0,-0.785)*cf(0,1,-0.3),.45)
917
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,0),.45)
918
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
919
RW.C0=clerp(RW.C0,cf(1,0.8,-0.5)*euler(3,0,-0.785),.45)
920
LW.C0=clerp(LW.C0,cf(-1,0.8,-0.5)*euler(3,0,0.785),.45)
921
RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
922
LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
923
end
924
Humanoid.Jump=true
925
blcf=nil
926
scfr=nil
927
hitbox1.Parent=model1
928
hitbox1.Size=vt(1,5,1)
929
hitbox1.Transparency=1
930
hitbox1.CFrame=prt10.CFrame
931
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(20000,30000),"Normal",RootPart,.5,1) end)
932
for i=1,3 do
933
so("http://roblox.com/asset/?id=161006195",prt10,1,1)
934
for i=0,1,0.1 do
935
swait()
936
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
937
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
938
local h = 5
939
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
940
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
941
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
942
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
943
scfr = blcf
944
elseif not scfr then
945
scfr = blcf
946
end
947
hitbox1.CFrame=prt10.CFrame
948
wld1.C0=clerp(wld1.C0,euler(2,0,-0.785)*cf(0,1,-0.3),.45)
949
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.45)
950
RW.C0=clerp(RW.C0,cf(1,0.3,-0.5)*euler(.5,0,-0.785),.3)
951
LW.C0=clerp(LW.C0,cf(-1,0.3,-0.5)*euler(.5,0,0.785),.3)
952
RootJoint.C0=RootCF*euler(6.28*i,0,0)
953
end
954
end
955
con1:disconnect()
956
hitbox1.Parent=nil
957
end
958
attack=false
959
end
960
 
961
function Bash()
962
attack=true
963
for i=0,1,0.1 do
964
swait()
965
wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
966
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
967
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
968
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
969
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
970
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
971
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
972
end
973
Torso.Velocity=RootPart.CFrame.lookVector*200
974
so("http://roblox.com/asset/?id=2767090",Torso,1,.7)
975
MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
976
hit=nil
977
for i=1,20 do
978
if hit==nil then
979
swait()
980
end
981
hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
982
end
983
Torso.Velocity=RootPart.CFrame.lookVector*0
984
Humanoid.WalkSpeed=0
985
for i=0,1,0.1 do
986
swait()
987
wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
988
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
989
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
990
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
991
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
992
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
993
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
994
end
995
so("http://roblox.com/asset/?id=161006195",prt10,1,.5)
996
blcf=nil
997
scfr=nil
998
for i=0,1,0.2 do
999
swait()
1000
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
1001
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
1002
local h = 5
1003
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
1004
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1005
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
1006
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1007
scfr = blcf
1008
elseif not scfr then
1009
scfr = blcf
1010
end
1011
wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45)
1012
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45)
1013
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45)
1014
RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45)
1015
LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45)
1016
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.45)
1017
LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.45)
1018
end
1019
hit,pos=rayCast(prt10.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
1020
if hit~=nil then
1021
local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
1022
ref.Anchored=true
1023
ref.CFrame=cf(pos)
1024
game:GetService("Debris"):AddItem(ref,3)
1025
for i=1,10 do
1026
Col=hit.BrickColor
1027
local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
1028
groundpart.Anchored=true
1029
groundpart.Material=hit.Material
1030
groundpart.CanCollide=true
1031
groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1032
game:GetService("Debris"):AddItem(groundpart,5)
1033
end
1034
so("http://roblox.com/asset/?id=157878578",ref,.6,1.2)
1035
MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
1036
MagniDamage(ref,50,50,50,math.random(10000,20000),"Knockdown")
1037
end
1038
swait(50)
1039
Humanoid.WalkSpeed=16
1040
attack=false
1041
end
1042
 
1043
function UnleashTheDemon()
1044
game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Now you're in for a show, you'll be sent to the abyss when i'm done!", "Green")
1045
wait(2.6)
1046
game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Mannitus's Voiding Blade!", "Red")
1047
attack=true
1048
so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
1049
for i=0,1,0.1 do
1050
swait()
1051
wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
1052
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
1053
RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
1054
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
1055
RH.C0=clerp(RH.C0,RHC0,.4)
1056
LH.C0=clerp(LH.C0,LHC0,.4)
1057
end
1058
wld1.Part1=Torso
1059
wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
1060
for i=0,1,0.1 do
1061
swait()
1062
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
1063
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-0.4),.3)
1064
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,0),.3)
1065
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.4,-1.57,0)*euler(1.2,0,0),.3)
1066
end
1067
so("http://roblox.com/asset/?id=178452217",RightArm,.5,.4)
1068
so("http://roblox.com/asset/?id=168586586",RightArm,.5,.6)
1069
so("http://roblox.com/asset/?id=160740121",RightArm,1,.8)
1070
num=0
1071
for i=0,1,0.01 do
1072
swait()
1073
if num>=10 then
1074
num=0
1075
MagicWave(BrickColor.new("Really Really black"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
1076
end
1077
for i=1,2 do
1078
if math.random(1,5)==1 then
1079
MagicBlock(BrickColor.new("Really Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
1080
else
1081
MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
1082
end
1083
end
1084
num=num+1
1085
end
1086
so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
1087
so("http://roblox.com/asset/?id=160867463",RightArm,1,.8)
1088
for i=1,4 do
1089
MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(0,-.5-math.random(0,500)/100,0),2,2,2,.5,.5,.5,0.05)
1090
end
1091
MagicWave(BrickColor.new("Really red"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,.5,.3,.5,0.01)
1092
Mode="Demon"
1093
model2.Parent=Character
1094
for i=1,#DBlade do
1095
DBlade[i].Parent=model2
1096
DBladeWelds[i].Parent=DBlade[1]
1097
end
1098
for i=0,1,0.1 do
1099
swait()
1100
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.4),.3)
1101
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
1102
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,-0.5,1),.3)
1103
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0.5,-1.3),.3)
1104
end
1105
swait(50)
1106
attack=false
1107
end
1108
 
1109
function Demonattackone()
1110
attack=true
1111
--[[
1112
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
1113
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
1114
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1,0,0),.3)
1115
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
1116
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
1117
LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
1118
]]
1119
for i=0,1,0.1 do
1120
swait()
1121
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-1),.3)
1122
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
1123
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.3,0,.5),.3)
1124
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.7,0,-0.7),.3)
1125
RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(-.3,1.57,0)*euler(0,.5,0),.3)
1126
LH.C0=clerp(LH.C0,cf(-1,-.3,0)*euler(0.5,-.8,0)*euler(-.5,0,0),.3)
1127
end
1128
hitbox2.Parent=model2
1129
hitbox2.Size=vt(1,6,1)
1130
hitbox2.Transparency=1
1131
hitbox2.CFrame=prtd7.CFrame
1132
con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
1133
so("http://roblox.com/asset/?id=28144425",prtd7,1,.7)
1134
blcf=nil
1135
scfr=nil
1136
for i=0,1,0.08 do
1137
swait()
1138
local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
1139
if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
1140
local h = 5
1141
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
1142
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1143
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
1144
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1145
scfr = blcf
1146
elseif not scfr then
1147
scfr = blcf
1148
end
1149
hitbox2.CFrame=prtd7.CFrame
1150
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,1),.3)
1151
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
1152
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-0.5,1)*euler(1.3,0,-1.7),.3)
1153
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
1154
RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.3,1.57,0)*euler(0,-1,0),.3)
1155
LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.3,-2.3,0)*euler(0,0,0),.3)
1156
end
1157
con1:disconnect()
1158
hitbox2.Parent=nil
1159
attack=false
1160
end
1161
 
1162
function Demonattacktwo()
1163
attack=true
1164
for i=0,1,0.1 do
1165
swait()
1166
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,1.2),.3)
1167
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
1168
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.2,.6)*euler(1.1,0,-1.7),.3)
1169
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
1170
RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.1,1.57,0)*euler(0,-1,0),.3)
1171
LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.1,-2.3,0)*euler(0,0,0),.3)
1172
end
1173
hitbox2.Parent=model2
1174
hitbox2.Size=vt(1,6,1)
1175
hitbox2.Transparency=1
1176
hitbox2.CFrame=prtd7.CFrame
1177
con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
1178
so("http://roblox.com/asset/?id=28144425",prtd7,1,.5)
1179
blcf=nil
1180
scfr=nil
1181
for i=0,1,0.1 do
1182
swait()
1183
local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
1184
if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
1185
local h = 5
1186
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
1187
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1188
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
1189
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1190
scfr = blcf
1191
elseif not scfr then
1192
scfr = blcf
1193
end
1194
hitbox2.CFrame=prtd7.CFrame
1195
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,-0.8),.3)
1196
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
1197
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-.8,.6)*euler(0.5,0,.5),.3)
1198
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
1199
RH.C0=clerp(RH.C0,cf(1,-.8,-0.3)*euler(-0.2,1.57,0),.3)
1200
LH.C0=clerp(LH.C0,cf(-1,-.6,-0.2)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
1201
end
1202
con1:disconnect()
1203
hitbox2.Parent=nil
1204
attack=false
1205
end
1206
 
1207
function Demonattackthree()
1208
attack=true
1209
for i=0,1,0.1 do
1210
swait()
1211
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.1,0,-0.2),.3)
1212
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
1213
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.9,-1.8,0)*euler(.5,0,0),.3)
1214
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
1215
RH.C0=clerp(RH.C0,cf(1,-.7,-.3)*euler(-0.2,1.57,0),.3)
1216
LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
1217
end
1218
Humanoid.WalkSpeed=0
1219
hitbox2.Parent=model2
1220
hitbox2.Size=vt(1,6,1)
1221
hitbox2.Transparency=1
1222
hitbox2.CFrame=prtd7.CFrame
1223
con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
1224
so("http://roblox.com/asset/?id=28144425",prtd7,1,.6)
1225
blcf=nil
1226
scfr=nil
1227
for i=0,1,0.15 do
1228
swait()
1229
local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
1230
if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
1231
local h = 5
1232
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
1233
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1234
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
1235
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1236
scfr = blcf
1237
elseif not scfr then
1238
scfr = blcf
1239
end
1240
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,0.6),.4)
1241
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-0.6),.4)
1242
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.55,-1.5,0)*euler(.3,0,0),.4)
1243
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.4)
1244
RH.C0=clerp(RH.C0,cf(1,-.1,-.4)*euler(0.4,1.57,0)*euler(-.2,0,0),.4)
1245
LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(-0.2,-1.2,0)*euler(-.2,0,0),.4)
1246
if i==0.6 then
1247
hit,pos=rayCast(prtd8.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
1248
if hit~=nil then
1249
local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
1250
ref.Anchored=true
1251
ref.CFrame=cf(pos)
1252
game:GetService("Debris"):AddItem(ref,3)
1253
for i=1,5 do
1254
Col=hit.BrickColor
1255
local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
1256
groundpart.Anchored=true
1257
groundpart.Material=hit.Material
1258
groundpart.CanCollide=true
1259
groundpart.CFrame=cf(pos)*cf(math.random(-200,200)/100,0,math.random(-200,200)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1260
game:GetService("Debris"):AddItem(groundpart,3)
1261
end
1262
so("http://roblox.com/asset/?id=157878578",ref,.6,1.5)
1263
MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
1264
MagniDamage(ref,50,50,50,math.random(10000,20000),"Normal")
1265
end
1266
end
1267
end
1268
con1:disconnect()
1269
hitbox2.Parent=nil
1270
swait(10)
1271
Humanoid.WalkSpeed=16
1272
attack=false
1273
end
1274
 
1275
function LetItBuild()
1276
attack=true
1277
for i=0,1,0.1 do
1278
swait()
1279
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.2,0,-1),.3)
1280
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1),.3)
1281
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.6,0,.4),.3)
1282
LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
1283
RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
1284
LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
1285
end
1286
local num=0
1287
local magik=0
1288
local num2=0
1289
while holdx==true do
1290
swait()
1291
if magik<25 then
1292
if num>=10 then
1293
Humanoid:TakeDamage(0)
1294
pos1=Torso.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
1295
pos2=prtd8.Position--+vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
1296
Lightning(pos1,pos2,5,3,"Really red",.1,.5,.5)
1297
MagicCircle(BrickColor.new("Really red"),cf(pos1),5,5,5,1,1,1,.1)
1298
MagicBlood(BrickColor.new("Really red"),Torso.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
1299
so("http://www.roblox.com/asset/?id=178452221",Torso,.1,1.5)
1300
magik=magik+1
1301
num=0
1302
end
1303
end
1304
num=num+1
1305
num2=num2+magik
1306
if num2>=50 then
1307
MagicBlood(BrickColor.new("Really Really black"),cf(prtd8.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,1,.1,0.1)
1308
num2=0
1309
end
1310
--MagicBlock(BrickColor.new("Really red"),cf(prtd8.Position)*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),magik/5,magik/5,magik/5,magik/8,magik/8,magik/8,.1)
1311
end
1312
Torso.Velocity=RootPart.CFrame.lookVector*(10*magik)
1313
blcf=nil
1314
scfr=nil
1315
hitbox2.Parent=model2
1316
hitbox2.Size=vt(1,6,1)
1317
hitbox2.Transparency=1
1318
hitbox2.CFrame=prtd7.CFrame
1319
con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,math.ceil((200000/200000)),magik,1,"Lifesteal",RootPart,.5,1) end)
1320
for i=1,3 do
1321
so("http://roblox.com/asset/?id=28144425",prtd7,1,1)
1322
for i=0,1,0.1 do
1323
swait()
1324
hitbox2.CFrame=prtd7.CFrame
1325
local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
1326
if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
1327
local h = 5
1328
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
1329
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1330
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
1331
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1332
scfr = blcf
1333
elseif not scfr then
1334
scfr = blcf
1335
end
1336
RootJoint.C0=RootCF*cf(0,0,-0.8)*euler(0,0,6.28*i)*euler(0.2,0,-1)
1337
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.4,0,0),.3)
1338
LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
1339
RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
1340
LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
1341
end
1342
end
1343
con1:disconnect()
1344
hitbox2.Parent=nil
1345
attack=false
1346
end
1347
 
1348
function YourMoveCreep()
1349
attack=true
1350
local pers=nil
1351
for i=0,1,0.1 do
1352
swait()
1353
cost=Humanoid.Health-0
1354
Humanoid:TakeDamage(0)
1355
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
1356
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
1357
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
1358
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
1359
RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
1360
LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
1361
end
1362
local blockprt=part(3,Character,0,1,BrickColor.new("Really Really black"),"Block",vt(8,.1,8))
1363
blockprt.Anchored=true
1364
blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
1365
conbl=blockprt.Touched:connect(function(hit)
1366
if hit.Parent.Parent:findFirstChild("Torso")~=nil then
1367
hit=hit.Parent.Parent.Torso
1368
end
1369
if hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character and guard==true then
1370
pers=hit
1371
print("HIT")
1372
guard=false
1373
end
1374
end)
1375
num=0
1376
while guard==true do
1377
swait()
1378
if num>10 then
1379
num=0
1380
MagicBlock(BrickColor.new("Really red"),LeftArm.CFrame*cf(0,-1,0),1,1,1,.7,.7,.7,0.05)
1381
MagicCircle(BrickColor.new("Really Really black"),LeftArm.CFrame*cf(0,-1,0),1,.1,1,6,0,6,0.1)
1382
end
1383
blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
1384
num=num+1
1385
end
1386
conbl:disconnect()
1387
blockprt.Parent=nil
1388
print(pers)
1389
if pers~=nil then
1390
for i=0,1,0.1 do
1391
swait()
1392
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
1393
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
1394
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
1395
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
1396
RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
1397
LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
1398
end
1399
swait(200)
1400
end
1401
attack=false
1402
end
1403
 
1404
function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
1405
for _,c in pairs(workspace:children()) do
1406
local hum=c:findFirstChild("Humanoid")
1407
if hum~=nil then
1408
local head=c:findFirstChild("Torso")
1409
if head~=nil then
1410
local targ=head.Position-Part.Position
1411
local mag=targ.magnitude
1412
if mag<=magni and c.Name~=Player.Name then
1413
Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,nil,1)
1414
end
1415
end
1416
end
1417
end
1418
end
1419
 
1420
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1421
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
1422
end
1423
 
1424
local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
1425
LastPoint=Point
1426
function effect(Color,Ref,LP,P1,returnn)
1427
local effectsmsh=Instance.new("CylinderMesh")
1428
effectsmsh.Scale=Vector3.new(0.2,1,0.2)
1429
effectsmsh.Name="Mesh"
1430
local effectsg=Instance.new("Part")
1431
effectsg.formFactor=3
1432
effectsg.CanCollide=false
1433
effectsg.Name="Eff"
1434
effectsg.Locked=true
1435
effectsg.Anchored=true
1436
effectsg.Size=Vector3.new(0.5,1,0.5)
1437
effectsg.Parent=workspace
1438
effectsmsh.Parent=effectsg
1439
effectsg.BrickColor=BrickColor.new(Color)
1440
effectsg.Reflectance=Ref
1441
local point1=P1
1442
local mg=(LP.p - point1.p).magnitude
1443
effectsg.Size=Vector3.new(0.5,mg,0.5)
1444
effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
1445
effectsmsh.Scale=Vector3.new(0.2,1,0.2)
1446
game:GetService("Debris"):AddItem(effectsg,2)
1447
if returnn then return effectsg end
1448
coroutine.resume(coroutine.create(function(Part,Mesh)
1449
if not returnn then
1450
for i=0,1,0.05 do
1451
wait()
1452
Part.Transparency=1*i
1453
Mesh.Scale=Vector3.new(0.5-0.5*i,1,0.5-0.5*i)
1454
end
1455
Part.Parent=nil
1456
end
1457
end),effectsg,effectsmsh)
1458
end
1459
 
1460
local function CFrameFromTopBack(at, top, back)
1461
local right = top:Cross(back)
1462
return CFrame.new(at.x, at.y, at.z,
1463
right.x, top.x, back.x,
1464
right.y, top.y, back.y,
1465
right.z, top.z, back.z)
1466
end
1467
 
1468
function Triangle(a, b, c)
1469
local edg1 = (c-a):Dot((b-a).unit)
1470
local edg2 = (a-b):Dot((c-b).unit)
1471
local edg3 = (b-c):Dot((a-c).unit)
1472
if edg1 <= (b-a).magnitude and edg1 >= 0 then
1473
a, b, c = a, b, c
1474
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1475
a, b, c = b, c, a
1476
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1477
a, b, c = c, a, b
1478
else
1479
assert(false, "unreachable")
1480
end
1481
 
1482
local len1 = (c-a):Dot((b-a).unit)
1483
local len2 = (b-a).magnitude - len1
1484
local width = (a + (b-a).unit*len1 - c).magnitude
1485
 
1486
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1487
 
1488
local list = {}
1489
1490
if len2 > 0.01 then
1491
end
1492
return unpack(list)
1493
end
1494
 --[[
1495
Things for effects
1496
put the variables in one table
1497
like effect={brick,interval,i}
1498
]]
1499
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1500
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
1501
prt.Anchored=true
1502
prt.CFrame=cframe
1503
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1504
game:GetService("Debris"):AddItem(prt,5)
1505
table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
1506
--[[coroutine.resume(coroutine.create(function(Part,Mesh,dur)
1507
for i=0,1,delay do
1508
wait()
1509
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1510
Part.Transparency=i
1511
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1512
end
1513
Part.Parent=nil
1514
end),prt,msh)]]
1515
end
1516
 
1517
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1518
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
1519
prt.Anchored=true
1520
prt.CFrame=cframe
1521
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1522
game:GetService("Debris"):AddItem(prt,5)
1523
table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
1524
--[[coroutine.resume(coroutine.create(function(Part,Mesh)
1525
local wld=nil
1526
for i=0,1,delay do
1527
wait()
1528
Part.CFrame=Part.CFrame
1529
Part.Transparency=i
1530
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1531
end
1532
Part.Parent=nil
1533
end),prt,msh)]]
1534
end
1535
 
1536
function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1537
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
1538
prt.Anchored=true
1539
prt.CFrame=cframe
1540
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
1541
game:GetService("Debris"):AddItem(prt,5)
1542
table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
1543
end
1544
 
1545
function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1546
local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
1547
prt.Anchored=true
1548
prt.CFrame=cframe
1549
msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
1550
game:GetService("Debris"):AddItem(prt,5)
1551
--table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
1552
Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
1553
--[[coroutine.resume(coroutine.create(function(Part,Mesh)
1554
for i=0,1,delay do
1555
wait()
1556
Part.CFrame=Part.CFrame
1557
Part.Transparency=i
1558
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1559
end
1560
Part.Parent=nil
1561
end),prt,msh)]]
1562
end
1563
 
1564
function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1565
local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
1566
prt.Anchored=true
1567
prt.CFrame=cframe
1568
msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1569
game:GetService("Debris"):AddItem(prt,5)
1570
--table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
1571
Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
1572
--[[coroutine.resume(coroutine.create(function(Part,Mesh)
1573
for i=0,1,delay do
1574
wait()
1575
Part.CFrame=Part.CFrame
1576
Part.Transparency=i
1577
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1578
end
1579
Part.Parent=nil
1580
end),prt,msh)]]
1581
end
1582
 
1583
function MagicBlood(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1584
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
1585
prt.Anchored=true
1586
prt.CFrame=cframe
1587
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1588
game:GetService("Debris"):AddItem(prt,5)
1589
table.insert(Effects,{prt,"Blood",delay,x3,y3,z3})
1590
end
1591
 
1592
function ElecEffect(cff,x,y,z)
1593
local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Part",vt(1,1,1))
1594
prt.Anchored=true
1595
prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
1596
prt.CFrame=cf(prt.Position)
1597
--prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
1598
game:GetService("Debris"):AddItem(prt,2)
1599
xval=math.random()/2
1600
yval=math.random()/2
1601
zval=math.random()/2
1602
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
1603
Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay
1604
end
1605
 
1606
function Lightning(p0,p1,tym,ofs,col,th,tra,last)
1607
--[[p0=pos1
1608
p1=pos2
1609
tym=times
1610
ofs=offset
1611
col=color
1612
th=size
1613
tra=transparency
1614
last=lastingtime]]
1615
local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
1616
for i=1,tym do
1617
local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true  li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
1618
li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
1619
local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
1620
if tym == i then
1621
local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
1622
li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
1623
else
1624
li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
1625
end
1626
curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
1627
end
1628
end
1629
 
1630
Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
1631
        if hit.Parent==nil then
1632
                return
1633
        end
1634
        h=hit.Parent:FindFirstChild("Humanoid")
1635
        for _,v in pairs(hit.Parent:children()) do
1636
        if v:IsA("Humanoid") then
1637
        h=v
1638
        end
1639
        end
1640
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
1641
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
1642
        end
1643
        if hit.Parent.className=="Hat" then
1644
        hit=hit.Parent.Parent:findFirstChild("Head")
1645
        end
1646
        -- and hit.Parent~=CannonTarget.Parent or hit.Parent~=RailgunTarget.Parent
1647
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
1648
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
1649
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
1650
                        return
1651
                end]]
1652
--                        hs(hit,1.2)
1653
                        so("http://www.roblox.com/asset/?id=10209590",hit,1,math.random(50,100)/100)
1654
                        --so("rbxasset://sounds\\unsheath.wav",hit,1,math.random(200,250)/100)
1655
                        c=Instance.new("ObjectValue")
1656
                        c.Name="creator"
1657
                        c.Value=game:service("Players").LocalPlayer
1658
                        c.Parent=h
1659
                        game:GetService("Debris"):AddItem(c,.5)
1660
                Damage=math.random(minim,maxim)
1661
                if Mode=="Demon" then
1662
                Damage=Damage+damcount
1663
                end
1664
--                h:TakeDamage()
1665
                blocked=false
1666
                block=hit.Parent:findFirstChild("Block")
1667
                if block~=nil then
1668
                print(block.className)
1669
                if block.className=="NumberValue" then
1670
                if block.Value>0 then
1671
                blocked=true
1672
                if decreaseblock==nil then
1673
                block.Value=block.Value-1
1674
                end
1675
                end
1676
                end
1677
                if block.className=="IntValue" then
1678
                if block.Value>0 then
1679
                blocked=true
1680
                if decreaseblock~=nil then
1681
                block.Value=block.Value-1
1682
                end
1683
                end
1684
                end
1685
                end
1686
                if blocked==false then
1687
--                h:TakeDamage(Damage)
1688
                h.Health=h.Health-Damage
1689
                else
1690
                h.Health=h.Health-(Damage/0)
1691
                end
1692
                if Type=="Knockdown" then
1693
                hum=hit.Parent.Humanoid
1694
hum.PlatformStand=true
1695
coroutine.resume(coroutine.create(function(HHumanoid)
1696
swait(1)
1697
HHumanoid.PlatformStand=false
1698
end),hum)
1699
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
1700
--hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
1701
local bodvol=Instance.new("BodyVelocity")
1702
bodvol.velocity=angle*knockback
1703
bodvol.P=5000
1704
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
1705
bodvol.Parent=hit
1706
rl=Instance.new("BodyAngularVelocity")
1707
rl.P=3000
1708
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1709
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1710
rl.Parent=hit
1711
game:GetService("Debris"):AddItem(bodvol,.5)
1712
game:GetService("Debris"):AddItem(rl,.5)
1713
                elseif Type=="Normal" then
1714
                vp=Instance.new("BodyVelocity")
1715
                vp.P=500
1716
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
1717
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
1718
                if KnockbackType==1 then
1719
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/100
1720
                elseif KnockbackType==2 then
1721
                vp.velocity=Property.CFrame.lookVector*knockback
1722
                end
1723
                if knockback>-100 then
1724
                        vp.Parent=hit.Parent.Torso
1725
                end
1726
                game:GetService("Debris"):AddItem(vp,.5)
1727
                elseif Type=="Lifesteal" then
1728
                for i=1,5 do
1729
                MagicBlood(BrickColor.new("Really red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
1730
                end
1731
                vp=Instance.new("BodyVelocity")
1732
                vp.P=500
1733
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
1734
                if KnockbackType==1 then
1735
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/250
1736
                elseif KnockbackType==2 then
1737
                vp.velocity=Property.CFrame.lookVector*knockback
1738
                end
1739
                if knockback>-250 then
1740
                        vp.Parent=hit.Parent.Torso
1741
                end
1742
                game:GetService("Debris"):AddItem(vp,.5)
1743
                Heal=math.ceil(Damage/25100)
1744
                Humanoid.Health=Humanoid.Health+Heal
1745
                elseif Type=="Up" then
1746
                local bodyVelocity=Instance.new("BodyVelocity")
1747
                bodyVelocity.velocity=vt(0,30,0)
1748
                bodyVelocity.P=5000
1749
                bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
1750
                bodyVelocity.Parent=hit
1751
                game:GetService("Debris"):AddItem(bodyVelocity,1)
1752
                rl=Instance.new("BodyAngularVelocity")
1753
                rl.P=3000
1754
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1755
                rl.angularvelocity=Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
1756
                rl.Parent=hit
1757
                game:GetService("Debris"):AddItem(rl,.5)
1758
                elseif Type=="Snare" then
1759
                bp=Instance.new("BodyPosition")
1760
                bp.P=2000
1761
                bp.D=100
1762
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
1763
                bp.position=hit.Parent.Torso.Position
1764
                bp.Parent=hit.Parent.Torso
1765
                game:GetService("Debris"):AddItem(bp,1)
1766
                elseif Type=="Charge" then
1767
                Charge=Charge+1
1768
                coroutine.resume(coroutine.create(function(Part)
1769
                swait(30)
1770
                for i=1,5 do
1771
                swait(5)
1772
                so("rbxasset://sounds\\unsheath.wav",hit,1,2)
1773
                MagicCircle(BrickColor.new("Bright red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,2,.1,.2,8,.1,0.05)
1774
                newdam=math.random(1,5)
1775
                if blocked==false then
1776
                h:TakeDamage()
1777
                else
1778
                h:TakeDamage(newdam/0)
1779
                end
1780
                end
1781
                end),hit)
1782
                end
1783
                        debounce=Instance.new("BoolValue")
1784
                        debounce.Name="DebounceHit"
1785
                        debounce.Parent=hit.Parent
1786
                        debounce.Value=true
1787
                        game:GetService("Debris"):AddItem(debounce,Delay)
1788
                        c=Instance.new("ObjectValue")
1789
                        c.Name="creator"
1790
                        c.Value=Player
1791
                        c.Parent=h
1792
                        game:GetService("Debris"):AddItem(c,.5)
1793
                CRIT=false
1794
                hitDeb=true
1795
                AttackPos=6
1796
        end
1797
end
1798
 
1799
showDamage=function(Char,Dealt,du,Color)
1800
        m=Instance.new("Model")
1801
        m.Name=tostring(Dealt)
1802
        h=Instance.new("Humanoid")
1803
        h.Health=0
1804
        h.MaxHealth=0
1805
        h.Parent=m
1806
        c=Instance.new("Part")
1807
        c.Transparency=1
1808
        c.BrickColor=Color
1809
        c.Name="Head"
1810
        c.TopSurface=0
1811
        c.BottomSurface=0
1812
        c.formFactor="Plate"
1813
        c.Size=Vector3.new(1,.4,1)
1814
        ms=Instance.new("CylinderMesh")
1815
        ms.Scale=Vector3.new(.8,.8,.8)
1816
        if CRIT==true then
1817
                ms.Scale=Vector3.new(1,1.25,1)
1818
        end
1819
        ms.Parent=c
1820
        c.Reflectance=0
1821
        Instance.new("BodyGyro").Parent=c
1822
        c.Parent=m
1823
        if Char:findFirstChild("Head")~=nil then
1824
        c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
1825
        elseif Char.Parent:findFirstChild("Head")~=nil then
1826
        c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
1827
        end
1828
        f=Instance.new("BodyPosition")
1829
        f.P=2000
1830
        f.D=100
1831
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
1832
        f.position=c.Position+Vector3.new(0,3,0)
1833
        f.Parent=c
1834
        game:GetService("Debris"):AddItem(m,.5+du)
1835
        c.CanCollide=false
1836
        m.Parent=workspace
1837
        c.CanCollide=false
1838
end
1839
 
1840
combo=0
1841
function ob1d(mouse)
1842
hold=true
1843
if attack==true or equipped==false then return end
1844
if Mode=="Binary" then
1845
idle=0
1846
if Anim=="Run" then
1847
SpinSlash()
1848
else
1849
if combo==0 then
1850
combo=1
1851
attackone()
1852
elseif combo==1 then
1853
combo=2
1854
attacktwo()
1855
elseif combo==2 then
1856
combo=0
1857
attackthree()
1858
end
1859
end
1860
else
1861
if combo==0 then
1862
combo=1
1863
Demonattackone()
1864
elseif combo==1 then
1865
combo=2
1866
Demonattacktwo()
1867
elseif combo==2 then
1868
combo=0
1869
Demonattackthree()
1870
end
1871
end
1872
coroutine.resume(coroutine.create(function()
1873
for i=1,20 do
1874
if attack==false then
1875
swait()
1876
end
1877
end
1878
if attack==false then
1879
combo=0
1880
--equipanim()
1881
end
1882
end))
1883
end
1884
 
1885
function ob1u(mouse)
1886
hold = false
1887
end
1888
 
1889
buttonhold = false
1890
 
1891
eul=0
1892
holdx=false
1893
equipped=false
1894
function key(key)
1895
if key=="c" then
1896
if guard==true then
1897
guard=false
1898
else
1899
guard=true
1900
end
1901
end
1902
if key=="x" then
1903
holdx=true
1904
end
1905
if attack==true then return end
1906
if key=="f" then
1907
if equipped==false then
1908
equipped=true
1909
RSH=ch.Torso["Right Shoulder"]
1910
LSH=ch.Torso["Left Shoulder"]
1911
--
1912
RSH.Parent=nil
1913
LSH.Parent=nil
1914
--
1915
RW.Name="Right Shoulder"
1916
RW.Part0=ch.Torso
1917
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
1918
RW.C1=cf(0, 0.5, 0)
1919
RW.Part1=ch["Right Arm"]
1920
RW.Parent=ch.Torso
1921
--
1922
LW.Name="Left Shoulder"
1923
LW.Part0=ch.Torso
1924
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
1925
LW.C1=cf(0, 0.5, 0)
1926
LW.Part1=ch["Left Arm"]
1927
LW.Parent=ch.Torso
1928
--
1929
equipanim()
1930
else
1931
equipped=false
1932
hideanim()
1933
swait(0)
1934
RW.Parent=nil
1935
LW.Parent=nil
1936
RSH.Parent=player.Character.Torso
1937
LSH.Parent=player.Character.Torso
1938
end
1939
end
1940
if equipped==false then return end
1941
if Mode=="Binary" then
1942
if key=="q" then
1943
idle=500
1944
end
1945
if key=="z" and hitfloor~=nil then
1946
BinarySwing()
1947
end
1948
if key=="x" then
1949
BinaryImpulse()
1950
end
1951
if key=="c" then
1952
Bash()
1953
end
1954
if key=="v" then
1955
UnleashTheDemon()
1956
end
1957
end
1958
if Mode=="Demon" then
1959
if key=="x" then
1960
LetItBuild()
1961
end
1962
if key=="c" then
1963
YourMoveCreep()
1964
end
1965
end
1966
if key=="0" then
1967
Humanoid.WalkSpeed=(180)
1968
end
1969
end
1970
 
1971
function key2(key)
1972
if key=="0" then
1973
Humanoid.WalkSpeed=16
1974
end
1975
if key=="x" then
1976
holdx=false
1977
end
1978
end
1979
 
1980
function s(mouse)
1981
mouse.Button1Down:connect(function() ob1d(mouse) end)
1982
mouse.Button1Up:connect(function() ob1u(mouse) end)
1983
mouse.KeyDown:connect(key)
1984
mouse.KeyUp:connect(key2)
1985
 
1986
player=Player
1987
ch=Character
1988
MMouse=mouse
1989
end
1990
 
1991
function ds(mouse)
1992
end
1993
 
1994
Bin.Selected:connect(s)
1995
Bin.Deselected:connect(ds)
1996
print("Fixer the Demon Mercenary loaded.")
1997
 
1998
local thenum=0
1999
while true do
2000
swait()
2001
if Mode=="Demon" then
2002
if thenum>=5 then
2003
ElecEffect(prtd7.CFrame,2,4,2)
2004
thenum=0
2005
end
2006
thenum=thenum+1
2007
for _,c in pairs(Character:children()) do
2008
for _,v in pairs(c:children()) do
2009
if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
2010
if v.Name~="FixerVel" and v.Name~="FixerGyro" then
2011
v.Parent=nil
2012
end
2013
end
2014
end
2015
end
2016
end
2017
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
2018
local velderp=RootPart.Velocity.y
2019
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
2020
if equipped==true then
2021
if Anim=="Idle" and attack==false and Mode=="Binary" then
2022
idle=idle+1
2023
else
2024
idle=0
2025
end
2026
if idleanim>=0.3 then
2027
idleanim2=true
2028
elseif idleanim<=0 then
2029
idleanim2=false
2030
end
2031
if idleanim2==false then
2032
if Anim=="Walk" then
2033
idleanim=idleanim+0.005
2034
elseif Anim=="Idle" then
2035
idleanim=idleanim+0.003
2036
end
2037
else
2038
if Anim=="Walk" then
2039
idleanim=idleanim-0.005
2040
elseif Anim=="Idle" then
2041
idleanim=idleanim-0.003
2042
end
2043
end
2044
if RootPart.Velocity.y > 1 and hitfloor==nil then
2045
Anim="Jump"
2046
if attack==false and Mode=="Binary" then
2047
wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
2048
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,-0.2),.3)
2049
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
2050
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
2051
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
2052
RH.C0=clerp(RH.C0,cf(1,-0.5,-1)*euler(-0.5,1.57,0),.2)
2053
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.7,-1.57,0),.2)
2054
end
2055
if attack==false and Mode=="Demon" then
2056
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
2057
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
2058
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,.8)*euler(.1,0,0),.3)
2059
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
2060
RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(0.1,1.57,0),.3)
2061
LH.C0=clerp(LH.C0,cf(-1,-.3,-.2)*euler(0.4,-1.57,0)*euler(0,0,0),.3)
2062
end
2063
elseif RootPart.Velocity.y < -1 and hitfloor==nil then
2064
Anim="Fall"
2065
if attack==false and Mode=="Binary" then
2066
wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
2067
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.6,0,-0.2),.3)
2068
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
2069
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
2070
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
2071
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
2072
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
2073
end
2074
if attack==false and Mode=="Demon" then
2075
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,0),.3)
2076
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.3)
2077
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.6,0,.5),.3)
2078
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-1),.3)
2079
RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(-0.1,1.57,0),.3)
2080
LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0.8,-1.57,0)*euler(0,0,0),.3)
2081
end
2082
elseif torvel<1 and hitfloor~=nil then
2083
if Anim=="Fall" then
2084
if velderp<=-70 then
2085
coroutine.resume(coroutine.create(function()
2086
Stomp()
2087
end))
2088
end
2089
end
2090
Anim="Idle"
2091
if idle<=500 then
2092
if attack==false and Mode=="Binary" then
2093
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
2094
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
2095
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
2096
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1-(idleanim/4),-0.5+idleanim,-0.7+(idleanim/2)),.3)
2097
LW.C0=clerp(LW.C0,cf(-1+idleanim,0.5-idleanim,-0.5)*euler(1-idleanim,-0.5+idleanim,0.5),.3)
2098
RH.C0=clerp(RH.C0,RHC0,.2)
2099
LH.C0=clerp(LH.C0,LHC0,.2)
2100
end
2101
if attack==false and Mode=="Demon" then
2102
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3)
2103
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3)
2104
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1+idleanim,0,0),.3)
2105
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2-idleanim),.3)
2106
RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3)
2107
LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3)
2108
end
2109
else
2110
if attack==false and Mode=="Binary" then
2111
--wld1.C0=clerp(wld1.C0,euler(.2,0,0.1)*cf(0,.8,.3),.1)
2112
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-.3),.1)
2113
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(idleanim/2),0,0),.1)
2114
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.1)
2115
--RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.7,0,1.5),.1)
2116
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.1)
2117
LW.C0=clerp(LW.C0,cf(-1.2,0.5,-0.3)*euler(1.4,0,.8),.1)
2118
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.15)
2119
LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.15)
2120
end
2121
end
2122
elseif torvel>2 and torvel<22 and hitfloor~=nil then
2123
if Anim=="Fall" then
2124
if velderp<=-70 then
2125
coroutine.resume(coroutine.create(function()
2126
Stomp()
2127
end))
2128
end
2129
end
2130
Anim="Walk"
2131
if attack==false and Mode=="Binary" then
2132
wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.2)
2133
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
2134
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
2135
--RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
2136
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3-idleanim,0,-0.2+(idleanim/2)),.2)
2137
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2)
2138
RH.C0=clerp(RH.C0,RHC0,.3)
2139
LH.C0=clerp(LH.C0,LHC0,.3)
2140
end
2141
if attack==false and Mode=="Demon" then
2142
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
2143
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
2144
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.2+idleanim),.3)
2145
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(idleanim,0,-0.2),.3)
2146
RH.C0=clerp(RH.C0,cf(1,-.5,0)*euler(0.2,1.57,0),.3)
2147
LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
2148
end
2149
elseif torvel>=22 and hitfloor~=nil then
2150
if Anim=="Fall" then
2151
if velderp<=-70 then
2152
coroutine.resume(coroutine.create(function()
2153
Stomp()
2154
end))
2155
end
2156
end
2157
Anim="Run"
2158
if attack==false and Mode=="Binary" then
2159
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.5),.4)
2160
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.5,0,-0.5),.4)
2161
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
2162
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,-0.8,-0.2),.4)
2163
LW.C0=clerp(LW.C0,cf(-.7,0.5,-0.7)*euler(1.2,-0.5,0.8),.4)
2164
RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
2165
--LH.C0=clerp(LH.C0,LHC0*cf(.5,0.5,-.2)*euler(-0.5,0.5,-0.7),.3)
2166
LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
2167
end
2168
if attack==false and Mode=="Demon" then
2169
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,-0.4),.3)
2170
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,.4),.3)
2171
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.4),.3)
2172
LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
2173
RH.C0=clerp(RH.C0,cf(1,-.3,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
2174
LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
2175
end
2176
end
2177
end
2178
if #Effects>0 then
2179
--table.insert(Effects,{prt,"Block1",delay})
2180
for e=1,#Effects do
2181
if Effects[e]~=nil then
2182
--for j=1,#Effects[e] do
2183
local Thing=Effects[e]
2184
if Thing~=nil then
2185
local Part=Thing[1]
2186
local Mode=Thing[2]
2187
local Delay=Thing[3]
2188
local IncX=Thing[4]
2189
local IncY=Thing[5]
2190
local IncZ=Thing[6]
2191
if Thing[1].Transparency<=1 then
2192
if Thing[2]=="Block1" then
2193
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2194
Mesh=Thing[1].Mesh
2195
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
2196
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2197
elseif Thing[2]=="Cylinder" then
2198
Mesh=Thing[1].Mesh
2199
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
2200
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2201
elseif Thing[2]=="Blood" then
2202
Mesh=Thing[1].Mesh
2203
Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
2204
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
2205
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2206
elseif Thing[2]=="Elec" then
2207
Mesh=Thing[1].Mesh
2208
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
2209
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2210
elseif Thing[2]=="Disappear" then
2211
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2212
end
2213
else
2214
Part.Parent=nil
2215
table.remove(Effects,e)
2216
end
2217
end
2218
--end
2219
end
2220
end
2221
end
2222
end