asdf2345

Untitled

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