Advertisement
GojiGaming1337

Untitled

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