Advertisement
nguyentuhuy123

Blade Sword V1

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