Advertisement
Guest User

Untitled

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