Advertisement
SansTheHackerYT

FE Lutris

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