Advertisement
NikaForever

OP DMG SCRIPT

Jun 11th, 2018
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 124.49 KB | None | 0 0
  1. warn'Dark Arc/Element'
  2. warn'Made by NoobyGames12 edit by XXUNORIBOASXX / Dark Edit- DO NOT REMOVE CREDITS OR ELSE'
  3. plr = game.Players.LocalPlayer
  4. char = plr.Character
  5. hum = char.Humanoid
  6. local cam = game.Workspace.CurrentCamera
  7. t = char.Torso
  8. h = char.Head
  9. ra = char["Right Arm"]
  10. la = char["Left Arm"]
  11. rl = char["Right Leg"]
  12. ll = char["Left Leg"]
  13. tors = char.Torso
  14. lleg = char["Left Leg"]
  15. root = char.HumanoidRootPart
  16. hed = char.Head
  17. rleg = char["Right Leg"]
  18. rarm = char["Right Arm"]
  19. larm = char["Left Arm"]
  20. vt = Vector3.new
  21. bc = BrickColor.new
  22. br = BrickColor.random
  23. it = Instance.new
  24. cf = CFrame.new
  25.  
  26. function CameraShake(Times, Power)
  27. coroutine.resume(coroutine.create(function()
  28. FV = Instance.new("BoolValue", Character)
  29. FV.Name = "CameraShake"
  30. for ShakeNum=1,Times do
  31. swait()
  32. local ef=Power
  33. if ef>=1 then
  34. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  35. else
  36. ef=Power*10
  37. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  38. end
  39. end
  40. Humanoid.CameraOffset = Vector3.new(0,0,0)
  41. FV:Destroy()
  42. end))
  43. end
  44.  
  45. CamShake=function(Part,Distan,Power,Times)
  46. local de=Part.Position
  47. for i,v in pairs(workspace:children()) do
  48. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  49. for _,c in pairs(v:children()) do
  50. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  51. local Noob=v.Humanoid
  52. if Noob~=nil then
  53. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  54. --[[local ss=script.CamShake:clone()
  55. ss.Parent=Noob
  56. ss.Power.Value=Power
  57. ss.Times.Value=Times
  58. ss.Disabled=false]]
  59. CameraShake(Times, Power)
  60. end
  61. end
  62. end
  63. end
  64. end
  65. end
  66. end
  67.  
  68. function chatfunc(text,color)
  69. local chat = coroutine.wrap(function()
  70. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  71. Character:FindFirstChild("TalkingBillBoard"):destroy()
  72. end
  73. local naeeym2 = Instance.new("BillboardGui",Character)
  74. naeeym2.Size = UDim2.new(0,100,0,40)
  75. naeeym2.StudsOffset = Vector3.new(0,3,0)
  76. naeeym2.Adornee = Character.Head
  77. naeeym2.Name = "TalkingBillBoard"
  78. local tecks2 = Instance.new("TextLabel",naeeym2)
  79. tecks2.BackgroundTransparency = 1
  80. tecks2.BorderSizePixel = 0
  81. tecks2.Text = ""
  82. tecks2.Font = "SciFi"
  83. tecks2.TextSize = 30
  84. tecks2.TextStrokeTransparency = 0
  85. tecks2.TextColor3 = color
  86. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  87. tecks2.Size = UDim2.new(1,0,0.5,0)
  88. local tecks3 = Instance.new("TextLabel",naeeym2)
  89. tecks3.BackgroundTransparency = 1
  90. tecks3.BorderSizePixel = 0
  91. tecks3.Text = ""
  92. tecks3.Font = "SciFi"
  93. tecks3.TextSize = 30
  94. tecks3.TextStrokeTransparency = 0
  95. tecks3.TextColor3 = Color3.new(0,0,0)
  96. tecks3.TextStrokeColor3 = color
  97. tecks3.Size = UDim2.new(1,0,0.5,0)
  98. for i = 1,string.len(text),1 do
  99. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  100. tecks2.Text = string.sub(text,1,i)
  101. tecks3.Text = string.sub(text,1,i)
  102. wait(0.01)
  103. end
  104. wait(1)
  105. local randomrot = math.random(1,2)
  106. if randomrot == 1 then
  107. for i = 1, 50 do
  108. swait()
  109. tecks2.Rotation = tecks2.Rotation - .75
  110. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  111. tecks2.TextTransparency = tecks2.TextTransparency + .04
  112. tecks3.Rotation = tecks2.Rotation + .75
  113. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  114. tecks3.TextTransparency = tecks2.TextTransparency + .04
  115. end
  116. elseif randomrot == 2 then
  117. for i = 1, 50 do
  118. swait()
  119. tecks2.Rotation = tecks2.Rotation + .75
  120. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  121. tecks2.TextTransparency = tecks2.TextTransparency + .04
  122. tecks3.Rotation = tecks2.Rotation - .75
  123. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  124. tecks3.TextTransparency = tecks2.TextTransparency + .04
  125. end
  126. end
  127. naeeym2:Destroy()
  128. end)
  129. chat()
  130. end
  131.  
  132.  
  133. local Create = LoadLibrary("RbxUtility").Create
  134.  
  135. CFuncs = {
  136. ["Part"] = {
  137. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  138. local Part = Create("Part"){
  139. Parent = Parent,
  140. Reflectance = Reflectance,
  141. Transparency = Transparency,
  142. CanCollide = false,
  143. Locked = true,
  144. BrickColor = BrickColor.new(tostring(BColor)),
  145. Name = Name,
  146. Size = Size,
  147. Material = Material,
  148. }
  149. RemoveOutlines(Part)
  150. return Part
  151. end;
  152. };
  153.  
  154. ["Mesh"] = {
  155. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  156. local Msh = Create(Mesh){
  157. Parent = Part,
  158. Offset = OffSet,
  159. Scale = Scale,
  160. }
  161. if Mesh == "SpecialMesh" then
  162. Msh.MeshType = MeshType
  163. Msh.MeshId = MeshId
  164. end
  165. return Msh
  166. end;
  167. };
  168.  
  169. ["Mesh"] = {
  170. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  171. local Msh = Create(Mesh){
  172. Parent = Part,
  173. Offset = OffSet,
  174. Scale = Scale,
  175. }
  176. if Mesh == "SpecialMesh" then
  177. Msh.MeshType = MeshType
  178. Msh.MeshId = MeshId
  179. end
  180. return Msh
  181. end;
  182. };
  183.  
  184. ["Weld"] = {
  185. Create = function(Parent, Part0, Part1, C0, C1)
  186. local Weld = Create("Weld"){
  187. Parent = Parent,
  188. Part0 = Part0,
  189. Part1 = Part1,
  190. C0 = C0,
  191. C1 = C1,
  192. }
  193. return Weld
  194. end;
  195. };
  196.  
  197. ["Sound"] = {
  198. Create = function(id, par, vol, pit)
  199. coroutine.resume(coroutine.create(function()
  200. local S = Create("Sound"){
  201. Volume = vol,
  202. Pitch = pit or 1,
  203. SoundId = id,
  204. Parent = par or workspace,
  205. }
  206. wait()
  207. S:play()
  208. game:GetService("Debris"):AddItem(S, 10)
  209. end))
  210. end;
  211. };
  212.  
  213. ["LongSound"] = {
  214. Create = function(id, par, vol, pit)
  215. coroutine.resume(coroutine.create(function()
  216. local S = Create("Sound"){
  217. Volume = vol,
  218. Pitch = pit or 1,
  219. SoundId = id,
  220. Parent = par or workspace,
  221. }
  222. wait()
  223. S:play()
  224. game:GetService("Debris"):AddItem(S, 30)
  225. end))
  226. end;
  227. };
  228.  
  229. ["ParticleEmitter"] = {
  230. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  231. local fp = Create("ParticleEmitter"){
  232. Parent = Parent,
  233. Color = ColorSequence.new(Color1, Color2),
  234. LightEmission = LightEmission,
  235. Size = Size,
  236. Texture = Texture,
  237. Transparency = Transparency,
  238. ZOffset = ZOffset,
  239. Acceleration = Accel,
  240. Drag = Drag,
  241. LockedToPart = LockedToPart,
  242. VelocityInheritance = VelocityInheritance,
  243. EmissionDirection = EmissionDirection,
  244. Enabled = Enabled,
  245. Lifetime = LifeTime,
  246. Rate = Rate,
  247. Rotation = Rotation,
  248. RotSpeed = RotSpeed,
  249. Speed = Speed,
  250. VelocitySpread = VelocitySpread,
  251. }
  252. return fp
  253. end;
  254. };
  255.  
  256. CreateTemplate = {
  257.  
  258. };
  259. }
  260.  
  261.  
  262.  
  263. New = function(Object, Parent, Name, Data)
  264. local Object = Instance.new(Object)
  265. for Index, Value in pairs(Data or {}) do
  266. Object[Index] = Value
  267. end
  268. Object.Parent = Parent
  269. Object.Name = Name
  270. return Object
  271. end
  272. local halocolor = BrickColor.new("Dark indigo")
  273. local wepcolor = BrickColor.new("Really black")
  274. local m = Instance.new("Model",char)
  275.  
  276. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  277. local p = Instance.new("Part")
  278. p.TopSurface = 0
  279. p.BottomSurface = 0
  280. p.Parent = parent
  281. p.Size = Vector3.new(1,1,1)
  282. p.Transparency = transparency
  283. p.Reflectance = reflectance
  284. p.CanCollide = false
  285. p.Locked = true
  286. p.BrickColor = brickcolor
  287. p.Material = material
  288. return p
  289. end
  290.  
  291. function CreateMesh(parent,meshtype,x1,y1,z1)
  292. local mesh = Instance.new("SpecialMesh",parent)
  293. mesh.MeshType = meshtype
  294. mesh.Scale = Vector3.new(x1,y1,z1)
  295. return mesh
  296. end
  297.  
  298. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  299. local mesh = Instance.new("SpecialMesh",parent)
  300. mesh.MeshType = "FileMesh"
  301. mesh.MeshId = meshid
  302. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  303. mesh.Scale = Vector3.new(x1,y1,z1)
  304. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  305. return mesh
  306. end
  307.  
  308. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  309. local weld = Instance.new("Weld")
  310. weld.Parent = parent
  311. weld.Part0 = part0
  312. weld.Part1 = part1
  313. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  314. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  315. return weld
  316. end
  317.  
  318.  
  319. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  320. CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  321. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  322. CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  323.  
  324. function RemoveOutlines(part)
  325. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  326. end
  327. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  328. local Part = Create("Part")({
  329. Parent = Parent,
  330. Reflectance = Reflectance,
  331. Transparency = Transparency,
  332. CanCollide = false,
  333. Locked = true,
  334. BrickColor = BrickColor.new(tostring(BColor)),
  335. Name = Name,
  336. Size = Size,
  337. Material = Material
  338. })
  339. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  340. RemoveOutlines(Part)
  341. return Part
  342. end
  343. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  344. local Msh = Create(Mesh)({
  345. Parent = Part,
  346. Offset = OffSet,
  347. Scale = Scale
  348. })
  349. if Mesh == "SpecialMesh" then
  350. Msh.MeshType = MeshType
  351. Msh.MeshId = MeshId
  352. end
  353. return Msh
  354. end
  355. function CreateWeld(Parent, Part0, Part1, C0, C1)
  356. local Weld = Create("Weld")({
  357. Parent = Parent,
  358. Part0 = Part0,
  359. Part1 = Part1,
  360. C0 = C0,
  361. C1 = C1
  362. })
  363. return Weld
  364. end
  365.  
  366. Player=game:GetService("Players").LocalPlayer
  367. Character=Player.Character
  368. PlayerGui=Player.PlayerGui
  369. Backpack=Player.Backpack
  370. Torso=Character.Torso
  371. Head=Character.Head
  372. Humanoid=Character.Humanoid
  373. m=Instance.new('Model',Character)
  374. LeftArm=Character["Left Arm"]
  375. LeftLeg=Character["Left Leg"]
  376. RightArm=Character["Right Arm"]
  377. RightLeg=Character["Right Leg"]
  378. LS=Torso["Left Shoulder"]
  379. LH=Torso["Left Hip"]
  380. RS=Torso["Right Shoulder"]
  381. RH=Torso["Right Hip"]
  382. Face = Head.face
  383. Neck=Torso.Neck
  384. it=Instance.new
  385. attacktype=1
  386. vt=Vector3.new
  387. cf=CFrame.new
  388. euler=CFrame.fromEulerAnglesXYZ
  389. angles=CFrame.Angles
  390. cloaked=false
  391. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  392. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  393. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  394. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  395. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  396. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  397. RootPart=Character.HumanoidRootPart
  398. RootJoint=RootPart.RootJoint
  399. RootCF=euler(-1.57,0,3.14)
  400. attack = false
  401. attackdebounce = false
  402. deb=false
  403. equipped=true
  404. hand=false
  405. MMouse=nil
  406. combo=0
  407. mana=0
  408. trispeed=.2
  409. attackmode='none'
  410. local idle=0
  411. local Anim="Idle"
  412. local Effects={}
  413. local gun=false
  414. local shoot=false
  415. local sine = 0
  416. local change = 1
  417. player=nil
  418.  
  419. mouse=Player:GetMouse()
  420. --save shoulders
  421. RSH, LSH=nil, nil
  422. --welds
  423. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  424. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  425. LH=Torso["Left Hip"]
  426. RH=Torso["Right Hip"]
  427. TorsoColor = BrickColor.new("Dark indigo")
  428. function NoOutline(Part)
  429. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  430. end
  431. player=Player
  432. ch=Character
  433. RSH=ch.Torso["Right Shoulder"]
  434. LSH=ch.Torso["Left Shoulder"]
  435. --
  436. RSH.Parent=nil
  437. LSH.Parent=nil
  438. --
  439. RW.Name="Right Shoulder"
  440. RW.Part0=ch.Torso
  441. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  442. RW.C1=cf(0, 0.5, 0)
  443. RW.Part1=ch["Right Arm"]
  444. RW.Parent=ch.Torso
  445. --
  446. LW.Name="Left Shoulder"
  447. LW.Part0=ch.Torso
  448. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  449. LW.C1=cf(0, 0.5, 0)
  450. LW.Part1=ch["Left Arm"]
  451. LW.Parent=ch.Torso
  452.  
  453. local Stats=Instance.new("BoolValue")
  454. Stats.Name="Stats"
  455. Stats.Parent=Character
  456. local Atk=Instance.new("NumberValue")
  457. Atk.Name="Damage"
  458. Atk.Parent=Stats
  459. Atk.Value=1
  460. local Def=Instance.new("NumberValue")
  461. Def.Name="Defense"
  462. Def.Parent=Stats
  463. Def.Value=1
  464. local Speed=Instance.new("NumberValue")
  465. Speed.Name="Speed"
  466. Speed.Parent=Stats
  467. Speed.Value=1
  468. local Mvmt=Instance.new("NumberValue")
  469. Mvmt.Name="Movement"
  470. Mvmt.Parent=Stats
  471. Mvmt.Value=1
  472.  
  473. local donum=0
  474.  
  475.  
  476. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  477. local fp=it("Part")
  478. fp.formFactor=formfactor
  479. fp.Parent=parent
  480. fp.Reflectance=reflectance
  481. fp.Transparency=transparency
  482. fp.CanCollide=false
  483. fp.Locked=true
  484. fp.BrickColor=brickcolor
  485. fp.Name=name
  486. fp.Size=size
  487. fp.Position=Torso.Position
  488. NoOutline(fp)
  489. fp.Material="SmoothPlastic"
  490. fp:BreakJoints()
  491. return fp
  492. end
  493.  
  494. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  495. local mesh=it(Mesh)
  496. mesh.Parent=part
  497. if Mesh=="SpecialMesh" then
  498. mesh.MeshType=meshtype
  499. if meshid~="nil" then
  500. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  501. end
  502. end
  503. mesh.Offset=offset
  504. mesh.Scale=scale
  505. return mesh
  506. end
  507.  
  508. function weld(parent,part0,part1,c0)
  509. local weld=it("Weld")
  510. weld.Parent=parent
  511. weld.Part0=part0
  512. weld.Part1=part1
  513. weld.C0=c0
  514. return weld
  515. end
  516.  
  517. local Color1= BrickColor.new("Dark indigo")
  518.  
  519. local bodvel=Instance.new("BodyVelocity")
  520. local bg=Instance.new("BodyGyro")
  521.  
  522. function swait(num)
  523. if num==0 or num==nil then
  524. game:service'RunService'.Stepped:wait(0)
  525. else
  526. for i=0,num do
  527. game:service'RunService'.Stepped:wait(0)
  528. end
  529. end
  530. end
  531.  
  532.  
  533. so = function(id,par,vol,pit)
  534. coroutine.resume(coroutine.create(function()
  535. local sou = Instance.new("Sound",par or workspace)
  536. sou.Volume=vol
  537. sou.Pitch=pit or 1
  538. sou.SoundId=id
  539. swait()
  540. sou:play()
  541. game:GetService("Debris"):AddItem(sou,6)
  542. end))
  543. end
  544.  
  545. function clerp(a,b,t)
  546. local qa = {QuaternionFromCFrame(a)}
  547. local qb = {QuaternionFromCFrame(b)}
  548. local ax, ay, az = a.x, a.y, a.z
  549. local bx, by, bz = b.x, b.y, b.z
  550. local _t = 1-t
  551. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  552. end
  553.  
  554. function QuaternionFromCFrame(cf)
  555. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  556. local trace = m00 + m11 + m22
  557. if trace > 0 then
  558. local s = math.sqrt(1 + trace)
  559. local recip = 0.5/s
  560. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  561. else
  562. local i = 0
  563. if m11 > m00 then
  564. i = 1
  565. end
  566. if m22 > (i == 0 and m00 or m11) then
  567. i = 2
  568. end
  569. if i == 0 then
  570. local s = math.sqrt(m00-m11-m22+1)
  571. local recip = 0.5/s
  572. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  573. elseif i == 1 then
  574. local s = math.sqrt(m11-m22-m00+1)
  575. local recip = 0.5/s
  576. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  577. elseif i == 2 then
  578. local s = math.sqrt(m22-m00-m11+1)
  579. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  580. end
  581. end
  582. end
  583.  
  584. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  585. local xs, ys, zs = x + x, y + y, z + z
  586. local wx, wy, wz = w*xs, w*ys, w*zs
  587. local xx = x*xs
  588. local xy = x*ys
  589. local xz = x*zs
  590. local yy = y*ys
  591. local yz = y*zs
  592. local zz = z*zs
  593. 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))
  594. end
  595.  
  596. function QuaternionSlerp(a, b, t)
  597. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  598. local startInterp, finishInterp;
  599. if cosTheta >= 0.0001 then
  600. if (1 - cosTheta) > 0.0001 then
  601. local theta = math.acos(cosTheta)
  602. local invSinTheta = 1/math.sin(theta)
  603. startInterp = math.sin((1-t)*theta)*invSinTheta
  604. finishInterp = math.sin(t*theta)*invSinTheta
  605. else
  606. startInterp = 1-t
  607. finishInterp = t
  608. end
  609. else
  610. if (1+cosTheta) > 0.0001 then
  611. local theta = math.acos(-cosTheta)
  612. local invSinTheta = 1/math.sin(theta)
  613. startInterp = math.sin((t-1)*theta)*invSinTheta
  614. finishInterp = math.sin(t*theta)*invSinTheta
  615. else
  616. startInterp = t-1
  617. finishInterp = t
  618. end
  619. end
  620. 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
  621. end
  622.  
  623. local function CFrameFromTopBack(at, top, back)
  624. local right = top:Cross(back)
  625. return CFrame.new(at.x, at.y, at.z,
  626. right.x, top.x, back.x,
  627. right.y, top.y, back.y,
  628. right.z, top.z, back.z)
  629. end
  630.  
  631. function Triangle(a, b, c)
  632. local edg1 = (c-a):Dot((b-a).unit)
  633. local edg2 = (a-b):Dot((c-b).unit)
  634. local edg3 = (b-c):Dot((a-c).unit)
  635. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  636. a, b, c = a, b, c
  637. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  638. a, b, c = b, c, a
  639. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  640. a, b, c = c, a, b
  641. else
  642. assert(false, "unreachable")
  643. end
  644.  
  645. local len1 = (c-a):Dot((b-a).unit)
  646. local len2 = (b-a).magnitude - len1
  647. local width = (a + (b-a).unit*len1 - c).magnitude
  648.  
  649. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  650.  
  651. local list = {}
  652.  
  653. if len1 > 0.01 then
  654. local w1 = Instance.new('WedgePart', m)
  655. game:GetService("Debris"):AddItem(w1,5)
  656. w1.Material = "SmoothPlastic"
  657. w1.FormFactor = 'Custom'
  658. w1.BrickColor = BrickColor.new("Dark indigo")
  659. w1.Transparency = 0
  660. w1.Reflectance = 0
  661. w1.Material = "SmoothPlastic"
  662. w1.CanCollide = false
  663. local l1 = Instance.new("PointLight",w1)
  664. l1.Color = Color3.new(170,0,0)
  665. NoOutline(w1)
  666. local sz = Vector3.new(0.2, width, len1)
  667. w1.Size = sz
  668. local sp = Instance.new("SpecialMesh",w1)
  669. sp.MeshType = "Wedge"
  670. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  671. w1:BreakJoints()
  672. w1.Anchored = true
  673. w1.Parent = workspace
  674. w1.Transparency = 0.7
  675. table.insert(Effects,{w1,"Disappear",.01})
  676. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  677. table.insert(list,w1)
  678. end
  679.  
  680. if len2 > 0.01 then
  681. local w2 = Instance.new('WedgePart', m)
  682. game:GetService("Debris"):AddItem(w2,5)
  683. w2.Material = "SmoothPlastic"
  684. w2.FormFactor = 'Custom'
  685. w2.BrickColor = BrickColor.new("Dark indigo")
  686. w2.Transparency = 0
  687. w2.Reflectance = 0
  688. w2.Material = "SmoothPlastic"
  689. w2.CanCollide = false
  690. local l2 = Instance.new("PointLight",w2)
  691. l2.Color = Color3.new(170,0,0)
  692. NoOutline(w2)
  693. local sz = Vector3.new(0.2, width, len2)
  694. w2.Size = sz
  695. local sp = Instance.new("SpecialMesh",w2)
  696. sp.MeshType = "Wedge"
  697. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  698. w2:BreakJoints()
  699. w2.Anchored = true
  700. w2.Parent = workspace
  701. w2.Transparency = 0.7
  702. table.insert(Effects,{w2,"Disappear",.01})
  703. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  704. table.insert(list,w2)
  705. end
  706. return unpack(list)
  707. end
  708.  
  709.  
  710. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  711. if hit.Parent == nil then
  712. return
  713. end
  714. local h = hit.Parent:FindFirstChild("Humanoid")
  715. for _, v in pairs(hit.Parent:children()) do
  716. if v:IsA("Humanoid") then
  717. h = v
  718. end
  719. end
  720. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  721. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  722. return
  723. end
  724. local c = Create("ObjectValue")({
  725. Name = "creator",
  726. Value = game:service("Players").LocalPlayer,
  727. Parent = h
  728. })
  729. game:GetService("Debris"):AddItem(c, 0.5)
  730. if HitSound ~= nil and HitPitch ~= nil then
  731. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  732. end
  733. local Damage = math.random(minim, maxim)
  734. local blocked = false
  735. local block = hit.Parent:findFirstChild("Block")
  736. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  737. blocked = true
  738. block.Value = block.Value - 1
  739. print(block.Value)
  740. end
  741. if blocked == false then
  742. HitHealth = h.Health
  743. h.Health = h.Health - Damage
  744. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  745. print("gained kill")
  746. end
  747. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  748. else
  749. h.Health = h.Health - Damage / 2
  750. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  751. end
  752. if Type == "Knockdown" then
  753. local hum = hit.Parent.Humanoid
  754. hum.PlatformStand = true
  755. coroutine.resume(coroutine.create(function(HHumanoid)
  756. swait(1)
  757. HHumanoid.PlatformStand = false
  758. end), hum)
  759. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  760. local bodvol = Create("BodyVelocity")({
  761. velocity = angle * knockback,
  762. P = 5000,
  763. maxForce = Vector3.new(8000, 8000, 8000),
  764. Parent = hit
  765. })
  766. local rl = Create("BodyAngularVelocity")({
  767. P = 3000,
  768. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  769. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  770. Parent = hit
  771. })
  772. game:GetService("Debris"):AddItem(bodvol, 0.5)
  773. game:GetService("Debris"):AddItem(rl, 0.5)
  774. elseif Type == "Normal" then
  775. local vp = Create("BodyVelocity")({
  776. P = 500,
  777. maxForce = Vector3.new(math.huge, 0, math.huge),
  778. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  779. })
  780. if knockback > 0 then
  781. vp.Parent = hit.Parent.Torso
  782. end
  783. game:GetService("Debris"):AddItem(vp, 0.5)
  784. elseif Type == "Up" then
  785. local bodyVelocity = Create("BodyVelocity")({
  786. velocity = Vector3.new(0, 20, 0),
  787. P = 5000,
  788. maxForce = Vector3.new(8000, 8000, 8000),
  789. Parent = hit
  790. })
  791. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  792. local bodyVelocity = Create("BodyVelocity")({
  793. velocity = Vector3.new(0, 20, 0),
  794. P = 5000,
  795. maxForce = Vector3.new(8000, 8000, 8000),
  796. Parent = hit
  797. })
  798. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  799. elseif Type == "Leech" then
  800. local hum = hit.Parent.Humanoid
  801. if hum ~= nil then
  802. for i = 0, 2 do
  803. Effects.Sphere.Create(BrickColor.new("Dark indigo"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  804. end
  805. Humanoid.Health = Humanoid.Health + 10
  806. end
  807. elseif Type == "UpKnock" then
  808. local hum = hit.Parent.Humanoid
  809. hum.PlatformStand = true
  810. if hum ~= nil then
  811. hitr = true
  812. end
  813. coroutine.resume(coroutine.create(function(HHumanoid)
  814. swait(5)
  815. HHumanoid.PlatformStand = false
  816. hitr = false
  817. end), hum)
  818. local bodyVelocity = Create("BodyVelocity")({
  819. velocity = Vector3.new(0, 20, 0),
  820. P = 5000,
  821. maxForce = Vector3.new(8000, 8000, 8000),
  822. Parent = hit
  823. })
  824. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  825. local bodyVelocity = Create("BodyVelocity")({
  826. velocity = Vector3.new(0, 20, 0),
  827. P = 5000,
  828. maxForce = Vector3.new(8000, 8000, 8000),
  829. Parent = hit
  830. })
  831. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  832. elseif Type == "Snare" then
  833. local bp = Create("BodyPosition")({
  834. P = 2000,
  835. D = 100,
  836. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  837. position = hit.Parent.Torso.Position,
  838. Parent = hit.Parent.Torso
  839. })
  840. game:GetService("Debris"):AddItem(bp, 1)
  841. elseif Type == "Slashnare" then
  842. Effects.Block.Create(BrickColor.new("Dark indigo"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  843. for i = 1, math.random(4, 5) do
  844. Effects.Sphere.Create(BrickColor.new("Dark indigo"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  845. end
  846. local bp = Create("BodyPosition")({
  847. P = 2000,
  848. D = 100,
  849. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  850. position = hit.Parent.Torso.Position,
  851. Parent = hit.Parent.Torso
  852. })
  853. game:GetService("Debris"):AddItem(bp, 1)
  854. elseif Type == "Spike" then
  855. CreateBigIceSword(hit.Parent.Torso.CFrame)
  856. local bp = Create("BodyPosition")({
  857. P = 2000,
  858. D = 100,
  859. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  860. position = hit.Parent.Torso.Position,
  861. Parent = hit.Parent.Torso
  862. })
  863. game:GetService("Debris"):AddItem(bp, 1)
  864. elseif Type == "Freeze" then
  865. local BodPos = Create("BodyPosition")({
  866. P = 50000,
  867. D = 1000,
  868. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  869. position = hit.Parent.Torso.Position,
  870. Parent = hit.Parent.Torso
  871. })
  872. local BodGy = Create("BodyGyro")({
  873. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  874. P = 20000,
  875. Parent = hit.Parent.Torso,
  876. cframe = hit.Parent.Torso.CFrame
  877. })
  878. hit.Parent.Torso.Anchored = true
  879. coroutine.resume(coroutine.create(function(Part)
  880. swait(1.5)
  881. Part.Anchored = false
  882. end), hit.Parent.Torso)
  883. game:GetService("Debris"):AddItem(BodPos, 3)
  884. game:GetService("Debris"):AddItem(BodGy, 3)
  885. end
  886. local debounce = Create("BoolValue")({
  887. Name = "DebounceHit",
  888. Parent = hit.Parent,
  889. Value = true
  890. })
  891. game:GetService("Debris"):AddItem(debounce, Delay)
  892. c = Instance.new("ObjectValue")
  893. c.Name = "creator"
  894. c.Value = Player
  895. c.Parent = h
  896. game:GetService("Debris"):AddItem(c, 0.5)
  897. end
  898. end
  899. function ShowDamage(Pos, Text, Time, Color)
  900. local Rate = 0.03333333333333333
  901. local Pos = Pos or Vector3.new(0, 0, 0)
  902. local Text = Text or ""
  903. local Time = Time or 2
  904. local Color = Color or Color3.new(1, 0, 1)
  905. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  906. EffectPart.Anchored = true
  907. local BillboardGui = Create("BillboardGui")({
  908. Size = UDim2.new(3, 0, 3, 0),
  909. Adornee = EffectPart,
  910. Parent = EffectPart
  911. })
  912. local TextLabel = Create("TextLabel")({
  913. BackgroundTransparency = 1,
  914. Size = UDim2.new(1, 0, 1, 0),
  915. Text = Text,
  916. TextColor3 = Color,
  917. TextScaled = true,
  918. Font = Enum.Font.ArialBold,
  919. Parent = BillboardGui
  920. })
  921. game.Debris:AddItem(EffectPart, Time + 0.1)
  922. EffectPart.Parent = game:GetService("Workspace")
  923. delay(0, function()
  924. local Frames = Time / Rate
  925. for Frame = 1, Frames do
  926. wait(Rate)
  927. local Percent = Frame / Frames
  928. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  929. TextLabel.TextTransparency = Percent
  930. end
  931. if EffectPart and EffectPart.Parent then
  932. EffectPart:Destroy()
  933. end
  934. end)
  935. end
  936. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  937. for _, c in pairs(workspace:children()) do
  938. local hum = c:findFirstChild("Humanoid")
  939. if hum ~= nil then
  940. local head = c:findFirstChild("Torso")
  941. if head ~= nil then
  942. local targ = head.Position - Part.Position
  943. local mag = targ.magnitude
  944. if magni >= mag and c.Name ~= Player.Name then
  945. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  946. end
  947. end
  948. end
  949. end
  950. end
  951.  
  952. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  953. for _, c in pairs(workspace:children()) do
  954. local hum = c:findFirstChild("Humanoid")
  955. if hum ~= nil then
  956. local head = c:findFirstChild("Torso")
  957. if head ~= nil then
  958. local targ = head.Position - Part.Position
  959. local mag = targ.magnitude
  960. if magni >= mag and c.Name ~= Player.Name then
  961. MagicBlock(BrickColor.new("Dark indigo"),head.CFrame,5,5,5,1,1,1,0.05)
  962. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  963. end
  964. end
  965. end
  966. end
  967. end
  968.  
  969. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  970. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  971. end
  972.  
  973. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  974. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  975. prt.Anchored=true
  976. prt.CFrame=cframe
  977. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  978. --http://www.roblox.com/asset/?id=4770560
  979. game:GetService("Debris"):AddItem(prt,2)
  980. CF=prt.CFrame
  981. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  982. for i=0,1,0.2 do
  983. wait()
  984. Part.CFrame=CF*cf(0,0,-0.4)
  985. end
  986. for i=0,1,delay do
  987. wait()
  988. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  989. Mesh.Scale=Mesh.Scale
  990. end
  991. for i=0,1,0.1 do
  992. wait()
  993. Part.Transparency=i
  994. end
  995. Part.Parent=nil
  996. end),prt,msh,CF)
  997. end
  998.  
  999. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1000. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1001. prt.Anchored=true
  1002. prt.Material = "Neon"
  1003. prt.CFrame=cframe
  1004. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1005. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1006. game:GetService("Debris"):AddItem(prt,5)
  1007. coroutine.resume(coroutine.create(function(Part,Mesh)
  1008. for i=0,1,delay do
  1009. swait()
  1010. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1011. Part.Transparency=i
  1012. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1013. end
  1014. Part.Parent=nil
  1015. end),prt,msh)
  1016. end
  1017.  
  1018. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1019. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1020. prt.Anchored=true
  1021. prt.Material = "Neon"
  1022. prt.CFrame=cframe
  1023. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1024. game:GetService("Debris"):AddItem(prt,5)
  1025. coroutine.resume(coroutine.create(function(Part,Mesh)
  1026. local rtype = rottype
  1027. for i=0,1,delay do
  1028. swait()
  1029. if rtype == 1 then
  1030. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1031. elseif rtype == 2 then
  1032. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1033. end
  1034. Part.Transparency=i
  1035. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1036. end
  1037. Part.Parent=nil
  1038. end),prt,msh)
  1039. end
  1040.  
  1041. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1042. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1043. prt.Anchored=true
  1044. prt.CFrame=cframe
  1045. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1046. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1047. game:GetService("Debris"):AddItem(prt,5)
  1048. coroutine.resume(coroutine.create(function(Part,Mesh)
  1049. for i=0,1,delay do
  1050. wait()
  1051. Part.Transparency=i
  1052. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1053. end
  1054. Part.Parent=nil
  1055. end),prt,msh)
  1056. end
  1057.  
  1058. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1059. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1060. prt.Anchored=true
  1061. prt.Material = "Neon"
  1062. prt.CFrame=cframe
  1063. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1064. game:GetService("Debris"):AddItem(prt,5)
  1065. coroutine.resume(coroutine.create(function(Part,Mesh)
  1066. local rtype = rottype
  1067. for i=0,1,delay do
  1068. swait()
  1069. if rtype == 1 then
  1070. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1071. elseif rtype == 2 then
  1072. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1073. end
  1074. Part.Transparency=i
  1075. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1076. end
  1077. Part.Parent=nil
  1078. end),prt,msh)
  1079. end
  1080.  
  1081. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1082. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1083. prt.Anchored=true
  1084. prt.Material = "Neon"
  1085. prt.CFrame=cframe
  1086. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1087. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1088. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1089. game:GetService("Debris"):AddItem(prt,5)
  1090. coroutine.resume(coroutine.create(function(Part,Mesh)
  1091. local rtype = rottype
  1092. for i=0,1,delay do
  1093. swait()
  1094. if rtype == 1 then
  1095. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1096. elseif rtype == 2 then
  1097. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1098. end
  1099. dec.Transparency=i
  1100. dec2.Transparency=i
  1101. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1102. end
  1103. Part.Parent=nil
  1104. end),prt,msh)
  1105. end
  1106.  
  1107. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1108. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1109. prt.Anchored=true
  1110. prt.Material = "Neon"
  1111. prt.CFrame=cframe
  1112. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1113. game:GetService("Debris"):AddItem(prt,5)
  1114. coroutine.resume(coroutine.create(function(Part,Mesh)
  1115. local rtype = rottype
  1116. for i=0,1,delay do
  1117. swait()
  1118. if rtype == 1 then
  1119. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1120. elseif rtype == 2 then
  1121. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1122. end
  1123. prt.Transparency=i
  1124. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1125. end
  1126. Part.Parent=nil
  1127. end),prt,msh)
  1128. end
  1129.  
  1130. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1131. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1132. prt.Anchored=true
  1133. prt.Material = "Neon"
  1134. prt.CFrame=cframe
  1135. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1136. game:GetService("Debris"):AddItem(prt,5)
  1137. coroutine.resume(coroutine.create(function(Part,Mesh)
  1138. local rtype = rottype
  1139. for i=0,1,delay do
  1140. swait()
  1141. if rtype == 1 then
  1142. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1143. elseif rtype == 2 then
  1144. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1145. end
  1146. prt.Transparency=i
  1147. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1148. end
  1149. Part.Parent=nil
  1150. end),prt,msh)
  1151. end
  1152.  
  1153. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1154. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1155. prt.Anchored=true
  1156. prt.Material = "Neon"
  1157. prt.CFrame=cframe
  1158. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1159. game:GetService("Debris"):AddItem(prt,5)
  1160. coroutine.resume(coroutine.create(function(Part,Mesh)
  1161. local rtype = rottype
  1162. for i=0,1,delay do
  1163. swait()
  1164. if rtype == 1 then
  1165. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1166. elseif rtype == 2 then
  1167. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1168. end
  1169. prt.Transparency=i
  1170. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1171. end
  1172. Part.Parent=nil
  1173. end),prt,msh)
  1174. end
  1175.  
  1176. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1177. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1178. prt.Anchored=true
  1179. prt.Material = "Neon"
  1180. prt.CFrame=cframe
  1181. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1182. game:GetService("Debris"):AddItem(prt,5)
  1183. coroutine.resume(coroutine.create(function(Part,Mesh)
  1184. local rtype = rottype
  1185. for i=0,1,delay do
  1186. swait()
  1187. if rtype == 1 then
  1188. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1189. elseif rtype == 2 then
  1190. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1191. end
  1192. prt.Transparency=i
  1193. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1194. end
  1195. Part.Parent=nil
  1196. end),prt,msh)
  1197. end
  1198.  
  1199. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1200. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1201. prt.Anchored=false
  1202. prt.CFrame=cframe
  1203. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1204. local wld=weld(prt,prt,Parent,cframe)
  1205. game:GetService("Debris"):AddItem(prt,5)
  1206. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1207. for i=0,1,delay do
  1208. wait()
  1209. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1210. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1211. Part.Transparency=i
  1212. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1213. end
  1214. Part.Parent=nil
  1215. end),prt,msh,wld)
  1216. end
  1217.  
  1218. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1219. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1220. prt.Anchored=false
  1221. prt.CFrame=cframe
  1222. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1223. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1224. game:GetService("Debris"):AddItem(prt,5)
  1225. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1226. for i=0,1,delay do
  1227. wait()
  1228. Weld.C0=euler(i*20,0,0)
  1229. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1230. Part.Transparency=i
  1231. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1232. end
  1233. Part.Parent=nil
  1234. end),prt,msh,wld)
  1235. end
  1236.  
  1237. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1238. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1239. prt.Anchored=true
  1240. prt.CFrame=cframe
  1241. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1242. game:GetService("Debris"):AddItem(prt,2)
  1243. coroutine.resume(coroutine.create(function(Part,Mesh)
  1244. for i=0,1,delay do
  1245. wait()
  1246. Part.CFrame=Part.CFrame
  1247. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1248. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1249. prt2.Anchored=true
  1250. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1251. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1252. game:GetService("Debris"):AddItem(prt2,2)
  1253. coroutine.resume(coroutine.create(function(Part,Mesh)
  1254. for i=0,1,0.1 do
  1255. wait()
  1256. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1257. end
  1258. Part.Parent=nil
  1259. end),prt2,msh2)
  1260. end
  1261. for i=0,1,delay*2 do
  1262. wait()
  1263. Part.CFrame=Part.CFrame
  1264. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1265. end
  1266. Part.Parent=nil
  1267. end),prt,msh)
  1268. end
  1269.  
  1270. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1271. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1272. prt.Anchored=true
  1273. prt.CFrame=cframe
  1274. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1275. game:GetService("Debris"):AddItem(prt,2)
  1276. coroutine.resume(coroutine.create(function(Part,Mesh)
  1277. for i=0,1,delay do
  1278. wait()
  1279. Part.CFrame=Part.CFrame
  1280. Part.Transparency=i
  1281. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1282. end
  1283. Part.Parent=nil
  1284. end),prt,msh)
  1285. end
  1286.  
  1287. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1288. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1289. prt.Anchored=true
  1290. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1291. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1292. game:GetService("Debris"):AddItem(prt,2)
  1293. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1294. CF=Part.CFrame
  1295. Numbb=0
  1296. randnumb=math.random()/10
  1297. rand1=math.random()/10
  1298. for i=0,1,rand1 do
  1299. wait()
  1300. CF=CF*cf(0,math.random()/2,0)
  1301. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1302. Part.CFrame=CF*euler(Numbb,0,0)
  1303. Part.Transparency=i
  1304. Numbb=Numbb+randnumb
  1305. end
  1306. Part.Parent=nil
  1307. end),prt,CF,Numbb,randnumb)
  1308. end
  1309.  
  1310. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1311. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1312. prt.Anchored=true
  1313. prt.CFrame=cframe
  1314. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1315. game:GetService("Debris"):AddItem(prt,5)
  1316. coroutine.resume(coroutine.create(function(Part,Mesh)
  1317. for i=0,1,delay do
  1318. wait()
  1319. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1320. Part.Transparency=i
  1321. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1322. end
  1323. Part.Parent=nil
  1324. end),prt,msh)
  1325. end
  1326.  
  1327. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1328. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1329. prt.Anchored=true
  1330. prt.CFrame=cframe
  1331. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1332. game:GetService("Debris"):AddItem(prt,2)
  1333. coroutine.resume(coroutine.create(function(Part,Mesh)
  1334. for i=0,1,delay do
  1335. wait()
  1336. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1337. Part.Transparency=i
  1338. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1339. end
  1340. Part.Parent=nil
  1341. end),prt,msh)
  1342. end
  1343.  
  1344. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1345. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1346. prt.Anchored=true
  1347. prt.CFrame=cframe*cf(x,y,z)
  1348. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1349. game:GetService("Debris"):AddItem(prt,5)
  1350. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1351. local num=math.random()
  1352. local num2=math.random(-3,2)+math.random()
  1353. local numm=0
  1354. for i=0,1,delay*2 do
  1355. swait()
  1356. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1357. Part.Transparency=i
  1358. numm=numm+0.01
  1359. end
  1360. Part.Parent=nil
  1361. Mesh.Parent=nil
  1362. end),prt,msh,x,y,z)
  1363. end
  1364.  
  1365. function dmgstart(dmg,what)
  1366. hitcon = what.Touched:connect(function(hit)
  1367. local hum = hit.Parent:FindFirstChild("Humanoid")
  1368. if hum and not hum:IsDescendantOf(Character) then
  1369. hum:TakeDamage(dmg)
  1370. end
  1371. end)
  1372. end
  1373.  
  1374. function dmgstop()
  1375. hitcon:disconnect()
  1376. end
  1377.  
  1378. function Cloak()
  1379. Face.Parent=nil
  1380. cloaked=true
  1381. for _,v in pairs(Torso.Parent:children()) do
  1382. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1383. coroutine.resume(coroutine.create(function()
  1384. for i=0,1,0.2 do
  1385. wait()
  1386. v.Transparency=i
  1387. end
  1388. v.Transparency=1
  1389. end))
  1390. end
  1391. if v.className=="Hat" then
  1392. hatp=v.Handle
  1393. coroutine.resume(coroutine.create(function(derp)
  1394. for i=0,1,0.2 do
  1395. wait()
  1396. derp.Transparency=i
  1397. end
  1398. derp.Transparency=1
  1399. end),hatp)
  1400. end
  1401. end
  1402. for _,v in pairs(m:children()) do
  1403. if v.className=="Part" then
  1404. coroutine.resume(coroutine.create(function()
  1405. for i=0,1,0.2 do
  1406. wait()
  1407. v.Transparency=i
  1408. end
  1409. v.Transparency=1
  1410. end))
  1411. end
  1412. end
  1413. end
  1414.  
  1415. function UnCloak()
  1416. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1417. Face.Parent=Head
  1418. cloaked=false
  1419. for _,v in pairs(Torso.Parent:children()) do
  1420. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1421. coroutine.resume(coroutine.create(function()
  1422. for i=0,1,0.1 do
  1423. wait()
  1424. v.Transparency=v.Transparency-0.1
  1425. end
  1426. v.Transparency=0
  1427. end))
  1428. end
  1429. if v.className=="Hat" then
  1430. hatp=v.Handle
  1431. coroutine.resume(coroutine.create(function(derp)
  1432. for i=0,1,0.1 do
  1433. wait()
  1434. derp.Transparency=derp.Transparency-0.1
  1435. end
  1436. derp.Transparency=0
  1437. end),hatp)
  1438. end
  1439. end
  1440. for _,v in pairs(m:children()) do
  1441. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1442. coroutine.resume(coroutine.create(function()
  1443. for i=0,1,0.1 do
  1444. wait()
  1445. v.Transparency=v.Transparency-0.1
  1446. end
  1447. v.Transparency=0
  1448. end))
  1449. v.Transparency=0
  1450. end
  1451. end
  1452. end
  1453.  
  1454. local origcolor = BrickColor.new("Dark indigo")
  1455. ---- This section of explosions.
  1456. function Explode(rad,par,pitch,vol,mindam,maxdam)
  1457. local expart = Instance.new("Part",char)
  1458. local expart2 = Instance.new("Part",char)
  1459. local rin = Instance.new("Part",char)
  1460. local rin2 = Instance.new("Part",char)
  1461. local partMesh = Instance.new("SpecialMesh",expart)
  1462. partMesh.MeshType = "Sphere"
  1463. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1464. partMesh2.MeshType = "Sphere"
  1465. local partMesh3 = Instance.new("SpecialMesh",rin)
  1466. partMesh3.MeshType = "Brick"
  1467. local partMesh4 = Instance.new("SpecialMesh",rin2)
  1468. partMesh4.MeshType = "Brick"
  1469. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  1470. partMesh.Scale = vt(rad,rad,rad)
  1471. expart.Size = vt(1,1,1)
  1472. expart.Transparency = 1
  1473. expart.Anchored = true
  1474. expart.Material = "Neon"
  1475. expart.BrickColor = bc("Really black")
  1476. expart.CFrame = par.CFrame
  1477. partMesh2.Scale = vt(rad,rad,rad)
  1478. expart2.Size = vt(1.15,1.15,1.15)
  1479. expart2.Transparency = 0.75
  1480. expart2.Anchored = true
  1481. expart2.Material = "Glass"
  1482. expart2.BrickColor = par.BrickColor
  1483. expart2.CFrame = par.CFrame
  1484. rin.Size = vt(1.15,1.15,1.15)
  1485. rin.Transparency = 1
  1486. rin.Anchored = true
  1487. rin.Material = "Neon"
  1488. rin.BrickColor = par.BrickColor
  1489. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1490. rin2.Size = vt(1.15,1.15,1.15)
  1491. rin2.Transparency = 1
  1492. rin2.Anchored = true
  1493. rin2.Material = "Neon"
  1494. rin2.BrickColor = par.BrickColor
  1495. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1496. partMesh3.Scale = vt(0,1,0)
  1497. partMesh4.Scale = vt(0,1,0)
  1498. local dec2 = Instance.new("Decal", rin)
  1499. dec2.Face = "Top"
  1500. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1501. dec2.Parent = rin
  1502. local dec2b = dec2:Clone()
  1503. dec2b.Face = "Bottom"
  1504. dec2b.Parent = rin
  1505.  
  1506. local dec2a = Instance.new("Decal", rin2)
  1507. dec2a.Face = "Top"
  1508. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  1509. dec2a.Parent = rin2
  1510. local dec2ab = dec2a:Clone()
  1511. dec2ab.Face = "Bottom"
  1512. dec2ab.Parent = rin2
  1513. expart.CanCollide = false
  1514. expart2.CanCollide = false
  1515. rin.CanCollide = false
  1516. rin2.CanCollide = false
  1517. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  1518. local value = 1*rad/6.5
  1519. for i = 0, 199 do
  1520. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1521. expart.CFrame = expart.CFrame
  1522. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1523. expart2.CFrame = expart.CFrame
  1524. value = value - 0.035*rad/30
  1525. if value < 7.5 then
  1526. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  1527. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  1528. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  1529. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  1530. end
  1531. if value < 0 then
  1532. dec2.Transparency = dec2.Transparency + 0.025
  1533. dec2a.Transparency = dec2a.Transparency + 0.025
  1534. dec2b.Transparency = dec2b.Transparency + 0.025
  1535. dec2ab.Transparency = dec2ab.Transparency + 0.025
  1536. expart.Transparency = expart.Transparency + 0.025
  1537. expart2.Transparency = expart2.Transparency + 0.025
  1538. rin.Transparency = rin.Transparency + 0.025
  1539. rin2.Transparency = rin2.Transparency + 0.025
  1540. end
  1541. swait()
  1542. end
  1543. game:GetService("Debris"):AddItem(expart, 1)
  1544. game:GetService("Debris"):AddItem(expart2, 1)
  1545. game:GetService("Debris"):AddItem(rin, 1)
  1546. game:GetService("Debris"):AddItem(rin2, 1)
  1547. end
  1548.  
  1549. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  1550. local expart = Instance.new("Part",char)
  1551. local expart2 = Instance.new("Part",char)
  1552. local partMesh = Instance.new("SpecialMesh",expart)
  1553. partMesh.MeshType = "Sphere"
  1554. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1555. partMesh2.MeshType = "Sphere"
  1556. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  1557. partMesh.Scale = vt(rad,rad,rad)
  1558. expart.Size = vt(1,1,1)
  1559. expart.Transparency = 0
  1560. expart.Anchored = true
  1561. expart.Material = "Neon"
  1562. expart.BrickColor = bc("Really black")
  1563. expart.CFrame = par.CFrame
  1564. partMesh2.Scale = vt(rad,rad,rad)
  1565. expart2.Size = vt(1.15,1.15,1.15)
  1566. expart2.Transparency = 0.5
  1567. expart2.Anchored = true
  1568. expart2.Material = "Neon"
  1569. expart2.BrickColor = par.BrickColor
  1570. expart2.CFrame = par.CFrame
  1571. expart.CanCollide = false
  1572. expart2.CanCollide = false
  1573. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  1574. local value = 1*rad/6.5
  1575. for i = 0, 75 do
  1576. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1577. expart.CFrame = expart.CFrame
  1578. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1579. expart2.CFrame = expart.CFrame
  1580. value = value - 0.035*rad/5
  1581. if value < 0 then
  1582. value = 0
  1583. expart.Transparency = expart.Transparency + 0.05
  1584. expart2.Transparency = expart2.Transparency + 0.05
  1585. end
  1586. swait()
  1587. end
  1588. game:GetService("Debris"):AddItem(expart, 1)
  1589. game:GetService("Debris"):AddItem(expart2, 1)
  1590. end
  1591.  
  1592. function AreaDanger(rad,par,mindam,maxdam)
  1593. local expart = Instance.new("Part",char)
  1594. local partMesh = Instance.new("SpecialMesh",expart)
  1595. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1596. partMesh.MeshType = "Sphere"
  1597. partMesh.Scale = vt(rad,rad,rad)
  1598. expart.Size = vt(1,1,1)
  1599. expart.Transparency = 0.5
  1600. expart.Anchored = true
  1601. expart.Material = "Neon"
  1602. expart.CanCollide = false
  1603. expart.BrickColor = par.BrickColor
  1604. expart.CFrame = par.CFrame
  1605. local value = 1*rad/5
  1606. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  1607. for i = 0, 14 do
  1608. wait()
  1609. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1610. expart.CFrame = expart.CFrame
  1611. value = value - 0.035*rad
  1612. if value < 0 then
  1613. value = 0
  1614. end
  1615. end
  1616. wait(0.25)
  1617. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  1618. wait(0.5)
  1619. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  1620. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  1621. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  1622. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  1623. for i = 0, 14 do
  1624. wait()
  1625. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1626. expart.CFrame = expart.CFrame
  1627. value = value - 0.035*rad/2
  1628. end
  1629. expart.Transparency = 1
  1630. game:GetService("Debris"):AddItem(expart, 5)
  1631. end
  1632.  
  1633. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  1634. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  1635. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  1636. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  1637. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1638. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  1639. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  1640. for i = 0, 24 do
  1641. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  1642. end
  1643. for i = 0, 24 do
  1644. local expart = Instance.new("Part",char)
  1645. expart.Transparency = 1
  1646. expart.Anchored = true
  1647. expart.CanCollide = false
  1648. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  1649. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  1650. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1651. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  1652. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  1653. for i = 0, 9 do
  1654. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  1655. end
  1656. game:GetService("Debris"):AddItem(expart, 2)
  1657. wait(0.1)
  1658. end
  1659. end
  1660.  
  1661. function EXterPlosion(par)
  1662. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  1663. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  1664. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  1665. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1666. MagniDamageWithEffect(par, 999, 999,999, 999, "Normal")
  1667. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  1668. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  1669. for i = 0, 24 do
  1670. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  1671. end
  1672. for i = 0, 24 do
  1673. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  1674. end
  1675. end
  1676. ----
  1677.  
  1678. local stackingpower = 1
  1679.  
  1680. function HellsCore()
  1681. attack = true
  1682. --[[for i = 0,1,0.1 do
  1683. swait()
  1684. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  1685. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1686. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1687. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1688. end]]--
  1689.  
  1690. local rng = Instance.new("Part", char)
  1691. CFuncs["Sound"].Create("rbxassetid://401466969", root, 1, 0.6)
  1692. rng.Anchored = true
  1693. rng.BrickColor = origcolor
  1694. rng.CanCollide = false
  1695. rng.FormFactor = 3
  1696. rng.Name = "Ring"
  1697. rng.Material = "Neon"
  1698. rng.Size = Vector3.new(1, 1, 1)
  1699. rng.Transparency = 1
  1700. rng.TopSurface = 0
  1701. rng.BottomSurface = 0
  1702. rng.CFrame = root.CFrame + Vector3.new(0,-2.5,0)
  1703. local rngm = Instance.new("SpecialMesh", rng)
  1704. rngm.MeshType = "Brick"
  1705. local dec = Instance.new("Decal",rng)
  1706. dec.Texture = "http://www.roblox.com/asset/?id=401466968"
  1707. dec.Face = "Top"
  1708. local dec2 = dec:Clone()
  1709. dec2.Parent = rng
  1710. dec2.Face = "Bottom"
  1711.  
  1712. local scaler2 = 1
  1713. scaler2 = 1*3
  1714. for i = 0,10,0.1 do
  1715. swait()
  1716. scaler2 = scaler2 - 0.01*3
  1717. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  1718. end
  1719. wait(3)
  1720. for i = 0,10,0.1 do
  1721. swait()
  1722. scaler2 = scaler2 - 0.01*3
  1723. dec.Transparency = dec.Transparency + 0.01
  1724. dec2.Transparency = dec2.Transparency + 0.01
  1725. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  1726. end
  1727. rng:Destroy()
  1728. attack = false
  1729. end
  1730.  
  1731.  
  1732. function FaceMouse()
  1733. Cam = workspace.CurrentCamera
  1734. return {
  1735. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1736. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1737. }
  1738. end
  1739.  
  1740. function FaceMouse2()
  1741. Cam = workspace.CurrentCamera
  1742. return {
  1743. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  1744. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1745. }
  1746. end
  1747.  
  1748.  
  1749. local HoldingZ = false
  1750. local HoldingX = false
  1751. local HoldingC = false
  1752. local HoldingV = false
  1753. local HoldingB = false
  1754.  
  1755.  
  1756. function RingEffect(pos,startsize,size,col)
  1757. local lb = Instance.new("Part")
  1758. lb.Parent = char
  1759. lb.BrickColor = col
  1760. lb.CanCollide = false
  1761. lb.Material = "Neon"
  1762. lb.Anchored = true
  1763. lb.TopSurface = 0
  1764. lb.BottomSurface = 0
  1765. lb.Transparency = 1
  1766. lb.Size = vt(1,1,1)
  1767. lb.CFrame = pos
  1768. local thingery = Instance.new("SpecialMesh",lb)
  1769. thingery.MeshType = "Brick"
  1770. thingery.Scale = vt(startsize,0.1,startsize)
  1771. local dec2 = Instance.new("Texture", lb)
  1772. dec2.Face = "Top"
  1773. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1774. dec2.Color3 = lb.Color
  1775. dec2.Parent = lb
  1776. dec2.StudsPerTileU = startsize
  1777. dec2.StudsPerTileV = startsize
  1778. local dec2b = dec2:Clone()
  1779. dec2b.Face = "Bottom"
  1780. dec2b.Parent = lb
  1781. local randomrot = math.random(1,2)
  1782. coroutine.resume(coroutine.create(function()
  1783. for i = 0, 19 do
  1784. swait()
  1785. if randomrot == 1 then
  1786. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  1787. elseif randomrot == 2 then
  1788. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  1789. end
  1790. dec2.Transparency = dec2.Transparency + 0.05
  1791. dec2b.Transparency = dec2b.Transparency + 0.05
  1792. dec2.StudsPerTileU = dec2.StudsPerTileU + size
  1793. dec2.StudsPerTileV = dec2.StudsPerTileV + size
  1794. dec2b.StudsPerTileU = dec2b.StudsPerTileU + size
  1795. dec2b.StudsPerTileV = dec2b.StudsPerTileV + size
  1796. thingery.Scale = thingery.Scale + vt(size,0,size)
  1797. end
  1798. lb:Destroy()
  1799. end))
  1800. end
  1801.  
  1802. function SlowRingEffect(pos,startsize,size,col)
  1803. local lb = Instance.new("Part")
  1804. lb.Parent = char
  1805. lb.BrickColor = col
  1806. lb.CanCollide = false
  1807. lb.Material = "Neon"
  1808. lb.Anchored = true
  1809. lb.TopSurface = 0
  1810. lb.BottomSurface = 0
  1811. lb.Transparency = 1
  1812. lb.Size = vt(1,1,1)
  1813. lb.CFrame = pos
  1814. local thingery = Instance.new("SpecialMesh",lb)
  1815. thingery.MeshType = "Brick"
  1816. thingery.Scale = vt(startsize,0.1,startsize)
  1817. local dec2 = Instance.new("Decal", lb)
  1818. dec2.Face = "Top"
  1819. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1820. dec2.Color3 = lb.Color
  1821. dec2.Parent = lb
  1822. local dec2b = dec2:Clone()
  1823. dec2b.Face = "Bottom"
  1824. dec2b.Parent = lb
  1825. local randomrot = math.random(1,2)
  1826. coroutine.resume(coroutine.create(function()
  1827. for i = 0, 49 do
  1828. swait()
  1829. if randomrot == 1 then
  1830. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  1831. elseif randomrot == 2 then
  1832. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  1833. end
  1834. dec2.Transparency = dec2.Transparency + 0.02
  1835. dec2b.Transparency = dec2b.Transparency + 0.02
  1836. thingery.Scale = thingery.Scale + vt(size,0,size)
  1837. end
  1838. lb:Destroy()
  1839. end))
  1840. end
  1841.  
  1842.  
  1843. function groundringaa(pos)
  1844. local rng = Instance.new("Part", char)
  1845. rng.Anchored = true
  1846. rng.BrickColor = origcolor
  1847. rng.CanCollide = false
  1848. rng.FormFactor = 3
  1849. rng.Name = "Ring"
  1850. rng.Size = Vector3.new(1, 1, 1)
  1851. rng.Transparency = 1
  1852. rng.TopSurface = 0
  1853. rng.BottomSurface = 0
  1854. rng.CFrame = pos
  1855. local rngm = Instance.new("SpecialMesh", rng)
  1856. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1857. rngm.Scale = Vector3.new(100,100,5)
  1858. local scaler2 = -10/2
  1859. coroutine.resume(coroutine.create(function()
  1860. for i = 0,10,0.1 do
  1861. swait()
  1862. scaler2 = scaler2 + 0.1/2
  1863. rng.Transparency = rng.Transparency - 0.01
  1864. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  1865. end
  1866. rng:Destroy()
  1867. end))
  1868. end
  1869.  
  1870. function groundringbb(pos)
  1871. local rng = Instance.new("Part", char)
  1872. rng.Anchored = true
  1873. rng.BrickColor = origcolor
  1874. rng.CanCollide = false
  1875. rng.FormFactor = 3
  1876. rng.Name = "Ring"
  1877. rng.Size = Vector3.new(1, 1, 1)
  1878. rng.Transparency = 0
  1879. rng.TopSurface = 0
  1880. rng.BottomSurface = 0
  1881. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  1882. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  1883. local rngm = Instance.new("SpecialMesh", rng)
  1884. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1885. rngm.Scale = Vector3.new(0,0,5)
  1886. local scaler2 = 10
  1887. coroutine.resume(coroutine.create(function()
  1888. for i = 0,10*2,0.1 do
  1889. swait()
  1890. scaler2 = scaler2 - 0.1/2
  1891. rng.Transparency = rng.Transparency + 0.005
  1892. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  1893. end
  1894. rng:Destroy()
  1895. end))
  1896. end
  1897.  
  1898. function groundglowaa(pos)
  1899. local rng = Instance.new("Part", char)
  1900. rng.Anchored = true
  1901. rng.BrickColor = origcolor
  1902. rng.CanCollide = false
  1903. rng.FormFactor = 3
  1904. rng.Material = "Neon"
  1905. rng.Name = "Ring"
  1906. rng.Size = Vector3.new(1, 1, 1)
  1907. rng.Transparency = 0
  1908. rng.TopSurface = 0
  1909. rng.BottomSurface = 0
  1910. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  1911. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  1912. local rngm = Instance.new("SpecialMesh", rng)
  1913. rngm.MeshType = "Sphere"
  1914. rngm.Scale = Vector3.new(0,0,25)
  1915. local scaler2 = 10*2
  1916. coroutine.resume(coroutine.create(function()
  1917. for i = 0,10*2,0.1 do
  1918. swait()
  1919. scaler2 = scaler2 - 0.1*2/2
  1920. rng.Transparency = rng.Transparency + 0.005
  1921. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  1922. end
  1923. rng:Destroy()
  1924. end))
  1925. end
  1926.  
  1927. function bemaa(pos)
  1928. local rng = Instance.new("Part", char)
  1929. rng.Anchored = true
  1930. rng.BrickColor = origcolor
  1931. rng.CanCollide = false
  1932. rng.FormFactor = 3
  1933. rng.Material = "Neon"
  1934. rng.Name = "Ring"
  1935. rng.Size = Vector3.new(1, 1, 1)
  1936. rng.Transparency = 0
  1937. rng.TopSurface = 0
  1938. rng.BottomSurface = 0
  1939. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  1940. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  1941. local rngm = Instance.new("SpecialMesh", rng)
  1942. rngm.MeshType = "Sphere"
  1943. rngm.Scale = Vector3.new(0,0,10000)
  1944. local scaler2 = 1
  1945. coroutine.resume(coroutine.create(function()
  1946. for i = 0,99,0.1 do
  1947. swait()
  1948. scaler2 = scaler2 - 0.0025
  1949. rng.Transparency = rng.Transparency + 0.0025
  1950. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  1951. end
  1952. rng:Destroy()
  1953. end))
  1954. end
  1955.  
  1956. function bemaashake(pos)
  1957. local rng = Instance.new("Part", char)
  1958. rng.Anchored = true
  1959. rng.BrickColor = origcolor
  1960. rng.CanCollide = false
  1961. rng.FormFactor = 3
  1962. rng.Material = "Neon"
  1963. rng.Name = "Ring"
  1964. rng.Size = Vector3.new(1, 1, 1)
  1965. rng.Transparency = 0
  1966. rng.TopSurface = 0
  1967. rng.BottomSurface = 0
  1968. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  1969. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  1970. local rngm = Instance.new("SpecialMesh", rng)
  1971. rngm.MeshType = "Sphere"
  1972. local oof = Instance.new("Part",char)
  1973. oof.Parent = rng
  1974. oof.CFrame = rng.CFrame
  1975. oof.CanCollide = false
  1976. oof.Anchored = true
  1977. oof.Transparency = 1
  1978. rngm.Scale = Vector3.new(0,0,10000)
  1979. local scaler2 = 1*10
  1980. coroutine.resume(coroutine.create(function()
  1981. for i = 0,99,0.1 do
  1982. swait()
  1983. scaler2 = scaler2 - 0.0025*10
  1984. rng.CFrame = oof.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
  1985. rng.Transparency = rng.Transparency + 0.0025
  1986. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  1987. end
  1988. rng:Destroy()
  1989. end))
  1990. end
  1991.  
  1992. function groundringlarge(pos)
  1993. local rng = Instance.new("Part", char)
  1994. rng.Anchored = true
  1995. rng.BrickColor = origcolor
  1996. rng.CanCollide = false
  1997. rng.FormFactor = 3
  1998. rng.Name = "Ring"
  1999. rng.Size = Vector3.new(1, 1, 1)
  2000. rng.Transparency = 0
  2001. rng.TopSurface = 0
  2002. rng.BottomSurface = 0
  2003. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2004. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2005. local rngm = Instance.new("SpecialMesh", rng)
  2006. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2007. rngm.Scale = Vector3.new(0,0,5)
  2008. local scaler2 = 10*10
  2009. coroutine.resume(coroutine.create(function()
  2010. for i = 0,10*2,0.1 do
  2011. swait()
  2012. scaler2 = scaler2 - 0.1*10/2
  2013. rng.Transparency = rng.Transparency + 0.005
  2014. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  2015. end
  2016. rng:Destroy()
  2017. end))
  2018. end
  2019.  
  2020. function sphere(bonuspeed,type,pos,scale,value,color)
  2021. local type = type
  2022. local rng = Instance.new("Part", char)
  2023. rng.Anchored = true
  2024. rng.BrickColor = color
  2025. rng.CanCollide = false
  2026. rng.FormFactor = 3
  2027. rng.Name = "Ring"
  2028. rng.Material = "Neon"
  2029. rng.Size = Vector3.new(1, 1, 1)
  2030. rng.Transparency = 0
  2031. rng.TopSurface = 0
  2032. rng.BottomSurface = 0
  2033. rng.CFrame = pos
  2034. local rngm = Instance.new("SpecialMesh", rng)
  2035. rngm.MeshType = "Sphere"
  2036. rngm.Scale = scale
  2037. local scaler2 = 1
  2038. if type == "Add" then
  2039. scaler2 = 1*value
  2040. elseif type == "Divide" then
  2041. scaler2 = 1/value
  2042. end
  2043. coroutine.resume(coroutine.create(function()
  2044. for i = 0,10/bonuspeed,0.1 do
  2045. swait()
  2046. if type == "Add" then
  2047. scaler2 = scaler2 - 0.01*value/bonuspeed
  2048. elseif type == "Divide" then
  2049. scaler2 = scaler2 - 0.01/value*bonuspeed
  2050. end
  2051. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2052. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2053. end
  2054. rng:Destroy()
  2055. end))
  2056. end
  2057.  
  2058.  
  2059. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2060. local type = type
  2061. local rng = Instance.new("Part", char)
  2062. rng.Anchored = true
  2063. rng.BrickColor = color
  2064. rng.CanCollide = false
  2065. rng.FormFactor = 3
  2066. rng.Name = "Ring"
  2067. rng.Material = "Neon"
  2068. rng.Size = Vector3.new(1, 1, 1)
  2069. rng.Transparency = 0
  2070. rng.TopSurface = 0
  2071. rng.BottomSurface = 0
  2072. rng.CFrame = pos
  2073. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2074. local rngm = Instance.new("SpecialMesh", rng)
  2075. rngm.MeshType = "Sphere"
  2076. rngm.Scale = vt(x1,y1,z1)
  2077. local scaler2 = 1
  2078. local speeder = FastSpeed
  2079. if type == "Add" then
  2080. scaler2 = 1*value
  2081. elseif type == "Divide" then
  2082. scaler2 = 1/value
  2083. end
  2084. coroutine.resume(coroutine.create(function()
  2085. for i = 0,10/bonuspeed,0.1 do
  2086. swait()
  2087. if type == "Add" then
  2088. scaler2 = scaler2 - 0.01*value/bonuspeed
  2089. elseif type == "Divide" then
  2090. scaler2 = scaler2 - 0.01/value*bonuspeed
  2091. end
  2092. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2093. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2094. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2095. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2096. end
  2097. rng:Destroy()
  2098. end))
  2099. end
  2100.  
  2101.  
  2102. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2103. local type = type
  2104. local rng = Instance.new("Part", char)
  2105. rng.Anchored = true
  2106. rng.BrickColor = color
  2107. rng.CanCollide = false
  2108. rng.FormFactor = 3
  2109. rng.Name = "Ring"
  2110. rng.Material = "Neon"
  2111. rng.Size = Vector3.new(1, 1, 1)
  2112. rng.Transparency = 1
  2113. rng.TopSurface = 0
  2114. rng.BottomSurface = 0
  2115. rng.CFrame = pos
  2116. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2117. local rngm = Instance.new("SpecialMesh", rng)
  2118. rngm.MeshType = "Sphere"
  2119. rngm.Scale = vt(x1,y1,z1)
  2120. local scaler2 = 1
  2121. local speeder = FastSpeed
  2122. if type == "Add" then
  2123. scaler2 = 1*value
  2124. elseif type == "Divide" then
  2125. scaler2 = 1/value
  2126. end
  2127. coroutine.resume(coroutine.create(function()
  2128. for i = 0,10/bonuspeed,0.1 do
  2129. swait()
  2130. if type == "Add" then
  2131. scaler2 = scaler2 - 0.01*value/bonuspeed
  2132. elseif type == "Divide" then
  2133. scaler2 = scaler2 - 0.01/value*bonuspeed
  2134. end
  2135. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2136. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2137. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2138. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2139. end
  2140. rng:Destroy()
  2141. end))
  2142. end
  2143.  
  2144.  
  2145. function LightStorm()
  2146. HoldingZ = true
  2147. attack = true
  2148. local sbs = Instance.new("BodyPosition", root)
  2149. sbs.P = 3000
  2150. sbs.D = 1000
  2151. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  2152. sbs.position = RootPart.CFrame.p + Vector3.new(0, 100, 0)
  2153. wait(0.1)
  2154. root.Anchored = true
  2155. hum.WalkSpeed = 0
  2156. local rotation = 0
  2157. local typrot = math.random(1,2)
  2158. local rng = Instance.new("Part", char)
  2159. CFuncs["Sound"].Create("rbxassetid://402981977", rng, 1.5, 0.6)
  2160. rng.Anchored = true
  2161. rng.BrickColor = origcolor
  2162. rng.CanCollide = false
  2163. rng.FormFactor = 3
  2164. rng.Name = "Ring"
  2165. rng.Material = "Neon"
  2166. rng.Size = Vector3.new(1, 0.05, 1)
  2167. rng.Transparency = 1
  2168. rng.TopSurface = 0
  2169. rng.BottomSurface = 0
  2170. local rngm = Instance.new("SpecialMesh", rng)
  2171. rngm.MeshType = "Brick"
  2172. rngm.Scale = vt(0,1,0)
  2173. local dec = Instance.new("Decal",rng)
  2174. dec.Texture = "http://www.roblox.com/asset/?id=220255325"
  2175. dec.Face = "Top"
  2176. dec.Transparency = 1
  2177. local dec2 = dec:Clone()
  2178. dec2.Parent = rng
  2179. dec2.Face = "Bottom"
  2180. dec2.Transparency = 1
  2181.  
  2182.  
  2183. local summoned = Instance.new("ParticleEmitter",rng)
  2184. summoned.LightEmission = 1
  2185. summoned.Color = ColorSequence.new(Color3.new(1,0,1))
  2186. summoned.Rate = 100
  2187. summoned.Texture = "http://www.roblox.com/asset/?id=1493478120"
  2188. summoned.Lifetime = NumberRange.new(0.5)
  2189. summoned.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,35,0)})
  2190. summoned.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2191. summoned.Speed = NumberRange.new(0,0)
  2192. summoned.Rotation = NumberRange.new(-500,500)
  2193. summoned.RotSpeed = NumberRange.new(-500,500)
  2194.  
  2195. for i = 0,1,0.1 do
  2196. swait()
  2197. dec.Transparency = dec.Transparency - 0.1
  2198. dec2.Transparency = dec2.Transparency - 0.1
  2199. rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
  2200. rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(180),0) + root.CFrame.lookVector*4
  2201. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2202. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2203. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.3)
  2204. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-20)), 0.3)
  2205. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2206. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2207. RootPart.CFrame = FaceMouse2()[1]
  2208. end
  2209. summoned.Enabled = false
  2210.  
  2211. local Power = 4
  2212. while true do
  2213. swait()
  2214. Power = Power + 0.4
  2215. rngm.Scale = rngm.Scale + Vector3.new(0.085, 0, 0.085)
  2216. if typrot == 1 then
  2217. rotation = rotation + 2.5
  2218. elseif typrot == 2 then
  2219. rotation = rotation - 2.5
  2220. end
  2221. rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*4
  2222. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2223. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2224. RW.C0 = clerp(RW.C0, CFrame.new(1.05, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-20)), 0.1)
  2225. LW.C0 = clerp(LW.C0, CFrame.new(-1.05, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  2226. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2227. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2228. RootPart.CFrame = FaceMouse2()[1]
  2229. if HoldingZ == false then
  2230. coroutine.resume(coroutine.create(function()
  2231. while true do
  2232. if rng.Parent ~= nil then
  2233. swait()
  2234. if typrot == 1 then
  2235. rotation = rotation + 2.5
  2236. elseif typrot == 2 then
  2237. rotation = rotation - 2.5
  2238. end
  2239. rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*4
  2240. elseif rng.Parent == nil then
  2241. break
  2242. end
  2243. end
  2244. end))
  2245. coroutine.resume(coroutine.create(function()
  2246. for i = 0, 24*Power/4 do
  2247. swait(2)
  2248. local a = Instance.new("Part",Character)
  2249. a.Name = "Direction"
  2250. a.Anchored = true
  2251. a.BrickColor = bc("Dark indigo")
  2252. a.Material = "Neon"
  2253. a.Transparency = 1
  2254. a.CanCollide = false
  2255. local ray = Ray.new(
  2256. rng.CFrame.p, -- origin
  2257. (mouse.Hit.p - rng.CFrame.p).unit * 500 -- direction
  2258. )
  2259. local ignore = Character
  2260. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2261. a.BottomSurface = 10
  2262. a.TopSurface = 10
  2263. local distance = (rng.CFrame.p - position).magnitude
  2264. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2265. a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, 0)
  2266. local lb = Instance.new("Part")
  2267. CFuncs["Sound"].Create("rbxassetid://1146690130", lb, 1, 2)
  2268. lb.Parent = char
  2269. lb.Color = Color3.new(1,1,0.5)
  2270. lb.CanCollide = false
  2271. lb.Material = "Neon"
  2272. lb.Anchored = true
  2273. lb.TopSurface = 0
  2274. lb.BottomSurface = 0
  2275. lb.Transparency = 0
  2276. lb.Size = vt(1.5,1.5,1.5)
  2277. lb.CFrame = a.CFrame*CFrame.Angles(math.rad(math.random(-1,1)),math.rad(math.random(-1,1)),0)
  2278. lb.Anchored = false
  2279. local thingery = Instance.new("SpecialMesh",lb)
  2280. thingery.MeshType = "Sphere"
  2281. game:GetService("Debris"):AddItem(lb, 10)
  2282. local bv = Instance.new("BodyVelocity")
  2283. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2284. bv.velocity = lb.CFrame.lookVector*250
  2285. bv.Parent = lb
  2286. local hitted = false
  2287. game:GetService("Debris"):AddItem(a, 0.1)
  2288. RootPart.CFrame = FaceMouse2()[1]
  2289. coroutine.resume(coroutine.create(function()
  2290. swait(1)
  2291. lb.Touched:connect(function(hit)
  2292. if hitted == false then
  2293. hitted = true
  2294. lb.Transparency = 1
  2295. lb.Anchored = true
  2296. CFuncs["Sound"].Create("rbxassetid://911792524", lb, 0.75, 1)
  2297. CFuncs["Sound"].Create("rbxassetid://28518734", lb, 1, 1.5)
  2298. MagniDamage(lb, 999, 999,9999, 999, "Normal")
  2299. sphere(5,"Add",lb.CFrame,vt(2.5/2,2.5/2,2.5/2),0.2,BrickColor.new("Really black"))
  2300. sphere(10,"Add",lb.CFrame,vt(5/2,5/2,5/2),0.25,BrickColor.new("Dark indigo"))
  2301. wait(3)
  2302. lb:Destroy()
  2303. end
  2304. end)
  2305. end))
  2306.  
  2307. end
  2308. for i = 0,1,0.1 do
  2309. swait()
  2310. dec.Transparency = dec.Transparency + 0.1
  2311. dec2.Transparency = dec2.Transparency + 0.1
  2312. rngm.Scale = rngm.Scale - Vector3.new(0.5, 0, 0.5)
  2313. end
  2314. rng:Destroy()
  2315. hum.WalkSpeed = 16
  2316. sbs:Destroy()
  2317. root.Anchored = false
  2318. attack = false
  2319. end))
  2320. break
  2321. end
  2322. if Power > 63 and HoldingZ == true then
  2323. coroutine.resume(coroutine.create(function()
  2324. while true do
  2325. if rng.Parent ~= nil then
  2326. swait()
  2327. if typrot == 1 then
  2328. rotation = rotation + 2.5
  2329. elseif typrot == 2 then
  2330. rotation = rotation - 2.5
  2331. end
  2332. rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*4
  2333. elseif rng.Parent == nil then
  2334. break
  2335. end
  2336. end
  2337. end))
  2338. coroutine.resume(coroutine.create(function()
  2339. for i = 0, 24*Power/4 do
  2340. swait(1)
  2341. local a = Instance.new("Part",Character)
  2342. a.Name = "Direction"
  2343. a.Anchored = true
  2344. a.BrickColor = bc("Dark indigo")
  2345. a.Material = "Neon"
  2346. a.Transparency = 1
  2347. a.CanCollide = false
  2348. local ray = Ray.new(
  2349. rng.CFrame.p, -- origin
  2350. (mouse.Hit.p - rng.CFrame.p).unit * 500 -- direction
  2351. )
  2352. local ignore = Character
  2353. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2354. a.BottomSurface = 10
  2355. a.TopSurface = 10
  2356. local distance = (rng.CFrame.p - position).magnitude
  2357. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2358. a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, 0)
  2359. local lb = Instance.new("Part")
  2360. CFuncs["Sound"].Create("rbxassetid://1146690130", lb, 1, 2)
  2361. lb.Parent = char
  2362. lb.Color = Color3.new(1,0,1)
  2363. lb.CanCollide = false
  2364. lb.Material = "Neon"
  2365. lb.Anchored = true
  2366. lb.TopSurface = 0
  2367. lb.BottomSurface = 0
  2368. lb.Transparency = 0
  2369. lb.Size = vt(1.5,1.5,1.5)
  2370. lb.CFrame = a.CFrame*CFrame.Angles(math.rad(math.random(-1,1)),math.rad(math.random(-1,1)),0)
  2371. lb.Anchored = false
  2372. local thingery = Instance.new("SpecialMesh",lb)
  2373. thingery.MeshType = "Sphere"
  2374. game:GetService("Debris"):AddItem(lb, 10)
  2375. local bv = Instance.new("BodyVelocity")
  2376. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2377. bv.velocity = lb.CFrame.lookVector*250
  2378. bv.Parent = lb
  2379. local hitted = false
  2380. game:GetService("Debris"):AddItem(a, 0.1)
  2381. RootPart.CFrame = FaceMouse2()[1]
  2382. coroutine.resume(coroutine.create(function()
  2383. swait(1)
  2384. lb.Touched:connect(function(hit)
  2385. if hitted == false then
  2386. hitted = true
  2387. lb.Transparency = 1
  2388. lb.Anchored = true
  2389. CFuncs["Sound"].Create("rbxassetid://911792524", lb, 0.75, 1)
  2390. CFuncs["Sound"].Create("rbxassetid://28518734", lb, 1, 1.5)
  2391. MagniDamage(lb, 999, 999,999, 999, "Normal")
  2392. sphere(5,"Add",lb.CFrame,vt(2.5/2,2.5/2,2.5/2),0.2,BrickColor.new("Really black"))
  2393. sphere(10,"Add",lb.CFrame,vt(5/2,5/2,5/2),0.25,BrickColor.new("Dark indigo"))
  2394. wait(3)
  2395. lb:Destroy()
  2396. end
  2397. end)
  2398. end))
  2399.  
  2400. end
  2401. for i = 0,1,0.1 do
  2402. swait()
  2403. dec.Transparency = dec.Transparency + 0.1
  2404. dec2.Transparency = dec2.Transparency + 0.1
  2405. rngm.Scale = rngm.Scale - Vector3.new(0.5, 0, 0.5)
  2406. end
  2407. rng:Destroy()
  2408. hum.WalkSpeed = 16
  2409. sbs:Destroy()
  2410. root.Anchored = false
  2411. attack = false
  2412. end))
  2413. HoldingZ = false
  2414. break
  2415. end
  2416. end
  2417. end
  2418.  
  2419. function LightBeam()
  2420. HoldingX = true
  2421. attack = true
  2422. local sbs = Instance.new("BodyPosition", root)
  2423. sbs.P = 3000
  2424. sbs.D = 1000
  2425. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  2426. sbs.position = RootPart.CFrame.p + Vector3.new(0, 100, 0)
  2427. wait(0.1)
  2428. root.Anchored = true
  2429. hum.WalkSpeed = 0
  2430. local rotation = 0
  2431. local typrot = math.random(1,2)
  2432. local rng = Instance.new("Part", char)
  2433. CFuncs["Sound"].Create("rbxassetid://402981977", rng, 2, 0.6)
  2434. rng.Anchored = true
  2435. rng.BrickColor = origcolor
  2436. rng.CanCollide = false
  2437. rng.FormFactor = 3
  2438. rng.Name = "Ring"
  2439. rng.Material = "Neon"
  2440. rng.Size = Vector3.new(1, 0.05, 1)
  2441. rng.Transparency = 1
  2442. rng.TopSurface = 0
  2443. rng.BottomSurface = 0
  2444. local rngm = Instance.new("SpecialMesh", rng)
  2445. rngm.MeshType = "Brick"
  2446. rngm.Scale = vt(0,1,0)
  2447. local dec = Instance.new("Decal",rng)
  2448. dec.Texture = "http://www.roblox.com/asset/?id=220255325"
  2449. dec.Face = "Top"
  2450. dec.Transparency = 1
  2451. local dec2 = dec:Clone()
  2452. dec2.Parent = rng
  2453. dec2.Face = "Bottom"
  2454. dec2.Transparency = 1
  2455.  
  2456. local rngb = Instance.new("Part", char)
  2457. rngb.Anchored = true
  2458. rngb.BrickColor = origcolor
  2459. rngb.CanCollide = false
  2460. rngb.FormFactor = 3
  2461. rngb.Name = "Ring"
  2462. rngb.Material = "Neon"
  2463. rngb.Size = Vector3.new(1, 0.05, 1)
  2464. rngb.Transparency = 1
  2465. rngb.TopSurface = 0
  2466. rngb.BottomSurface = 0
  2467. local rngmb = Instance.new("SpecialMesh", rngb)
  2468. rngmb.MeshType = "Brick"
  2469. rngmb.Scale = vt(0,1,0)
  2470. local decb = Instance.new("Decal",rngb)
  2471. decb.Texture = "http://www.roblox.com/asset/?id=220255325"
  2472. decb.Face = "Top"
  2473. decb.Transparency = 1
  2474. local dec2b = dec:Clone()
  2475. dec2b.Parent = rngb
  2476. dec2b.Face = "Bottom"
  2477. dec2b.Transparency = 1
  2478.  
  2479. local summoned = Instance.new("ParticleEmitter",rng)
  2480. summoned.LightEmission = 1
  2481. summoned.Color = ColorSequence.new(Color3.new(1,0,1))
  2482. summoned.Rate = 100
  2483. summoned.Texture = "http://www.roblox.com/asset/?id=1493478120"
  2484. summoned.Lifetime = NumberRange.new(0.5)
  2485. summoned.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,35,0)})
  2486. summoned.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2487. summoned.Speed = NumberRange.new(0,0)
  2488. summoned.Rotation = NumberRange.new(-500,500)
  2489. summoned.RotSpeed = NumberRange.new(-500,500)
  2490.  
  2491. for i = 0,1,0.1 do
  2492. swait()
  2493. dec.Transparency = dec.Transparency - 0.1
  2494. dec2.Transparency = dec2.Transparency - 0.1
  2495. rngm.Scale = rngm.Scale + Vector3.new(1, 0, 1)
  2496. rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*6
  2497. decb.Transparency = decb.Transparency - 0.1
  2498. dec2b.Transparency = dec2b.Transparency - 0.1
  2499. rngmb.Scale = rngmb.Scale + Vector3.new(1.75, 0, 1.75)
  2500. rngb.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-rotation),0) + root.CFrame.lookVector*3
  2501. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.1)
  2502. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  2503. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  2504. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.1)
  2505. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2506. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2507. RootPart.CFrame = FaceMouse2()[1]
  2508. end
  2509. summoned.Enabled = false
  2510.  
  2511. local Power = 3
  2512. while true do
  2513. swait()
  2514. Power = Power + 0.2
  2515. rngm.Scale = rngm.Scale + Vector3.new(0.57, 0, 0.57)
  2516. rngmb.Scale = rngmb.Scale + Vector3.new(0.57, 0, 0.57)
  2517. if typrot == 1 then
  2518. rotation = rotation + 2.5
  2519. elseif typrot == 2 then
  2520. rotation = rotation - 2.5
  2521. end
  2522. rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*6
  2523. rngb.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-rotation),0) + root.CFrame.lookVector*3
  2524. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.1)
  2525. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  2526. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  2527. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.1)
  2528. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2529. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2530. RootPart.CFrame = FaceMouse2()[1]
  2531. if HoldingX == false then
  2532. coroutine.resume(coroutine.create(function()
  2533. local a = Instance.new("Part",Character)
  2534. a.Name = "Direction"
  2535. a.Anchored = true
  2536. a.BrickColor = bc("Really black")
  2537. a.Material = "Neon"
  2538. a.Transparency = 0
  2539. a.Shape = "Cylinder"
  2540. a.CanCollide = false
  2541. local a2 = Instance.new("Part",Character)
  2542. a2.Name = "Direction"
  2543. a2.Anchored = true
  2544. a2.BrickColor = bc("Dark indigo")
  2545. a2.Material = "Neon"
  2546. a2.Transparency = 0
  2547. a2.Shape = "Cylinder"
  2548. a2.CanCollide = false
  2549. local b = Instance.new("Part",Character)
  2550. b.Name = "HitDirect"
  2551. b.Anchored = true
  2552. b.BrickColor = bc("Dark indigo")
  2553. b.Material = "Neon"
  2554. b.Transparency = 1
  2555. b.CanCollide = false
  2556. local ray = Ray.new(
  2557. rng.CFrame.p, -- origin
  2558. (mouse.Hit.p - rng.CFrame.p).unit * 1000 -- direction
  2559. )
  2560. local ignore = Character
  2561. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2562. a.BottomSurface = 10
  2563. a.TopSurface = 10
  2564. a2.BottomSurface = 10
  2565. a2.TopSurface = 10
  2566. local distance = (rng.CFrame.p - position).magnitude
  2567. a.Size = Vector3.new(distance, 1, 1)
  2568. a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  2569. a2.Size = Vector3.new(distance, 1, 1)
  2570. a2.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  2571. b.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance)
  2572. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  2573. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  2574. game:GetService("Debris"):AddItem(a, 10)
  2575. game:GetService("Debris"):AddItem(a2, 10)
  2576. game:GetService("Debris"):AddItem(b, 10)
  2577. local msh = Instance.new("SpecialMesh",a)
  2578. msh.MeshType = "Cylinder"
  2579. msh.Scale = vt(1,5,5)
  2580. local msh2 = Instance.new("SpecialMesh",a2)
  2581. msh2.MeshType = "Cylinder"
  2582. msh2.Scale = vt(1,6,6)
  2583.  
  2584. coroutine.resume(coroutine.create(function()
  2585. for i = 0,10,0.1 do
  2586. swait()
  2587. msh.Scale = msh.Scale + vt(0,0.25,0.25)
  2588. a.Transparency = a.Transparency + 0.025
  2589. msh2.Scale = msh2.Scale + vt(0,0.45,0.45)
  2590. a2.Transparency = a2.Transparency + 0.05
  2591. end
  2592. a:Destroy()
  2593. a2:Destroy()
  2594. end))
  2595. MagniDamage(b, 999, 6099,9599, 9999, "Normal")
  2596. CFuncs["Sound"].Create("rbxassetid://834546352", root, 3, 1)
  2597. sphere(1.5,"Add",b.CFrame,vt(2.5/2,2.5/2,2.5/2),0.5,BrickColor.new("Really black"))
  2598. sphere(3,"Add",b.CFrame,vt(5/2,5/2,5/2),0.75,BrickColor.new("Dark indigo"))
  2599. CFuncs["Sound"].Create("rbxassetid://911792524", b, 2.5, 0.8)
  2600. CFuncs["Sound"].Create("rbxassetid://28518734", b, 1, 0.4)
  2601. for i = 0, 9 do
  2602. sphereMK(5,0.5,"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,25,-0.1,BrickColor.new("Really black"),0)
  2603. sphereMK(5,1,"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,BrickColor.new("Dark indigo"),0)
  2604. end
  2605. for i = 0,1,0.1 do
  2606. swait()
  2607. dec.Transparency = dec.Transparency + 0.1
  2608. dec2.Transparency = dec2.Transparency + 0.1
  2609. rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
  2610. decb.Transparency = decb.Transparency + 0.1
  2611. dec2b.Transparency = dec2b.Transparency + 0.1
  2612. rngmb.Scale = rngmb.Scale + Vector3.new(1, 0, 1)
  2613. end
  2614. rng:Destroy()
  2615. rngb:Destroy()
  2616. hum.WalkSpeed = 16
  2617. sbs:Destroy()
  2618. root.Anchored = false
  2619. attack = false
  2620. end))
  2621. break
  2622. end
  2623. if Power > 35 and HoldingX == true then
  2624. coroutine.resume(coroutine.create(function()
  2625. local a = Instance.new("Part",Character)
  2626. a.Name = "Direction"
  2627. a.Anchored = true
  2628. a.BrickColor = bc("Really black")
  2629. a.Material = "Neon"
  2630. a.Transparency = 0
  2631. a.Shape = "Cylinder"
  2632. a.CanCollide = false
  2633. local a2 = Instance.new("Part",Character)
  2634. a2.Name = "Direction"
  2635. a2.Anchored = true
  2636. a2.BrickColor = bc("Dark indigo")
  2637. a2.Material = "Neon"
  2638. a2.Transparency = 0
  2639. a2.Shape = "Cylinder"
  2640. a2.CanCollide = false
  2641. local b = Instance.new("Part",Character)
  2642. b.Name = "HitDirect"
  2643. b.Anchored = true
  2644. b.BrickColor = bc("Dark indigo")
  2645. b.Material = "Neon"
  2646. b.Transparency = 1
  2647. b.CanCollide = false
  2648. local ray = Ray.new(
  2649. rng.CFrame.p, -- origin
  2650. (mouse.Hit.p - rng.CFrame.p).unit * 1000 -- direction
  2651. )
  2652. local ignore = Character
  2653. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2654. a.BottomSurface = 10
  2655. a.TopSurface = 10
  2656. a2.BottomSurface = 10
  2657. a2.TopSurface = 10
  2658. local distance = (rng.CFrame.p - position).magnitude
  2659. a.Size = Vector3.new(distance, 1, 1)
  2660. a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  2661. a2.Size = Vector3.new(distance, 1, 1)
  2662. a2.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  2663. b.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance)
  2664. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  2665. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  2666. game:GetService("Debris"):AddItem(a, 10)
  2667. game:GetService("Debris"):AddItem(a2, 10)
  2668. game:GetService("Debris"):AddItem(b, 10)
  2669. local msh = Instance.new("SpecialMesh",a)
  2670. msh.MeshType = "Cylinder"
  2671. msh.Scale = vt(1,5,5)
  2672. local msh2 = Instance.new("SpecialMesh",a2)
  2673. msh2.MeshType = "Cylinder"
  2674. msh2.Scale = vt(1,6,6)
  2675.  
  2676. coroutine.resume(coroutine.create(function()
  2677. for i = 0,10,0.1 do
  2678. swait()
  2679. msh.Scale = msh.Scale + vt(0,0.25,0.25)
  2680. a.Transparency = a.Transparency + 0.025
  2681. msh2.Scale = msh2.Scale + vt(0,0.45,0.45)
  2682. a2.Transparency = a2.Transparency + 0.05
  2683. end
  2684. a:Destroy()
  2685. a2:Destroy()
  2686. end))
  2687. MagniDamage(b, 999, 999,9999, 999, "Normal")
  2688. CFuncs["Sound"].Create("rbxassetid://834546352", root, 3, 1)
  2689. sphere(1.5,"Add",b.CFrame,vt(2.5/2,2.5/2,2.5/2),0.5,BrickColor.new("Really black"))
  2690. sphere(3,"Add",b.CFrame,vt(5/2,5/2,5/2),0.75,BrickColor.new("Dark indigo"))
  2691. CFuncs["Sound"].Create("rbxassetid://911792524", b, 2.5, 0.8)
  2692. CFuncs["Sound"].Create("rbxassetid://28518734", b, 1, 0.4)
  2693. for i = 0, 9 do
  2694. sphereMK(5,0.5,"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,25,-0.1,BrickColor.new("Really black"),0)
  2695. sphereMK(5,1,"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,BrickColor.new("Dark indigo"),0)
  2696. end
  2697. for i = 0,1,0.1 do
  2698. swait()
  2699. dec.Transparency = dec.Transparency + 0.1
  2700. dec2.Transparency = dec2.Transparency + 0.1
  2701. rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
  2702. decb.Transparency = decb.Transparency + 0.1
  2703. dec2b.Transparency = dec2b.Transparency + 0.1
  2704. rngmb.Scale = rngmb.Scale + Vector3.new(1, 0, 1)
  2705. end
  2706. rng:Destroy()
  2707. rngb:Destroy()
  2708. hum.WalkSpeed = 16
  2709. sbs:Destroy()
  2710. root.Anchored = false
  2711. attack = false
  2712. end))
  2713. HoldingX = false
  2714. break
  2715. end
  2716. end
  2717. end
  2718.  
  2719. function LightBomb()
  2720. HoldingC = true
  2721. attack = true
  2722. local sbs = Instance.new("BodyPosition", root)
  2723. sbs.P = 3000
  2724. sbs.D = 1000
  2725. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  2726. sbs.position = RootPart.CFrame.p + Vector3.new(0, 100, 0)
  2727. wait(0.1)
  2728. root.Anchored = true
  2729. hum.WalkSpeed = 0
  2730. local rotation = 0
  2731. local typrot = math.random(1,2)
  2732. local rng = Instance.new("Part", char)
  2733. CFuncs["Sound"].Create("rbxassetid://402981977", rng, 5, 0.6)
  2734. rng.Anchored = true
  2735. rng.BrickColor = origcolor
  2736. rng.CanCollide = false
  2737. rng.FormFactor = 3
  2738. rng.Name = "Ring"
  2739. rng.Material = "Neon"
  2740. rng.Size = Vector3.new(1, 0.05, 1)
  2741. rng.Transparency = 1
  2742. rng.TopSurface = 0
  2743. rng.BottomSurface = 0
  2744. local rngm = Instance.new("SpecialMesh", rng)
  2745. rngm.MeshType = "Brick"
  2746. rngm.Scale = vt(0,1,0)
  2747. local dec = Instance.new("Decal",rng)
  2748. dec.Texture = "http://www.roblox.com/asset/?id=220255325"
  2749. dec.Face = "Top"
  2750. dec.Transparency = 1
  2751. local dec2 = dec:Clone()
  2752. dec2.Parent = rng
  2753. dec2.Face = "Bottom"
  2754. dec2.Transparency = 1
  2755.  
  2756. local rngb = Instance.new("Part", char)
  2757. rngb.Anchored = true
  2758. rngb.BrickColor = origcolor
  2759. rngb.CanCollide = false
  2760. rngb.FormFactor = 3
  2761. rngb.Name = "Ring"
  2762. rngb.Material = "Neon"
  2763. rngb.Size = Vector3.new(1, 0.05, 1)
  2764. rngb.Transparency = 1
  2765. rngb.TopSurface = 0
  2766. rngb.BottomSurface = 0
  2767. local rngmb = Instance.new("SpecialMesh", rngb)
  2768. rngmb.MeshType = "Brick"
  2769. rngmb.Scale = vt(0,1,0)
  2770. local decb = Instance.new("Decal",rngb)
  2771. decb.Texture = "http://www.roblox.com/asset/?id=220255325"
  2772. decb.Face = "Top"
  2773. decb.Transparency = 1
  2774. local dec2b = dec:Clone()
  2775. dec2b.Parent = rngb
  2776. dec2b.Face = "Bottom"
  2777. dec2b.Transparency = 1
  2778.  
  2779.  
  2780.  
  2781. local summoned = Instance.new("ParticleEmitter",rng)
  2782. summoned.LightEmission = 1
  2783. summoned.Color = ColorSequence.new(Color3.new(1,0,1))
  2784. summoned.Rate = 100
  2785. summoned.Texture = "http://www.roblox.com/asset/?id=1493478120"
  2786. summoned.Lifetime = NumberRange.new(0.5)
  2787. summoned.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,35,0)})
  2788. summoned.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2789. summoned.Speed = NumberRange.new(0,0)
  2790. summoned.Rotation = NumberRange.new(-500,500)
  2791. summoned.RotSpeed = NumberRange.new(-500,500)
  2792.  
  2793. for i = 0,1,0.1 do
  2794. swait()
  2795. dec.Transparency = dec.Transparency - 0.1
  2796. dec2.Transparency = dec2.Transparency - 0.1
  2797. rngm.Scale = rngm.Scale + Vector3.new(2, 0, 2)
  2798. rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(180),0) + root.CFrame.lookVector*9
  2799. decb.Transparency = decb.Transparency - 0.1
  2800. dec2b.Transparency = dec2b.Transparency - 0.1
  2801. rngmb.Scale = rngmb.Scale + Vector3.new(3, 0, 3)
  2802. rngb.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(180),0) + root.CFrame.lookVector*3
  2803. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2804. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2805. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.3)
  2806. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-20)), 0.3)
  2807. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2808. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2809. RootPart.CFrame = FaceMouse2()[1]
  2810. end
  2811. summoned.Enabled = false
  2812.  
  2813. local Power = 8
  2814. while true do
  2815. swait()
  2816. Power = Power + 0.2
  2817. rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
  2818. rngmb.Scale = rngmb.Scale + Vector3.new(0.5, 0, 0.5)
  2819. if typrot == 1 then
  2820. rotation = rotation + 2.5
  2821. elseif typrot == 2 then
  2822. rotation = rotation - 2.5
  2823. end
  2824. rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*9
  2825. rngb.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-rotation),0) + root.CFrame.lookVector*3
  2826. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2827. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2828. RW.C0 = clerp(RW.C0, CFrame.new(1.05, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-20)), 0.1)
  2829. LW.C0 = clerp(LW.C0, CFrame.new(-1.05, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  2830. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2831. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  2832. RootPart.CFrame = FaceMouse2()[1]
  2833. if HoldingC == false then
  2834. coroutine.resume(coroutine.create(function()
  2835. local a = Instance.new("Part",Character)
  2836. a.Name = "Direction"
  2837. a.Anchored = true
  2838. a.BrickColor = bc("Dark indigo")
  2839. a.Material = "Neon"
  2840. a.Transparency = 1
  2841. a.CanCollide = false
  2842. local ray = Ray.new(
  2843. rng.CFrame.p, -- origin
  2844. (mouse.Hit.p - rng.CFrame.p).unit * 500 -- direction
  2845. )
  2846. local ignore = Character
  2847. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2848. a.BottomSurface = 10
  2849. a.TopSurface = 10
  2850. local distance = (rng.CFrame.p - position).magnitude
  2851. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2852. a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, 0)
  2853. local lb = Instance.new("Part")
  2854. CFuncs["Sound"].Create("rbxassetid://834546352", lb, 3, 1)
  2855. CFuncs["Sound"].Create("rbxassetid://1417056781", lb, 3, 1.5)
  2856. CFuncs["Sound"].Create("rbxassetid://919941001", lb, 3,1)
  2857. lb.Parent = char
  2858. lb.Color = Color3.new(1,0,1)
  2859. lb.CanCollide = false
  2860. lb.Material = "Neon"
  2861. lb.Anchored = true
  2862. lb.TopSurface = 0
  2863. lb.BottomSurface = 0
  2864. lb.Transparency = 0
  2865. lb.Size = vt(3,3,3)
  2866. lb.CFrame = a.CFrame
  2867. lb.Anchored = false
  2868. local thingery = Instance.new("SpecialMesh",lb)
  2869. thingery.MeshType = "Sphere"
  2870. thingery.Scale = vt(2+Power/1.15,2+Power/1.15,2+Power/1.15)
  2871. game:GetService("Debris"):AddItem(lb, 10)
  2872. local bv = Instance.new("BodyVelocity")
  2873. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2874. bv.velocity = lb.CFrame.lookVector*125
  2875. bv.Parent = lb
  2876. local hitted = false
  2877. coroutine.resume(coroutine.create(function()
  2878. while true do
  2879. swait(3)
  2880. if lb.Parent ~= nil and hitted == false then
  2881. sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))+ lb.CFrame.lookVector*-10,vt(2.5,2.5,2.5),0.5,BrickColor.new("Really black"))
  2882. sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))+ lb.CFrame.lookVector*-10,vt(2.5,2.5,2.5),0.25,BrickColor.new("Dark indigo"))
  2883. elseif lb.Parent == nil then
  2884. break
  2885. end
  2886. end
  2887. end))
  2888.  
  2889. game:GetService("Debris"):AddItem(a, 0.1)
  2890. RootPart.CFrame = FaceMouse2()[1]
  2891.  
  2892. coroutine.resume(coroutine.create(function()
  2893. swait(1)
  2894. lb.Touched:connect(function(hit)
  2895. if hitted == false then
  2896. hitted = true
  2897. lb.Transparency = 1
  2898. lb.Anchored = true
  2899. CFuncs["Sound"].Create("rbxassetid://911792524", lb, 5, 0.5)
  2900. CFuncs["Sound"].Create("rbxassetid://911792524", lb, 5, 0.25)
  2901. CFuncs["Sound"].Create("rbxassetid://28518734", lb, 2.5, 0.5)
  2902. CFuncs["Sound"].Create("rbxassetid://239000203", lb, 2.5, 0.75)
  2903. CFuncs["Sound"].Create("rbxassetid://919941001", lb, 10,1.05)
  2904. MagniDamage(lb, 100+Power*9999, 999,999, 999, "Normal")
  2905. sphere(1,"Add",lb.CFrame,vt(15+Power,15+Power,15+Power),3.5,BrickColor.new("Really black"))
  2906. sphere(2,"Add",lb.CFrame,vt(15+Power,15+Power,15+Power),3.75,BrickColor.new("Dark indigo"))
  2907. for i = 0, 9 do
  2908. sphereMK(5,1.5+Power/5,"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75+Power/5,-0.25,BrickColor.new("Really black"),0)
  2909. sphereMK(5,3+Power/5,"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),35,35,75+Power/5,-0.35,BrickColor.new("Dark indigo"),0)
  2910. end
  2911. for i = 0, 19 do
  2912. swait(2)
  2913. sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(15,15,15),2.5,BrickColor.new("Really black"))
  2914. sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(15,15,15),1.5,BrickColor.new("Dark indigo"))
  2915. end
  2916. end
  2917. end)
  2918. end))
  2919.  
  2920. for i = 0,1,0.1 do
  2921. swait()
  2922. dec.Transparency = dec.Transparency + 0.1
  2923. dec2.Transparency = dec2.Transparency + 0.1
  2924. rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
  2925. decb.Transparency = decb.Transparency + 0.1
  2926. dec2b.Transparency = dec2b.Transparency + 0.1
  2927. rngmb.Scale = rngmb.Scale + Vector3.new(0.5, 0, 0.5)
  2928. end
  2929. rng:Destroy()
  2930. rngb:Destroy()
  2931. hum.WalkSpeed = 16
  2932. sbs:Destroy()
  2933. root.Anchored = false
  2934. attack = false
  2935. end))
  2936. break
  2937. end
  2938. if Power > 55 and HoldingC == true then
  2939. coroutine.resume(coroutine.create(function()
  2940. local a = Instance.new("Part",Character)
  2941. a.Name = "Direction"
  2942. a.Anchored = true
  2943. a.BrickColor = bc("Dark indigo")
  2944. a.Material = "Neon"
  2945. a.Transparency = 1
  2946. a.CanCollide = false
  2947. local ray = Ray.new(
  2948. rng.CFrame.p, -- origin
  2949. (mouse.Hit.p - rng.CFrame.p).unit * 500 -- direction
  2950. )
  2951. local ignore = Character
  2952. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2953. a.BottomSurface = 10
  2954. a.TopSurface = 10
  2955. local distance = (rng.CFrame.p - position).magnitude
  2956. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2957. a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, 0)
  2958. local lb = Instance.new("Part")
  2959. CFuncs["Sound"].Create("rbxassetid://834546352", lb, 3, 1)
  2960. CFuncs["Sound"].Create("rbxassetid://1417056781", lb, 3, 1.5)
  2961. CFuncs["Sound"].Create("rbxassetid://919941001", lb, 3,1)
  2962. lb.Parent = char
  2963. lb.Color = Color3.new(1,0,1)
  2964. lb.CanCollide = false
  2965. lb.Material = "Neon"
  2966. lb.Anchored = true
  2967. lb.TopSurface = 0
  2968. lb.BottomSurface = 0
  2969. lb.Transparency = 0
  2970. lb.Size = vt(3,3,3)
  2971. lb.CFrame = a.CFrame
  2972. lb.Anchored = false
  2973. local thingery = Instance.new("SpecialMesh",lb)
  2974. thingery.MeshType = "Sphere"
  2975. thingery.Scale = vt(2+Power/1.15,2+Power/1.15,2+Power/1.15)
  2976. game:GetService("Debris"):AddItem(lb, 10)
  2977. local bv = Instance.new("BodyVelocity")
  2978. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2979. bv.velocity = lb.CFrame.lookVector*125
  2980. bv.Parent = lb
  2981. local hitted = false
  2982.  
  2983. coroutine.resume(coroutine.create(function()
  2984. while true do
  2985. swait(3)
  2986. if lb.Parent ~= nil and hitted == false then
  2987. sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))+ lb.CFrame.lookVector*-10,vt(2.5,2.5,2.5),0.5,BrickColor.new("Really black"))
  2988. sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))+ lb.CFrame.lookVector*-10,vt(2.5,2.5,2.5),0.25,BrickColor.new("Dark indigo"))
  2989. elseif lb.Parent == nil then
  2990. break
  2991. end
  2992. end
  2993. end))
  2994. game:GetService("Debris"):AddItem(a, 0.1)
  2995. RootPart.CFrame = FaceMouse2()[1]
  2996.  
  2997. coroutine.resume(coroutine.create(function()
  2998. swait(1)
  2999. lb.Touched:connect(function(hit)
  3000. if hitted == false then
  3001. hitted = true
  3002. lb.Transparency = 1
  3003. lb.Anchored = true
  3004. CFuncs["Sound"].Create("rbxassetid://911792524", lb, 5, 0.5)
  3005. CFuncs["Sound"].Create("rbxassetid://911792524", lb, 5, 0.25)
  3006. CFuncs["Sound"].Create("rbxassetid://28518734", lb, 2.5, 0.5)
  3007. CFuncs["Sound"].Create("rbxassetid://239000203", lb, 2.5, 0.75)
  3008. CFuncs["Sound"].Create("rbxassetid://919941001", lb, 10,1.05)
  3009. MagniDamage(lb, 100+Power*9999, 999,999, 999, "Normal")
  3010. sphere(1,"Add",lb.CFrame,vt(15+Power,15+Power,15+Power),3.5,BrickColor.new("Really black"))
  3011. sphere(2,"Add",lb.CFrame,vt(15+Power,15+Power,15+Power),3.75,BrickColor.new("Dark indigo"))
  3012. for i = 0, 9 do
  3013. sphereMK(5,1.5+Power/5,"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75+Power/5,-0.25,BrickColor.new("Really black"),0)
  3014. sphereMK(5,3+Power/5,"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),35,35,75+Power/5,-0.35,BrickColor.new("Dark indigo"),0)
  3015. end
  3016. for i = 0, 19 do
  3017. swait(2)
  3018. sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(15,15,15),2.5,BrickColor.new("Really black"))
  3019. sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(15,15,15),1.5,BrickColor.new("Dark indigo"))
  3020. end
  3021. end
  3022. end)
  3023. end))
  3024.  
  3025. for i = 0,1,0.1 do
  3026. swait()
  3027. dec.Transparency = dec.Transparency + 0.1
  3028. dec2.Transparency = dec2.Transparency + 0.1
  3029. rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
  3030. decb.Transparency = decb.Transparency + 0.1
  3031. dec2b.Transparency = dec2b.Transparency + 0.1
  3032. rngmb.Scale = rngmb.Scale + Vector3.new(0.5, 0, 0.5)
  3033. end
  3034. rng:Destroy()
  3035. rngb:Destroy()
  3036. hum.WalkSpeed = 16
  3037. sbs:Destroy()
  3038. root.Anchored = false
  3039. attack = false
  3040. end))
  3041. HoldingC = false
  3042. break
  3043. end
  3044. end
  3045. end
  3046.  
  3047.  
  3048. function LightHeal()
  3049. HoldingV = true
  3050. attack = true
  3051. local sbs = Instance.new("BodyPosition", root)
  3052. sbs.P = 3000
  3053. sbs.D = 1000
  3054. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3055. sbs.position = RootPart.CFrame.p + Vector3.new(0, 0, 0)
  3056. wait(0.1)
  3057. root.Anchored = true
  3058. hum.WalkSpeed = 0
  3059. local rotation = 0
  3060. local typrot = math.random(1,2)
  3061. local rng = Instance.new("Part", char)
  3062. CFuncs["Sound"].Create("rbxassetid://402981977", rng, 5, 0.6)
  3063. rng.Anchored = true
  3064. rng.BrickColor = origcolor
  3065. rng.CanCollide = false
  3066. rng.FormFactor = 3
  3067. rng.Name = "Ring"
  3068. rng.Material = "Neon"
  3069. rng.Size = Vector3.new(1, 0.05, 1)
  3070. rng.Transparency = 1
  3071. rng.TopSurface = 0
  3072. rng.BottomSurface = 0
  3073. local rngm = Instance.new("SpecialMesh", rng)
  3074. rngm.MeshType = "Brick"
  3075. rngm.Scale = vt(0,1,0)
  3076. local dec = Instance.new("Decal",rng)
  3077. dec.Texture = "http://www.roblox.com/asset/?id=220255325"
  3078. dec.Face = "Top"
  3079. dec.Transparency = 1
  3080. local dec2 = dec:Clone()
  3081. dec2.Parent = rng
  3082. dec2.Face = "Bottom"
  3083. dec2.Transparency = 1
  3084.  
  3085.  
  3086.  
  3087. local summoned = Instance.new("ParticleEmitter",rng)
  3088. summoned.LightEmission = 1
  3089. summoned.Color = ColorSequence.new(Color3.new(1,0,1))
  3090. summoned.Rate = 100
  3091. summoned.Lifetime = NumberRange.new(0.5)
  3092. summoned.Texture = "http://www.roblox.com/asset/?id=1493478120"
  3093. summoned.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,35,0)})
  3094. summoned.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3095. summoned.Speed = NumberRange.new(0,0)
  3096. summoned.Rotation = NumberRange.new(-500,500)
  3097. summoned.RotSpeed = NumberRange.new(-500,500)
  3098.  
  3099. for i = 0,1,0.1 do
  3100. swait()
  3101. dec.Transparency = dec.Transparency - 0.1
  3102. dec2.Transparency = dec2.Transparency - 0.1
  3103. rngm.Scale = rngm.Scale + Vector3.new(2, 0, 2)
  3104. rng.CFrame = root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(0),math.rad(rotation),0)
  3105. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  3106. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3107. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(70), math.rad(0), math.rad(90)), 0.3)
  3108. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(70), math.rad(0), math.rad(-90)), 0.3)
  3109. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  3110. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  3111. RootPart.CFrame = FaceMouse()[1]
  3112. end
  3113. summoned.Enabled = false
  3114.  
  3115. local Power = 6
  3116. while true do
  3117. swait()
  3118. Power = Power + 0.1
  3119. rngm.Scale = rngm.Scale + Vector3.new(0.4, 0, 0.4)
  3120. if typrot == 1 then
  3121. rotation = rotation + 2.5
  3122. elseif typrot == 2 then
  3123. rotation = rotation - 2.5
  3124. end
  3125. rng.CFrame = root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(0),math.rad(rotation),0)
  3126. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  3127. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3128. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(70), math.rad(0), math.rad(90)), 0.1)
  3129. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(70), math.rad(0), math.rad(-90)), 0.1)
  3130. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  3131. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  3132. RootPart.CFrame = FaceMouse()[1]
  3133. if HoldingV == false then
  3134. coroutine.resume(coroutine.create(function()
  3135. CFuncs["Sound"].Create("rbxassetid://834546352", root, 2.5, 1)
  3136. CFuncs["Sound"].Create("rbxassetid://2101144", root, 2.5, 1)
  3137. MagniDamage(root, 45+Power*1.85, -85,-85, 0, "Normal")
  3138. hum:TakeDamage(-45,-25)
  3139. local takenresult = hum.Health
  3140. sphere(1,"Add",root.CFrame,vt(10+Power,10000,10+Power),0.25,BrickColor.new("Really black"))
  3141. sphere(2,"Add",root.CFrame,vt(10+Power,10000,10+Power),0.35,BrickColor.new("Dark indigo"))
  3142. for i = 0, 24 do
  3143. swait(1)
  3144. hum.Health = takenresult
  3145. sphereMK(5,0.15+Power/10,"Add",root.CFrame*CFrame.new(math.random(-35-Power,35+Power),math.random(-3-Power,0),math.random(-35-Power,35+Power))*CFrame.Angles(math.rad(90),0,0),5,5,25,-0.05,BrickColor.new("Dark indigo"),0)
  3146. sphere(5,"Add",root.CFrame*CFrame.new(math.random(-25-Power,25+Power),math.random(-25-Power,25+Power),math.random(-25-Power,25+Power)),vt(0,0,0),0.25,BrickColor.new("Dark indigo"))
  3147. end
  3148. for i = 0,1,0.1 do
  3149. swait()
  3150. dec.Transparency = dec.Transparency + 0.1
  3151. dec2.Transparency = dec2.Transparency + 0.1
  3152. rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
  3153. end
  3154. rng:Destroy()
  3155. hum.WalkSpeed = 16
  3156. sbs:Destroy()
  3157. root.Anchored = false
  3158. attack = false
  3159. end))
  3160. break
  3161. end
  3162. if Power > 15 and HoldingV == true then
  3163. coroutine.resume(coroutine.create(function()
  3164. CFuncs["Sound"].Create("rbxassetid://834546352", root, 2.5, 1)
  3165. CFuncs["Sound"].Create("rbxassetid://2101144", root, 2.5, 1)
  3166. MagniDamage(root, 45+Power*9999, 999,999, 999,, "Normal")
  3167. hum:TakeDamage(-45,-25)
  3168. local takenresult = hum.Health
  3169. sphere(1,"Add",root.CFrame,vt(10+Power,10000,10+Power),0.25,BrickColor.new("Really black"))
  3170. sphere(2,"Add",root.CFrame,vt(10+Power,10000,10+Power),0.35,BrickColor.new("Dark indigo"))
  3171. for i = 0, 24 do
  3172. swait(1)
  3173. hum.Health = takenresult
  3174. sphereMK(5,0.15+Power/10,"Add",root.CFrame*CFrame.new(math.random(-35-Power,35+Power),math.random(-3-Power,0),math.random(-35-Power,35+Power))*CFrame.Angles(math.rad(90),0,0),5,5,25,-0.05,BrickColor.new("Dark indigo"),0)
  3175. sphere(5,"Add",root.CFrame*CFrame.new(math.random(-25-Power,25+Power),math.random(-25-Power,25+Power),math.random(-25-Power,25+Power)),vt(0,0,0),0.25,BrickColor.new("Dark indigo"))
  3176. end
  3177. for i = 0,1,0.1 do
  3178. swait()
  3179. dec.Transparency = dec.Transparency + 0.1
  3180. dec2.Transparency = dec2.Transparency + 0.1
  3181. rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
  3182. end
  3183. rng:Destroy()
  3184. hum.WalkSpeed = 16
  3185. sbs:Destroy()
  3186. root.Anchored = false
  3187. attack = false
  3188. end))
  3189. HoldingV = false
  3190. break
  3191. end
  3192. end
  3193. end
  3194.  
  3195. function UltralightBeam()
  3196. attack = true
  3197. local sbs = Instance.new("BodyPosition", root)
  3198. sbs.P = 3000
  3199. sbs.D = 1000
  3200. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3201. sbs.position = RootPart.CFrame.p + Vector3.new(0, 100, 0)
  3202. wait(0.1)
  3203. root.Anchored = true
  3204. hum.WalkSpeed = 0
  3205. local rotation = 0
  3206. local typrot = math.random(1,2)
  3207. local rng = Instance.new("Part", char)
  3208. CFuncs["Sound"].Create("rbxassetid://402981977", rng, 2, 0.6)
  3209. rng.Anchored = true
  3210. rng.BrickColor = origcolor
  3211. rng.CanCollide = false
  3212. rng.FormFactor = 3
  3213. rng.Name = "Ring"
  3214. rng.Material = "Neon"
  3215. rng.Size = Vector3.new(1, 0.05, 1)
  3216. rng.Transparency = 1
  3217. rng.TopSurface = 0
  3218. rng.BottomSurface = 0
  3219. local rngm = Instance.new("SpecialMesh", rng)
  3220. rngm.MeshType = "Brick"
  3221. rngm.Scale = vt(0,1,0)
  3222. local dec = Instance.new("Decal",rng)
  3223. dec.Texture = "http://www.roblox.com/asset/?id=220255325"
  3224. dec.Face = "Top"
  3225. dec.Transparency = 1
  3226. local dec2 = dec:Clone()
  3227. dec2.Parent = rng
  3228. dec2.Face = "Bottom"
  3229. dec2.Transparency = 1
  3230.  
  3231. local rngb = Instance.new("Part", char)
  3232. rngb.Anchored = true
  3233. rngb.BrickColor = origcolor
  3234. rngb.CanCollide = false
  3235. rngb.FormFactor = 3
  3236. rngb.Name = "Ring"
  3237. rngb.Material = "Neon"
  3238. rngb.Size = Vector3.new(1, 0.05, 1)
  3239. rngb.Transparency = 1
  3240. rngb.TopSurface = 0
  3241. rngb.BottomSurface = 0
  3242. local rngmb = Instance.new("SpecialMesh", rngb)
  3243. rngmb.MeshType = "Brick"
  3244. rngmb.Name = "SizeMesh"
  3245. rngmb.Scale = vt(0,1,0)
  3246.  
  3247. local orb = rngb:Clone()
  3248. orb.Parent = char
  3249. orb.Transparency = 0
  3250. orb.BrickColor = BrickColor.new("Really black")
  3251. orb.Size = vt(1,1,1)
  3252. local orbmish = orb.SizeMesh
  3253. orbmish.Scale = vt(0,0,0)
  3254. orbmish.MeshType = "Sphere"
  3255.  
  3256. local orbe = rngb:Clone()
  3257. orbe.Parent = char
  3258. orbe.Transparency = 0.5
  3259. orbe.BrickColor = BrickColor.new("Dark indigo")
  3260. orbe.Size = vt(1,1,1)
  3261. local orbmish2 = orbe.SizeMesh
  3262. orbmish2.Scale = vt(0,0,0)
  3263. orbmish2.MeshType = "Sphere"
  3264.  
  3265. local decb = Instance.new("Decal",rngb)
  3266. decb.Texture = "http://www.roblox.com/asset/?id=220255325"
  3267. decb.Face = "Top"
  3268. decb.Transparency = 1
  3269. local dec2b = dec:Clone()
  3270. dec2b.Parent = rngb
  3271. dec2b.Face = "Bottom"
  3272. dec2b.Transparency = 1
  3273.  
  3274.  
  3275. local summoned = Instance.new("ParticleEmitter",rng)
  3276. summoned.LightEmission = 1
  3277. summoned.Color = ColorSequence.new(Color3.new(1,0,1))
  3278. summoned.Rate = 100
  3279. summoned.Lifetime = NumberRange.new(0.5)
  3280. summoned.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,35,0)})
  3281. summoned.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3282. summoned.Speed = NumberRange.new(0,0)
  3283. summoned.Texture = "http://www.roblox.com/asset/?id=1493478120"
  3284. summoned.Rotation = NumberRange.new(-500,500)
  3285. summoned.RotSpeed = NumberRange.new(-500,500)
  3286.  
  3287. local scaled = 1
  3288. for i = 0,1,0.1 do
  3289. swait()
  3290. dec.Transparency = dec.Transparency - 0.1
  3291. dec2.Transparency = dec2.Transparency - 0.1
  3292. rngm.Scale = rngm.Scale + Vector3.new(6, 0, 6)
  3293. rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*6
  3294. decb.Transparency = decb.Transparency - 0.1
  3295. dec2b.Transparency = dec2b.Transparency - 0.1
  3296. rngmb.Scale = rngmb.Scale + Vector3.new(9, 0, 9)
  3297. rngb.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-rotation),0) + root.CFrame.lookVector*3
  3298. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.1)
  3299. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3300. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  3301. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.1)
  3302. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  3303. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  3304. RootPart.CFrame = FaceMouse2()[1]
  3305. end
  3306. CFuncs["Sound"].Create("rbxassetid://136007472", char, 1.25, 0.7)
  3307. summoned.Enabled = false
  3308. for i = 0,10,0.1 do
  3309. swait()
  3310. scaled = scaled - 0.01
  3311. if typrot == 1 then
  3312. rotation = rotation + 2.5
  3313. elseif typrot == 2 then
  3314. rotation = rotation - 2.5
  3315. end
  3316. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  3317. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  3318. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*22.5
  3319. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*22.5
  3320. sphereMKCharge(2.5,-1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,BrickColor.new("Dark indigo"),50)
  3321. rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*6
  3322. rngb.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-rotation),0) + root.CFrame.lookVector*3
  3323. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.1)
  3324. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3325. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  3326. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.1)
  3327. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  3328. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  3329. RootPart.CFrame = FaceMouse2()[1]
  3330. end
  3331. for i = 0,3,0.1 do
  3332. swait()
  3333. if typrot == 1 then
  3334. rotation = rotation + 2.5
  3335. elseif typrot == 2 then
  3336. rotation = rotation - 2.5
  3337. end
  3338. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*22.5
  3339. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*22.5
  3340. rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*6
  3341. rngb.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-rotation),0) + root.CFrame.lookVector*3
  3342. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.1)
  3343. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3344. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  3345. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.1)
  3346. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  3347. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  3348. RootPart.CFrame = FaceMouse2()[1]
  3349. end
  3350. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  3351. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  3352. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  3353. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  3354. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  3355. local xd= Instance.new("Sound",char)
  3356. xd.SoundId = "rbxassetid://445796828"
  3357. xd.Pitch = 0.75
  3358. xd.Looped = true
  3359. xd.Volume = 1.25
  3360. xd:Play()
  3361. local a = Instance.new("Part",Character)
  3362. a.Name = "Direction"
  3363. a.Anchored = true
  3364. a.BrickColor = bc("Really black")
  3365. a.Material = "Neon"
  3366. a.Transparency = 0
  3367. a.Shape = "Cylinder"
  3368. a.CanCollide = false
  3369. local a2 = Instance.new("Part",Character)
  3370. a2.Name = "Direction"
  3371. a2.Anchored = true
  3372. a2.BrickColor = bc("Dark indigo")
  3373. a2.Material = "Neon"
  3374. a2.Transparency = 0.5
  3375. a2.Shape = "Cylinder"
  3376. a2.CanCollide = false
  3377. local b = Instance.new("Part",Character)
  3378. b.Name = "HitDirect"
  3379. b.Anchored = true
  3380. b.BrickColor = bc("Dark indigo")
  3381. b.Material = "Neon"
  3382. b.Transparency = 1
  3383. b.CanCollide = false
  3384. local ray = Ray.new(
  3385. orb.CFrame.p, -- origin
  3386. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  3387. )
  3388. local ignore = Character
  3389. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3390. a.BottomSurface = 10
  3391. a.TopSurface = 10
  3392. a2.BottomSurface = 10
  3393. a2.TopSurface = 10
  3394. local distance = (orb.CFrame.p - position).magnitude
  3395. a.Size = Vector3.new(distance, 1, 1)
  3396. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3397. a2.Size = Vector3.new(distance, 1, 1)
  3398. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3399. b.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3400. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3401. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  3402. game:GetService("Debris"):AddItem(a, 20)
  3403. game:GetService("Debris"):AddItem(a2, 20)
  3404. game:GetService("Debris"):AddItem(b, 20)
  3405. local msh = Instance.new("SpecialMesh",a)
  3406. msh.MeshType = "Cylinder"
  3407. msh.Scale = vt(1,5*5,5*5)
  3408. local msh2 = Instance.new("SpecialMesh",a2)
  3409. msh2.MeshType = "Cylinder"
  3410. msh2.Scale = vt(1,6*5,6*5)
  3411.  
  3412. for i = 0,20,0.1 do
  3413. swait()
  3414. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*22.5
  3415. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*22.5
  3416. ray = Ray.new(
  3417. orb.CFrame.p, -- origin
  3418. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  3419. )
  3420. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3421. distance = (orb.CFrame.p - position).magnitude
  3422. if typrot == 1 then
  3423. rotation = rotation + 2.5
  3424. elseif typrot == 2 then
  3425. rotation = rotation - 2.5
  3426. end
  3427. rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*6
  3428. rngb.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-rotation),0) + root.CFrame.lookVector*3
  3429. RootPart.CFrame = FaceMouse2()[1]
  3430. a.Size = Vector3.new(distance, 1, 1)
  3431. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3432. a2.Size = Vector3.new(distance, 1, 1)
  3433. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3434. b.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3435. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3436. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  3437. msh.Scale = msh.Scale - vt(0,0.025*5,0.025*5)
  3438. msh2.Scale = msh2.Scale - vt(0,0.03*5,0.03*5)
  3439. orbmish.Scale = orbmish.Scale - vt(0.175,0.175,0.175)
  3440. orbmish2.Scale = orbmish2.Scale - vt(0.175,0.175,0.175)
  3441. sphereMK(5,1,"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,25,-0.1,BrickColor.new("Really black"),0)
  3442. sphereMK(5,1.5,"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,BrickColor.new("Dark indigo"),0)
  3443. sphere(10,"Add",b.CFrame,vt(25,25,25),0.25,BrickColor.new("Dark indigo"))
  3444. xd.Volume = xd.Volume - 0.0025
  3445. MagniDamage(b, 9999, 999,999, 999, "Normal")
  3446. end
  3447. sphere(5,"Add",orb.CFrame,vt(5,5,5),0.75,BrickColor.new("Dark indigo"))
  3448. for i = 0, 9 do
  3449. sphereMK(1,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,75,-0.1,BrickColor.new("Dark indigo"),0)
  3450. end
  3451. xd:Destroy()
  3452. a:Destroy()
  3453. a2:Destroy()
  3454. orb:Destroy()
  3455. orbe:Destroy()
  3456. MagniDamage(b, 9999, 999,999, 999, "Normal")
  3457. CFuncs["Sound"].Create("rbxassetid://919941001", char, 2,1.05)
  3458. CFuncs["Sound"].Create("rbxassetid://138213851", char, 1,1)
  3459. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,1)
  3460. for i = 0, 14 do
  3461. sphereMK(2.5,3,"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,50,-0.1,BrickColor.new("Really black"),0)
  3462. sphereMK(2.5,3.5,"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,75,-0.15,BrickColor.new("Dark indigo"),0)
  3463. end
  3464. sphere(1,"Add",b.CFrame,vt(2.5,2.5,2.5),2.5,BrickColor.new("Really black"))
  3465. sphere(1,"Add",b.CFrame,vt(5,5,5),5,BrickColor.new("Dark indigo"))
  3466. for i = 0,1,0.1 do
  3467. swait()
  3468. dec.Transparency = dec.Transparency + 0.1
  3469. dec2.Transparency = dec2.Transparency + 0.1
  3470. rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
  3471. decb.Transparency = decb.Transparency + 0.1
  3472. dec2b.Transparency = dec2b.Transparency + 0.1
  3473. rngmb.Scale = rngmb.Scale + Vector3.new(1, 0, 1)
  3474. end
  3475. rng:Destroy()
  3476. rngb:Destroy()
  3477. hum.WalkSpeed = 16
  3478. sbs:Destroy()
  3479. root.Anchored = false
  3480. attack = false
  3481. end
  3482.  
  3483. mouse.KeyDown:connect(function(k)
  3484. if k == "z" and attack == false and HoldingZ == false then
  3485. LightStorm()
  3486. end
  3487. if k == "x" and attack == false and HoldingX == false then
  3488. LightBeam()
  3489. end
  3490. if k == "c" and attack == false and HoldingC == false then
  3491. LightBomb()
  3492. end
  3493. if k == "v" and attack == false and HoldingV == false then
  3494. LightHeal()
  3495. end
  3496. if k == "b" and attack == false then
  3497. UltralightBeam()
  3498. end
  3499. end)
  3500.  
  3501. mouse.KeyUp:connect(function(k)
  3502. if k == "z" and attack == true and HoldingZ == true then
  3503. HoldingZ = false
  3504. end
  3505. if k == "x" and attack == true and HoldingX == true then
  3506. HoldingX = false
  3507. end
  3508. if k == "c" and attack == true and HoldingC == true then
  3509. HoldingC = false
  3510. end
  3511. if k == "v" and attack == true and HoldingV == true then
  3512. HoldingV = false
  3513. end
  3514. end)
  3515. Humanoid.Animator.Parent = nil
  3516. idleanim=.4
  3517. while true do
  3518. swait()
  3519. sine = sine + change
  3520. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3521. local velderp=RootPart.Velocity.y
  3522. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3523. if equipped==true or equipped==false then
  3524. if attack==false then
  3525. idle=idle+1
  3526. else
  3527. idle=0
  3528. end
  3529. if idle>=500 then
  3530. if attack==false then
  3531. --Sheath()
  3532. end
  3533. end
  3534. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3535. Anim="Jump"
  3536. if attack==false then
  3537. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  3538. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  3539. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3540. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  3541. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  3542. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  3543. end
  3544. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3545. Anim="Fall"
  3546. if attack==false then
  3547. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  3548. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  3549. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3550. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3551. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  3552. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  3553. end
  3554. elseif torvel<1 and hitfloor~=nil then
  3555. Anim="Idle"
  3556. if attack==false then
  3557. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(2 + 1 * math.cos(sine / 34))),.1)
  3558. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  3559. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
  3560. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  3561. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  3562. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  3563. end
  3564. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3565. Anim="Walk"
  3566. if attack==false then
  3567. RH.C0=clerp(RH.C0,cf(1,-0.85 - 0.15 * math.cos(sine / 3),-0.15 - 0.15 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 55 * math.cos(sine / 6))),.1)
  3568. LH.C0=clerp(LH.C0,cf(-1,-0.85 + 0.15 * math.cos(sine / 3),-0.15 + 0.15 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 55 * math.cos(sine / 6))),.1)
  3569. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 3))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 6))),.1)
  3570. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 6))),.1)
  3571. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 75 * math.cos(sine / 6)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 3))),.1)
  3572. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 75 * math.cos(sine / 6)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 3))),.1)
  3573. end
  3574. elseif torvel>=22 and hitfloor~=nil then
  3575. Anim="Run"
  3576. if attack==false then
  3577. RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  3578. LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  3579. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
  3580. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
  3581. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 125 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
  3582. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 125 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  3583. end
  3584. end
  3585. end
  3586. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement