Sazious

Untitled

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