Advertisement
simplistic27

Trentex

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