Advertisement
Derek227

Sword edit

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