View difference between Paste ID: 7hwfBv8j and DZVV9AGG
SHOW: | | - or go back to the newest paste.
1-
Player=game:GetService("Players").LocalPlayer
1+
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
do
4
	print("FE Compatibility code by Mokiros")
5
	script.Parent = Player.Character
6
7
	--RemoteEvent for communicating
8
	local Event = Instance.new("RemoteEvent")
9
	Event.Name = "UserInput_Event"
10
11
	--Fake event to make stuff like Mouse.KeyDown work
12
	local function fakeEvent()
13
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
14
		t.connect = t.Connect
15
		return t
16
	end
17
18
	--Creating fake input objects with fake variables
19
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
20
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
21
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
22
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
23
	end}
24
	--Merged 2 functions into one by checking amount of arguments
25
	CAS.UnbindAction = CAS.BindAction
26
27
	--This function will trigger the events that have been :Connect()'ed
28
	local function te(self,ev,...)
29
		local t = m[ev]
30
		if t and t._fakeEvent and t.Function then
31
			t.Function(...)
32
		end
33
	end
34
	m.TrigEvent = te
35
	UIS.TrigEvent = te
36
37
	Event.OnServerEvent:Connect(function(plr,io)
38
	    if plr~=Player then return end
39
		if io.isMouse then
40
			m.Target = io.Target
41
			m.Hit = io.Hit
42
		else
43
			local b = io.UserInputState == Enum.UserInputState.Begin
44
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
45
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
46
			end
47
			for _,t in pairs(CAS.Actions) do
48
				for _,k in pairs(t.Keys) do
49
					if k==io.KeyCode then
50
						t.Function(t.Name,io.UserInputState,io)
51
					end
52
				end
53
			end
54
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
55
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
56
	    end
57
	end)
58
	Event.Parent = NLS([==[
59
	local Player = game:GetService("Players").LocalPlayer
60
	local Event = script:WaitForChild("UserInput_Event")
61-
mouse=Player:GetMouse()
61+
62
	local UIS = game:GetService("UserInputService")
63
	local input = function(io,a)
64
		if a then return end
65
		--Since InputObject is a client-side instance, we create and pass table instead
66
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
67
	end
68
	UIS.InputBegan:Connect(input)
69
	UIS.InputEnded:Connect(input)
70
71
	local Mouse = Player:GetMouse()
72
	local h,t
73
	--Give the server mouse data 30 times every second, but only if the values changed
74
	--If player is not moving their mouse, client won't fire events
75
	while wait(1/30) do
76
		if h~=Mouse.Hit or t~=Mouse.Target then
77
			h,t=Mouse.Hit,Mouse.Target
78
			Event:FireServer({isMouse=true,Target=t,Hit=h})
79
		end
80
	end]==],Player.Character)
81
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
82
end
83
Player=owner
84
Character=Player.Character 
85
PlayerGui=Player.PlayerGui
86
Backpack=Player.Backpack 
87
Torso=Character.Torso 
88
Head=Character.Head 
89
Humanoid=Character.Humanoid
90
LeftArm=Character["Left Arm"] 
91
LeftLeg=Character["Left Leg"] 
92
RightArm=Character["Right Arm"] 
93
RightLeg=Character["Right Leg"] 
94
cam=game.Workspace.CurrentCamera
95
LS=Torso["Left Shoulder"] 
96
LH=Torso["Left Hip"] 
97
RS=Torso["Right Shoulder"] 
98
RH=Torso["Right Hip"] 
99
Face = Head.face
100
Neck=Torso.Neck
101
it=Instance.new
102
attacktype=1
103
vt=Vector3.new
104
cf=CFrame.new
105
euler=CFrame.fromEulerAnglesXYZ
106
angles=CFrame.Angles
107
cloaked=false
108
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
109
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
110
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
111
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
112
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
113
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
114
RootPart=Character.HumanoidRootPart
115
RootJoint=RootPart.RootJoint
116
RootCF=euler(-1.57,0,3.14)
117
attack = false 
118
bounce=false
119
cooldown=false
120
deeznuts=false
121
attackdebounce = false 
122
deb=false
123
equipped=true
124
hand=false
125
MMouse=nil
126
combo=0
127
mana=0
128
trispeed=.2
129
attackmode='none'
130
local idle=0
131
local Anim="Idle"
132
local Effects={}
133
local gun=false
134
local shoot=false
135
player=nil 
136
mana=0
137
cam = workspace.CurrentCamera
138
ZTarget = nil
139
RocketTarget = nil
140
local m = Instance.new("Model",Character)
141
m.Name = "WeaponModel"
142
143
Mouse=Player:GetMouse()
144
--save shoulders 
145
RSH, LSH=nil, nil 
146
--welds 
147
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
148
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
149
LH=Torso["Left Hip"]
150
RH=Torso["Right Hip"]
151
TorsoColor=Torso.BrickColor
152
function NoOutline(Part)
153
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
154
end
155
player=Player 
156
ch=Character
157
RSH=ch.Torso["Right Shoulder"] 
158
LSH=ch.Torso["Left Shoulder"] 
159
-- 
160
RSH.Parent=nil 
161
LSH.Parent=nil 
162
-- 
163
RW.Name="Right Shoulder"
164
RW.Part0=ch.Torso 
165
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
166
RW.C1=cf(0, 0.5, 0) 
167
RW.Part1=ch["Right Arm"] 
168
RW.Parent=ch.Torso 
169
-- 
170
LW.Name="Left Shoulder"
171
LW.Part0=ch.Torso 
172
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
173
LW.C1=cf(0, 0.5, 0) 
174
LW.Part1=ch["Left Arm"] 
175
LW.Parent=ch.Torso 
176
177
	function swait(num)
178
    if num==0 or num==nil then
179
    game:service'RunService'.Heartbeat:wait(0)
180
    else
181
    for i=0,num do
182
    game:service'RunService'.Heartbeat:wait(0)
183
    end
184
    end
185
	end
186
	
187
	function nooutline(part)
188
		part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
189
	end
190
	
191
	function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
192
		local fp=it("Part")
193
		fp.formFactor=formfactor
194
		fp.Parent=parent
195
		fp.Reflectance=reflectance
196
		fp.Transparency=transparency
197
		fp.CanCollide=false
198
		fp.Locked=true
199
		fp.BrickColor=BrickColor.new(tostring(brickcolor))
200
		fp.Name=name
201
		fp.Size=size
202
		fp.Position=Character.Torso.Position
203
		nooutline(fp)
204
		fp.Material=material
205
		fp:BreakJoints()
206
		return fp
207
	end
208
	
209
	function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
210
		local fp = it("Part")
211
		fp.formFactor = formfactor 
212
		fp.Parent = parent
213
		fp.Reflectance = reflectance
214
		fp.Transparency = transparency
215
		fp.CanCollide = false 
216
		fp.Locked=true
217
		fp.BrickColor = brickcolor
218
		fp.Name = name
219
		fp.Size = size
220
		fp.Position = EffectPart.Position 
221
		NoOutline(fp)
222
		fp.Material="Neon"
223
		fp:BreakJoints()
224
		return fp 
225
	end 
226
	
227
	function wweld(parent,part0,part1,c0)
228
		local weld=it("Weld") 
229
		weld.Parent=parent	
230
		weld.Part0=part0 
231
		weld.Part1=part1 
232
		weld.C0=c0
233
		return weld
234
	end
235
	
236
	function mesh(Mesh,part,meshtype,meshid,offset,scale)
237
		local mesh=it(Mesh)
238
		mesh.Parent=part
239
		if Mesh=="SpecialMesh" then
240
			mesh.MeshType=meshtype
241
			mesh.MeshId=meshid
242
		end
243
		mesh.Offset=offset
244
		mesh.Scale=scale
245
		return mesh
246
	end
247
	
248
	function decal(part,face,texture,transparency,shiny,specular,name)
249
		local d=it("Decal",part)
250
		d.Shiny=shiny
251
		d.Face=face
252
		d.Specular=specular
253
		d.Transparency=transparency
254
		d.Texture=texture
255
		d.Name=name
256
		return d
257
	end
258
	
259
	function weld(parent,part0,part1,c0,c1)
260
		local weld=it("Weld")
261
		weld.Parent=parent
262
		weld.Part0=part0
263
		weld.Part1=part1
264
		weld.C0=c0
265
		weld.C1=c1
266
		return weld
267
	end
268
	
269
	
270
local function CFrameFromTopBack(at, top, back)
271
local right = top:Cross(back)
272
return CFrame.new(at.x, at.y, at.z,
273
right.x, top.x, back.x,
274
right.y, top.y, back.y,
275
right.z, top.z, back.z)
276
end
277
278
function Triangle(a, b, c)
279
local edg1 = (c-a):Dot((b-a).unit)
280
local edg2 = (a-b):Dot((c-b).unit)
281
local edg3 = (b-c):Dot((a-c).unit)
282
if edg1 <= (b-a).magnitude and edg1 >= 0 then
283
a, b, c = a, b, c
284
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
285
a, b, c = b, c, a
286
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
287
a, b, c = c, a, b
288
else
289
assert(false, "unreachable")
290
end
291
 
292
local len1 = (c-a):Dot((b-a).unit)
293
local len2 = (b-a).magnitude - len1
294
local width = (a + (b-a).unit*len1 - c).magnitude
295
 
296
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
297
 
298
local list = {}
299
300
local TrailColor = ("Royal purple")
301
 
302
if len1 > 0.01 then
303
local w1 = Instance.new('WedgePart', m)
304
game:GetService("Debris"):AddItem(w1,5)
305
w1.Material = "Neon"
306
w1.FormFactor = 'Custom'
307
w1.BrickColor = BrickColor.new(TrailColor)
308
w1.Transparency = 0
309
w1.Reflectance = 0
310
w1.Material = "Neon"
311
w1.CanCollide = false
312
NoOutline(w1)
313
local sz = Vector3.new(0.2, width, len1)
314
w1.Size = sz
315
local sp = Instance.new("SpecialMesh",w1)
316
sp.MeshType = "Wedge"
317
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
318
w1:BreakJoints()
319
w1.Anchored = true
320
w1.Parent = workspace
321
w1.Transparency = 0.7
322
table.insert(Effects,{w1,"Disappear",.01})
323
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
324
table.insert(list,w1)
325
end
326
 
327
if len2 > 0.01 then
328
local w2 = Instance.new('WedgePart', m)
329
game:GetService("Debris"):AddItem(w2,5)
330
w2.Material = "Neon"
331
w2.FormFactor = 'Custom'
332
w2.BrickColor = BrickColor.new(TrailColor)
333
w2.Transparency = 0
334
w2.Reflectance = 0
335
w2.Material = "Neon"
336
w2.CanCollide = false
337
NoOutline(w2)
338
local sz = Vector3.new(0.2, width, len2)
339
w2.Size = sz
340
local sp = Instance.new("SpecialMesh",w2)
341
sp.MeshType = "Wedge"
342
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
343
w2:BreakJoints()
344
w2.Anchored = true
345
w2.Parent = workspace
346
w2.Transparency = 0.7
347
table.insert(Effects,{w2,"Disappear",.01})
348
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
349
table.insert(list,w2)
350
end
351
return unpack(list)
352
end
353
	
354
	
355
so = function(id,par,vol,pit) 
356
coroutine.resume(coroutine.create(function()
357
local sou = Instance.new("Sound",par or workspace)
358
sou.Volume=vol
359
sou.Pitch=pit or 1
360
sou.SoundId=id
361
swait() 
362
sou:play() 
363
game:GetService("Debris"):AddItem(sou,6)
364
end))
365
end
366
 
367
function clerp(a,b,t) 
368
local qa = {QuaternionFromCFrame(a)}
369
local qb = {QuaternionFromCFrame(b)} 
370
local ax, ay, az = a.x, a.y, a.z 
371
local bx, by, bz = b.x, b.y, b.z
372
local _t = 1-t
373
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
374
end 
375
 
376
function QuaternionFromCFrame(cf) 
377
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
378
local trace = m00 + m11 + m22 
379
if trace > 0 then 
380
local s = math.sqrt(1 + trace) 
381
local recip = 0.5/s 
382
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
383
else 
384
local i = 0 
385
if m11 > m00 then
386
i = 1
387
end
388
if m22 > (i == 0 and m00 or m11) then 
389
i = 2 
390
end 
391-
                        c.Value=game:service("Players").LocalPlayer
391+
392
local s = math.sqrt(m00-m11-m22+1) 
393
local recip = 0.5/s 
394
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
395
elseif i == 1 then 
396
local s = math.sqrt(m11-m22-m00+1) 
397
local recip = 0.5/s 
398
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
399
elseif i == 2 then 
400
local s = math.sqrt(m22-m00-m11+1) 
401
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
402
end 
403
end 
404
end
405
 
406
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
407
local xs, ys, zs = x + x, y + y, z + z 
408
local wx, wy, wz = w*xs, w*ys, w*zs 
409
local xx = x*xs 
410
local xy = x*ys 
411
local xz = x*zs 
412
local yy = y*ys 
413
local yz = y*zs 
414
local zz = z*zs 
415
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)) 
416
end
417
 
418
function QuaternionSlerp(a, b, t) 
419
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
420
local startInterp, finishInterp; 
421
if cosTheta >= 0.0001 then 
422
if (1 - cosTheta) > 0.0001 then 
423
local theta = math.acos(cosTheta) 
424
local invSinTheta = 1/math.sin(theta) 
425
startInterp = math.sin((1-t)*theta)*invSinTheta 
426
finishInterp = math.sin(t*theta)*invSinTheta  
427
else 
428
startInterp = 1-t 
429
finishInterp = t 
430
end 
431
else 
432
if (1+cosTheta) > 0.0001 then 
433
local theta = math.acos(-cosTheta) 
434
local invSinTheta = 1/math.sin(theta) 
435
startInterp = math.sin((t-1)*theta)*invSinTheta 
436
finishInterp = math.sin(t*theta)*invSinTheta 
437
else 
438
startInterp = t-1 
439
finishInterp = t 
440
end 
441
end 
442
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 
443
end
444
445
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
446
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
447
end 
448
449
Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
450
        if hit.Parent==nil then
451
                return
452
        end
453
        local h=hit.Parent:FindFirstChild("Humanoid")
454
        for _,v in pairs(hit.Parent:children()) do
455
        if v:IsA("Humanoid") then
456
        h=v
457
        end
458
        end
459
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
460
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
461
        end
462
        if hit.Parent.className=="Hat" then
463
        hit=hit.Parent.Parent:findFirstChild("Head")
464
        end
465
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
466
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
467
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
468
                        return
469
                end]]
470
--                        hs(hit,1.2) 
471
                        local c=Instance.new("ObjectValue")
472
                        c.Name="creator"
473
                        c.Value=owner
474
                        c.Parent=h
475
                        game:GetService("Debris"):AddItem(c,.5)
476
                local Damage=math.random(minim,maxim)
477
--                h:TakeDamage(Damage)
478
                local  blocked=false
479
                local  block=hit.Parent:findFirstChild("Block")
480
                if block~=nil then
481
                print(block.className)
482
                if block.className=="NumberValue" then
483
                if block.Value>0 then
484
                blocked=true
485
                if decreaseblock==nil then
486
                block.Value=block.Value-1
487
                end
488
                end
489
                end
490
                if block.className=="IntValue" then
491
                if block.Value>0 then
492
                blocked=true
493
                if decreaseblock~=nil then
494
                block.Value=block.Value-1
495
                end
496
                end
497
                end
498
                end
499
                if blocked==false then
500
--                h:TakeDamage(Damage)
501
                h.Health=h.Health-Damage
502
                ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
503
                else
504
                h.Health=h.Health-(Damage/2)
505
                ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
506
                end
507
                if Type=="Knockdown" then
508
                local hum=hit.Parent.Humanoid
509
hum.PlatformStand=true
510
coroutine.resume(coroutine.create(function(HHumanoid)
511
swait(1)
512
HHumanoid.PlatformStand=false
513
end),hum)
514
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
515
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
516
local bodvol=Instance.new("BodyVelocity")
517
bodvol.velocity=angle*knockback
518
bodvol.P=5000
519
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
520
bodvol.Parent=hit
521
local rl=Instance.new("BodyAngularVelocity")
522
rl.P=3000
523
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
524
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
525
rl.Parent=hit
526
game:GetService("Debris"):AddItem(bodvol,.5)
527
game:GetService("Debris"):AddItem(rl,.5)
528
                elseif Type=="Normal" then
529
                local vp=Instance.new("BodyVelocity")
530
                vp.P=500
531
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
532
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
533
                if KnockbackType==1 then
534
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
535
                elseif KnockbackType==2 then
536
                vp.velocity=Property.CFrame.lookVector*knockback
537
                end
538
                if knockback>0 then
539
                        vp.Parent=hit.Parent.Torso
540
                end
541
                game:GetService("Debris"):AddItem(vp,.5)
542
                elseif Type=="Up" then
543
                local bodyVelocity=Instance.new("BodyVelocity")
544
                bodyVelocity.velocity=vt(0,60,0)
545
                bodyVelocity.P=5000
546
                bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
547
                bodyVelocity.Parent=hit
548
                game:GetService("Debris"):AddItem(bodyVelocity,1)
549
                local rl=Instance.new("BodyAngularVelocity")
550
                rl.P=3000
551
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
552
                rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
553
                rl.Parent=hit
554
                game:GetService("Debris"):AddItem(rl,.5)
555
                elseif Type=="Snare" then
556
                local bp=Instance.new("BodyPosition")
557
                bp.P=2000
558
                bp.D=100
559
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
560
                bp.position=hit.Parent.Torso.Position
561
                bp.Parent=hit.Parent.Torso
562
                game:GetService("Debris"):AddItem(bp,1)
563
                elseif Type=="Target" then
564
	            local Targetting = false
565
                if Targetting==false then
566
                ZTarget=hit.Parent.Torso
567
                coroutine.resume(coroutine.create(function(Part) 
568
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
569
                swait(5)
570
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
571
                end),ZTarget)
572
                local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
573
                local  targetgui=Instance.new("BillboardGui")
574
                targetgui.Parent=ZTarget
575
                targetgui.Size=UDim2.new(10,100,10,100)
576
                local targ=Instance.new("ImageLabel")
577
                targ.Parent=targetgui
578
                targ.BackgroundTransparency=1
579
                targ.Image="rbxassetid://4834067"
580
                targ.Size=UDim2.new(1,0,1,0)
581
                cam.CameraType="Scriptable"
582
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
583
                local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
584
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
585
                Targetting=true
586
                RocketTarget=ZTarget
587
                for i=1,Property do
588
                --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
589
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
590
                swait()
591
                end
592
                --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
593
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
594
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
595
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
596
                end
597
                Targetting=false
598
                RocketTarget=nil
599
                targetgui.Parent=nil
600
                cam.CameraType="Custom"
601
                end
602
                end
603
                        local debounce=Instance.new("BoolValue")
604
                        debounce.Name="DebounceHit"
605
                        debounce.Parent=hit.Parent
606
                        debounce.Value=true
607
                        game:GetService("Debris"):AddItem(debounce,Delay)
608
                        c=Instance.new("ObjectValue")
609
                        c.Name="creator"
610
                        c.Value=Player
611
                        c.Parent=h
612
                        game:GetService("Debris"):AddItem(c,.5)
613
        end
614
end
615
616
617
function ShowDamage(Pos, Text, Time, Color)
618
	local Rate = (1 / 30)
619
	local Pos = (Pos or Vector3.new(0, 0, 0))
620
	local Text = (Text or "")
621
	local Time = (Time or 2)
622
	local Color = (Color or Color3.new(1, 0, 0))
623
	local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
624
	EffectPart.Anchored = true
625
	local BillboardGui = Instance.new("BillboardGui")
626
	BillboardGui.Size = UDim2.new(3, 0, 3, 0)
627
	BillboardGui.Adornee = EffectPart
628
	local TextLabel = Instance.new("TextLabel")
629
	TextLabel.BackgroundTransparency = 1
630
	TextLabel.Size = UDim2.new(1, 0, 1, 0)
631
	TextLabel.Text = Text
632
	TextLabel.TextColor3 = Color
633
	TextLabel.TextScaled = true
634
	TextLabel.Font = Enum.Font.ArialBold
635
	TextLabel.Parent = BillboardGui
636
	BillboardGui.Parent = EffectPart
637
	game.Debris:AddItem(EffectPart, (Time + 0.1))
638
	EffectPart.Parent = game:GetService("Workspace")
639
	Delay(0, function()
640
		local Frames = (Time / Rate)
641
		for Frame = 1, Frames do
642
			wait(Rate)
643
			local Percent = (Frame / Frames)
644
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
645
			TextLabel.TextTransparency = Percent
646
		end
647
		if EffectPart and EffectPart.Parent then
648
			EffectPart:Destroy()
649
		end
650
	end)
651
end
652
653
handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","Handle",Vector3.new(0.200000003, 1.61857152, 0.200000003))
654
handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.995889783, -0.101109691, 0.0468789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008))
655
mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 1, 0.857142746))
656
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.257142872, 0.911428571))
657
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00982296467, -0.128642559, 5.57254982, -1.21753502e-007, -2.87620594e-010, 1, -1, -1.04306673e-006, -1.2175461e-007, 1.04306673e-006, -1, -2.87123214e-010))
658
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
659
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.571428657))
660
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0100114346, 3.24283266, 2.64644623e-005, -2.98713599e-006, -1.63886575e-008, -1, -1.18017197e-005, -0.99999994, 1.64265153e-008, -0.99999994, 1.18017197e-005, 2.98713007e-006))
661
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
662
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.514285743))
663
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00896048546, 3.24313331, -6.2584877e-006, -2.62832918e-006, -1.58840017e-008, -1, -1.16825104e-005, -0.99999994, 1.59122848e-008, -0.99999994, 1.16825104e-005, 2.62831986e-006))
664
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
665
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.914285779, 0.254285723))
666
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0080575943, -5.57459974, 0.127099097, -7.20826961e-007, -1.18548371e-009, 1, 6.25863322e-007, 1, 1.18891563e-009, -1, 6.25863322e-007, -7.20827984e-007))
667
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
668
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.200000003, 0.942857206, 0.28285715))
669
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00858414173, -5.58866072, 0.142816901, -5.41048905e-007, -8.99582631e-010, 1, -5.96046448e-007, 0.99999994, 9.00953978e-010, -0.99999994, -5.96046448e-007, -5.41057148e-007))
670
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
671
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.200000003, 0.285714328, 0.940000057))
672
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.011053443, -0.142930448, 5.58944941, 2.97432763e-007, 3.64387631e-010, 1, -1, 6.25863322e-007, 2.9743137e-007, -6.25863322e-007, -1, 3.63804986e-010))
673
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
674
Part=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(1, 1.20000005, 1))
675
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.57627869e-007, -0.809324801, 1.96695328e-006, 6.20105922e-008, 2.27451835e-010, -1, 1.81795622e-006, 1, 2.27856845e-010, 1, -1.81795622e-006, 6.2011928e-008))
676
mesh("SpecialMesh",Part,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 0.142857134, 0.285714298))
677
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
678
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00226664543, 0.69951874, 1.00827909, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007))
679
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
680
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
681
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487548, -0.00217807293, 3.74913216e-005, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008))
682
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.857145786, 1))
683
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
684
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487882, -0.00217807293, 4.00543213e-005, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008))
685
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.571431458, 1.10000002))
686
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.483492851, 0.539954185, 0.539909601))
687
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00595891476, -1.00750566, 1.00747085, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007))
688
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
689
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
690
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00534570217, -1.00757694, -0.698815584, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007))
691
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
692
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.493492872, 0.539954185, 0.539909601))
693
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000260472298, 0.6988675, -0.698937058, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007))
694
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
695
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
696
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00927072763, -0.0121991634, 1.19311547, 0.999999881, -2.08614802e-006, 1.9306286e-007, -1.93059051e-007, -1.09411957e-007, 1, -2.08616257e-006, -0.999999881, -1.09408283e-007))
697
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
698
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
699
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.604586363, -0.0121991634, 1.02863288, 0.866026282, 0.499998033, 2.28958157e-007, -1.93872992e-007, -1.22099237e-007, 1, 0.499998033, -0.866026282, -8.79730777e-009))
700
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
701
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
702
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.03790355, -0.0121991634, 0.588528812, 0.500001669, 0.866024196, 1.74744486e-007, -1.6279435e-007, -1.0777579e-007, 1, 0.866024196, -0.500001669, 8.71042545e-008))
703
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
704
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.662679553, 0.200000003, 0.200000003))
705
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.39311564, -0.0121991634, -0.00927072763, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
706
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
707
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.46267951, 0.200000003, 0.200000003))
708
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.02863288, -0.0121997595, -0.604586482, -0.499998093, 0.866026223, -6.44970513e-008, -1.45620604e-007, -9.60127267e-009, 1, 0.866026223, 0.499998093, 1.30918266e-007))
709
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
710
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
711
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.588528991, -0.0121992826, -1.03790355, -0.866024137, 0.500001729, -9.11133142e-008, -1.16737233e-007, -1.99774206e-008, 1, 0.500001729, 0.866024137, 7.56750538e-008))
712
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
713
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.372464359, 0.762464345, 0.762464285))
714
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00338602066, -0.736121356, -0.540583551, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007))
715
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542364))
716
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.382464379, 0.762464345, 0.762464285))
717
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00803625584, -0.737174749, 0.736498654, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007))
718
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.913885474, 0.128561974, 0.128542408))
719
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
720
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00594449043, 0.540397167, 0.737201214, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007))
721
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542408))
722
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
723
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00681877136, 0.540436149, -0.541088939, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007))
724
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366669, 0.128561974, 0.128542364))
725
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
726
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910848916, -0.00147974491, 0.000465214252, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008))
727
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.385687381, 0.642712057))
728
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
729
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910846829, -0.00147974491, 0.000467300415, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008))
730
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.257125348, 0.706983268))
731
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
732
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.98755074e-005, -0.86527884, -0.00526940823, 0.99999994, -3.33786011e-006, -1.61662047e-006, 3.33786011e-006, 0.99999994, -1.75251103e-009, 1.61662604e-006, 1.74897963e-009, 1))
733
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 0.857145548, 0.857142746))
734
Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003))
735
Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0107657909, -3.95914412, 0.00325751305, 0.999999821, -0.000211339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907))
736
EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Royal purple","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
737
EffectPartweld=weld(m,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
738
mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
739
EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
740
EffectPart2weld=weld(m,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
741
742
DarkRiftF=function(par)
743
while lol == true do 
744
wait() 
745
local PWN={}
746
for _,v in pairs(game.Workspace:children()) do
747
if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
748
if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
749
table.insert(PWN,v.Torso)
750
end
751
end
752
end
753
for _,t in pairs(PWN) do
754
local targ=par.Position-t.Position
755
local Mag=targ.magnitude
756
if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then
757
if Mag<=30 then
758
t.Parent.Humanoid:TakeDamage(.5)
759
local rl=Instance.new("BodyAngularVelocity")
760
rl.P=3000
761
rl.maxTorque=Vector3.new(500000,500000,500000)*5000
762
rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
763
rl.Parent=t
764
game:GetService("Debris"):AddItem(rl,.1)
765
end
766
if Mag<=20 then
767
t.Parent.Humanoid:TakeDamage(.1)
768
else
769
local vl=Instance.new("BodyVelocity")
770
vl.P=3000
771
vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
772
vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
773
vl.Parent=t
774
game:GetService("Debris"):AddItem(vl,.1)
775
end
776
end
777
end
778
wait(.08)
779
end
780
end
781
782
function DerpMagic(part,x1,y1,z1,x2,y2,z2,color) 
783
	local msh1 = Instance.new("BlockMesh") 
784
	msh1.Scale = Vector3.new(0.5,0.5,0.5) 
785
	local S=Instance.new("Part")
786
	S.Name="Effect"
787
	S.Material="Neon"
788
	S.formFactor=0
789
	S.Size=Vector3.new(x1,y1,z1)
790
	S.BrickColor=color
791
	S.Reflectance = 0
792
	S.TopSurface=0
793
	S.BottomSurface=0
794
	S.Transparency=0
795
	S.Anchored=false
796
	S.CanCollide=false
797
	S.CFrame=part.CFrame
798
	S.Parent=game.Workspace
799
	msh1.Parent = S
800
	local W=Instance.new("Weld")
801
	W.Parent=S
802
	W.Part0=S
803
	W.Part1=part
804
	W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
805
	W.Parent=nil
806
	S.Anchored=true
807
	coroutine.resume(coroutine.create(function(Part,Weld) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) --[[Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))]] Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W)
808
end 
809
810
local function BlackHole(parent,cframe)
811
local effectsmsh = Instance.new("SpecialMesh")
812
effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
813
--effectsmsh.Scale = Vector3.new(1,1,2.5)
814
effectsmsh.Scale = Vector3.new(3,3,3)
815
local effectsg = Instance.new("Part")
816
effectsg.formFactor = 3
817
effectsg.CanCollide = false
818
effectsg.Name = "Effect"
819
effectsg.Locked = true
820
effectsg.Transparency = 1 
821
effectsg.Size = Vector3.new(0.2,0.2,0.2)
822
effectsg.Parent = parent
823
effectsg.BrickColor = BrickColor.new("Royal purple")
824
effectsg.Material="Neon"
825
coroutine.resume(coroutine.create(function(Part,Mesh)
826
	local Mesh = Instance.new("SpecialMesh") 
827
	Mesh.Scale = Vector3.new(0.5,0.5,0.5) 
828
	Mesh.MeshType = "Sphere" 
829
--	Mesh.TextureId="http://www.roblox.com/asset/?id=1529460"
830
	Part=Instance.new("Part")
831
	Part.Name="Effect"
832
	Part.formFactor=0
833
	Part.Size=Vector3.new(1,1,1)
834
	Part.BrickColor=BrickColor.new("Royal purple")
835
	Part.Material="Neon"
836
	Part.Reflectance = 0
837
	Part.TopSurface=0
838
	Part.BottomSurface=0
839
	Part.Transparency=0
840
	Part.Anchored=true
841
NoOutline(Part)	
842
	Part.CanCollide=false
843
	Part.CFrame=cframe
844
	Part.Parent=parent
845
	Mesh.Parent = Part
846
	lol=true
847
coroutine.resume(coroutine.create(function()
848
	DarkRiftF(Part)
849
end)) 
850
	for i=0,200 do
851
	wait()
852
	DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Royal purple")) 
853
	Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2)
854
	Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
855
	end
856
	local fff=200
857
	for i=0,100 do
858
	wait()
859
	DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Royal purple")) 
860
	Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
861
	end
862
	for i=0,1,0.05 do
863
	wait()
864
	Part.Transparency=Part.Transparency+0.05
865
	Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5)
866
	end
867
	lol=false
868
	Part.Parent=nil
869
end),nil,nil)
870
end
871
872
function makeShockwave(height,color,speed,range,pulse)
873
local range = range or 2000
874
local p = Instance.new("Part")
875
p.Anchored = true
876
p.CanCollide = false
877
p.FormFactor = "Custom"
878
p.BrickColor = color
879
p.Parent = workspace
880
local m = Instance.new("SpecialMesh",p)
881
m.MeshId = "rbxassetid://3270017"
882
local estimateSurvival = math.floor(range/speed) * 0.03
883
game:GetService("Debris"):AddItem(p,estimateSurvival)
884
Spawn(function ()
885
for i = 1,range,speed do
886
p.Transparency = 1-math.min(0.5,3-(i/500))
887
m.Scale = Vector3.new(i,i,i*height)
888
p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0)
889
wait()
890
end
891
p:Destroy()
892
end)
893
end
894
895
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
896
local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
897
prt.Anchored=true
898
prt.CFrame=cframe
899
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1))
900
game:GetService("Debris"):AddItem(prt,2)
901
coroutine.resume(coroutine.create(function(Part,Mesh) 
902
for i=0,2,delay do
903
wait()
904
Part.CFrame=Part.CFrame
905
Part.Transparency=i
906
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
907
end
908
Part.Parent=nil
909
end),prt,msh)
910
end
911
912
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
913
local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
914
prt.Anchored=true
915
prt.CFrame=cframe
916
local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
917
game:GetService("Debris"):AddItem(prt,5)
918
coroutine.resume(coroutine.create(function(Part,Mesh) 
919
for i=0,1,delay do
920
wait()
921
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
922
Part.Transparency=i
923
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
924
end
925
Part.Parent=nil
926
end),prt,msh)
927
end
928
929
local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
930
local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt())
931
if Type~=2 then
932
prt.Anchored=true
933
end
934
prt.CFrame=cframe
935
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
936
game:GetService("Debris"):AddItem(prt,5)
937
coroutine.resume(coroutine.create(function(Part,Mesh,dur) 
938
local wld=nil
939
if dur==2 then
940
wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0))
941
end
942
for i=0,1,delay do
943
swait()
944
if dur==1 then
945
Part.CFrame=Part.CFrame
946
elseif dur==2 then
947
wld.C0=cframe
948
end
949
Part.Transparency=i
950
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
951
end
952
Part.Parent=nil
953
end),prt,msh,Type)
954
end
955
956
function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
957
local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
958
prt.Anchored=true
959
prt.CFrame=cframe
960
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
961
game:GetService("Debris"):AddItem(prt,5)
962
coroutine.resume(coroutine.create(function(Part,Mesh) 
963
for i=0,1,delay do
964
swait()
965
Part.CFrame=Part.CFrame*euler(0,0.7,0)
966
Part.Transparency=i
967
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
968
end
969
Part.Parent=nil
970
end),prt,msh)
971
end
972
973
function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
974
local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
975
prt.Anchored=true
976
prt.CFrame=cframe
977
local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
978
game:GetService("Debris"):AddItem(prt,5)
979
coroutine.resume(coroutine.create(function(Part,Mesh) 
980
for i=0,1,delay do
981
wait()
982
Part.CFrame=Part.CFrame
983
Part.Transparency=i
984
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
985
end
986
Part.Parent=nil
987
end),prt,msh)
988
end 
989
990
function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
991
local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt())
992
prt.Anchored=true
993
prt.CFrame=cframe
994
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
995
game:GetService("Debris"):AddItem(prt,5)
996
table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
997
end
998
999
function Blast(parent)
1000
MagicBlock(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
1001
MagicWaveThing(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
1002
end
1003
1004
function ChargeBall(parent,t)
1005
local counter=0
1006
local size=1
1007
for i=0,t,1 do
1008
swait()
1009
counter=counter+1
1010
if counter%10==0 then
1011
if size==3 then
1012
MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1013
elseif size==2 then
1014
MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1015
end
1016
end
1017
if counter%5==0 then
1018
if size==1 then
1019
MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1020
elseif size==2 then
1021
MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1022
elseif size==3 then
1023
MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1024
end
1025
end
1026
end
1027
end
1028
1029
function ChargeBall2(parent,t)
1030
local counter=0
1031
local size=1
1032
for i=0,t,1 do
1033
swait()
1034
counter=counter+1
1035
if counter%10==0 then
1036
if size==3 then
1037
MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1038
elseif size==2 then
1039
MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1040
end
1041
end
1042
if counter%5==0 then
1043
if size==1 then
1044
MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1045
MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
1046
elseif size==2 then
1047
MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1048
MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
1049
elseif size==3 then
1050
MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
1051
MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
1052
end
1053
end
1054
end
1055
end
1056
1057
function MagniDamage(Part,dis,mind,maxd,force,knock)
1058
for _,c in pairs(workspace:children()) do
1059
local hum=c:findFirstChild("Humanoid")
1060
if hum~=nil then
1061
local head=c:findFirstChild("Torso")
1062
if head~=nil then
1063
local targ=head.Position-Part.Position
1064
local mag=targ.magnitude
1065
if mag<=dis and c.Name~=Character.Name then 
1066
Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1)
1067
end
1068
end
1069
end
1070
end
1071
end
1072
1073
function computeDirection(vec)
1074
local lenSquared = vec.magnitude * vec.magnitude
1075
local invSqrt = 1 / math.sqrt(lenSquared)
1076
return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
1077
end
1078
1079
function attackone()
1080
attack = true
1081
local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
1082
local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4222,112222,math.random(5,5),"Normal",RootPart,.2,1) end) 
1083
local fx=Hitbox.Touched:connect(function(part)
1084
	local human=part.Parent:findFirstChild("Humanoid")
1085
	if human~=nil and bounce==false then
1086
		bounce=true
1087
		local rndm=math.random(1,#hitsounds)
1088
		local r=rndm
1089
		so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
1090
	end
1091
end)
1092
for i = 0,1,0.1 do
1093
swait()
1094
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4)
1095
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
1096
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4)
1097
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4)
1098
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
1099
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
1100
end
1101
so("http://www.roblox.com/asset/?id=199145841",handle,1,.9)
1102
for i = 0,1,0.1 do
1103
swait()
1104
local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
1105
if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
1106
local h = 5
1107
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)
1108
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1109
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)
1110
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1111
scfr = blcf
1112
elseif not scfr then
1113
scfr = blcf
1114
end
1115
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
1116
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
1117
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
1118
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
1119
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
1120
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
1121
handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
1122
end
1123
attack = false
1124
bounce=false
1125
scfr=nil
1126
fx:disconnect()
1127
con:disconnect()
1128
end
1129
1130
function attacktwo()
1131
attack=true
1132
local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
1133
local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4222,112222,math.random(5,5),"Normal",RootPart,.2,1) end)
1134
local fx=Hitbox.Touched:connect(function(part)
1135
	local human=part.Parent:findFirstChild("Humanoid")
1136
	if human~=nil and bounce==false then
1137
		bounce=true
1138
		local rndm=math.random(1,#hitsounds)
1139
		local r=rndm
1140
		so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
1141
	end
1142
end)
1143
for i=0,1,.1 do
1144
swait()
1145
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
1146
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
1147
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
1148
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
1149
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
1150
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
1151
handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
1152
end
1153
so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
1154
for i = 0,1,0.1 do
1155
swait()
1156
local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
1157
if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
1158
local h = 5
1159
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)
1160
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1161
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)
1162
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1163
scfr = blcf
1164
elseif not scfr then
1165
scfr = blcf
1166
end
1167
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
1168
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
1169
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
1170
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
1171
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
1172
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
1173
handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1174
end
1175
scfr=nil
1176
attack=false
1177
bounce=false
1178
con:disconnect()
1179
fx:disconnect()
1180
end
1181
1182
function attackthree()
1183
attack=true
1184
local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
1185
local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,6222,152222,math.random(5,5),"Normal",RootPart,.2,1) end) 
1186
local fx=Hitbox.Touched:connect(function(part)
1187
	local human=part.Parent:findFirstChild("Humanoid")
1188
	if human~=nil and bounce==false then
1189
		bounce=true
1190
		local rndm=math.random(1,#hitsounds)
1191
		local r=rndm
1192
		so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
1193
	end
1194
end)
1195
for i=0,1,.1 do
1196
swait()
1197
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.4)
1198
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
1199
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4)
1200
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.4)
1201
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.4)
1202
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.4)
1203
handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1204
end
1205
so("http://www.roblox.com/asset/?id=199145913",handle,1,.9)
1206
for i = 0,1,0.1 do
1207
swait()
1208
local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
1209
if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
1210
local h = 5
1211
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)
1212
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1213
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)
1214
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1215
scfr = blcf
1216
elseif not scfr then
1217
scfr = blcf
1218
end
1219
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
1220
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
1221
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.4)
1222
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4)
1223
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.4)
1224
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.4)
1225
handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.4)
1226
end
1227
attack=false
1228
bounce=false
1229
scfr=nil
1230
con:disconnect()
1231
fx:disconnect()
1232
end
1233
1234
function attackfour()
1235
attack = true
1236
local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
1237
local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,9222,18222,math.random(20,30),"Normal",RootPart,.2,1) end)
1238
local fx=Hitbox.Touched:connect(function(part)
1239
	local human=part.Parent:findFirstChild("Humanoid")
1240
	if human~=nil and bounce==false then
1241
		bounce=true
1242
		local rndm=math.random(1,#hitsounds)
1243
		local r=rndm
1244
		so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
1245
	end
1246
end)
1247
for i = 0,1,0.1 do
1248
swait()
1249
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-5),math.rad(-60)),.3)
1250
Torso.Neck.C0=clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.3)
1251
RW.C0=clerp(RW.C0,cf(1.5, 0.8, 0.2) * angles(math.rad(5), math.rad(-15), math.rad(112)), 0.3)
1252
LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.3)
1253
RH.C0=clerp(RH.C0,cf(1.1,-1,0)*angles(math.rad(-5),math.rad(120),math.rad(-8)),.3)
1254
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-60),math.rad(0)),.3)
1255
handleweld.C0=clerp(handleweld.C0,cf(0,-.2,.5)*angles(math.rad(50),math.rad(-15),math.rad(0)),.3)
1256
end
1257
so("http://www.roblox.com/asset/?id=199145433",Hitbox,1,1.1)
1258
local v=it("BodyVelocity",Torso)
1259
v.maxForce=Vector3.new(4e+005,4e+005,4e+005)*1
1260
v.velocity=RootPart.CFrame.lookVector*50
1261
for i = 0,1,0.1 do
1262
swait()
1263
local blcf = Hitbox.CFrame*cf(0,0,0)
1264
if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
1265
local h = 5
1266
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)
1267
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1268
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)
1269
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1270
scfr = blcf
1271
elseif not scfr then
1272
scfr = blcf
1273
end
1274
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(60)),.3)
1275
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
1276
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(60), math.rad(100)), 0.3)
1277
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-15)), 0.3)
1278
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
1279
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
1280
handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-100),math.rad(0),math.rad(0)),.3)
1281
end
1282
v.Parent=nil
1283
scfr=nil
1284
attack = false
1285
bounce=false
1286
con:disconnect()
1287
fx:disconnect()
1288
end
1289
1290
function LustrisFulgo()
1291
attack=true
1292
Humanoid.WalkSpeed=0
1293
for i=0,1,0.1 do
1294
swait()
1295
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-15),math.rad(0),math.rad(10)),.3)
1296
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(-10)),.3)
1297
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(145), math.rad(0), math.rad(7)), 0.3)
1298
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(4), math.rad(-15)), 0.3)
1299
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-15),math.rad(90),math.rad(0)),.3)
1300
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-25),math.rad(-90),math.rad(0)),.3)
1301
handleweld.C0=clerp(handleweld.C0,cf(0,0,-.5)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
1302
end
1303
local function boom()
1304
local pprt=ppart(3,game.Workspace,0,1,BrickColor.new("Black"),"Effect",vt(1,1,1))
1305
pprt.Anchored=true
1306
pprt.CFrame=EffectPart.CFrame
1307
game:GetService("Debris"):AddItem(pprt,2)
1308
MagicCircle(BrickColor.new("Black"),EffectPart.CFrame,20,20,20,-0.01,-0.01,-0.01,0.01)
1309
so("http://roblox.com/asset/?id=228343412",EffectPart,1,0.6) 
1310
so("http://roblox.com/asset/?id=228343408",EffectPart,1,1.4) 
1311
local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.new("Black"),"Effect",vt(1,1,1))
1312
local waveweld=weld(game.Workspace,handle,wave,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
1313
local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
1314
MagniDamage(wave,20,15222,25222,math.random(20,30),"Knockdown",RootPart)
1315
for i=0,80 do
1316
swait()
1317
MagicBlock(BrickColor.new("Black"),EffectPart.CFrame,7,7,7,-0.5,-0.5,-0.5,0.05)
1318
MagicCircle(BrickColor.new("Black"),EffectPart.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,5,0),0.5,1,0.5,0.02,1,0.02,0.05)
1319
wave.Size=vt(1+i,1+i,1+i)
1320
wavemesh.Scale=vt(1+i,1+i,1+i)
1321
wave.CFrame=EffectPart.CFrame
1322
Humanoid.Health=Humanoid.Health+.15
1323
end
1324
wave:Destroy()
1325
end
1326
boom()
1327
attack=false
1328
Humanoid.WalkSpeed=16
1329
end
1330
1331
function LeviterGlomus()
1332
attack=true
1333
for i=0,1,.1 do
1334
swait()
1335
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(60)),.3)
1336
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
1337
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(18), math.rad(-15), math.rad(15)), 0.3)
1338
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-75), math.rad(0), math.rad(-50)), 0.3)
1339
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-3),math.rad(65),math.rad(0)),.3)
1340
LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(-25),math.rad(-110),math.rad(0))*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
1341
handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(-35),math.rad(-15),math.rad(0)),.3)
1342
end
1343
so("http://www.roblox.com/asset/?id=199145659",EffectPart2,1,1)
1344
efprt=part(Enum.FormFactor.Custom,game.Workspace,Enum.Material.Neon,0,0,"Black","BallEffect",Vector3.new(2, 2, 2))
1345
weld(m,Character["Left Arm"],efprt,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
1346
mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1))
1347
ChargeBall(EffectPart2,35)
1348
for i=0,1,.1 do
1349
swait()
1350
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
1351
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
1352
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-18), math.rad(15), math.rad(15)), 0.3)
1353
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-65)), 0.3)
1354
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
1355
LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
1356
handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(0),math.rad(-15),math.rad(0)),.3)
1357
end
1358
so("http://www.roblox.com/asset/?id=199145534",EffectPart2,1,1.2)
1359
efprt:BreakJoints()
1360
local Target=mouse.Hit.p
1361
local direction = Target - handle.Position
1362
direction = computeDirection(direction)
1363
local pos = handle.Position + (direction * 10.0)		
1364
efprt.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles(math.pi/2, 0, 0)
1365
local floatForce = Instance.new("BodyForce")
1366
floatForce.force = Vector3.new(0, efprt:GetMass() * 196.1, 0.0)
1367
floatForce.Parent = efprt
1368
efprt.Velocity = direction * 160
1369
efprt.Touched:connect(function(hit) 
1370
if not hit:IsDescendantOf(Character) then
1371
if hit.Name~="Effect" then
1372
MagniDamage(efprt,15,12225,22225,math.random(20,30),"Knockdown",RootPart)
1373
floatForce.Parent=nil
1374
efprt.Anchored=true
1375
so("http://www.roblox.com/asset/?id=228343330",hit,1,.8)
1376
Blast(efprt)
1377
efprt:Destroy()
1378
end
1379
end
1380
end)
1381
game:GetService("Debris"):AddItem(efprt,6)
1382
attack=false
1383
end
1384
1385
function PortalStorm()
1386
Humanoid.WalkSpeed=0
1387
attack=true
1388
for i=0,1,.1 do
1389
swait()
1390
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
1391
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1392
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-40)), 0.3)
1393
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(40)), 0.3)
1394
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(5),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1395
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1396
handleweld.C0=clerp(handleweld.C0,cf(-1,-2.3,-.4)*angles(math.rad(-165),math.rad(-15),math.rad(50)),.3)
1397
end
1398
so("http://www.roblox.com/asset/?id=199145446",handle,1,1)
1399
ChargeBall2(handle,100)
1400
makeShockwave(0.5,BrickColor.new("Royal purple"),30,1000,0)
1401
MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),2,2,2,.5,.3,.5,0.01)
1402
so("http://www.roblox.com/asset/?id=280247455",game.Workspace,1,1)
1403
wait(2)
1404
so("http://www.roblox.com/asset/?id=110284742",game.Workspace,1,0)
1405
delay(0.5,function ()
1406
MagniDamage(Torso,2000,32225,52220,math.random(50,70),"Knockdown",RootPart)
1407
end)
1408
Humanoid.Health=Humanoid.Health-0
1409
makeShockwave(4,BrickColor.new("Teal"),10,2000,1)
1410
attack=false
1411
Humanoid.WalkSpeed=9
1412
wait(4)
1413
Humanoid.WalkSpeed=16
1414
end
1415
1416
function SolSiderea()
1417
	Humanoid.WalkSpeed=0
1418
	attack=true
1419
	so("http://www.roblox.com/asset/?id=280758833",Workspace,1,1.3)
1420
	for i=0,1,.1 do
1421
	swait()
1422
	RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1423
	Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
1424
	RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(95), math.rad(-10), math.rad(-17)), 0.3)
1425
	LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(95), math.rad(10), math.rad(17)), 0.3)
1426
	RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1427
	LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1428
	handleweld.C0=clerp(handleweld.C0,cf(0,-2,-.5)*angles(math.rad(0),math.rad(7.5),math.rad(-75)),.3)
1429
	end
1430
	for i=0,1,.1 do
1431
	swait()
1432
	RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
1433
	Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
1434
	RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(-5), math.rad(8)), 0.3)
1435
	LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(5), math.rad(-8)), 0.3)
1436
	RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1437
	LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1438
	handleweld.C0=clerp(handleweld.C0,cf(-1.1,-4,-2)*angles(math.rad(-72),math.rad(8.5),math.rad(-92)),.3)
1439
	end
1440
	coroutine.resume(coroutine.create(function() ChargeBall(EffectPart,120) end))
1441
	local n=2
1442
	local orb=ppart(3,Character,0,1,BrickColor.new("Royal purple"),"Orb",vt())
1443
	local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(15,15,15))
1444
	local owld=wweld(orb,orb,Torso,cf(-10,-150,0)) 
1445
	for i=1,0.3,-0.01 do
1446
	wait()
1447
	orb.Transparency=i
1448
	omsh.Scale=omsh.Scale+vt(0.5,0.5,0.5)
1449
	MagicBlock(BrickColor.new("Royal purple"),orb.CFrame,15,15,15,2,2,2,0.1)
1450
	local ef=ppart(3,workspace,0,0,BrickColor.new("Royal purple"),"Effect",vt())
1451
	ef.Anchored=true
1452
	local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.random(1000,1500)/100,2))
1453
	local ceef=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(10,20),0)
1454
	ef.CFrame=orb.CFrame*ceef
1455
	game:GetService("Debris"):AddItem(ef,2)
1456
	coroutine.resume(coroutine.create(function(Part,Mesh) 
1457
	for i=0,1,0.1 do
1458
	wait()
1459
	Part.Transparency=i
1460
	Part.CFrame=Part.CFrame*cf(0,-1,0)
1461
	end
1462
	Part.Parent=nil
1463
	end),ef,emsh)
1464
	end
1465
	local Pos=cf(orb.Position,Player:GetMouse().Hit.p).lookVector
1466
	wait(.5)
1467
	orb.Parent=nil
1468
	wait(1)
1469
	local hit,pos = rayCast(orb.Position,Pos,1000,Character)
1470
	local mag=(orb.Position-pos).magnitude 
1471
	BlackHole(game.Workspace,cf(pos))
1472
	coroutine.resume(coroutine.create(function() 
1473
		local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.new("Black"),"Effect",vt(1,1,1))
1474
		wweld(game.Workspace,wave,orb,Torso.CFrame)
1475
		local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
1476
		for i=1,100 do
1477
		swait()
1478
		wave.Size=vt(1+i,1+i,1+i)
1479
		wavemesh.Scale=vt(1+i,1+i,1+i)
1480
		wave.CFrame=cf(pos)
1481
		end
1482
	end))
1483
	coroutine.resume(coroutine.create(function()
1484
		for i=0,20 do
1485
			swait(15)
1486
			local range = 1500
1487
			local p = Instance.new("Part")
1488
			p.Anchored = true
1489
			p.CanCollide = false
1490
			p.FormFactor = "Custom"
1491
			p.BrickColor = BrickColor.new("Royal purple")
1492
			p.Parent = workspace
1493
			p.Name="Effect"
1494
			p.CFrame=cf(pos)
1495
			local m = Instance.new("SpecialMesh",p)
1496
			m.MeshId = "rbxassetid://3270017"
1497
			local estimateSurvival = math.floor(range/30) * 0.03
1498
			game:GetService("Debris"):AddItem(p,estimateSurvival)
1499
			Spawn(function ()
1500
			for i = 1,range,30 do
1501
			p.Transparency = 1-math.min(0.5,3-(i/500))
1502
			m.Scale = Vector3.new(i,i,i*0.5)
1503
			p.CFrame = cf(pos) * CFrame.Angles(math.rad(90),0,0)
1504
			wait()
1505
			end
1506
			p:Destroy()
1507
			end)
1508
		end
1509
	end))
1510
	MagicCylinder(BrickColor.new("Royal purple"),CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
1511
	for i=1,2 do
1512
	end
1513
	for i=1,5 do
1514
	tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
1515
	end
1516
	for i=0,5 do
1517
	tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
1518
	end
1519
	local ref=ppart(3,workspace,0,1,BrickColor.new("Royal purple"),"Effect",vt())
1520
	ref.CFrame=cf(pos)
1521
	coroutine.resume(coroutine.create(function(Part) 
1522
	wait(1)
1523
	Part.Parent=nil
1524
	end),ref)
1525
	MagniDamage(ref,25,22220,32220,40,"Knockdown",ref)
1526
	if hit~=nil then
1527
	Damagefunc(ref,hit,5022,70222,60,"Knockdown",RootPart,0)
1528
	end
1529
	local n=2
1530
	MagicWave(BrickColor.new("Royal purple"),cf(pos)*euler(0,math.random(-50,50),0),2,2,2,.5,.3,.5,0.01)
1531
	swait(75)
1532
	Humanoid.WalkSpeed=16
1533
	attack=false
1534
end
1535
1536
attacktype=1
1537
mouse.Button1Down:connect(function()
1538
if attacktype==1 and attack==false then
1539
attacktype=2
1540
attackone()
1541
elseif attacktype==2 and attack==false then
1542
attacktype=3
1543
attacktwo()
1544
elseif attacktype==3 and attack==false then
1545
attacktype=4
1546
attackthree()
1547
elseif attacktype==4 and attack==false then
1548
attacktype=1
1549
attackfour()
1550
end
1551
end)
1552
1553
mouse.KeyDown:connect(function(k)
1554
k=k:lower()
1555
if attack == false and k == 'e' then
1556
LeviterGlomus()
1557
ChargeBall(efprt,100)
1558
end
1559
if attack == false and k == 'q' then
1560
LustrisFulgo()
1561
end
1562
if attack == false and k == 'f' and deeznuts==false then
1563
deeznuts=true
1564
SolSiderea()
1565
deeznuts=false
1566
end
1567
if attack == false and k == 'r' and cooldown==false then
1568
cooldown=true
1569
PortalStorm()
1570
cooldown=false
1571
end
1572
end)
1573
1574
1575
local sine = 0
1576
local change = 1
1577
local val = 0
1578
1579
while true do
1580
swait()
1581
sine = sine + change
1582
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
1583
local velderp=RootPart.Velocity.y
1584
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
1585
if equipped==true or equipped==false then
1586
if attack==false then
1587
idle=idle+1
1588
else
1589
idle=0
1590
end
1591
if idle>=500 then
1592
if attack==false then
1593
end
1594
end
1595
if RootPart.Velocity.y > 1 and hitfloor==nil then 
1596
Anim="Jump"
1597
if attack==false then
1598
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1599
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
1600
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3)
1601
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
1602
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-30),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1603
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-30),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1604
handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1605
end
1606
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
1607
Anim="Fall"
1608
if attack==false then
1609
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1610
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3)
1611
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3)
1612
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
1613
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1614
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1615
handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
1616
end
1617
elseif torvel<1 and hitfloor~=nil then
1618
Anim="Idle"
1619
if attack==false then
1620
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2),math.rad(0),math.rad(15)),.3)
1621
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2),math.rad(0),math.rad(-15)),.3)
1622
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(0)), 0.3)
1623
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
1624
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3)
1625
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4),math.rad(-95),math.rad(0)),.3)
1626
handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-10),math.rad(-2),math.rad(0)),.2)
1627
end
1628
elseif torvel>2 and hitfloor~=nil then
1629
Anim="Walk"
1630
if attack==false then
1631
change=3
1632
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-20)),.3)
1633
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(25)),.3)
1634
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(-25), math.rad(5)), 0.3)
1635
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30)*math.cos(sine/10), math.rad(5), math.rad(0)), 0.3)
1636
RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
1637
LH.C0=clerp(LH.C0,cf(-1.1,-.9,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
1638
handleweld.C0=clerp(handleweld.C0,cf(0,0,.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1639
end
1640
end
1641
end
1642
if #Effects>0 then
1643
for e=1,#Effects do
1644
if Effects[e]~=nil then
1645
local Thing=Effects[e]
1646
if Thing~=nil then
1647
local Part=Thing[1]
1648
local Mode=Thing[2]
1649
local Delay=Thing[3]
1650
local IncX=Thing[4]
1651
local IncY=Thing[5]
1652
local IncZ=Thing[6]
1653
if Thing[1].Transparency<=1 then
1654
if Thing[2]=="Block1" then
1655
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1656
Mesh=Thing[1].Mesh
1657
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
1658
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1659
elseif Thing[2]=="Cylinder" then
1660
Mesh=Thing[1].Mesh
1661
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
1662
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1663
elseif Thing[2]=="Blood" then
1664
Mesh=Thing[7]
1665
Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
1666
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
1667
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1668
elseif Thing[2]=="Elec" then
1669
Mesh=Thing[1].Mesh
1670
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
1671
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1672
elseif Thing[2]=="Disappear" then
1673
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1674
end
1675
else
1676
Part.Parent=nil
1677
table.remove(Effects,e)
1678
end
1679
end
1680
end
1681
end
1682
end
1683
end