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