View difference between Paste ID: eq11NMLv and qQw9w3z7
SHOW: | | - or go back to the newest paste.
1
--[[
2
Cyber Vitruoso Class Made by Fenrier.
3
]] 
4-
Player=game:GetService("Players").BlueScripts
4+
Player=game:GetService("Players").ericthefabulous
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
LeftArm=Character["Left Arm"] 
12
LeftLeg=Character["Left Leg"] 
13
RightArm=Character["Right Arm"] 
14
RightLeg=Character["Right Leg"] 
15
LS=Torso["Left Shoulder"] 
16
LH=Torso["Left Hip"] 
17
RS=Torso["Right Shoulder"] 
18
RH=Torso["Right Hip"] 
19
Neck=Torso.Neck
20
it=Instance.new
21
vt=Vector3.new
22
cf=CFrame.new
23
euler=CFrame.fromEulerAnglesXYZ
24
angles=CFrame.Angles
25
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
26
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
27
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
28
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
29
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
30
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
31
RootPart=Character.HumanoidRootPart
32
RootJoint=RootPart.RootJoint
33
RootCF=euler(-1.57,0,3.14)
34
attack = false 
35
attackdebounce = false 
36
MMouse=nil
37
combo=0
38
mana=0
39
local idle=0
40
local Anim="Idle"
41
--player 
42
player=nil 
43
--save shoulders 
44
RSH, LSH=nil, nil 
45
--welds 
46
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
47
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
48
LH=Torso["Left Hip"]
49
RH=Torso["Right Hip"]
50
Charge=0
51
TorsoColor=Torso.BrickColor
52
Keys={}
53
KeysWeld={}
54
KeysC0={}
55
keypress=false
56
Input=""
57
Allies={}
58
Orbs={}
59
orbget=false
60
 
61
function swait(num)
62
if num==0 or num==nil then
63
game:service'RunService'.RenderStepped:wait()
64
else
65
for i=0,num do
66
game:service'RunService'.RenderStepped:wait()
67
end
68
end
69
end
70
 
71
if Character:findFirstChild("Magi Keytar",true) ~= nil then 
72
Character:findFirstChild("Magi Keytar",true).Parent = nil 
73
end 
74
if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then 
75
Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil 
76
end 
77
 
78
 
79
function NoOutline(Part)
80
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
81
end
82
 
83
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
84
local fp=it("Part")
85
fp.formFactor=formfactor 
86
fp.Parent=parent
87
fp.Reflectance=reflectance
88
fp.Transparency=transparency
89
fp.CanCollide=false 
90
fp.Locked=true
91
fp.BrickColor=brickcolor
92
fp.Name=name
93
fp.Size=size
94
fp.Position=Torso.Position 
95
NoOutline(fp)
96
fp.Material="SmoothPlastic"
97
fp:BreakJoints()
98
return fp 
99
end 
100
 
101
function mesh(Mesh,part,meshtype,meshid,offset,scale)
102
local mesh=it(Mesh) 
103
mesh.Parent=part
104
if Mesh=="SpecialMesh" then
105
mesh.MeshType=meshtype
106
mesh.MeshId=meshid
107
end
108
mesh.Offset=offset
109
mesh.Scale=scale
110
return mesh
111
end
112
 
113
function weld(parent,part0,part1,c0)
114
local weld=it("Weld") 
115
weld.Parent=parent
116
weld.Part0=part0 
117
weld.Part1=part1 
118
weld.C0=c0
119
return weld
120
end
121
 
122
local Color1=Torso.BrickColor
123
 
124
local fengui=it("GuiMain") 
125
fengui.Parent=Player.PlayerGui 
126
fengui.Name="WeaponGUI" 
127
local fenframe=it("Frame") 
128
fenframe.Parent=fengui
129
fenframe.BackgroundColor3=Color3.new(255,255,255) 
130
fenframe.BackgroundTransparency=1 
131
fenframe.BorderColor3=Color3.new(17,17,17) 
132
fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
133
fenframe.Position=UDim2.new(0.4,0,0.1,0)
134
local fenbarmana1=it("TextLabel") 
135
fenbarmana1.Parent=fenframe 
136
fenbarmana1.Text=" " 
137
fenbarmana1.BackgroundTransparency=0 
138
fenbarmana1.BackgroundColor3=Color3.new(0,0,0) 
139
fenbarmana1.SizeConstraint="RelativeXY" 
140
fenbarmana1.TextXAlignment="Center" 
141
fenbarmana1.TextYAlignment="Center" 
142
fenbarmana1.Position=UDim2.new(0,0,0,0)
143
fenbarmana1.Size=UDim2.new(4,0,0.2,0)
144
local fenbarmana2=it("TextLabel") 
145
fenbarmana2.Parent=fenframe 
146
fenbarmana2.Text=" " 
147
fenbarmana2.BackgroundTransparency=0 
148
fenbarmana2.BackgroundColor3=Torso.Color
149
fenbarmana2.SizeConstraint="RelativeXY" 
150
fenbarmana2.TextXAlignment="Center" 
151
fenbarmana2.TextYAlignment="Center" 
152
fenbarmana2.Position=UDim2.new(0,0,0,0)
153
fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
154
local fenbarmana3=it("TextLabel") 
155
fenbarmana3.Parent=fenframe 
156
fenbarmana3.Text=" " 
157
fenbarmana3.BackgroundTransparency=0 
158
fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
159
fenbarmana3.SizeConstraint="RelativeXY" 
160
fenbarmana3.TextXAlignment="Center" 
161
fenbarmana3.TextYAlignment="Center" 
162
fenbarmana3.Position=UDim2.new(0,0,0,0)
163
fenbarmana3.Size=UDim2.new(0,0,0.2,0)
164
local fenbarmana4=it("TextLabel") 
165
fenbarmana4.Parent=fenframe 
166
fenbarmana4.Text="Energy("..mana..")"
167
fenbarmana4.BackgroundTransparency=1 
168
fenbarmana4.BackgroundColor3=Color3.new(0,0,0) 
169
fenbarmana4.SizeConstraint="RelativeXY" 
170
fenbarmana4.TextXAlignment="Center" 
171
fenbarmana4.TextYAlignment="Center" 
172
fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
173
fenbarmana4.Size=UDim2.new(4,0,0.2,0)
174
fenbarmana4.FontSize="Size9"
175
fenbarmana4.TextStrokeTransparency=0
176
fenbarmana4.TextColor=BrickColor.new("White")
177
 
178
local modelzorz=Instance.new("Model") 
179
modelzorz.Parent=Character 
180
modelzorz.Name="Magi Keytar" 
181
 
182
local handle=part(3,modelzorz,0,0,BrickColor.new("Black"),"Handle",vt())
183
local prt1=part(3,modelzorz,0,0,TorsoColor,"Part1",vt())
184
local prt2=part(3,modelzorz,0,0,TorsoColor,"Part2",vt())
185
local prt3=part(3,modelzorz,0,0,TorsoColor,"Part3",vt())
186
local prt4=part(3,modelzorz,0,0,TorsoColor,"Part4",vt())
187
local prt5=part(3,modelzorz,0,0,TorsoColor,"Part5",vt())
188
local prt6=part(3,modelzorz,0,0,TorsoColor,"Part6",vt())
189
local prt7=part(3,modelzorz,0,0,TorsoColor,"Part7",vt())
190
local prt8=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Part8",vt())
191
local prt9=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Part9",vt())
192
local prt10=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Part10",vt()) --
193
local prt11=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part11",vt())
194
local prt12=part(3,modelzorz,0,0,TorsoColor,"Part12",vt())
195
local prt13=part(3,modelzorz,0,0,TorsoColor,"Part13",vt())
196
local prt14=part(3,modelzorz,0,0,TorsoColor,"Part14",vt())
197
local prt15=part(3,modelzorz,0,0,TorsoColor,"Part15",vt())
198
local prt16=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part16",vt())
199
local prt17=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Cyber Sig Part1",vt())
200
local prt18=part(3,modelzorz,0,0,TorsoColor,"Cyber Sig Part2",vt())
201
local prt19=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Cyber Sig Part1",vt())
202
local prt20=part(3,modelzorz,0,0,TorsoColor,"Cyber Sig Part2",vt())
203
 
204
local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(6,20,2))
205
local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(3,1.99,3))
206
local msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(5,3,1.98))
207
local msh4=mesh("SpecialMesh",prt4,"Wedge","",vt(0,0,0),vt(2,1,6))
208
local msh5=mesh("SpecialMesh",prt5,"Wedge","",vt(0,0,0),vt(2,1,1))
209
local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(2,3,2))
210
local msh7=mesh("SpecialMesh",prt7,"Wedge","",vt(0,0,0),vt(2,2,6))
211
local msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(3,2,6))
212
local msh9=mesh("BlockMesh",prt9,"","",vt(0,0,0),vt(5.99,1.99,3))
213
local msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(1.99,17,3))
214
local msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(15,2,.5))
215
local msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(1,2,1))
216
local msh13=mesh("SpecialMesh",prt13,"Wedge","",vt(0,0,0),vt(1,2,1))
217
local msh14=mesh("BlockMesh",prt14,"","",vt(0,0,0),vt(3,13,2))
218
local msh15=mesh("CylinderMesh",prt15,"","",vt(0,0,0),vt(3,1.99,3))
219
local msh16=mesh("BlockMesh",prt16,"","",vt(0,0,0),vt(2,12,2))
220
local msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(3.1,2,2.1))
221
local msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(3.2,1,2.2))
222
local msh19=mesh("BlockMesh",prt19,"","",vt(0,0,0),vt(3.1,2,2.1))
223
local msh20=mesh("BlockMesh",prt20,"","",vt(0,0,0),vt(3.2,1,2.2))
224
 
225
local hwld=weld(handle,handle,Torso,euler(0,3.14,2)*cf(3,-1.2,-.7))
226
local wld1=weld(prt1,prt1,handle,euler(0,0,0)*cf(-.2,-3.5,0))
227
local wld2=weld(prt2,prt2,prt1,euler(1.57,0,0)*cf(.3,-2,0))
228
local wld3=weld(prt3,prt3,prt1,euler(0,0,0)*cf(-.1,-2,0))
229
local wld4=weld(prt4,prt4,prt1,euler(0,1.57,0)*cf(-.4,-2.4,0))
230
local wld5=weld(prt5,prt5,prt1,euler(0,-1.57,0)*cf(.3,-2.4,0))
231
local wld6=weld(prt6,prt6,prt1,euler(0,0,0)*cf(-.8,-2,0))
232
local wld7=weld(prt7,prt7,prt1,euler(0,1.57,1.57)*cf(-.8,-1.1,0))
233
local wld8=weld(prt8,prt8,prt1,euler(0,-1.57,0)*cf(0,-2,.3))
234
local wld9=weld(prt9,prt9,prt1,euler(0,0,0)*cf(0,1.8,.3))
235
local wld10=weld(prt10,prt10,prt1,euler(0,0,0)*cf(-.4,-.1,.3))
236
local wld11=weld(prt11,prt11,prt1,euler(0,0,-1.57)*cf(-.4,-.1,.65))
237
local wld12=weld(prt12,prt12,prt1,euler(0,0,-1.57)*cf(-.4,1.5,.7))
238
local wld13=weld(prt13,prt13,prt1,euler(0,0,-1.57)*cf(-.4,-1.7,.7))
239
local wld14=weld(prt14,prt14,prt1,euler(0,0,0)*cf(0.3,3.3,0))
240
local wld15=weld(prt15,prt15,prt1,euler(1.57,0,0)*cf(0.3,4.6,0))
241
local wld16=weld(prt16,prt16,prt1,euler(0,0,0)*cf(0.21,3.1,0.1))
242
local wld17=weld(prt17,prt17,prt14,euler(0,0,0)*cf(0,-0.5,0))
243
local wld18=weld(prt18,prt18,prt17,euler(0,0,0)*cf(0,0,0))
244
local wld19=weld(prt19,prt19,prt14,euler(0,0,0)*cf(0,0.2,0))
245
local wld20=weld(prt20,prt20,prt19,euler(0,0,0)*cf(0,0,0))
246
 
247
num=1.55
248
num2=5.15
249
for i=1,14 do --11
250
local key=part(3,modelzorz,0.1,0,BrickColor.new("Light stone grey"),"Key",vt())
251
local kmsh=mesh("BlockMesh",key,"","",vt(0,0,0),vt(4,1,1))
252
local kwld=weld(key,key,prt10,euler(0,0,0)*cf(.6,num,0))
253
local sou=Instance.new("Sound",key)
254
sou.Volume=5
255
sou.Pitch=num2
256
sou.SoundId="http://www.roblox.com/asset/?id=1079839"
257
table.insert(KeysC0,euler(0,0,0)*cf(.6,num,0))
258
table.insert(Keys,key)
259
table.insert(KeysWeld,kwld)
260
num=num-0.24
261
num2=num2-0.15
262
end
263
 
264
num=1.45
265
for i=1,13 do
266
if i~=4 and i~=7 and i~=11 then
267
local prt18=part(3,modelzorz,0.1,0,BrickColor.new("Black"),"Part18",vt())
268
local msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(3,1,1.1))
269
local wld18=weld(prt18,prt18,prt10,euler(0,0,0)*cf(.4,num,0.1))
270
end
271
num=num-0.24
272
end
273
 
274
local hitbox=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
275
hitbox.Anchored=false
276
local orb=part(3,nil,0,.5,BrickColor.new("Really red"),"Orb",vt(1,1,1))
277
orb.Anchored=true
278
local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(3,3,3))
279
local osound=Instance.new("Sound",orb)
280
osound.Volume=5
281
osound.Pitch=1.3
282
osound.Looped=true
283
osound.SoundId="http://www.roblox.com/asset/?id=82277505"
284
 
285
if (script.Parent.className~="HopperBin") then 
286
Tool=Instance.new("HopperBin") 
287
Tool.Parent=Backpack 
288
Tool.Name="Magi Keytar" 
289
script.Parent=Tool 
290
end 
291
Bin=script.Parent 
292
 
293
local bodvel=Instance.new("BodyVelocity")
294
local bg=Instance.new("BodyGyro")
295
 
296
so = function(id,par,vol,pit) 
297
coroutine.resume(coroutine.create(function()
298
local sou = Instance.new("Sound",par or workspace)
299
sou.Volume=vol
300
sou.Pitch=pit or 1
301
sou.SoundId=id
302
swait() 
303
sou:play() 
304
game:GetService("Debris"):AddItem(sou,6)
305
end))
306
end
307
 
308
function clerp(a,b,t) 
309
local qa = {QuaternionFromCFrame(a)}
310
local qb = {QuaternionFromCFrame(b)} 
311
local ax, ay, az = a.x, a.y, a.z 
312
local bx, by, bz = b.x, b.y, b.z
313
local _t = 1-t
314
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
315
end 
316
 
317
function QuaternionFromCFrame(cf) 
318
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
319
local trace = m00 + m11 + m22 
320
if trace > 0 then 
321
local s = math.sqrt(1 + trace) 
322
local recip = 0.5/s 
323
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
324
else 
325
local i = 0 
326
if m11 > m00 then
327
i = 1
328
end
329
if m22 > (i == 0 and m00 or m11) then 
330
i = 2 
331
end 
332
if i == 0 then 
333
local s = math.sqrt(m00-m11-m22+1) 
334
local recip = 0.5/s 
335
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
336
elseif i == 1 then 
337
local s = math.sqrt(m11-m22-m00+1) 
338
local recip = 0.5/s 
339
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
340
elseif i == 2 then 
341
local s = math.sqrt(m22-m00-m11+1) 
342
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
343
end 
344
end 
345
end
346
 
347
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
348
local xs, ys, zs = x + x, y + y, z + z 
349
local wx, wy, wz = w*xs, w*ys, w*zs 
350
local xx = x*xs 
351
local xy = x*ys 
352
local xz = x*zs 
353
local yy = y*ys 
354
local yz = y*zs 
355
local zz = z*zs 
356
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)) 
357
end
358
 
359
function QuaternionSlerp(a, b, t) 
360
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
361
local startInterp, finishInterp; 
362
if cosTheta >= 0.0001 then 
363
if (1 - cosTheta) > 0.0001 then 
364
local theta = math.acos(cosTheta) 
365
local invSinTheta = 1/math.sin(theta) 
366
startInterp = math.sin((1-t)*theta)*invSinTheta 
367
finishInterp = math.sin(t*theta)*invSinTheta  
368
else 
369
startInterp = 1-t 
370
finishInterp = t 
371
end 
372
else 
373
if (1+cosTheta) > 0.0001 then 
374
local theta = math.acos(-cosTheta) 
375
local invSinTheta = 1/math.sin(theta) 
376
startInterp = math.sin((t-1)*theta)*invSinTheta 
377
finishInterp = math.sin(t*theta)*invSinTheta 
378
else 
379
startInterp = t-1 
380
finishInterp = t 
381
end 
382
end 
383
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 
384
end
385
 
386
function hideanim() 
387
equipped=false
388
so("http://roblox.com/asset/?id=161006212",handle,.6,.6) 
389
for i=0,1,0.1 do
390
swait()
391
hwld.C0=clerp(hwld.C0,euler(.2,.5,.2)*cf(0,1,0),.3)
392
Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,.8),.3)
393
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0.5),.3)
394
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.1),.3)
395
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
396
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.8,0,-1),.3)
397
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
398
end
399
hwld.Part1=Torso
400
hwld.C0=euler(0,3.14,2)*cf(3,-1.2,-.7)
401
for i=0,1,0.1 do
402
swait()
403
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
404
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
405
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.3)
406
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
407
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
408
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
409
RH.C0=clerp(RH.C0,RHC0,.2)
410
RH.C1=clerp(RH.C1,RHC1,.2)
411
LH.C0=clerp(LH.C0,LHC0,.2)
412
LH.C1=clerp(LH.C1,LHC1,.2)
413
end
414
end 
415
 
416
function equipanim() 
417
equipped=true
418
for i=0,1,0.1 do
419
swait()
420
Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,.8),.3)
421
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0.5),.3)
422
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.1),.3)
423
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
424
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.8,0,-1),.3)
425
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
426
end
427
hwld.Part1=LeftArm
428
hwld.C0=euler(.2,.5,.2)*cf(0,1,0)
429
so("http://roblox.com/asset/?id=161006212",handle,1,1) 
430
for i=0,1,0.15 do
431
swait()
432
hwld.C0=clerp(hwld.C0,cf(0,1,1)*euler(1.57,3,0),.4)
433
Neck.C0=clerp(Neck.C0,necko*euler(0,0,.8),.3)
434
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
435
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.3),.3)
436
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
437
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,-1.3),.3)
438
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
439
end
440
so("http://roblox.com/asset/?id=161006195",handle,1,1) 
441
for i=0,1,0.1 do
442
swait()
443
hwld.C0=clerp(hwld.C0,cf(0,1,1)*euler(1.57,6,0),.3)
444
Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,.6),.3)
445
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
446
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.6),.3)
447
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
448
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.5,0,-.8),.3)
449
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
450
end
451
for i=0,1,0.1 do
452
swait()
453
hwld.C0=clerp(hwld.C0,euler(0,-.5,0)*cf(0,1,1)*euler(.7,1.9,0),.3)
454
Neck.C0=clerp(Neck.C0,necko*euler(0,0,.3),.3)
455
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.3)
456
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,0,0.2),.3)
457
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
458
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8),.3)
459
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
460
end
461
end 
462
 
463
function attackone()
464
attack=true
465
so("http://roblox.com/asset/?id=161006221",handle,1,1) 
466
for i=0,1,0.1 do
467
swait()
468
--hwld.C0=clerp(hwld.C0,euler(0,-.5,0)*cf(0,1,1)*euler(.7,1.9,0),.3)
469
hwld.C0=euler(0,-.5-(1.07+5.8)*i,0)*cf(-.2*i,1-.4*i,1)*euler(.7+0.1*i,1.9-0.4*i,0)
470
Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
471
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
472
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.8,0,-.2),.3)
473
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
474
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0,-.8),.3)
475
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
476
RH.C0=clerp(RH.C0,RHC0,.3)
477
LH.C0=clerp(LH.C0,LHC0,.3)
478
end
479
for i=0,1,0.1 do
480
swait()
481
hwld.C0=clerp(hwld.C0,euler(0,-1.7,0)*cf(-.2,.6,1)*euler(.8,1.5,0),.3)
482
end
483
for i=0,1,0.05 do
484
swait()
485
if i==0 then
486
KeyPress("v",false)
487
elseif i==0.3 then
488
KeyPress("b",false)
489
end
490
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.7,0,.2),.2)
491
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
492
end
493
--[[
494
MagniDamage(Torso,25,5,15,math.random(20,40),"Knockdown2")
495
MagicWave(BrickColor.new("Bright yellow"),cf(Torso.Position)*cf(0,-2,0),1,1,1,1.5,0.5,1.5,0.05)
496
so("http://www.roblox.com/asset/?id=161006033",Torso,1,3) 
497
so("http://www.roblox.com/asset/?id=10756104",Torso,1,2) 
498
]]
499
local hit,pos=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,200,modelzorz)
500
if hit~=nil then
501
local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
502
ref.Anchored=true
503
ref.CFrame=cf(pos)
504
game:GetService("Debris"):AddItem(ref,1)
505
for i=1,3 do
506
Lightning(orb.Position,pos,5,1,"Bright yellow",.1,.5,.5)
507
end
508
MagniDamage(orb,30,5,10,math.random(30,50),"Knockdown2")
509
MagicWave(BrickColor.new("Bright yellow"),cf(ref.Position),1,1,1,1.5,0.5,1.5,0.05)
510
so("http://www.roblox.com/asset/?id=161006033",ref,1,3) 
511
so("http://www.roblox.com/asset/?id=10756104",ref,1,2) 
512
end
513
MagicBlock(BrickColor.new("Bright red"),cf(orb.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,3,3,3,0.05,2)
514
orb.Parent=nil
515
swait(10)
516
attack=false
517
end
518
 
519
function attacktwo()
520
attack=true
521
for i=0,1,0.1 do
522
swait()
523
hwld.C0=clerp(hwld.C0,euler(0,-.5,0)*cf(0,1,1)*euler(.7,1.9,0),.3)
524
Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.3)*euler(-.1,0,0),.3)
525
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.3),.3)
526
RW.C0=clerp(RW.C0,cf(.6,0.3,-.5)*euler(.6,0,-1),.3)
527
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
528
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8),.3)
529
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
530
RH.C0=clerp(RH.C0,cf(.5,-1,-.5)*euler(0,1.57,0)*euler(0,1.3,0),.3)
531
LH.C0=clerp(LH.C0,cf(-.5,-1,.5)*euler(0,-1.57,0)*euler(0,1.3,0),.3)
532
end
533
KeyPress("z",false)
534
for i=0,1,0.1 do
535
swait()
536
if i==0.6 then
537
KeyPress("v",false)
538
end
539
RW.C0=clerp(RW.C0,cf(1.2,0.4,-.3)*euler(.5,0,-.2),.3)
540
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
541
end
542
MagicBlock(BrickColor.new("Bright red"),cf(prt15.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,2,2,2,0.05,2)
543
so("http://www.roblox.com/asset/?id=153092334",prt15,1,1) 
544
so("http://www.roblox.com/asset/?id=192603389",prt15,1,1) 
545
local TheHit=MMouse.Hit.p
546
local MouseLook=cf((prt15.Position+TheHit)/2,TheHit)
547
local hit,pos=rayCast(prt15.Position,MouseLook.lookVector,200,modelzorz)
548
if hit~=nil then
549
Damagefunc(hit,5,10,math.random(10,20),"Knockdown2",RootPart,0,1,1)
550
end
551
orb.Parent=modelzorz
552
orb.CFrame=cf(pos)+vt(0,1,0)
553
for i=1,30 do
554
swait()
555
MagicBlock(BrickColor.new("Bright red"),cf(prt15.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,1,1,1,0.1,2)
556
Lightning(prt15.Position,pos,5,1,"Bright red",.1,.5,.03)
557
end
558
attack=false
559
end
560
 
561
function attackthree()
562
attack=true
563
for i=0,1,0.1 do
564
swait()
565
hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,1,.8)*euler(.5,2.5,0),.3)
566
Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.6)*euler(-.1,0,0),.3)
567
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.6),.3)
568
RW.C0=clerp(RW.C0,cf(1,0.3,-.5)*euler(.8,0,-.4),.3)
569
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
570
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.5,0,-.6),.3)
571
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
572
RH.C0=clerp(RH.C0,cf(.5,-1,-.5)*euler(0,1.57,0)*euler(0,1.3,0),.3)
573
LH.C0=clerp(LH.C0,cf(-.5,-1,.5)*euler(0,-1.57,0)*euler(0,1.3,0),.3)
574
end
575
KeyPress("c",false)
576
for i=0,1,0.1 do
577
swait()
578
hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,1,.8)*euler(.5,2.3,0),.3)
579
Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.6)*euler(-.1,0,0),.3)
580
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.6),.3)
581
RW.C0=clerp(RW.C0,cf(1,0.3,-.3)*euler(.6,0,-.6),.3)
582
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
583
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.6,0,-.4),.3)
584
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
585
end
586
MagniDamage(orb,15,5,10,math.random(-30,-20),"Knockdown2")
587
local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
588
ref.Anchored=true
589
ref.CFrame=cf(orb.Position)
590
game:GetService("Debris"):AddItem(ref,.5)
591
so("http://www.roblox.com/asset/?id=87784452",ref,1,2) 
592
so("http://www.roblox.com/asset/?id=169380598",ref,1,2) 
593
MagicCircle(BrickColor.new("Bright yellow"),cf(orb.Position),1,1,1,10,10,10,0.1)
594
MagicBlock(BrickColor.new("Bright yellow"),cf(orb.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,3,3,3,0.05,1)
595
MagicBlock(BrickColor.new("Bright red"),cf(orb.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,2.5,2.5,2.5,0.02,2)
596
swait(10)
597
attack=false
598
end
599
 
600
function KeyPress(keyp,RWCan)
601
keypress=true
602
keynum=0
603
RWC0=cf(1.5,0.5,0)*euler(.8,0,0.2)
604
if keyp=="z" then
605
keynum=2
606
RWC0=cf(.6,0.3,-.5)*euler(.6,0,-1)
607
elseif keyp=="x" then
608
keynum=4
609
RWC0=cf(.8,0.4,-.5)*euler(.6,0,-.8)
610
elseif keyp=="c" then
611
keynum=6
612
RWC0=cf(1,0.4,-.5)*euler(.5,0,-.5)
613
elseif keyp=="v" then
614
keynum=8
615
RWC0=cf(1.2,0.5,-.3)*euler(.5,0,-.2)
616
elseif keyp=="b" then
617
keynum=10
618
RWC0=cf(1.5,0.5,-.2)*euler(.5,0,0)
619
elseif keyp=="n" then
620
keynum=12
621
RWC0=cf(1.5,0.4,-.1)*euler(.5,0,.2)
622
elseif keyp=="m" then
623
keynum=14
624
RWC0=cf(1.5,0.3,-.1)*euler(.4,0,.8)
625
end
626
Keys[keynum].Sound:Play()
627
coroutine.resume(coroutine.create(function(Num,CeOh,Weld)
628
--local Num=KeysC0[keynum]
629
--local CeOh=KeysWeld[keynum].C0
630
for j=0,1,0.1 do
631
swait()
632
if RWCan==true then
633
RW.C0=clerp(RW.C0,RWC0,.4)
634
end
635
Weld.C0=clerp(CeOh,Num*euler(0,-.2,0),.25)
636
end
637
keypress=false
638
for j=0,1,0.2 do
639
swait()
640
Weld.C0=clerp(CeOh,Num*euler(0,0,0),.4)
641
end
642
end),KeysC0[keynum],KeysWeld[keynum].C0,KeysWeld[keynum])
643
end
644
 
645
function KeyStopSound(keyp)
646
if keyp=="z" then
647
keynum=2
648
elseif keyp=="x" then
649
keynum=4
650
elseif keyp=="c" then
651
keynum=6
652
elseif keyp=="v" then
653
keynum=8
654
elseif keyp=="b" then
655
keynum=10
656
elseif keyp=="n" then
657
keynum=12
658
elseif keyp=="m" then
659
keynum=14
660
end
661
Keys[keynum].Sound:Stop()
662
end
663
 
664
function DreamHarmony()
665
attack=true
666
local TheHit=MMouse.Hit.p
667
local MouseLook=cf((prt15.Position+TheHit)/2,TheHit)
668
local hit,pos=rayCast(prt15.Position,MouseLook.lookVector,500,modelzorz)
669
if hit~=nil and hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent:findFirstChild("Torso")~=nil then
670
hum=hit.Parent.Humanoid
671
Tors=hit.Parent.Torso
672
if #Allies>0 then
673
for i=1,#Allies do
674
if hit.Parent~=Allies[i] then
675
table.insert(Allies,hit.Parent)
676
end
677
end
678
else
679
table.insert(Allies,hit.Parent)
680
end
681
for i=0,1,0.15 do
682
swait()
683
hwld.C0=clerp(hwld.C0,euler(0,-.5,0)*cf(0,1,1)*euler(.7,1.9,0),.35)
684
Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.3)*euler(0,0,0),.35)
685
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.3),.35)
686
RW.C0=clerp(RW.C0,cf(1,0.3,-.3)*euler(.6,0,-.2),.35)
687
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
688
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8),.35)
689
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
690
RH.C0=clerp(RH.C0,cf(.5,-1,-.5)*euler(0,1.57,0)*euler(0,1.3,0),.3)
691
LH.C0=clerp(LH.C0,cf(-.5,-1,.5)*euler(0,-1.57,0)*euler(0,1.3,0),.3)
692
end
693
so("http://roblox.com/asset/?id=2101144",prt15,1,1) 
694
for i=1,100 do
695
swait(1)
696
if i%10==0 then
697
so("http://roblox.com/asset/?id=153092334",Tors,1,3) 
698
heal=1
699
hum.Health=hum.Health+heal
700
MagicBlock(BrickColor.new("White"),cf(Tors.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,3,3,3,0.08,2)
701
end
702
if i%5==0 then
703
derppos=Tors.Position+vt(math.random(-500,500)/100,10,math.random(-500,500)/100)
704
local hitef,posef=rayCast(derppos,(CFrame.new(derppos,derppos - Vector3.new(0,1,0))).lookVector,100,Tors.Parent)
705
if hitef~=nil then
706
MagicCircle(BrickColor.new("White"),cf(posef),1,2,1,1,8,1,.1)
707
end
708
end
709
Lightning(prt15.Position,Tors.Position,5,1,"White",.1,.5,.03)
710
end
711
end
712
swait(10)
713
attack=false
714
end
715
 
716
function NightmareDiscord()
717
attack=true
718
local TheHit=MMouse.Hit.p
719
local MouseLook=cf((prt15.Position+TheHit)/2,TheHit)
720
local hit,pos=rayCast(prt15.Position,MouseLook.lookVector,500,modelzorz)
721
if hit~=nil and hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent:findFirstChild("Torso")~=nil then
722
hum=hit.Parent.Humanoid
723
Tors=hit.Parent.Torso
724
for i=1,#Allies do
725
if hit.Parent==Allies[i] then
726
table.remove(Allies,i)
727
end
728
end
729
for i=0,1,0.15 do
730
swait()
731
hwld.C0=clerp(hwld.C0,euler(0,-.5,0)*cf(0,1,1)*euler(.7,1.9,0),.35)
732
Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.3)*euler(0,0,0),.35)
733
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.3),.35)
734
RW.C0=clerp(RW.C0,cf(1,0.3,-.3)*euler(.6,0,-.2),.35)
735
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
736
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8),.35)
737
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
738
RH.C0=clerp(RH.C0,cf(.5,-1,-.5)*euler(0,1.57,0)*euler(0,1.3,0),.3)
739
LH.C0=clerp(LH.C0,cf(-.5,-1,.5)*euler(0,-1.57,0)*euler(0,1.3,0),.3)
740
end
741
so("http://www.roblox.com/asset/?id=3264923",prt15,1,1) 
742
for i=1,100 do
743
swait(1)
744
if hum.WalkSpeed>=10 then
745
hum.WalkSpeed=10
746
end
747
if i%10==0 then
748
so("http://www.roblox.com/asset/?id=160773067",Tors,.6,3) 
749
Damagefunc(hit,1,3,0,"Normal",RootPart,0,1,0)
750
MagicBlock(BrickColor.new("Black"),cf(Tors.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,3,3,3,0.08,2)
751
end
752
if i%2==0 then
753
MagicCircle(BrickColor.new("Black"),cf(Tors.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,.1,10,.1,.1)
754
end
755
Lightning(prt15.Position,Tors.Position,5,1,"Black",.1,.5,.03)
756
end
757
hum.WalkSpeed=16
758
end
759
attack=false
760
end
761
 
762
function DistuneField()
763
attack=true
764
Humanoid.WalkSpeed=0
765
for i=0,1,0.1 do
766
swait()
767
hwld.C0=clerp(hwld.C0,euler(0,-1.7,0)*cf(-.2,.6,1)*euler(.8,1.5,0),.3)
768
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
769
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
770
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.8,0,-.2),.3)
771
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
772
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8),.3)
773
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
774
RH.C0=clerp(RH.C0,RHC0,.3)
775
LH.C0=clerp(LH.C0,LHC0,.3)
776
end
777
so("http://roblox.com/asset/?id=192597368",RootPart,1,1) 
778
MagicWave(BrickColor.new("Bright yellow"),cf(RootPart.Position)*cf(0,-2,0),1,1,1,1.3,0.5,1.3,0.02)
779
MagicCircle(BrickColor.new("New Yeller"),cf(RootPart.Position),1,1,1,20,20,20,0.05)
780
MagniDamage(RootPart,40,10,20,math.random(30,50),"Knockdown2",true)
781
for i=0,1,0.1 do
782
swait()
783
MagicNote(BrickColor:random(),RootPart.CFrame*cf(math.random(-10,10),math.random(-10,10),math.random(-10,10))*euler(1.57,0,math.random(-50,50)),.1,.1,.1,0,0,0,.02)
784
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1),.3)
785
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
786
end
787
for i=1,20 do
788
swait(1)
789
MagicNote(BrickColor:random(),RootPart.CFrame*cf(math.random(-10,10),math.random(-10,10),math.random(-10,10))*euler(1.57,0,math.random(-50,50)),.1,.1,.1,0,0,0,.02)
790
end
791
swait(10)
792
Humanoid.WalkSpeed=16
793
attack=false
794
end
795
 
796
function MelodyOrb()
797
attack=true
798
so("http://www.roblox.com/asset/?id=192603389",prt15,1,1.2) 
799
for i=0,1,0.15 do
800
swait()
801
hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,1,.8)*euler(.5,2.3,0),.35)
802
Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.6)*euler(-.1,0,0),.35)
803
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.6),.35)
804
RW.C0=clerp(RW.C0,cf(1,0.3,-.3)*euler(.6,0,-.6),.35)
805
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
806
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.6,0,-.4),.35)
807
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
808
RH.C0=clerp(RH.C0,cf(.5,-1,-.5)*euler(0,1.57,0)*euler(0,1.3,0),.35)
809
LH.C0=clerp(LH.C0,cf(-.5,-1,.5)*euler(0,-1.57,0)*euler(0,1.3,0),.35)
810
end
811
local orb2=part(3,modelzorz,0,.5,BrickColor.new("Bright yellow"),"Orb",vt(1,1,1))
812
orb2.Anchored=true
813
local omsh=mesh("SpecialMesh",orb2,"Sphere","",vt(0,0,0),vt(2,2,2))
814
local osound2=Instance.new("Sound",orb2)
815
osound2.Volume=.5
816
osound2.Pitch=1.2
817
osound2.Looped=true
818
osound2.SoundId="http://www.roblox.com/asset/?id=192603255"
819
osound2:Play()
820
orb2.CFrame=RootPart.CFrame*cf(0,0,-5)
821
table.insert(Orbs,orb2)
822
attack=false
823
end
824
 
825
function Detonation()
826
attack=true
827
for i=0,1,0.1 do
828
swait()
829
hwld.C0=clerp(hwld.C0,euler(0,-1.7,0)*cf(-.2,.6,1)*euler(.8,1.5,0),.3)
830
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
831
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
832
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.8,0,-.2),.3)
833
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
834
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8),.3)
835
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
836
RH.C0=clerp(RH.C0,RHC0,.3)
837
LH.C0=clerp(LH.C0,LHC0,.3)
838
end
839
if #Orbs>0 then
840
for i=1,#Orbs do
841
MagniDamage(Orbs[1],15,10,20,math.random(20,30),"Knockdown2",true)
842
local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
843
ref.Anchored=true
844
ref.CFrame=cf(Orbs[1].Position)
845
game:GetService("Debris"):AddItem(ref,.5)
846
--[[so("http://www.roblox.com/asset/?id=87784452",ref,1,2) 
847
so("http://www.roblox.com/asset/?id=169380598",ref,1,2) ]]
848
so("http://roblox.com/asset/?id=192597368",ref,.6,1.4) 
849
MagicCircle(BrickColor.new("Bright yellow"),cf(Orbs[1].Position),1,1,1,10,10,10,0.1)
850
MagicBlock(BrickColor.new("Bright yellow"),cf(Orbs[1].Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,3,3,3,0.05,1)
851
MagicBlock(BrickColor.new("Bright red"),cf(Orbs[1].Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,2.5,2.5,2.5,0.02,2)
852
for i=1,2 do
853
MagicNote(BrickColor:random(),cf(Orbs[1].Position)*euler(1.57,0,math.random(-50,50)),.1,.1,.1,0,0,0,.02)
854
end
855
Orbs[1].Parent=nil
856
table.remove(Orbs,1)
857
end
858
end
859
for i=0,1,0.1 do
860
swait()
861
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1),.3)
862
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
863
end
864
swait(10)
865
attack=false
866
end
867
 
868
function MelodyBlast()
869
attack=true
870
if #Orbs>0 then
871
for i=1,#Orbs do
872
Orbs[1].Parent=workspace
873
end
874
end
875
if MMouse.Target~=nil and MMouse.Target.Name=="Orb" then
876
MainOrb=MMouse.Target
877
orbget=true
878
for i=0,1,0.1 do
879
swait()
880
hwld.C0=clerp(hwld.C0,euler(0,-.5,0)*cf(0,1,1)*euler(.7,1.9,0),.3)
881
Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.3)*euler(0,0,0),.3)
882
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.3),.3)
883
RW.C0=clerp(RW.C0,cf(1,0.3,-.3)*euler(.6,0,-.2),.3)
884
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
885
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8),.3)
886
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
887
RH.C0=clerp(RH.C0,cf(.5,-1,-.5)*euler(0,1.57,0)*euler(0,1.3,0),.3)
888
LH.C0=clerp(LH.C0,cf(-.5,-1,.5)*euler(0,-1.57,0)*euler(0,1.3,0),.3)
889
end
890
effect("Bright yellow",.2,MainOrb.CFrame,prt15.CFrame)
891
so("http://roblox.com/asset/?id=192603389",prt15,1,1) 
892
while orbget==true do
893
swait()
894
MainOrb.CFrame=prt15.CFrame
895
end
896
so("http://roblox.com/asset/?id=192603356",prt15,1,1) 
897
local MainPos=MainOrb.Position
898
local MainPos2=MMouse.Hit.p
899
local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
900
local num=30
901
coroutine.resume(coroutine.create(function(Pos1,Pos2,Look) 
902
repeat
903
swait()
904
local ohit,opos=rayCast(Pos1,Look.lookVector,5,Character)
905
MainOrb.CFrame=CFrame.new((Pos1+opos)/2,opos)
906
Pos1=Pos1+(Look.lookVector*5)
907
MainOrb.CFrame=CFrame.new(MainOrb.Position,MMouse.Hit.p) 
908
if ohit~=nil then
909
num=0
910
MagniDamage(MainOrb,15,10,20,math.random(10,20),"Knockdown2")
911
local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
912
ref.Anchored=true
913
ref.CFrame=cf(MainOrb.Position)
914
game:GetService("Debris"):AddItem(ref,.5)
915
so("http://www.roblox.com/asset/?id=87784452",ref,1,2.3) 
916
so("http://www.roblox.com/asset/?id=169380598",ref,1,2.3) 
917
MagicCircle(BrickColor.new("Bright yellow"),cf(MainOrb.Position),1,1,1,10,10,10,0.1)
918
MagicBlock(BrickColor.new("Bright yellow"),cf(MainOrb.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,3,3,3,0.05,1)
919
MagicBlock(BrickColor.new("Bright red"),cf(MainOrb.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,2.5,2.5,2.5,0.02,2)
920
for i=1,2 do
921
MagicNote(BrickColor:random(),cf(MainOrb.Position)*euler(1.57,0,math.random(-50,50)),.1,.1,.1,0,0,0,.02)
922
end
923
end
924
--MainOrb.CFrame=MainOrb.CFrame+MainOrb.CFrame.lookVector * 1 
925
num=num-1
926
until num<=0
927
end),MainPos,MainPos2,MouseLook)
928
--[[local TheHit=MMouse.Hit.p
929
local MouseLook=cf((prt15.Position+TheHit)/2,TheHit)
930
MainOrb.CFrame=MouseLook.lookVector]]
931
else
932
mana=mana+15
933
end
934
if #Orbs>0 then
935
for i=1,#Orbs do
936
Orbs[1].Parent=modelzorz
937
end
938
end
939
attack=false
940
end
941
 
942
function MagniDamage(Part,magni,mindam,maxdam,knock,Type,Heal)
943
for _,c in pairs(workspace:children()) do
944
local hum=c:findFirstChild("Humanoid")
945
if hum~=nil then
946
local head=c:findFirstChild("Torso")
947
if head~=nil then
948
local targ=head.Position-Part.Position
949
local mag=targ.magnitude
950
if mag<=magni and c.Name~=Player.Name then 
951
Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,3,1)
952
if Heal~=nil and Heal==true then
953
print("derp")
954
for i=1,#Allies do
955
if head.Parent==Allies[i] then
956
hnum=math.random(mindam,maxdam)
957
hum.Health=hum.Health+hnum
958
showDamage(head.Parent,hnum,.5,BrickColor.new("White"))
959
end
960
end
961
end
962
end
963
end
964
end
965
end
966
end
967
 
968
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
969
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
970
end 
971
 
972
local Effects={}
973
local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
974
LastPoint=Point
975
function effect(Color,Ref,LP,P1,returnn)
976
local effectsmsh=Instance.new("CylinderMesh")
977
effectsmsh.Scale=Vector3.new(0.2,1,0.2)
978
effectsmsh.Name="Mesh"
979
local effectsg=Instance.new("Part")
980
effectsg.formFactor=3
981
effectsg.CanCollide=false
982
effectsg.Name="Eff"
983
effectsg.Locked=true
984
effectsg.Anchored=true
985
effectsg.Size=Vector3.new(0.5,1,0.5)
986
effectsg.Parent=workspace
987
effectsmsh.Parent=effectsg
988
effectsg.BrickColor=Color1
989
effectsg.Reflectance=Ref
990
local point1=P1
991
local mg=(LP.p - point1.p).magnitude
992
effectsg.Size=Vector3.new(0.5,mg,0.5)
993
effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
994
effectsmsh.Scale=Vector3.new(0.4,1,0.4)
995
game:GetService("Debris"):AddItem(effectsg,2)
996
if returnn then return effectsg end
997
if not returnn then
998
table.insert(Effects,{effectsg,"Cylinder",0.05,0.01,0,0.01,effectsmsh})
999
end
1000
end
1001
 
1002
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
1003
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
1004
prt.Anchored=true
1005
prt.CFrame=cframe
1006
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1007
game:GetService("Debris"):AddItem(prt,5)
1008
if Type==1 or Type==nil then
1009
table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
1010
elseif Type==2 then
1011
table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
1012
end
1013
end
1014
 
1015
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1016
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
1017
prt.Anchored=true
1018
prt.CFrame=cframe
1019
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1020
game:GetService("Debris"):AddItem(prt,2)
1021
table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
1022
end
1023
 
1024
function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1025
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
1026
prt.Anchored=true
1027
prt.CFrame=cframe
1028
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
1029
game:GetService("Debris"):AddItem(prt,5)
1030
table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
1031
end
1032
 
1033
function MagicNote(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
1034
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
1035
prt.Anchored=true
1036
prt.CFrame=cframe
1037
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1088207",vt(0,0,0),vt(x1,y1,z1))
1038
--msh.TextureId="http://www.roblox.com/asset/?id=1088099"
1039
game:GetService("Debris"):AddItem(prt,5)
1040
table.insert(Effects,{prt,"Block3",delay,x3,y3,z3,msh,cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-50,-10)/100)})
1041
end
1042
 
1043
function Lightning(p0,p1,tym,ofs,col,th,tra,last)
1044
--[[p0=pos1
1045
p1=pos2
1046
tym=times
1047
ofs=offset
1048
col=color
1049
th=size
1050
tra=transparency
1051
last=lastingtime]]
1052
local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
1053
for i=1,tym do 
1054
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)
1055
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)]) 
1056
local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
1057
if tym == i then 
1058
local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
1059
li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
1060
else
1061
li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
1062
end
1063
curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
1064
end
1065
end
1066
 
1067
Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
1068
        if hit.Parent==nil then
1069
                return
1070
        end
1071
        h=hit.Parent:FindFirstChild("Humanoid")
1072
        for _,v in pairs(hit.Parent:children()) do
1073
        if v:IsA("Humanoid") then
1074
        h=v
1075
        end
1076
        end
1077
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
1078
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
1079
        end
1080
        if hit.Parent.className=="Hat" then
1081
        hit=hit.Parent.Parent:findFirstChild("Head")
1082
        end
1083
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
1084
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
1085
        for i=1,#Allies do
1086
        if hit.Parent==Allies[i] or hit.Parent.Parent==Allies[i] then print("noe ally") return end
1087
        end
1088
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
1089
                        return
1090
                end]]
1091
--                        hs(hit,1.2) 
1092
                        c=Instance.new("ObjectValue")
1093
                        c.Name="creator"
1094
                        c.Value=game:service("Players").LocalPlayer
1095
                        c.Parent=h
1096
                        game:GetService("Debris"):AddItem(c,.5)
1097
                Damage=math.random(minim,maxim)
1098
--                h:TakeDamage(Damage)
1099
                blocked=false
1100
                block=hit.Parent:findFirstChild("Block")
1101
                if block~=nil then
1102
                print(block.className)
1103
                if block.className=="NumberValue" then
1104
                if block.Value>0 then
1105
                blocked=true
1106
                if decreaseblock~=nil then
1107
                block.Value=block.Value-decreaseblock
1108
                end
1109
                end
1110
                end
1111
                if block.className=="IntValue" then
1112
                if block.Value>0 then
1113
                blocked=true
1114
                if decreaseblock~=nil then
1115
                block.Value=block.Value-decreaseblock
1116
                end
1117
                end
1118
                end
1119
                end
1120
                if blocked==false then
1121
--                h:TakeDamage(Damage)
1122
                h.Health=h.Health-Damage
1123
                showDamage(hit.Parent,Damage,.5,BrickColor:Red())
1124
                else
1125
                h.Health=h.Health-(Damage/2)
1126
                showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
1127
                end
1128
                if Type=="Knockdown" then
1129
                hum=hit.Parent.Humanoid
1130
hum.PlatformStand=true
1131
coroutine.resume(coroutine.create(function(HHumanoid)
1132
swait(1)
1133
HHumanoid.PlatformStand=false
1134
end),hum)
1135
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
1136
--hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
1137
local bodvol=Instance.new("BodyVelocity")
1138
bodvol.velocity=angle*knockback
1139
bodvol.P=5000
1140
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
1141
bodvol.Parent=hit
1142
rl=Instance.new("BodyAngularVelocity")
1143
rl.P=3000
1144
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1145
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1146
rl.Parent=hit
1147
game:GetService("Debris"):AddItem(bodvol,.5)
1148
game:GetService("Debris"):AddItem(rl,.5)
1149
                elseif Type=="Knockdown2" then
1150
                hum=hit.Parent.Humanoid
1151
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
1152
--hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
1153
local bodvol=Instance.new("BodyVelocity")
1154
bodvol.velocity=angle*knockback
1155
bodvol.P=5000
1156
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
1157
bodvol.Parent=hit
1158
game:GetService("Debris"):AddItem(bodvol,.5)
1159
--game:GetService("Debris"):AddItem(rl,.5)
1160
                elseif Type=="Normal" then
1161
                vp=Instance.new("BodyVelocity")
1162
                vp.P=500
1163
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
1164
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
1165
                if KnockbackType==1 then
1166
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
1167
                elseif KnockbackType==2 then
1168
                vp.velocity=Property.CFrame.lookVector*knockback
1169
                end
1170
                if knockback>0 then
1171
                        vp.Parent=hit.Parent.Torso
1172
                end
1173
                game:GetService("Debris"):AddItem(vp,.5)
1174
                elseif Type=="Up" then
1175
                local bodyVelocity=Instance.new("BodyVelocity")
1176
                bodyVelocity.velocity=vt(0,30,0)
1177
                bodyVelocity.P=5000
1178
                bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
1179
                bodyVelocity.Parent=hit
1180
                game:GetService("Debris"):AddItem(bodyVelocity,1)
1181
                rl=Instance.new("BodyAngularVelocity")
1182
                rl.P=3000
1183
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1184
                rl.angularvelocity=Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
1185
                rl.Parent=hit
1186
                game:GetService("Debris"):AddItem(rl,.5)
1187
                elseif Type=="Snare" then
1188
                bp=Instance.new("BodyPosition")
1189
                bp.P=2000
1190
                bp.D=100
1191
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
1192
                bp.position=hit.Parent.Torso.Position
1193
                bp.Parent=hit.Parent.Torso
1194
                game:GetService("Debris"):AddItem(bp,1)
1195
                end
1196
                        debounce=Instance.new("BoolValue")
1197
                        debounce.Name="DebounceHit"
1198
                        debounce.Parent=hit.Parent
1199
                        debounce.Value=true
1200
                        game:GetService("Debris"):AddItem(debounce,Delay)
1201
                        c=Instance.new("ObjectValue")
1202
                        c.Name="creator"
1203
                        c.Value=Player
1204
                        c.Parent=h
1205
                        game:GetService("Debris"):AddItem(c,.5)
1206
                CRIT=false
1207
        end
1208
end
1209
 
1210
showDamage=function(Char,Dealt,du,Color)
1211
        m=Instance.new("Model")
1212
        m.Name=tostring(math.floor(Dealt))
1213
        h=Instance.new("Humanoid")
1214
        h.Health=0
1215
        h.MaxHealth=0
1216
        h.Parent=m
1217
        c=Instance.new("Part")
1218
        c.Transparency=0
1219
        c.BrickColor=Color
1220
        c.Name="Head"
1221
        c.TopSurface=0
1222
        c.BottomSurface=0
1223
        c.formFactor="Plate"
1224
        c.Size=Vector3.new(1,.4,1)
1225
        ms=Instance.new("CylinderMesh")
1226
        ms.Scale=Vector3.new(.8,.8,.8)
1227
        if CRIT==true then
1228
                ms.Scale=Vector3.new(1,1.25,1)
1229
        end
1230
        ms.Parent=c
1231
        c.Reflectance=0
1232
        Instance.new("BodyGyro").Parent=c
1233
        c.Parent=m
1234
        if Char:findFirstChild("Head")~=nil then
1235
        c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
1236
        elseif Char.Parent:findFirstChild("Head")~=nil then
1237
        c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
1238
        end
1239
        f=Instance.new("BodyPosition")
1240
        f.P=2000
1241
        f.D=100
1242
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
1243
        f.position=c.Position+Vector3.new(0,3,0)
1244
        f.Parent=c
1245
        game:GetService("Debris"):AddItem(m,.5+du)
1246
        c.CanCollide=false
1247
        m.Parent=workspace
1248
        c.CanCollide=false
1249
end
1250
 
1251
combo=0
1252
function ob1d(mouse) 
1253
if orbget==true then
1254
orbget=false
1255
end
1256
if attack==true or equipped==false then return end
1257
hold=true
1258
size=0
1259
fenbarmana3:TweenSize(UDim2.new(4*0/100,0,0.2,0),nil,1,0.4,true)
1260
Input=""
1261
if combo==0 then
1262
combo=1
1263
attacktwo()
1264
elseif combo==1 then
1265
combo=2
1266
attackthree()
1267
elseif combo==2 then
1268
combo=0
1269
attackone()
1270
end
1271
coroutine.resume(coroutine.create(function() 
1272
for i=1,50 do
1273
if attack==false then
1274
swait()
1275
end
1276
end
1277
if attack==false then
1278
combo=0
1279
orb.Parent=nil
1280
end
1281
end))
1282
end 
1283
 
1284
function ob1u(mouse) 
1285
hold = false 
1286
end 
1287
 
1288
buttonhold = false 
1289
 
1290
eul=0
1291
size=0
1292
holdz=false
1293
equipped=false
1294
function key(key) 
1295
if attack==true then return end
1296
if key=="f" then
1297
attack=true
1298
if equipped==false then
1299
equipped=true
1300
RSH=ch.Torso["Right Shoulder"] 
1301
LSH=ch.Torso["Left Shoulder"] 
1302
-- 
1303
RSH.Parent=nil 
1304
LSH.Parent=nil 
1305
-- 
1306
RW.Name="Right Shoulder"
1307
RW.Part0=ch.Torso 
1308
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
1309
RW.C1=cf(0, 0.5, 0) 
1310
RW.Part1=ch["Right Arm"] 
1311
RW.Parent=ch.Torso 
1312
-- 
1313
LW.Name="Left Shoulder"
1314
LW.Part0=ch.Torso 
1315
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
1316
LW.C1=cf(0, 0.5, 0) 
1317
LW.Part1=ch["Left Arm"] 
1318
LW.Parent=ch.Torso 
1319
--
1320
equipanim() 
1321
else
1322
equipped=false
1323
hideanim() 
1324
swait(0) 
1325
RW.Parent=nil 
1326
LW.Parent=nil 
1327
RSH.Parent=player.Character.Torso 
1328
LSH.Parent=player.Character.Torso 
1329
end
1330
attack=false
1331
end
1332
if equipped==false then return end
1333
if key=="h" then
1334
mana=100
1335
end
1336
if key=="j" then
1337
if #Orbs>0 then
1338
for i=1,#Orbs do
1339
Orbs[1].Parent=nil
1340
table.remove(Orbs,1)
1341
end
1342
end
1343
end
1344
if key=="q" then
1345
mana=mana-size
1346
fenbarmana3:TweenSize(UDim2.new(4*0/100,0,0.2,0),nil,1,0.4,true)
1347
if size>0 then
1348
MagicBlock(BrickColor.new("Bright red"),cf(prt15.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,2,2,2,0.1,2)
1349
end
1350
if Input=="xcz" then
1351
print("dream")
1352
DreamHarmony()
1353
elseif Input=="nvm" then
1354
print("nightmare")
1355
NightmareDiscord()
1356
elseif Input=="bvnc" then
1357
print("distune")
1358
DistuneField()
1359
elseif Input=="zc" and #Orbs<3 then
1360
print("melody")
1361
MelodyOrb()
1362
elseif Input=="vcm" then
1363
print("detonate")
1364
Detonation()
1365
elseif Input=="vvc" then
1366
print("mblast")
1367
MelodyBlast()
1368
end
1369
Input=""
1370
size=0
1371
end
1372
if (key=="z" or key=="x" or key=="c" or key=="v" or key=="b" or key=="n" or key=="m") and mana>=size then
1373
Input=Input..key
1374
if size<=40 then
1375
size=size+5
1376
fenbarmana3:TweenSize(UDim2.new(4*size/100,0,0.2,0),nil,1,0.4,true)
1377
end
1378
print(Input)
1379
KeyPress(key,true)
1380
coroutine.resume(coroutine.create(function() 
1381
while keypress==true do
1382
swait()
1383
end
1384
for i=1,50 do
1385
if keypress==false then
1386
swait()
1387
end
1388
end
1389
if keypress==false and attack==false then
1390
size=0
1391
fenbarmana3:TweenSize(UDim2.new(4*0/100,0,0.2,0),nil,1,0.4,true)
1392
Input=""
1393
print("ded")
1394
end
1395
end))
1396
end
1397
coroutine.resume(coroutine.create(function() 
1398
for i=1,50 do
1399
if attack==false then
1400
swait()
1401
end
1402
end
1403
if attack==false then
1404
combo=0
1405
orb.Parent=nil
1406
end
1407
end))
1408
end 
1409
 
1410
function key2(key) 
1411
end 
1412
 
1413
function s(mouse) 
1414
mouse.Button1Down:connect(function() ob1d(mouse) end) 
1415
mouse.Button1Up:connect(function() ob1u(mouse) end) 
1416
mouse.KeyDown:connect(key) 
1417
mouse.KeyUp:connect(key2) 
1418
 
1419
player=Player 
1420
ch=Character 
1421
MMouse=mouse 
1422
end 
1423
 
1424
function ds(mouse) 
1425
end 
1426
 
1427
Bin.Selected:connect(s) 
1428
Bin.Deselected:connect(ds) 
1429
print("Cyber Virtuoso loaded.")
1430
 
1431
local mananum=0
1432
local donum=0
1433
local handidle=false
1434
local orbnum=0
1435
while true do
1436
swait()
1437
if #Orbs>0 then
1438
for i=1,#Orbs do
1439
if Humanoid.Health<=0 or Torso.Parent==nil then
1440
Orbs[1].Parent=nil
1441
table.remove(Orbs,1)
1442
else
1443
MagicBlock(BrickColor.new("New Yeller"),cf(Orbs[i].Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,2,2,2,0.2,2)
1444
end
1445
end
1446
end
1447
if orb.Parent~=nil then
1448
osound:Play()
1449
if orbnum>=2 then
1450
orbnum=0
1451
MagicBlock(BrickColor.new("Bright red"),cf(orb.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,2,2,2,0.1,1)
1452
end
1453
orbnum=orbnum+1
1454
else
1455
osound:Pause()
1456
end
1457
if donum>=.5 then
1458
handidle=true
1459
elseif donum<=0 then
1460
handidle=false
1461
end
1462
if handidle==false then
1463
donum=donum+0.003
1464
else
1465
donum=donum-0.003
1466
end
1467
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
1468
local velderp=RootPart.Velocity.y
1469
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
1470
if equipped==true then
1471
if attack==false then
1472
idle=idle+1
1473
else
1474
idle=0
1475
end
1476
if idle>=500 then
1477
if attack==false then
1478
--Sheath()
1479
end
1480
end
1481
if RootPart.Velocity.y > 1 and hitfloor==nil then 
1482
Anim="Jump"
1483
if attack==false then
1484
Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
1485
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
1486
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
1487
if keypress==false then
1488
for i=1,#KeysWeld do
1489
KeysWeld[i].C0=clerp(KeysWeld[i].C0,KeysC0[i],.3)
1490
end
1491
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,0,0.2),.3)
1492
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
1493
end
1494
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8),.3)
1495
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
1496
RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
1497
LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
1498
end
1499
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
1500
Anim="Fall"
1501
if attack==false then
1502
Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
1503
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
1504
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
1505
if keypress==false then
1506
for i=1,#KeysWeld do
1507
KeysWeld[i].C0=clerp(KeysWeld[i].C0,KeysC0[i],.3)
1508
end
1509
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,0,0.2),.3)
1510
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
1511
end
1512
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8),.3)
1513
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
1514
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
1515
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
1516
end
1517
elseif torvel<1 and hitfloor~=nil then
1518
Anim="Idle"
1519
if attack==false then
1520
hwld.C0=clerp(hwld.C0,euler(0,-.5,0)*cf(0,1,1)*euler(.7,1.9,0),.3)
1521
Neck.C0=clerp(Neck.C0,necko*euler(.3,0,-.2),.3)
1522
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.3)
1523
if keypress==false then
1524
for i=1,#KeysWeld do
1525
KeysWeld[i].C0=clerp(KeysWeld[i].C0,KeysC0[i],.3)
1526
end
1527
RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(.8,0,-.4),.3)
1528
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
1529
end
1530
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8),.3)
1531
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
1532
RH.C0=clerp(RH.C0,RHC0,.3)
1533
RH.C1=clerp(RH.C1,RHC1,.3)
1534
LH.C0=clerp(LH.C0,LHC0,.3)
1535
LH.C1=clerp(LH.C1,LHC1,.3)
1536
end
1537
elseif torvel>2 and torvel<22 and hitfloor~=nil then
1538
Anim="Walk"
1539
if attack==false then
1540
hwld.C0=clerp(hwld.C0,euler(0,-.5,0)*cf(0,1,1)*euler(.7,1.9,0),.3)
1541
Neck.C0=clerp(Neck.C0,necko*euler(0,0,.6)*euler(-.1,0,0),.3)
1542
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.2,0,-.6),.3)
1543
if keypress==false then
1544
for i=1,#KeysWeld do
1545
KeysWeld[i].C0=clerp(KeysWeld[i].C0,KeysC0[i],.3)
1546
end
1547
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,0,0.2),.3)
1548
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
1549
end
1550
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8),.3)
1551
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
1552
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.6,0),.3)
1553
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.6,0),.3)
1554
end
1555
elseif torvel>=22 and hitfloor~=nil then
1556
Anim="Run"
1557
if attack==false then
1558
Neck.C0=clerp(Neck.C0,necko*euler(0,0,.6)*euler(-.3,0,0),.3)
1559
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.3,0,-.6),.3)
1560
if keypress==false then
1561
for i=1,#KeysWeld do
1562
KeysWeld[i].C0=clerp(KeysWeld[i].C0,KeysC0[i],.3)
1563
end
1564
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,0,0.2),.3)
1565
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
1566
end
1567
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8),.3)
1568
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
1569
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.6,0),.3)
1570
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.6,0),.3)
1571
end
1572
end
1573
end
1574
if #Effects>0 then
1575
--table.insert(Effects,{prt,"Block1",delay})
1576
for e=1,#Effects do
1577
if Effects[e]~=nil then
1578
--for j=1,#Effects[e] do
1579
local Thing=Effects[e]
1580
if Thing~=nil then
1581
local Part=Thing[1]
1582
local Mode=Thing[2]
1583
local Delay=Thing[3]
1584
local IncX=Thing[4]
1585
local IncY=Thing[5]
1586
local IncZ=Thing[6]
1587
if Thing[1].Transparency<=1 then
1588
if Thing[2]=="Block1" then
1589
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1590
Mesh=Thing[7]
1591
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
1592
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1593
elseif Thing[2]=="Block2" then
1594
Thing[1].CFrame=Thing[1].CFrame
1595
Mesh=Thing[7]
1596
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
1597
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1598
elseif Thing[2]=="Block3" then
1599
Thing[1].CFrame=Thing[1].CFrame*Thing[8]
1600
Mesh=Thing[7]
1601
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
1602
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1603
elseif Thing[2]=="Cylinder" then
1604
Mesh=Thing[7]
1605
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
1606
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1607
elseif Thing[2]=="Blood" then
1608
Mesh=Thing[7]
1609
Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
1610
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
1611
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1612
elseif Thing[2]=="Elec" then
1613
Mesh=Thing[7]
1614
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
1615
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1616
elseif Thing[2]=="Disappear" then
1617
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1618
end
1619
else
1620
Part.Parent=nil
1621
table.remove(Effects,e)
1622
end
1623
end
1624
--end
1625
end
1626
end
1627
end
1628
fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
1629
fenbarmana4.Text="Energy("..mana..")"
1630
if mana>=100 then
1631
mana=100
1632
else
1633
if mananum<=15 then
1634
mananum=mananum+1
1635
else
1636
mananum=0
1637
if Input=="" then
1638
mana=mana+1
1639
end
1640
end
1641
end
1642
end
1643
--[[ 
1644
Copyrighted (C) Fenrier 2014
1645
]]