Advertisement
plytalent

light magic

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