kebbyfan

epic sword (yellow)

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