Advertisement
Guest User

lus-fe

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