Advertisement
aiden50_70

Untitled

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