HuyEvilDumb

Untitled

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