Advertisement
aiden50_70

Untitled

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