Advertisement
Guest User

Sword Test 2

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