Advertisement
Dark_EccentricYT

Untitled

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