Advertisement
pork0

Untitled

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