Advertisement
kebbyfan

epic (games) sword FE

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