swerve_noob_swerve1

OP sword

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