Advertisement
Finnegan5

co

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