Advertisement
NoHackJustStevePlayz

Lutris sword,fe compatible test

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