Advertisement
Guest User

Untitled

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