Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 246.70 KB | None | 0 0
  1. warn([[Rhi's Anime Star Glitcher Loaded.
  2. All purpose switcher...
  3.  
  4. So you've made it.
  5. The most powerful being to hold this power.
  6. You humans make me laugh.
  7.  
  8. Created by 'NoobyGames12'
  9. Edited by 'RhiBel00351'
  10. Some stuff by 'XXUNORIBOASXX'
  11. ]])
  12. print([[Icons:
  13. ! = New
  14. ? = Spoilers
  15. * = Exclusivity
  16. ]])
  17. warn([[V 3.3.1 (ON PROGRESS) Update Log:
  18. - Originall themes included
  19. ! - Calamity's "Z" has changed.
  20. ! - Starfall EX added.
  21. ! - Mayhem now has Destruction mode.
  22. ! - Chaos theme has been changed.
  23. ! - Purity's theme has been extended.
  24. ? - Corruption's "Z" will have animation sooner.
  25. ! - Calamity's "X" is added, named Starfall.
  26. * - Catastrophe's "Z" coming soon, same as Calamity's "Z" but more powerful.
  27. ! - Divinity's Shield move fixed, wont break anymore(Hold F)(Made by danny199990).
  28. ! - Equinox's MeteorStrike move(X) added(Made by danny199990).
  29. ! - Divinity's Judgement move(Z) collison issue fixed(Made by danny199990).
  30. ! - Divinity's Judgement move(Z) can now be held as long as you want it to.
  31.  
  32. I'd like if you wouldnt remove mine or NoobyGames's credit, thanks alot. =]
  33. ]])
  34. --- its obs smooth af do not touch
  35. ---- Sources and functions might be taken from others
  36. plr = game:GetService("Players").LocalPlayer
  37. char = plr.Character
  38. hum = char.Humanoid
  39. local cam = game.Workspace.CurrentCamera
  40. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  41. Camera = cam
  42. local CamInterrupt = false
  43. local TwoD = false
  44. local TargetInfo = {nil, nil}
  45. cam.CameraType = "Custom"
  46. t = char.Torso
  47. h = char.Head
  48. ra = char["Right Arm"]
  49. la = char["Left Arm"]
  50. rl = char["Right Leg"]
  51. ll = char["Left Leg"]
  52. tors = char.Torso
  53. lleg = char["Left Leg"]
  54. root = char.HumanoidRootPart
  55. hed = char.Head
  56. rleg = char["Right Leg"]
  57. rarm = char["Right Arm"]
  58. larm = char["Left Arm"]
  59. radian = math.rad
  60. random = math.random
  61. Vec3 = Vector3.new
  62. Inst = Instance.new
  63. cFrame = CFrame.new
  64. Euler = CFrame.fromEulerAnglesXYZ
  65. vt = Vector3.new
  66. bc = BrickColor.new
  67. br = BrickColor.random
  68. it = Instance.new
  69. cf = CFrame.new
  70. local eff = true
  71. local shielding = false
  72.  
  73. local Booleans = {
  74. CamFollow = true,
  75. GyroUse = true
  76. }
  77.  
  78. function lerp(object, newCFrame, alpha)
  79. return object:lerp(newCFrame, alpha)
  80. end
  81.  
  82. local Directer = Inst("BodyGyro", root)
  83. Directer.MaxTorque = Vec3(0, 0, 0)
  84. Directer.P = 600000
  85. local CPart = Inst("Part")
  86. CPart.Anchored = true
  87. CPart.CanCollide = false
  88. CPart.Locked = true
  89. CPart.Transparency = 1
  90.  
  91. local rainbowmode = false
  92. local chaosmode = false
  93.  
  94. kan = Instance.new("Sound",char)
  95. kan.Volume = 1.25
  96. kan.TimePosition = 0
  97. kan.PlaybackSpeed = 1
  98. kan.Pitch = 1
  99. kan.SoundId = "rbxassetid://925192139"
  100. kan.Name = "wrecked"
  101. kan.Looped = true
  102. kan:Play()
  103.  
  104. function newTheme(ID,timepos,pitch,vol)
  105. local kanz = kan
  106. --kanz:Stop()
  107. --kanz.Volume = vol
  108. --kanz.TimePosition = timepos
  109. kanz.PlaybackSpeed = pitch
  110. kanz.Pitch = pitch
  111. kanz.SoundId = ID
  112. kanz.Name = "wrecked"
  113. kanz.Looped = true
  114. kanz.Volume = 0.3
  115. --kanz:Play()
  116. --coroutine.resume(coroutine.create(function()
  117. --wait(0.05)
  118. --end))
  119. end
  120.  
  121. function newThemeCust(ID,timepos,pitch,vol)
  122. local kanz = kan
  123. kanz:Stop()
  124. kanz.Volume = vol
  125. kanz.TimePosition = timepos
  126. kanz.PlaybackSpeed = pitch
  127. kanz.Pitch = pitch
  128. kanz.SoundId = ID
  129. kanz.Name = "wrecked"
  130. kanz.Looped = true
  131. kanz:Play()
  132. coroutine.resume(coroutine.create(function()
  133. wait(0.05)
  134. end))
  135. end
  136.  
  137.  
  138.  
  139. function CameraShake(Times, Power, PlayerTarget)
  140. coroutine.resume(coroutine.create(function()
  141. FV = Instance.new("BoolValue", PlayerTarget)
  142. FV.Name = "CameraShake"
  143. for ShakeNum=1,Times do
  144. swait()
  145. local ef=Power
  146. if ef>=1 then
  147. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  148. else
  149. ef=Power*10
  150. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  151. end
  152. end
  153. Humanoid.CameraOffset = Vector3.new(0,0,0)
  154. FV:Destroy()
  155. end))
  156. end
  157.  
  158. function CameraEnshaking(Length,Intensity)
  159. coroutine.resume(coroutine.create(function()
  160. local intensity = 1*Intensity
  161. local rotM = 0.01*Intensity
  162. for i = 0, Length, 0.1 do
  163. swait()
  164. intensity = intensity - 0.05*Intensity/Length
  165. rotM = rotM - 0.0005*Intensity/Length
  166. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  167. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  168. end
  169. Humanoid.CameraOffset = Vec3(0, 0, 0)
  170. end))
  171. end
  172. CamShake=function(Part,Distan,Power,Times)
  173. local de=Part.Position
  174. for i,v in pairs(workspace:children()) do
  175. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  176. for _,c in pairs(v:children()) do
  177. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  178. local Noob=v.Humanoid
  179. if Noob~=nil then
  180. coroutine.resume(coroutine.create(function()
  181. FV = Instance.new("BoolValue", Noob)
  182. FV.Name = "CameraShake"
  183. for ShakeNum=1,Times do
  184. swait()
  185. local ef=Power
  186. if ef>=1 then
  187. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  188. else
  189. ef=Power*10
  190. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  191. end
  192. end
  193. Humanoid.CameraOffset = Vector3.new(0,0,0)
  194. FV:Destroy()
  195. end))
  196. CameraShake(Times, Power, Noob)
  197. end
  198. end
  199. end
  200. end
  201. end
  202. end
  203.  
  204. function chatfunc(text,color)
  205. local chat = coroutine.wrap(function()
  206. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  207. Character:FindFirstChild("TalkingBillBoard"):destroy()
  208. end
  209. local naeeym2 = Instance.new("BillboardGui",Character)
  210. naeeym2.Size = UDim2.new(0,100,0,40)
  211. naeeym2.StudsOffset = Vector3.new(0,3,0)
  212. naeeym2.Adornee = Character.Head
  213. naeeym2.Name = "TalkingBillBoard"
  214. local tecks2 = Instance.new("TextLabel",naeeym2)
  215. tecks2.BackgroundTransparency = 1
  216. tecks2.BorderSizePixel = 0
  217. tecks2.Text = ""
  218. tecks2.Font = "SciFi"
  219. tecks2.TextSize = 30
  220. tecks2.TextStrokeTransparency = 0
  221. tecks2.TextColor3 = color
  222. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  223. tecks2.Size = UDim2.new(1,0,0.5,0)
  224. local tecks3 = Instance.new("TextLabel",naeeym2)
  225. tecks3.BackgroundTransparency = 1
  226. tecks3.BorderSizePixel = 0
  227. tecks3.Text = ""
  228. tecks3.Font = "SciFi"
  229. tecks3.TextSize = 30
  230. tecks3.TextStrokeTransparency = 0
  231. tecks3.TextColor3 = Color3.new(0,0,0)
  232. tecks3.TextStrokeColor3 = color
  233. tecks3.Size = UDim2.new(1,0,0.5,0)
  234. coroutine.resume(coroutine.create(function()
  235. while true do
  236. swait(1)
  237. plr.Character.wrecked.Volume = 0.3
  238. if chaosmode == true then
  239. tecks2.TextColor3 = BrickColor.random().Color
  240. tecks3.TextStrokeColor3 = BrickColor.random().Color
  241. end
  242. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  243. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  244. tecks2.Rotation = math.random(-5,5)
  245. tecks3.Rotation = math.random(-5,5)
  246. end
  247. end))
  248. for i = 1,string.len(text),1 do
  249. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  250. tecks2.Text = string.sub(text,1,i)
  251. tecks3.Text = string.sub(text,1,i)
  252. swait(1)
  253. end
  254. wait(1)
  255. local randomrot = math.random(1,2)
  256. if randomrot == 1 then
  257. for i = 1, 50 do
  258. swait()
  259. tecks2.Rotation = tecks2.Rotation - .75
  260. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  261. tecks2.TextTransparency = tecks2.TextTransparency + .04
  262. tecks3.Rotation = tecks2.Rotation + .75
  263. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  264. tecks3.TextTransparency = tecks2.TextTransparency + .04
  265. end
  266. elseif randomrot == 2 then
  267. for i = 1, 50 do
  268. swait()
  269. tecks2.Rotation = tecks2.Rotation + .75
  270. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  271. tecks2.TextTransparency = tecks2.TextTransparency + .04
  272. tecks3.Rotation = tecks2.Rotation - .75
  273. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  274. tecks3.TextTransparency = tecks2.TextTransparency + .04
  275. end
  276. end
  277. naeeym2:Destroy()
  278. end)
  279. chat()
  280. end
  281.  
  282.  
  283. local Create = LoadLibrary("RbxUtility").Create
  284.  
  285. CFuncs = {
  286. ["Part"] = {
  287. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  288. local Part = Create("Part"){
  289. Parent = Parent,
  290. Reflectance = Reflectance,
  291. Transparency = Transparency,
  292. CanCollide = false,
  293. Locked = true,
  294. BrickColor = BrickColor.new(tostring(BColor)),
  295. Name = Name,
  296. Size = Size,
  297. Material = Material,
  298. }
  299. RemoveOutlines(Part)
  300. return Part
  301. end;
  302. };
  303.  
  304. ["Mesh"] = {
  305. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  306. local Msh = Create(Mesh){
  307. Parent = Part,
  308. Offset = OffSet,
  309. Scale = Scale,
  310. }
  311. if Mesh == "SpecialMesh" then
  312. Msh.MeshType = MeshType
  313. Msh.MeshId = MeshId
  314. end
  315. return Msh
  316. end;
  317. };
  318.  
  319. ["Mesh"] = {
  320. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  321. local Msh = Create(Mesh){
  322. Parent = Part,
  323. Offset = OffSet,
  324. Scale = Scale,
  325. }
  326. if Mesh == "SpecialMesh" then
  327. Msh.MeshType = MeshType
  328. Msh.MeshId = MeshId
  329. end
  330. return Msh
  331. end;
  332. };
  333.  
  334. ["Weld"] = {
  335. Create = function(Parent, Part0, Part1, C0, C1)
  336. local Weld = Create("Weld"){
  337. Parent = Parent,
  338. Part0 = Part0,
  339. Part1 = Part1,
  340. C0 = C0,
  341. C1 = C1,
  342. }
  343. return Weld
  344. end;
  345. };
  346.  
  347. ["Sound"] = {
  348. Create = function(id, par, vol, pit)
  349. coroutine.resume(coroutine.create(function()
  350. local S = Create("Sound"){
  351. Volume = vol,
  352. Name = "EffectSoundo",
  353. Pitch = pit or 1,
  354. SoundId = id,
  355. Parent = par or workspace,
  356. }
  357. wait()
  358. S:play()
  359. game:GetService("Debris"):AddItem(S, 10)
  360. end))
  361. end;
  362. };
  363.  
  364. ["LongSound"] = {
  365. Create = function(id, par, vol, pit)
  366. coroutine.resume(coroutine.create(function()
  367. local S = Create("Sound"){
  368. Volume = vol,
  369. Pitch = pit or 1,
  370. SoundId = id,
  371. Parent = par or workspace,
  372. }
  373. wait()
  374. S:play()
  375. game:GetService("Debris"):AddItem(S, 30)
  376. end))
  377. end;
  378. };
  379.  
  380. ["ParticleEmitter"] = {
  381. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  382. local fp = Create("ParticleEmitter"){
  383. Parent = Parent,
  384. Color = ColorSequence.new(Color1, Color2),
  385. LightEmission = LightEmission,
  386. Size = Size,
  387. Texture = Texture,
  388. Transparency = Transparency,
  389. ZOffset = ZOffset,
  390. Acceleration = Accel,
  391. Drag = Drag,
  392. LockedToPart = LockedToPart,
  393. VelocityInheritance = VelocityInheritance,
  394. EmissionDirection = EmissionDirection,
  395. Enabled = Enabled,
  396. Lifetime = LifeTime,
  397. Rate = Rate,
  398. Rotation = Rotation,
  399. RotSpeed = RotSpeed,
  400. Speed = Speed,
  401. VelocitySpread = VelocitySpread,
  402. }
  403. return fp
  404. end;
  405. };
  406.  
  407. CreateTemplate = {
  408.  
  409. };
  410. }
  411.  
  412.  
  413.  
  414. New = function(Object, Parent, Name, Data)
  415. local Object = Instance.new(Object)
  416. for Index, Value in pairs(Data or {}) do
  417. Object[Index] = Value
  418. end
  419. Object.Parent = Parent
  420. Object.Name = Name
  421. return Object
  422. end
  423. local halocolor = BrickColor.new("Pastel light blue")
  424. local halocolor2 = BrickColor.new("Cool yellow")
  425. local starcolor = BrickColor.new("Bright yellow")
  426. local lunacolor = BrickColor.new("Navy blue")
  427. local lunacolor2 = BrickColor.new("Bright blue")
  428. local wepcolor = BrickColor.new("Really black")
  429. local maincolor = BrickColor.new("Really black")
  430. local m = Instance.new("Model",char)
  431. local m2 = Instance.new("Model",char)
  432. local m3 = Instance.new("Model",char)
  433. local mw1 = Instance.new("Model",char)
  434. local mw2 = Instance.new("Model",char)
  435.  
  436. local extrawingmod1 = Instance.new("Model",char)
  437. local extrawingmod2 = Instance.new("Model",char)
  438.  
  439. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  440. local p = Instance.new("Part")
  441. p.TopSurface = 0
  442. p.BottomSurface = 0
  443. p.Parent = parent
  444. p.Size = Vector3.new(0.1,0.1,0.1)
  445. p.Transparency = transparency
  446. p.Reflectance = reflectance
  447. p.CanCollide = false
  448. p.Locked = true
  449. p.BrickColor = brickcolor
  450. p.Material = material
  451. return p
  452. end
  453.  
  454. function CreateMesh(parent,meshtype,x1,y1,z1)
  455. local mesh = Instance.new("SpecialMesh",parent)
  456. mesh.MeshType = meshtype
  457. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  458. return mesh
  459. end
  460.  
  461. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  462. local mesh = Instance.new("SpecialMesh",parent)
  463. mesh.MeshType = "FileMesh"
  464. mesh.MeshId = meshid
  465. mesh.Scale = Vector3.new(x1,y1,z1)
  466. return mesh
  467. end
  468.  
  469.  
  470. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  471. local mesh = Instance.new("SpecialMesh",parent)
  472. mesh.MeshType = "FileMesh"
  473. mesh.MeshId = meshid
  474. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  475. mesh.Scale = Vector3.new(x1,y1,z1)
  476. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  477. return mesh
  478. end
  479.  
  480. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  481. local weld = Instance.new("Weld")
  482. weld.Parent = parent
  483. weld.Part0 = part0
  484. weld.Part1 = part1
  485. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  486. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  487. return weld
  488. end
  489.  
  490.  
  491. --------------
  492. local secondchar = Instance.new("Model",char)
  493. local GhostCol = BrickColor.new("Really red")
  494. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  495. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  496. local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  497.  
  498. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  499. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  500. local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  501.  
  502. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  503. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  504. local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  505.  
  506. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  507. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  508. local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  509.  
  510. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  511. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  512. local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  513.  
  514. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  515. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  516. local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  517. --------------
  518. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  519. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  520. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  521. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  522.  
  523. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  524. CreateMesh(handle,"Brick",0,0,0)
  525. local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  526. local valuaring = 10
  527. for i = 0, 49 do
  528. valuaring = valuaring + 10
  529. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  530. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  531. CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  532. end
  533.  
  534. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  535. CreateMesh(handle,"Brick",0,0,0)
  536. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  537. local valuaring = 10
  538. for i = 0, 49 do
  539. valuaring = valuaring + 10
  540. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  541. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  542. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  543. end
  544.  
  545.  
  546. local handle = CreateParta(m,1,1,"Neon",maincolor)
  547. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  548. local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  549.  
  550. --- Left wing.
  551.  
  552. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  553. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  554. local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  555.  
  556. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  557. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  558. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  559. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  560. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  561. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  562. A0 = Instance.new('Attachment',wed)
  563. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  564. CreateMesh(wed,"Wedge",0.05,0.5,3)
  565. CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  566. A1 = Instance.new('Attachment',wed)
  567. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  568. CreateMesh(wed,"Wedge",0.05,3,0.5)
  569. CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  570.  
  571. tl1 = Instance.new('Trail',wed)
  572. tl1.Attachment0 = A0
  573. tl1.Attachment1 = A1
  574. --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  575. tl1.LightEmission = 1
  576. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  577. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  578. tl1.Lifetime = 0.6
  579.  
  580.  
  581. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  582. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  583. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  584.  
  585. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  586. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  587. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  588. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  589. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  590. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  591. A0 = Instance.new('Attachment',wed)
  592. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  593. CreateMesh(wed,"Wedge",0.05,0.5,3)
  594. CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  595. A1 = Instance.new('Attachment',wed)
  596. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  597. CreateMesh(wed,"Wedge",0.05,3,0.5)
  598. CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  599.  
  600. tl2 = Instance.new('Trail',wed)
  601. tl2.Attachment0 = A0
  602. tl2.Attachment1 = A1
  603. --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  604. tl2.LightEmission = 1
  605. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  606. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  607. tl2.Lifetime = 0.6
  608.  
  609. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  610. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  611. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  612.  
  613. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  614. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  615. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  616. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  617. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  618. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  619. A0 = Instance.new('Attachment',wed)
  620. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  621. CreateMesh(wed,"Wedge",0.05,0.5,3)
  622. CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  623. A1 = Instance.new('Attachment',wed)
  624. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  625. CreateMesh(wed,"Wedge",0.05,3,0.5)
  626. CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  627.  
  628. tl3 = Instance.new('Trail',wed)
  629. tl3.Attachment0 = A0
  630. tl3.Attachment1 = A1
  631. --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  632. tl3.LightEmission = 1
  633. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  634. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  635. tl3.Lifetime = 0.6
  636.  
  637. tl1.Enabled = false
  638. tl2.Enabled = false
  639. tl3.Enabled = false
  640. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  641. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  642. local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  643.  
  644. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  645. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  646. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  647. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  648. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  649. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  650. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  651. CreateMesh(wed,"Wedge",0.05,0.5,3)
  652. CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  653. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  654. CreateMesh(wed,"Wedge",0.05,3,0.5)
  655. CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  656.  
  657. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  658. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  659. local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  660.  
  661. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  662. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  663. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  664. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  665. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  666. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  667. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  668. CreateMesh(wed,"Wedge",0.05,0.5,3)
  669. CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  670. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  671. CreateMesh(wed,"Wedge",0.05,3,0.5)
  672. CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  673.  
  674. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  675. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  676. local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  677.  
  678. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  679. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  680. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  681. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  682. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  683. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  684. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  685. CreateMesh(wed,"Wedge",0.05,0.5,3)
  686. CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  687. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  688. CreateMesh(wed,"Wedge",0.05,3,0.5)
  689. CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  690.  
  691. -- Right wing.
  692.  
  693. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  694. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  695. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  696.  
  697. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  698. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  699. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  700. A0 = Instance.new('Attachment',wed)
  701. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  702. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  703. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  704. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  705. CreateMesh(wed,"Wedge",0.05,0.5,3)
  706. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  707. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  708. CreateMesh(wed,"Wedge",0.05,3,0.5)
  709. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  710. A1 = Instance.new('Attachment',wed)
  711.  
  712. tr1 = Instance.new('Trail',wed)
  713. tr1.Attachment0 = A0
  714. tr1.Attachment1 = A1
  715. --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  716. tr1.LightEmission = 1
  717. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  718. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  719. tr1.Lifetime = 0.6
  720.  
  721. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  722. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  723. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  724.  
  725. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  726. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  727. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  728. A0 = Instance.new('Attachment',wed)
  729. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  730. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  731. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  732. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  733. CreateMesh(wed,"Wedge",0.05,0.5,3)
  734. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  735. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  736. CreateMesh(wed,"Wedge",0.05,3,0.5)
  737. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  738. A1 = Instance.new('Attachment',wed)
  739.  
  740. tr2 = Instance.new('Trail',wed)
  741. tr2.Attachment0 = A0
  742. tr2.Attachment1 = A1
  743. --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  744. tr2.LightEmission = 1
  745. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  746. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  747. tr2.Lifetime = 0.6
  748.  
  749. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  750. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  751. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  752.  
  753. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  754. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  755. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  756. A0 = Instance.new('Attachment',wed)
  757. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  758. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  759. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  760. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  761. CreateMesh(wed,"Wedge",0.05,0.5,3)
  762. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  763. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  764. CreateMesh(wed,"Wedge",0.05,3,0.5)
  765. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  766. A1 = Instance.new('Attachment',wed)
  767.  
  768. tr3 = Instance.new('Trail',wed)
  769. tr3.Attachment0 = A0
  770. tr3.Attachment1 = A1
  771. --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  772. tr3.LightEmission = 1
  773. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  774. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  775. tr3.Lifetime = 0.6
  776.  
  777.  
  778. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  779. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  780. local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  781.  
  782. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  783. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  784. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  785. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  786. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  787. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  788. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  789. CreateMesh(wed,"Wedge",0.05,0.5,3)
  790. CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  791. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  792. CreateMesh(wed,"Wedge",0.05,3,0.5)
  793. CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  794.  
  795. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  796. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  797. local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  798.  
  799. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  800. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  801. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  802. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  803. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  804. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  805. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  806. CreateMesh(wed,"Wedge",0.05,0.5,3)
  807. CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  808. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  809. CreateMesh(wed,"Wedge",0.05,3,0.5)
  810. CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  811.  
  812. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  813. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  814. local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  815.  
  816. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  817. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  818. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  819. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  820. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  821. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  822. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  823. CreateMesh(wed,"Wedge",0.05,0.5,3)
  824. CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  825. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  826. CreateMesh(wed,"Wedge",0.05,3,0.5)
  827. CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  828.  
  829. ---- HERES THE RING
  830.  
  831.  
  832. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  833. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  834. CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  835. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  836. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  837. CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  838. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  839. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  840. CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  841.  
  842.  
  843. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  844. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  845. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  846.  
  847. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  848. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  849. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  850.  
  851.  
  852.  
  853. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  854. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  855. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  856.  
  857. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  858. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  859. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  860.  
  861. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  862. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  863. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  864.  
  865. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  866. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  867. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  868. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  869. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  870. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  871.  
  872. --- second ring
  873.  
  874. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  875. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  876. CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  877. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  878. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  879. CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  880. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  881. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  882. CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  883.  
  884. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  885. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  886. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  887.  
  888. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  889. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  890. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  891.  
  892.  
  893.  
  894. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  895. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  896. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  897.  
  898. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  899. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  900. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  901.  
  902. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  903. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  904. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  905.  
  906. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  907. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  908. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  909. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  910. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  911. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  912.  
  913.  
  914.  
  915. for i, v in pairs(m:GetChildren()) do
  916. if v:IsA("Part") then
  917. v.BrickColor = BrickColor.new("Really black")
  918. v.Material = "Glass"
  919. end
  920. end
  921. for i, v in pairs(m2:GetChildren()) do
  922. if v:IsA("Part") then
  923. v.BrickColor = BrickColor.new("Crimson")
  924. v.Material = "Granite"
  925. end
  926. end
  927. for i, v in pairs(m3:GetChildren()) do
  928. if v:IsA("Part") then
  929. v.BrickColor = BrickColor.new("Really red")
  930. v.Material = "Neon"
  931. end
  932. end
  933. for i, v in pairs(mw2:GetChildren()) do
  934. if v:IsA("Part") then
  935. v.BrickColor = BrickColor.new("Really red")
  936. v.Material = "Neon"
  937. end
  938. end
  939. for i, v in pairs(mw1:GetChildren()) do
  940. if v:IsA("Part") then
  941. v.Transparency = 1
  942. v.BrickColor = BrickColor.new("Really red")
  943. v.Material = "Neon"
  944. end
  945. end
  946. for i, v in pairs(extrawingmod1:GetChildren()) do
  947. if v:IsA("Part") then
  948. v.Transparency = 1
  949. v.BrickColor = BrickColor.new("White")
  950. v.Material = "Neon"
  951. end
  952. end
  953. for i, v in pairs(extrawingmod2:GetChildren()) do
  954. if v:IsA("Part") then
  955. v.Transparency = 1
  956. v.BrickColor = BrickColor.new("White")
  957. v.Material = "Neon"
  958. end
  959. end
  960. local MAINRUINCOLOR = BrickColor.new("Really red")
  961. ------
  962.  
  963.  
  964. function RemoveOutlines(part)
  965. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  966. end
  967. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  968. local Part = Create("Part")({
  969. Parent = Parent,
  970. Reflectance = Reflectance,
  971. Transparency = Transparency,
  972. CanCollide = false,
  973. Locked = true,
  974. BrickColor = BrickColor.new(tostring(BColor)),
  975. Name = Name,
  976. Size = Size,
  977. Material = Material
  978. })
  979. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  980. RemoveOutlines(Part)
  981. return Part
  982. end
  983. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  984. local Msh = Create(Mesh)({
  985. Parent = Part,
  986. Offset = OffSet,
  987. Scale = Scale
  988. })
  989. if Mesh == "SpecialMesh" then
  990. Msh.MeshType = MeshType
  991. Msh.MeshId = MeshId
  992. end
  993. return Msh
  994. end
  995. function CreateWeld(Parent, Part0, Part1, C0, C1)
  996. local Weld = Create("Weld")({
  997. Parent = Parent,
  998. Part0 = Part0,
  999. Part1 = Part1,
  1000. C0 = C0,
  1001. C1 = C1
  1002. })
  1003. return Weld
  1004. end
  1005.  
  1006. Player=game:GetService("Players").LocalPlayer
  1007. Character=Player.Character
  1008. PlayerGui=Player.PlayerGui
  1009. Backpack=Player.Backpack
  1010. Torso=Character.Torso
  1011. Head=Character.Head
  1012. Humanoid=Character.Humanoid
  1013. m=Instance.new('Model',Character)
  1014. LeftArm=Character["Left Arm"]
  1015. LeftLeg=Character["Left Leg"]
  1016. RightArm=Character["Right Arm"]
  1017. RightLeg=Character["Right Leg"]
  1018. LS=Torso["Left Shoulder"]
  1019. LH=Torso["Left Hip"]
  1020. RS=Torso["Right Shoulder"]
  1021. RH=Torso["Right Hip"]
  1022. Face = Head.face
  1023. Neck=Torso.Neck
  1024. it=Instance.new
  1025. attacktype=1
  1026. vt=Vector3.new
  1027. cf=CFrame.new
  1028. euler=CFrame.fromEulerAnglesXYZ
  1029. angles=CFrame.Angles
  1030. cloaked=false
  1031. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1032. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1033. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1034. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1035. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1036. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1037. RootPart=Character.HumanoidRootPart
  1038. RootJoint=RootPart.RootJoint
  1039. RootCF=euler(-1.57,0,3.14)
  1040. attack = false
  1041. attackdebounce = false
  1042. deb=false
  1043. equipped=true
  1044. hand=false
  1045. MMouse=nil
  1046. combo=0
  1047. mana=0
  1048. trispeed=.2
  1049. attackmode='none'
  1050. local idle=0
  1051. local Anim="Idle"
  1052. local Effects={}
  1053. local gun=false
  1054. local shoot=false
  1055. local sine = 0
  1056. local change = 1
  1057. player=nil
  1058.  
  1059.  
  1060. local toggleTag = true
  1061. local txt = Instance.new("BillboardGui", Head)
  1062. txt.Adornee = nil
  1063. txt.Name = "NameDetect"
  1064. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1065. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  1066. local text = Instance.new("TextLabel", txt)
  1067. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  1068. text.FontSize = "Size8"
  1069. text.TextScaled = true
  1070. text.TextTransparency = 0
  1071. text.BackgroundTransparency = 1
  1072. text.TextTransparency = 0
  1073. text.TextStrokeTransparency = 0
  1074. text.Font = "Fantasy"
  1075. text.TextStrokeColor3 = Color3.new(1,0,0)
  1076. text.TextColor3 = Color3.new(0,0,0)
  1077. text.Text = "Mayhem"
  1078.  
  1079. function RecolorTextAndRename(name,col1,col2)
  1080. text.TextStrokeColor3 = col2
  1081. text.TextColor3 = col1
  1082. text.Text = name
  1083. end
  1084. mouse=Player:GetMouse()
  1085. --save shoulders
  1086. RSH, LSH=nil, nil
  1087. --welds
  1088. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1089. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1090. LH=Torso["Left Hip"]
  1091. RH=Torso["Right Hip"]
  1092. TorsoColor=Torso.BrickColor
  1093. function NoOutline(Part)
  1094. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1095. end
  1096. player=Player
  1097. ch=Character
  1098. RSH=ch.Torso["Right Shoulder"]
  1099. LSH=ch.Torso["Left Shoulder"]
  1100. --
  1101. RSH.Parent=nil
  1102. LSH.Parent=nil
  1103. --
  1104. RW.Name="Right Shoulder"
  1105. RW.Part0=ch.Torso
  1106. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1107. RW.C1=cf(0, 0.5, 0)
  1108. RW.Part1=ch["Right Arm"]
  1109. RW.Parent=ch.Torso
  1110. --
  1111. LW.Name="Left Shoulder"
  1112. LW.Part0=ch.Torso
  1113. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1114. LW.C1=cf(0, 0.5, 0)
  1115. LW.Part1=ch["Left Arm"]
  1116. LW.Parent=ch.Torso
  1117.  
  1118. local Stats=Instance.new("BoolValue")
  1119. Stats.Name="Stats"
  1120. Stats.Parent=Character
  1121. local Atk=Instance.new("NumberValue")
  1122. Atk.Name="Damage"
  1123. Atk.Parent=Stats
  1124. Atk.Value=1
  1125. local Def=Instance.new("NumberValue")
  1126. Def.Name="Defense"
  1127. Def.Parent=Stats
  1128. Def.Value=1
  1129. local Speed=Instance.new("NumberValue")
  1130. Speed.Name="Speed"
  1131. Speed.Parent=Stats
  1132. Speed.Value=1
  1133. local Mvmt=Instance.new("NumberValue")
  1134. Mvmt.Name="Movement"
  1135. Mvmt.Parent=Stats
  1136. Mvmt.Value=1
  1137.  
  1138. local donum=0
  1139.  
  1140.  
  1141. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1142. local fp=it("Part")
  1143. fp.formFactor=formfactor
  1144. fp.Parent=parent
  1145. fp.Reflectance=reflectance
  1146. fp.Transparency=transparency
  1147. fp.CanCollide=false
  1148. fp.Locked=true
  1149. fp.BrickColor=brickcolor
  1150. fp.Name=name
  1151. fp.Size=size
  1152. fp.Position=Torso.Position
  1153. NoOutline(fp)
  1154. fp.Material="SmoothPlastic"
  1155. fp:BreakJoints()
  1156. return fp
  1157. end
  1158.  
  1159. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1160. local mesh=it(Mesh)
  1161. mesh.Parent=part
  1162. if Mesh=="SpecialMesh" then
  1163. mesh.MeshType=meshtype
  1164. if meshid~="nil" then
  1165. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1166. end
  1167. end
  1168. mesh.Offset=offset
  1169. mesh.Scale=scale
  1170. return mesh
  1171. end
  1172.  
  1173. function weld(parent,part0,part1,c0)
  1174. local weld=it("Weld")
  1175. weld.Parent=parent
  1176. weld.Part0=part0
  1177. weld.Part1=part1
  1178. weld.C0=c0
  1179. return weld
  1180. end
  1181.  
  1182. local Color1=Torso.BrickColor
  1183.  
  1184. local bodvel=Instance.new("BodyVelocity")
  1185. local bg=Instance.new("BodyGyro")
  1186.  
  1187. function swait(num)
  1188. if num==0 or num==nil then
  1189. game:service'RunService'.Stepped:wait(0)
  1190. else
  1191. for i=0,num do
  1192. game:service'RunService'.Stepped:wait(0)
  1193. end
  1194. end
  1195. end
  1196.  
  1197. -------- RAINBOW LEAVE IT TO ME
  1198. local r = 255
  1199. local g = 0
  1200. local b = 0
  1201. coroutine.resume(coroutine.create(function()
  1202. while wait() do
  1203. for i = 0, 254/5 do
  1204. swait()
  1205. g = g + 5
  1206. end
  1207. for i = 0, 254/5 do
  1208. swait()
  1209. r = r - 5
  1210. end
  1211. for i = 0, 254/5 do
  1212. swait()
  1213. b = b + 5
  1214. end
  1215. for i = 0, 254/5 do
  1216. swait()
  1217. g = g - 5
  1218. end
  1219. for i = 0, 254/5 do
  1220. swait()
  1221. r = r + 5
  1222. end
  1223. for i = 0, 254/5 do
  1224. swait()
  1225. b = b - 5
  1226. end
  1227. end
  1228. end))
  1229.  
  1230.  
  1231. so = function(id,par,vol,pit)
  1232. coroutine.resume(coroutine.create(function()
  1233. local sou = Instance.new("Sound",par or workspace)
  1234. sou.Volume=vol
  1235. sou.Pitch=pit or 1
  1236. sou.SoundId=id
  1237. swait()
  1238. sou:play()
  1239. game:GetService("Debris"):AddItem(sou,6)
  1240. end))
  1241. end
  1242.  
  1243. function clerp(a,b,t)
  1244. local qa = {QuaternionFromCFrame(a)}
  1245. local qb = {QuaternionFromCFrame(b)}
  1246. local ax, ay, az = a.x, a.y, a.z
  1247. local bx, by, bz = b.x, b.y, b.z
  1248. local _t = 1-t
  1249. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1250. end
  1251.  
  1252. function QuaternionFromCFrame(cf)
  1253. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1254. local trace = m00 + m11 + m22
  1255. if trace > 0 then
  1256. local s = math.sqrt(1 + trace)
  1257. local recip = 0.5/s
  1258. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1259. else
  1260. local i = 0
  1261. if m11 > m00 then
  1262. i = 1
  1263. end
  1264. if m22 > (i == 0 and m00 or m11) then
  1265. i = 2
  1266. end
  1267. if i == 0 then
  1268. local s = math.sqrt(m00-m11-m22+1)
  1269. local recip = 0.5/s
  1270. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1271. elseif i == 1 then
  1272. local s = math.sqrt(m11-m22-m00+1)
  1273. local recip = 0.5/s
  1274. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1275. elseif i == 2 then
  1276. local s = math.sqrt(m22-m00-m11+1)
  1277. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1278. end
  1279. end
  1280. end
  1281.  
  1282. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1283. local xs, ys, zs = x + x, y + y, z + z
  1284. local wx, wy, wz = w*xs, w*ys, w*zs
  1285. local xx = x*xs
  1286. local xy = x*ys
  1287. local xz = x*zs
  1288. local yy = y*ys
  1289. local yz = y*zs
  1290. local zz = z*zs
  1291. 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))
  1292. end
  1293.  
  1294. function QuaternionSlerp(a, b, t)
  1295. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1296. local startInterp, finishInterp;
  1297. if cosTheta >= 0.0001 then
  1298. if (1 - cosTheta) > 0.0001 then
  1299. local theta = math.acos(cosTheta)
  1300. local invSinTheta = 1/math.sin(theta)
  1301. startInterp = math.sin((1-t)*theta)*invSinTheta
  1302. finishInterp = math.sin(t*theta)*invSinTheta
  1303. else
  1304. startInterp = 1-t
  1305. finishInterp = t
  1306. end
  1307. else
  1308. if (1+cosTheta) > 0.0001 then
  1309. local theta = math.acos(-cosTheta)
  1310. local invSinTheta = 1/math.sin(theta)
  1311. startInterp = math.sin((t-1)*theta)*invSinTheta
  1312. finishInterp = math.sin(t*theta)*invSinTheta
  1313. else
  1314. startInterp = t-1
  1315. finishInterp = t
  1316. end
  1317. end
  1318. 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
  1319. end
  1320.  
  1321. local function CFrameFromTopBack(at, top, back)
  1322. local right = top:Cross(back)
  1323. return CFrame.new(at.x, at.y, at.z,
  1324. right.x, top.x, back.x,
  1325. right.y, top.y, back.y,
  1326. right.z, top.z, back.z)
  1327. end
  1328.  
  1329. function Triangle(a, b, c)
  1330. local edg1 = (c-a):Dot((b-a).unit)
  1331. local edg2 = (a-b):Dot((c-b).unit)
  1332. local edg3 = (b-c):Dot((a-c).unit)
  1333. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1334. a, b, c = a, b, c
  1335. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1336. a, b, c = b, c, a
  1337. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1338. a, b, c = c, a, b
  1339. else
  1340. assert(false, "unreachable")
  1341. end
  1342.  
  1343. local len1 = (c-a):Dot((b-a).unit)
  1344. local len2 = (b-a).magnitude - len1
  1345. local width = (a + (b-a).unit*len1 - c).magnitude
  1346.  
  1347. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1348.  
  1349. local list = {}
  1350.  
  1351. if len1 > 0.01 then
  1352. local w1 = Instance.new('WedgePart', m)
  1353. game:GetService("Debris"):AddItem(w1,5)
  1354. w1.Material = "SmoothPlastic"
  1355. w1.FormFactor = 'Custom'
  1356. w1.BrickColor = BrickColor.new("Really red")
  1357. w1.Transparency = 0
  1358. w1.Reflectance = 0
  1359. w1.Material = "SmoothPlastic"
  1360. w1.CanCollide = false
  1361. local l1 = Instance.new("PointLight",w1)
  1362. l1.Color = Color3.new(170,0,0)
  1363. NoOutline(w1)
  1364. local sz = Vector3.new(0.2, width, len1)
  1365. w1.Size = sz
  1366. local sp = Instance.new("SpecialMesh",w1)
  1367. sp.MeshType = "Wedge"
  1368. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1369. w1:BreakJoints()
  1370. w1.Anchored = true
  1371. w1.Parent = workspace
  1372. w1.Transparency = 0.7
  1373. table.insert(Effects,{w1,"Disappear",.01})
  1374. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1375. table.insert(list,w1)
  1376. end
  1377.  
  1378. if len2 > 0.01 then
  1379. local w2 = Instance.new('WedgePart', m)
  1380. game:GetService("Debris"):AddItem(w2,5)
  1381. w2.Material = "SmoothPlastic"
  1382. w2.FormFactor = 'Custom'
  1383. w2.BrickColor = BrickColor.new("Really red")
  1384. w2.Transparency = 0
  1385. w2.Reflectance = 0
  1386. w2.Material = "SmoothPlastic"
  1387. w2.CanCollide = false
  1388. local l2 = Instance.new("PointLight",w2)
  1389. l2.Color = Color3.new(170,0,0)
  1390. NoOutline(w2)
  1391. local sz = Vector3.new(0.2, width, len2)
  1392. w2.Size = sz
  1393. local sp = Instance.new("SpecialMesh",w2)
  1394. sp.MeshType = "Wedge"
  1395. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1396. w2:BreakJoints()
  1397. w2.Anchored = true
  1398. w2.Parent = workspace
  1399. w2.Transparency = 0.7
  1400. table.insert(Effects,{w2,"Disappear",.01})
  1401. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1402. table.insert(list,w2)
  1403. end
  1404. return unpack(list)
  1405. end
  1406.  
  1407.  
  1408. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1409. if hit.Parent == nil then
  1410. return
  1411. end
  1412. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1413. for _, v in pairs(hit.Parent:children()) do
  1414. if v:IsA("Humanoid") then
  1415. h = v
  1416. end
  1417. end
  1418. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1419. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1420. return
  1421. end
  1422. local c = Create("ObjectValue")({
  1423. Name = "creator",
  1424. Value = game:service("Players").LocalPlayer,
  1425. Parent = h
  1426. })
  1427. game:GetService("Debris"):AddItem(c, 0.5)
  1428. if HitSound ~= nil and HitPitch ~= nil then
  1429. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1430. end
  1431. local Damage = math.random(minim, maxim)
  1432. local blocked = false
  1433. local block = hit.Parent:findFirstChild("Block")
  1434. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1435. blocked = true
  1436. block.Value = block.Value - 1
  1437. print(block.Value)
  1438. end
  1439. if blocked == false then
  1440. HitHealth = h.Health
  1441. h.Health = h.Health - Damage
  1442. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1443. print("gained kill")
  1444. end
  1445. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1446. else
  1447. h.Health = h.Health - Damage / 2
  1448. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1449. end
  1450. if Type == "Knockdown" then
  1451. local hum = hit.Parent.Humanoid
  1452. hum.PlatformStand = true
  1453. coroutine.resume(coroutine.create(function(HHumanoid)
  1454. swait(1)
  1455. HHumanoid.PlatformStand = false
  1456. end), hum)
  1457. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1458. local bodvol = Create("BodyVelocity")({
  1459. velocity = angle * knockback,
  1460. P = 5000,
  1461. maxForce = Vector3.new(8000, 8000, 8000),
  1462. Parent = hit
  1463. })
  1464. local rl = Create("BodyAngularVelocity")({
  1465. P = 3000,
  1466. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1467. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1468. Parent = hit
  1469. })
  1470. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1471. game:GetService("Debris"):AddItem(rl, 0.5)
  1472. elseif Type == "Normal" then
  1473. local vp = Create("BodyVelocity")({
  1474. P = 500,
  1475. maxForce = Vector3.new(math.huge, 0, math.huge),
  1476. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1477. })
  1478. if knockback > 0 then
  1479. vp.Parent = hit.Parent.Head
  1480. end
  1481. game:GetService("Debris"):AddItem(vp, 0.5)
  1482. elseif Type == "Up" then
  1483. local bodyVelocity = Create("BodyVelocity")({
  1484. velocity = Vector3.new(0, 20, 0),
  1485. P = 5000,
  1486. maxForce = Vector3.new(8000, 8000, 8000),
  1487. Parent = hit
  1488. })
  1489. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1490. local bodyVelocity = Create("BodyVelocity")({
  1491. velocity = Vector3.new(0, 20, 0),
  1492. P = 5000,
  1493. maxForce = Vector3.new(8000, 8000, 8000),
  1494. Parent = hit
  1495. })
  1496. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1497. elseif Type == "Leech" then
  1498. local hum = hit.Parent.Humanoid
  1499. if hum ~= nil then
  1500. for i = 0, 2 do
  1501. Effects.Sphere.Create(BrickColor.new("Bright red"), 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)
  1502. end
  1503. Humanoid.Health = Humanoid.Health + 10
  1504. end
  1505. elseif Type == "UpKnock" then
  1506. local hum = hit.Parent.Humanoid
  1507. hum.PlatformStand = true
  1508. if hum ~= nil then
  1509. hitr = true
  1510. end
  1511. coroutine.resume(coroutine.create(function(HHumanoid)
  1512. swait(5)
  1513. HHumanoid.PlatformStand = false
  1514. hitr = false
  1515. end), hum)
  1516. local bodyVelocity = Create("BodyVelocity")({
  1517. velocity = Vector3.new(0, 20, 0),
  1518. P = 5000,
  1519. maxForce = Vector3.new(8000, 8000, 8000),
  1520. Parent = hit
  1521. })
  1522. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1523. local bodyVelocity = Create("BodyVelocity")({
  1524. velocity = Vector3.new(0, 20, 0),
  1525. P = 5000,
  1526. maxForce = Vector3.new(8000, 8000, 8000),
  1527. Parent = hit
  1528. })
  1529. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1530. elseif Type == "Snare" then
  1531. local bp = Create("BodyPosition")({
  1532. P = 2000,
  1533. D = 100,
  1534. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1535. position = hit.Parent.Torso.Position,
  1536. Parent = hit.Parent.Torso
  1537. })
  1538. game:GetService("Debris"):AddItem(bp, 1)
  1539. elseif Type == "Slashnare" then
  1540. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1541. for i = 1, math.random(4, 5) do
  1542. Effects.Sphere.Create(BrickColor.new("Teal"), 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)
  1543. end
  1544. local bp = Create("BodyPosition")({
  1545. P = 2000,
  1546. D = 100,
  1547. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1548. position = hit.Parent.Torso.Position,
  1549. Parent = hit.Parent.Torso
  1550. })
  1551. game:GetService("Debris"):AddItem(bp, 1)
  1552. elseif Type == "Spike" then
  1553. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1554. local bp = Create("BodyPosition")({
  1555. P = 2000,
  1556. D = 100,
  1557. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1558. position = hit.Parent.Torso.Position,
  1559. Parent = hit.Parent.Torso
  1560. })
  1561. game:GetService("Debris"):AddItem(bp, 1)
  1562. elseif Type == "Freeze" then
  1563. local BodPos = Create("BodyPosition")({
  1564. P = 50000,
  1565. D = 1000,
  1566. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1567. position = hit.Parent.Torso.Position,
  1568. Parent = hit.Parent.Torso
  1569. })
  1570. local BodGy = Create("BodyGyro")({
  1571. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1572. P = 20000,
  1573. Parent = hit.Parent.Torso,
  1574. cframe = hit.Parent.Torso.CFrame
  1575. })
  1576. hit.Parent.Torso.Anchored = true
  1577. coroutine.resume(coroutine.create(function(Part)
  1578. swait(1.5)
  1579. Part.Anchored = false
  1580. end), hit.Parent.Torso)
  1581. game:GetService("Debris"):AddItem(BodPos, 3)
  1582. game:GetService("Debris"):AddItem(BodGy, 3)
  1583. end
  1584. local debounce = Create("BoolValue")({
  1585. Name = "DebounceHit",
  1586. Parent = hit.Parent,
  1587. Value = true
  1588. })
  1589. game:GetService("Debris"):AddItem(debounce, Delay)
  1590. c = Instance.new("ObjectValue")
  1591. c.Name = "creator"
  1592. c.Value = Player
  1593. c.Parent = h
  1594. game:GetService("Debris"):AddItem(c, 0.5)
  1595. end
  1596. end
  1597. function ShowDamage(Pos, Text, Time, Color)
  1598. local Rate = 0.03333333333333333
  1599. local Pos = Pos or Vector3.new(0, 0, 0)
  1600. local Text = Text or ""
  1601. local Time = Time or 2
  1602. local Color = Color or Color3.new(1, 0, 1)
  1603. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1604. EffectPart.Anchored = true
  1605. local BillboardGui = Create("BillboardGui")({
  1606. Size = UDim2.new(3, 0, 3, 0),
  1607. Adornee = EffectPart,
  1608. Parent = EffectPart
  1609. })
  1610. local TextLabel = Create("TextLabel")({
  1611. BackgroundTransparency = 1,
  1612. Size = UDim2.new(1, 0, 1, 0),
  1613. Text = Text,
  1614. TextColor3 = Color,
  1615. TextScaled = true,
  1616. Font = Enum.Font.ArialBold,
  1617. Parent = BillboardGui
  1618. })
  1619. game.Debris:AddItem(EffectPart, Time + 0.1)
  1620. EffectPart.Parent = game:GetService("Workspace")
  1621. delay(0, function()
  1622. local Frames = Time / Rate
  1623. for Frame = 1, Frames do
  1624. wait(Rate)
  1625. local Percent = Frame / Frames
  1626. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1627. TextLabel.TextTransparency = Percent
  1628. end
  1629. if EffectPart and EffectPart.Parent then
  1630. EffectPart:Destroy()
  1631. end
  1632. end)
  1633. end
  1634. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1635. for _, c in pairs(workspace:children()) do
  1636. local hum = c:findFirstChildOfClass("Humanoid")
  1637. if hum ~= nil then
  1638. local head = c:findFirstChild("Head")
  1639. if head ~= nil then
  1640. local targ = head.Position - Part.Position
  1641. local mag = targ.magnitude
  1642. if magni >= mag and c.Name ~= Player.Name then
  1643. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1644. end
  1645. end
  1646. end
  1647. end
  1648. end
  1649.  
  1650. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1651. for _, c in pairs(workspace:children()) do
  1652. local hum = c:findFirstChild("Humanoid")
  1653. if hum ~= nil then
  1654. local head = c:findFirstChild("Torso")
  1655. if head ~= nil then
  1656. local targ = head.Position - Part.Position
  1657. local mag = targ.magnitude
  1658. if magni >= mag and c.Name ~= Player.Name then
  1659. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1660. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1661. end
  1662. end
  1663. end
  1664. end
  1665. end
  1666.  
  1667. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1668. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1669. end
  1670.  
  1671. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1672. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1673. prt.Anchored=true
  1674. prt.CFrame=cframe
  1675. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1676. --http://www.roblox.com/asset/?id=4770560
  1677. game:GetService("Debris"):AddItem(prt,2)
  1678. CF=prt.CFrame
  1679. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1680. for i=0,1,0.2 do
  1681. wait()
  1682. Part.CFrame=CF*cf(0,0,-0.4)
  1683. end
  1684. for i=0,1,delay do
  1685. wait()
  1686. --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)
  1687. Mesh.Scale=Mesh.Scale
  1688. end
  1689. for i=0,1,0.1 do
  1690. wait()
  1691. Part.Transparency=i
  1692. end
  1693. Part.Parent=nil
  1694. end),prt,msh,CF)
  1695. end
  1696.  
  1697. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1698. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1699. prt.Anchored=true
  1700. prt.Material = "Neon"
  1701. prt.CFrame=cframe
  1702. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1703. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1704. game:GetService("Debris"):AddItem(prt,5)
  1705. coroutine.resume(coroutine.create(function(Part,Mesh)
  1706. for i=0,1,delay do
  1707. swait()
  1708. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1709. Part.Transparency=i
  1710. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1711. end
  1712. Part.Parent=nil
  1713. end),prt,msh)
  1714. end
  1715.  
  1716. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1717. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1718. prt.Anchored=true
  1719. prt.Material = "Neon"
  1720. prt.CFrame=cframe
  1721. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1722. game:GetService("Debris"):AddItem(prt,5)
  1723. coroutine.resume(coroutine.create(function(Part,Mesh)
  1724. local rtype = rottype
  1725. for i=0,1,delay do
  1726. swait()
  1727. if rtype == 1 then
  1728. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1729. elseif rtype == 2 then
  1730. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1731. end
  1732. Part.Transparency=i
  1733. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1734. end
  1735. Part.Parent=nil
  1736. end),prt,msh)
  1737. end
  1738.  
  1739. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1740. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1741. prt.Anchored=true
  1742. prt.CFrame=cframe
  1743. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1744. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1745. game:GetService("Debris"):AddItem(prt,5)
  1746. coroutine.resume(coroutine.create(function(Part,Mesh)
  1747. for i=0,1,delay do
  1748. wait()
  1749. Part.Transparency=i
  1750. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1751. end
  1752. Part.Parent=nil
  1753. end),prt,msh)
  1754. end
  1755.  
  1756. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1757. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1758. prt.Anchored=true
  1759. prt.Material = "Neon"
  1760. prt.CFrame=cframe
  1761. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1762. game:GetService("Debris"):AddItem(prt,5)
  1763. coroutine.resume(coroutine.create(function(Part,Mesh)
  1764. local rtype = rottype
  1765. for i=0,1,delay do
  1766. swait()
  1767. if rtype == 1 then
  1768. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1769. elseif rtype == 2 then
  1770. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1771. end
  1772. Part.Transparency=i
  1773. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1774. end
  1775. Part.Parent=nil
  1776. end),prt,msh)
  1777. end
  1778.  
  1779. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1780. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1781. prt.Anchored=true
  1782. prt.Material = "Neon"
  1783. prt.CFrame=cframe
  1784. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1785. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1786. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1787. game:GetService("Debris"):AddItem(prt,5)
  1788. coroutine.resume(coroutine.create(function(Part,Mesh)
  1789. local rtype = rottype
  1790. for i=0,1,delay do
  1791. swait()
  1792. if rtype == 1 then
  1793. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1794. elseif rtype == 2 then
  1795. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1796. end
  1797. dec.Transparency=i
  1798. dec2.Transparency=i
  1799. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1800. end
  1801. Part.Parent=nil
  1802. end),prt,msh)
  1803. end
  1804.  
  1805. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1806. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1807. prt.Anchored=true
  1808. prt.Material = "Neon"
  1809. prt.CFrame=cframe
  1810. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1811. game:GetService("Debris"):AddItem(prt,5)
  1812. coroutine.resume(coroutine.create(function(Part,Mesh)
  1813. local rtype = rottype
  1814. for i=0,1,delay do
  1815. swait()
  1816. if rtype == 1 then
  1817. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1818. elseif rtype == 2 then
  1819. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1820. end
  1821. prt.Transparency=i
  1822. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1823. end
  1824. Part.Parent=nil
  1825. end),prt,msh)
  1826. end
  1827.  
  1828. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1829. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1830. prt.Anchored=true
  1831. prt.Material = "Neon"
  1832. prt.CFrame=cframe
  1833. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1834. game:GetService("Debris"):AddItem(prt,5)
  1835. coroutine.resume(coroutine.create(function(Part,Mesh)
  1836. local rtype = rottype
  1837. for i=0,1,delay do
  1838. swait()
  1839. if rtype == 1 then
  1840. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1841. elseif rtype == 2 then
  1842. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1843. end
  1844. prt.Transparency=i
  1845. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1846. end
  1847. Part.Parent=nil
  1848. end),prt,msh)
  1849. end
  1850.  
  1851. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1852. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1853. prt.Anchored=true
  1854. prt.Material = "Neon"
  1855. prt.CFrame=cframe
  1856. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1857. game:GetService("Debris"):AddItem(prt,5)
  1858. coroutine.resume(coroutine.create(function(Part,Mesh)
  1859. local rtype = rottype
  1860. for i=0,1,delay do
  1861. swait()
  1862. if rtype == 1 then
  1863. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1864. elseif rtype == 2 then
  1865. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1866. end
  1867. prt.Transparency=i
  1868. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1869. end
  1870. Part.Parent=nil
  1871. end),prt,msh)
  1872. end
  1873.  
  1874. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1875. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1876. prt.Anchored=true
  1877. prt.Material = "Neon"
  1878. prt.CFrame=cframe
  1879. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1880. game:GetService("Debris"):AddItem(prt,5)
  1881. coroutine.resume(coroutine.create(function(Part,Mesh)
  1882. local rtype = rottype
  1883. for i=0,1,delay do
  1884. swait()
  1885. if rtype == 1 then
  1886. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1887. elseif rtype == 2 then
  1888. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1889. end
  1890. prt.Transparency=i
  1891. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1892. end
  1893. Part.Parent=nil
  1894. end),prt,msh)
  1895. end
  1896.  
  1897. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1898. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1899. prt.Anchored=false
  1900. prt.CFrame=cframe
  1901. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1902. local wld=weld(prt,prt,Parent,cframe)
  1903. game:GetService("Debris"):AddItem(prt,5)
  1904. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1905. for i=0,1,delay do
  1906. wait()
  1907. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1908. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1909. Part.Transparency=i
  1910. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1911. end
  1912. Part.Parent=nil
  1913. end),prt,msh,wld)
  1914. end
  1915.  
  1916. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1917. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1918. prt.Anchored=false
  1919. prt.CFrame=cframe
  1920. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1921. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1922. game:GetService("Debris"):AddItem(prt,5)
  1923. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1924. for i=0,1,delay do
  1925. wait()
  1926. Weld.C0=euler(i*20,0,0)
  1927. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1928. Part.Transparency=i
  1929. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1930. end
  1931. Part.Parent=nil
  1932. end),prt,msh,wld)
  1933. end
  1934.  
  1935. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1936. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1937. prt.Anchored=true
  1938. prt.CFrame=cframe
  1939. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1940. game:GetService("Debris"):AddItem(prt,2)
  1941. coroutine.resume(coroutine.create(function(Part,Mesh)
  1942. for i=0,1,delay do
  1943. wait()
  1944. Part.CFrame=Part.CFrame
  1945. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1946. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1947. prt2.Anchored=true
  1948. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1949. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1950. game:GetService("Debris"):AddItem(prt2,2)
  1951. coroutine.resume(coroutine.create(function(Part,Mesh)
  1952. for i=0,1,0.1 do
  1953. wait()
  1954. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1955. end
  1956. Part.Parent=nil
  1957. end),prt2,msh2)
  1958. end
  1959. for i=0,1,delay*2 do
  1960. wait()
  1961. Part.CFrame=Part.CFrame
  1962. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1963. end
  1964. Part.Parent=nil
  1965. end),prt,msh)
  1966. end
  1967.  
  1968. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1969. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1970. prt.Anchored=true
  1971. prt.CFrame=cframe
  1972. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1973. game:GetService("Debris"):AddItem(prt,2)
  1974. coroutine.resume(coroutine.create(function(Part,Mesh)
  1975. for i=0,1,delay do
  1976. wait()
  1977. Part.CFrame=Part.CFrame
  1978. Part.Transparency=i
  1979. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1980. end
  1981. Part.Parent=nil
  1982. end),prt,msh)
  1983. end
  1984.  
  1985. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1986. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1987. prt.Anchored=true
  1988. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1989. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1990. game:GetService("Debris"):AddItem(prt,2)
  1991. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1992. CF=Part.CFrame
  1993. Numbb=0
  1994. randnumb=math.random()/10
  1995. rand1=math.random()/10
  1996. for i=0,1,rand1 do
  1997. wait()
  1998. CF=CF*cf(0,math.random()/2,0)
  1999. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2000. Part.CFrame=CF*euler(Numbb,0,0)
  2001. Part.Transparency=i
  2002. Numbb=Numbb+randnumb
  2003. end
  2004. Part.Parent=nil
  2005. end),prt,CF,Numbb,randnumb)
  2006. end
  2007.  
  2008. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2009. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2010. prt.Anchored=true
  2011. prt.CFrame=cframe
  2012. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2013. game:GetService("Debris"):AddItem(prt,5)
  2014. coroutine.resume(coroutine.create(function(Part,Mesh)
  2015. for i=0,1,delay do
  2016. wait()
  2017. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2018. Part.Transparency=i
  2019. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2020. end
  2021. Part.Parent=nil
  2022. end),prt,msh)
  2023. end
  2024.  
  2025. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2026. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2027. prt.Anchored=true
  2028. prt.CFrame=cframe
  2029. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2030. game:GetService("Debris"):AddItem(prt,2)
  2031. coroutine.resume(coroutine.create(function(Part,Mesh)
  2032. for i=0,1,delay do
  2033. wait()
  2034. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2035. Part.Transparency=i
  2036. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2037. end
  2038. Part.Parent=nil
  2039. end),prt,msh)
  2040. end
  2041.  
  2042. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2043. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2044. prt.Anchored=true
  2045. prt.CFrame=cframe*cf(x,y,z)
  2046. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2047. game:GetService("Debris"):AddItem(prt,5)
  2048. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2049. local num=math.random()
  2050. local num2=math.random(-3,2)+math.random()
  2051. local numm=0
  2052. for i=0,1,delay*2 do
  2053. swait()
  2054. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2055. Part.Transparency=i
  2056. numm=numm+0.01
  2057. end
  2058. Part.Parent=nil
  2059. Mesh.Parent=nil
  2060. end),prt,msh,x,y,z)
  2061. end
  2062.  
  2063. function dmgstart(dmg,what)
  2064. hitcon = what.Touched:connect(function(hit)
  2065. local hum = hit.Parent:FindFirstChild("Humanoid")
  2066. if hum and not hum:IsDescendantOf(Character) then
  2067. hum:TakeDamage(dmg)
  2068. end
  2069. end)
  2070. end
  2071.  
  2072. function dmgstop()
  2073. hitcon:disconnect()
  2074. end
  2075.  
  2076. function Cloak()
  2077. Face.Parent=nil
  2078. cloaked=true
  2079. for _,v in pairs(Torso.Parent:children()) do
  2080. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2081. coroutine.resume(coroutine.create(function()
  2082. for i=0,1,0.2 do
  2083. wait()
  2084. v.Transparency=i
  2085. end
  2086. v.Transparency=1
  2087. end))
  2088. end
  2089. if v.className=="Hat" then
  2090. hatp=v.Handle
  2091. coroutine.resume(coroutine.create(function(derp)
  2092. for i=0,1,0.2 do
  2093. wait()
  2094. derp.Transparency=i
  2095. end
  2096. derp.Transparency=1
  2097. end),hatp)
  2098. end
  2099. end
  2100. for _,v in pairs(m:children()) do
  2101. if v.className=="Part" then
  2102. coroutine.resume(coroutine.create(function()
  2103. for i=0,1,0.2 do
  2104. wait()
  2105. v.Transparency=i
  2106. end
  2107. v.Transparency=1
  2108. end))
  2109. end
  2110. end
  2111. end
  2112.  
  2113. function UnCloak()
  2114. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2115. Face.Parent=Head
  2116. cloaked=false
  2117. for _,v in pairs(Torso.Parent:children()) do
  2118. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2119. coroutine.resume(coroutine.create(function()
  2120. for i=0,1,0.1 do
  2121. wait()
  2122. v.Transparency=v.Transparency-0.1
  2123. end
  2124. v.Transparency=0
  2125. end))
  2126. end
  2127. if v.className=="Hat" then
  2128. hatp=v.Handle
  2129. coroutine.resume(coroutine.create(function(derp)
  2130. for i=0,1,0.1 do
  2131. wait()
  2132. derp.Transparency=derp.Transparency-0.1
  2133. end
  2134. derp.Transparency=0
  2135. end),hatp)
  2136. end
  2137. end
  2138. for _,v in pairs(m:children()) do
  2139. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2140. coroutine.resume(coroutine.create(function()
  2141. for i=0,1,0.1 do
  2142. wait()
  2143. v.Transparency=v.Transparency-0.1
  2144. end
  2145. v.Transparency=0
  2146. end))
  2147. v.Transparency=0
  2148. end
  2149. end
  2150. end
  2151.  
  2152. local origcolor = BrickColor.new("Pastel light blue")
  2153. ---- This section of explosions.
  2154. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2155. local expart = Instance.new("Part",char)
  2156. local expart2 = Instance.new("Part",char)
  2157. local rin = Instance.new("Part",char)
  2158. local rin2 = Instance.new("Part",char)
  2159. local partMesh = Instance.new("SpecialMesh",expart)
  2160. partMesh.MeshType = "Sphere"
  2161. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2162. partMesh2.MeshType = "Sphere"
  2163. local partMesh3 = Instance.new("SpecialMesh",rin)
  2164. partMesh3.MeshType = "Brick"
  2165. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2166. partMesh4.MeshType = "Brick"
  2167. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2168. partMesh.Scale = vt(rad,rad,rad)
  2169. expart.Size = vt(1,1,1)
  2170. expart.Transparency = 0
  2171. expart.Anchored = true
  2172. expart.Material = "Neon"
  2173. expart.BrickColor = bc("White")
  2174. expart.CFrame = par.CFrame
  2175. partMesh2.Scale = vt(rad,rad,rad)
  2176. expart2.Size = vt(1.15,1.15,1.15)
  2177. expart2.Transparency = 0.5
  2178. expart2.Anchored = true
  2179. expart2.Material = "Neon"
  2180. expart2.BrickColor = par.BrickColor
  2181. expart2.CFrame = par.CFrame
  2182. rin.Size = vt(1.15,1.15,1.15)
  2183. rin.Transparency = 1
  2184. rin.Anchored = true
  2185. rin.Material = "Neon"
  2186. rin.BrickColor = par.BrickColor
  2187. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2188. rin2.Size = vt(1.15,1.15,1.15)
  2189. rin2.Transparency = 1
  2190. rin2.Anchored = true
  2191. rin2.Material = "Neon"
  2192. rin2.BrickColor = par.BrickColor
  2193. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2194. partMesh3.Scale = vt(0,1,0)
  2195. partMesh4.Scale = vt(0,1,0)
  2196. local dec2 = Instance.new("Decal", rin)
  2197. dec2.Face = "Top"
  2198. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2199. dec2.Parent = rin
  2200. local dec2b = dec2:Clone()
  2201. dec2b.Face = "Bottom"
  2202. dec2b.Parent = rin
  2203.  
  2204. local dec2a = Instance.new("Decal", rin2)
  2205. dec2a.Face = "Top"
  2206. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2207. dec2a.Parent = rin2
  2208. local dec2ab = dec2a:Clone()
  2209. dec2ab.Face = "Bottom"
  2210. dec2ab.Parent = rin2
  2211. expart.CanCollide = false
  2212. expart2.CanCollide = false
  2213. rin.CanCollide = false
  2214. rin2.CanCollide = false
  2215. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2216. local value = 1*rad/6.5
  2217. for i = 0, 199 do
  2218. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2219. expart.CFrame = expart.CFrame
  2220. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2221. expart2.CFrame = expart.CFrame
  2222. value = value - 0.035*rad/30
  2223. if value < 7.5 then
  2224. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2225. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2226. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2227. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2228. end
  2229. if value < 0 then
  2230. dec2.Transparency = dec2.Transparency + 0.025
  2231. dec2a.Transparency = dec2a.Transparency + 0.025
  2232. dec2b.Transparency = dec2b.Transparency + 0.025
  2233. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2234. expart.Transparency = expart.Transparency + 0.025
  2235. expart2.Transparency = expart2.Transparency + 0.025
  2236. rin.Transparency = rin.Transparency + 0.025
  2237. rin2.Transparency = rin2.Transparency + 0.025
  2238. end
  2239. swait()
  2240. end
  2241. game:GetService("Debris"):AddItem(expart, 1)
  2242. game:GetService("Debris"):AddItem(expart2, 1)
  2243. game:GetService("Debris"):AddItem(rin, 1)
  2244. game:GetService("Debris"):AddItem(rin2, 1)
  2245. end
  2246.  
  2247. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2248. local expart = Instance.new("Part",char)
  2249. local expart2 = Instance.new("Part",char)
  2250. local partMesh = Instance.new("SpecialMesh",expart)
  2251. partMesh.MeshType = "Sphere"
  2252. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2253. partMesh2.MeshType = "Sphere"
  2254. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2255. partMesh.Scale = vt(rad,rad,rad)
  2256. expart.Size = vt(1,1,1)
  2257. expart.Transparency = 0
  2258. expart.Anchored = true
  2259. expart.Material = "Neon"
  2260. expart.BrickColor = bc("White")
  2261. expart.CFrame = par.CFrame
  2262. partMesh2.Scale = vt(rad,rad,rad)
  2263. expart2.Size = vt(1.15,1.15,1.15)
  2264. expart2.Transparency = 0.5
  2265. expart2.Anchored = true
  2266. expart2.Material = "Neon"
  2267. expart2.BrickColor = par.BrickColor
  2268. expart2.CFrame = par.CFrame
  2269. expart.CanCollide = false
  2270. expart2.CanCollide = false
  2271. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2272. local value = 1*rad/6.5
  2273. for i = 0, 75 do
  2274. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2275. expart.CFrame = expart.CFrame
  2276. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2277. expart2.CFrame = expart.CFrame
  2278. value = value - 0.035*rad/5
  2279. if value < 0 then
  2280. value = 0
  2281. expart.Transparency = expart.Transparency + 0.05
  2282. expart2.Transparency = expart2.Transparency + 0.05
  2283. end
  2284. swait()
  2285. end
  2286. game:GetService("Debris"):AddItem(expart, 1)
  2287. game:GetService("Debris"):AddItem(expart2, 1)
  2288. end
  2289.  
  2290. function AreaDanger(rad,par,mindam,maxdam)
  2291. local expart = Instance.new("Part",char)
  2292. local partMesh = Instance.new("SpecialMesh",expart)
  2293. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2294. partMesh.MeshType = "Sphere"
  2295. partMesh.Scale = vt(rad,rad,rad)
  2296. expart.Size = vt(1,1,1)
  2297. expart.Transparency = 0.5
  2298. expart.Anchored = true
  2299. expart.Material = "Neon"
  2300. expart.CanCollide = false
  2301. expart.BrickColor = par.BrickColor
  2302. expart.CFrame = par.CFrame
  2303. local value = 1*rad/5
  2304. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2305. for i = 0, 14 do
  2306. wait()
  2307. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2308. expart.CFrame = expart.CFrame
  2309. value = value - 0.035*rad
  2310. if value < 0 then
  2311. value = 0
  2312. end
  2313. end
  2314. wait(0.25)
  2315. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2316. wait(0.5)
  2317. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2318. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2319. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2320. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2321. for i = 0, 14 do
  2322. wait()
  2323. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2324. expart.CFrame = expart.CFrame
  2325. value = value - 0.035*rad/2
  2326. end
  2327. expart.Transparency = 1
  2328. game:GetService("Debris"):AddItem(expart, 5)
  2329. end
  2330.  
  2331. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2332. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2333. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2334. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2335. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2336. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2337. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2338. for i = 0, 24 do
  2339. 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))
  2340. end
  2341. for i = 0, 24 do
  2342. local expart = Instance.new("Part",char)
  2343. expart.Transparency = 1
  2344. expart.Anchored = true
  2345. expart.CanCollide = false
  2346. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2347. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2348. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2349. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2350. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2351. for i = 0, 9 do
  2352. 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))
  2353. end
  2354. game:GetService("Debris"):AddItem(expart, 2)
  2355. wait(0.1)
  2356. end
  2357. end
  2358.  
  2359. function EXterPlosion(par)
  2360. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2361. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2362. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2363. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2364. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2365. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2366. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2367. for i = 0, 24 do
  2368. 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))
  2369. end
  2370. for i = 0, 24 do
  2371. 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))
  2372. end
  2373. end
  2374. ----
  2375.  
  2376.  
  2377. function ring(type,pos,scale,value)
  2378. local type = type
  2379. local rng = Instance.new("Part", char)
  2380. rng.Anchored = true
  2381. rng.BrickColor = origcolor
  2382. rng.CanCollide = false
  2383. rng.FormFactor = 3
  2384. rng.Name = "Ring"
  2385. rng.Size = Vector3.new(1, 1, 1)
  2386. rng.Transparency = 0
  2387. rng.TopSurface = 0
  2388. rng.BottomSurface = 0
  2389. rng.CFrame = pos
  2390. local rngm = Instance.new("SpecialMesh", rng)
  2391. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2392. rngm.Scale = scale
  2393. local scaler2 = 1
  2394. if type == "Add" then
  2395. scaler2 = 1*value
  2396. elseif type == "Divide" then
  2397. scaler2 = 1/value
  2398. end
  2399. coroutine.resume(coroutine.create(function()
  2400. for i = 0,10,0.1 do
  2401. swait()
  2402. if type == "Add" then
  2403. scaler2 = scaler2 - 0.01*value
  2404. elseif type == "Divide" then
  2405. scaler2 = scaler2 - 0.01/value
  2406. end
  2407. rng.Transparency = rng.Transparency + 0.01
  2408. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2409. end
  2410. rng:Destroy()
  2411. end))
  2412. end
  2413.  
  2414.  
  2415. function wave(type,pos,scale,value)
  2416. local type = type
  2417. local rng = Instance.new("Part", char)
  2418. rng.Anchored = true
  2419. rng.BrickColor = origcolor
  2420. rng.CanCollide = false
  2421. rng.FormFactor = 3
  2422. rng.Name = "Ring"
  2423. rng.Size = Vector3.new(1, 1, 1)
  2424. rng.Transparency = 0
  2425. rng.TopSurface = 0
  2426. rng.BottomSurface = 0
  2427. rng.CFrame = pos
  2428. local rngm = Instance.new("SpecialMesh", rng)
  2429. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2430. rngm.Scale = scale
  2431. local scaler2 = 1
  2432. if type == "Add" then
  2433. scaler2 = 1*value
  2434. elseif type == "Divide" then
  2435. scaler2 = 1/value
  2436. end
  2437. coroutine.resume(coroutine.create(function()
  2438. for i = 0,10,0.1 do
  2439. swait()
  2440. if type == "Add" then
  2441. scaler2 = scaler2 - 0.01*value
  2442. elseif type == "Divide" then
  2443. scaler2 = scaler2 - 0.01/value
  2444. end
  2445. rng.Transparency = rng.Transparency + 0.01
  2446. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2447. end
  2448. rng:Destroy()
  2449. end))
  2450. end
  2451.  
  2452. function wind(type,pos,scale,value,speed)
  2453. local type = type
  2454. local rng = Instance.new("Part", char)
  2455. rng.Anchored = true
  2456. rng.BrickColor = origcolor
  2457. rng.CanCollide = false
  2458. rng.FormFactor = 3
  2459. rng.Name = "Ring"
  2460. rng.Size = Vector3.new(1, 1, 1)
  2461. rng.Transparency = 0
  2462. rng.TopSurface = 0
  2463. rng.BottomSurface = 0
  2464. rng.CFrame = pos
  2465. local rngm = Instance.new("SpecialMesh", rng)
  2466. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2467. rngm.Scale = scale
  2468. local scaler2 = 1
  2469. if type == "Add" then
  2470. scaler2 = 1*value
  2471. elseif type == "Divide" then
  2472. scaler2 = 1/value
  2473. end
  2474. coroutine.resume(coroutine.create(function()
  2475. for i = 0,10,0.1 do
  2476. swait()
  2477. if type == "Add" then
  2478. scaler2 = scaler2 - 0.01*value
  2479. elseif type == "Divide" then
  2480. scaler2 = scaler2 - 0.01/value
  2481. end
  2482. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2483. rng.Transparency = rng.Transparency + 0.01
  2484. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2485. end
  2486. rng:Destroy()
  2487. end))
  2488. end
  2489.  
  2490. function groundwind(type,pos,scale,value,speed)
  2491. local type = type
  2492. local rng = Instance.new("Part", char)
  2493. rng.Anchored = true
  2494. rng.BrickColor = origcolor
  2495. rng.CanCollide = false
  2496. rng.FormFactor = 3
  2497. rng.Name = "Ring"
  2498. rng.Size = Vector3.new(1, 1, 1)
  2499. rng.Transparency = 0
  2500. rng.TopSurface = 0
  2501. rng.BottomSurface = 0
  2502. rng.CFrame = pos
  2503. local rngm = Instance.new("SpecialMesh", rng)
  2504. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2505. rngm.Scale = scale
  2506. local scaler2 = 1
  2507. if type == "Add" then
  2508. scaler2 = 1*value
  2509. elseif type == "Divide" then
  2510. scaler2 = 1/value
  2511. end
  2512. coroutine.resume(coroutine.create(function()
  2513. for i = 0,10,0.1 do
  2514. swait()
  2515. if type == "Add" then
  2516. scaler2 = scaler2 - 0.01*value
  2517. elseif type == "Divide" then
  2518. scaler2 = scaler2 - 0.01/value
  2519. end
  2520. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2521. rng.Transparency = rng.Transparency + 0.01
  2522. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2523. end
  2524. rng:Destroy()
  2525. end))
  2526. end
  2527.  
  2528. function CameraManager()
  2529. if TwoD and not CamInterrupt then
  2530. if Humanoid.Health > 0 then
  2531. Camera.CameraSubject = Humanoid
  2532. Camera.CameraType = "Scriptable"
  2533. Humanoid.AutoRotate = false
  2534. if Booleans.GyroUse then
  2535. Directer.MaxTorque = Vec3(0, huge, 0)
  2536. else
  2537. Directer.MaxTorque = Vec3(0, 0, 0)
  2538. end
  2539. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2540. if Booleans.CamFollow then
  2541. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2542. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2543. else
  2544. CPart.Position = RootPart.Position
  2545. end
  2546. else
  2547. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2548. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2549. end
  2550. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2551. else
  2552. Camera.CameraSubject = Humanoid
  2553. Camera.CameraType = "Custom"
  2554. Controller.Disabled = false
  2555. end
  2556. end
  2557. end
  2558.  
  2559. function sphere(bonuspeed,type,pos,scale,value,color)
  2560. local type = type
  2561. local rng = Instance.new("Part", char)
  2562. rng.Anchored = true
  2563. rng.BrickColor = color
  2564. rng.CanCollide = false
  2565. rng.FormFactor = 3
  2566. rng.Name = "Ring"
  2567. rng.Material = "Neon"
  2568. rng.Size = Vector3.new(1, 1, 1)
  2569. rng.Transparency = 0
  2570. rng.TopSurface = 0
  2571. rng.BottomSurface = 0
  2572. rng.CFrame = pos
  2573. local rngm = Instance.new("SpecialMesh", rng)
  2574. rngm.MeshType = "Sphere"
  2575. rngm.Scale = scale
  2576. if rainbowmode == true then
  2577. rng.Color = Color3.new(r/255,g/255,b/255)
  2578. end
  2579. local scaler2 = 1
  2580. if type == "Add" then
  2581. scaler2 = 1*value
  2582. elseif type == "Divide" then
  2583. scaler2 = 1/value
  2584. end
  2585. coroutine.resume(coroutine.create(function()
  2586. for i = 0,10/bonuspeed,0.1 do
  2587. swait()
  2588. if rainbowmode == true then
  2589. rng.Color = Color3.new(r/255,g/255,b/255)
  2590. end
  2591. if type == "Add" then
  2592. scaler2 = scaler2 - 0.01*value/bonuspeed
  2593. elseif type == "Divide" then
  2594. scaler2 = scaler2 - 0.01/value*bonuspeed
  2595. end
  2596. if chaosmode == true then
  2597. rng.BrickColor = BrickColor.random()
  2598. end
  2599. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2600. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2601. end
  2602. rng:Destroy()
  2603. end))
  2604. end
  2605.  
  2606. function spherew(bonuspeed,type,pos,scale,value,color)
  2607. local type = type
  2608. local rng = Instance.new("Part", workspace)
  2609. rng.Anchored = true
  2610. rng.BrickColor = color
  2611. rng.CanCollide = false
  2612. rng.FormFactor = 3
  2613. rng.Name = "Ring"
  2614. rng.Material = "Neon"
  2615. rng.Size = Vector3.new(1, 1, 1)
  2616. rng.Transparency = 0
  2617. rng.TopSurface = 0
  2618. rng.BottomSurface = 0
  2619. rng.CFrame = pos
  2620. local rngm = Instance.new("SpecialMesh", rng)
  2621. rngm.MeshType = "Sphere"
  2622. rngm.Scale = scale
  2623. if rainbowmode == true then
  2624. rng.Color = Color3.new(r/255,g/255,b/255)
  2625. end
  2626. local scaler2 = 1
  2627. if type == "Add" then
  2628. scaler2 = 1*value
  2629. elseif type == "Divide" then
  2630. scaler2 = 1/value
  2631. end
  2632. coroutine.resume(coroutine.create(function()
  2633. for i = 0,10/bonuspeed,0.1 do
  2634. swait()
  2635. if rainbowmode == true then
  2636. rng.Color = Color3.new(r/255,g/255,b/255)
  2637. end
  2638. if type == "Add" then
  2639. scaler2 = scaler2 - 0.01*value/bonuspeed
  2640. elseif type == "Divide" then
  2641. scaler2 = scaler2 - 0.01/value*bonuspeed
  2642. end
  2643. if chaosmode == true then
  2644. rng.BrickColor = BrickColor.random()
  2645. end
  2646. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2647. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2648. end
  2649. rng:Destroy()
  2650. end))
  2651. end
  2652.  
  2653. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2654. local type = type
  2655. local rng = Instance.new("Part", char)
  2656. rng.Anchored = true
  2657. rng.BrickColor = color
  2658. rng.CanCollide = false
  2659. rng.FormFactor = 3
  2660. rng.Name = "Ring"
  2661. rng.Material = "Neon"
  2662. rng.Size = Vector3.new(1, 1, 1)
  2663. rng.Transparency = 0
  2664. rng.TopSurface = 0
  2665. rng.BottomSurface = 0
  2666. rng.CFrame = pos
  2667. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2668. local rngm = Instance.new("SpecialMesh", rng)
  2669. rngm.MeshType = "Brick"
  2670. rngm.Scale = vt(x1,y1,z1)
  2671. if rainbowmode == true then
  2672. rng.Color = Color3.new(r/255,g/255,b/255)
  2673. end
  2674. local scaler2 = 1
  2675. local speeder = FastSpeed/10
  2676. if type == "Add" then
  2677. scaler2 = 1*value
  2678. elseif type == "Divide" then
  2679. scaler2 = 1/value
  2680. end
  2681. coroutine.resume(coroutine.create(function()
  2682. for i = 0,10/bonuspeed,0.1 do
  2683. swait()
  2684. if rainbowmode == true then
  2685. rng.Color = Color3.new(r/255,g/255,b/255)
  2686. end
  2687. if type == "Add" then
  2688. scaler2 = scaler2 - 0.01*value/bonuspeed
  2689. elseif type == "Divide" then
  2690. scaler2 = scaler2 - 0.01/value*bonuspeed
  2691. end
  2692. if chaosmode == true then
  2693. rng.BrickColor = BrickColor.random()
  2694. end
  2695. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2696. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2697. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2698. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2699. end
  2700. rng:Destroy()
  2701. end))
  2702. end
  2703.  
  2704. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2705. local type = type
  2706. local rng = Instance.new("Part", char)
  2707. rng.Anchored = true
  2708. rng.BrickColor = color
  2709. rng.CanCollide = false
  2710. rng.FormFactor = 3
  2711. rng.Name = "Ring"
  2712. rng.Material = "Neon"
  2713. rng.Size = Vector3.new(1, 1, 1)
  2714. rng.Transparency = 0
  2715. rng.TopSurface = 0
  2716. rng.BottomSurface = 0
  2717. rng.CFrame = pos
  2718. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2719. local rngm = Instance.new("SpecialMesh", rng)
  2720. rngm.MeshType = "Brick"
  2721. rngm.Scale = vt(x1,y1,z1)
  2722. if rainbowmode == true then
  2723. rng.Color = Color3.new(r/255,g/255,b/255)
  2724. end
  2725. local scaler2 = 0
  2726. local speeder = FastSpeed/10
  2727. if type == "Add" then
  2728. scaler2 = 1*value
  2729. elseif type == "Divide" then
  2730. scaler2 = 1/value
  2731. end
  2732. coroutine.resume(coroutine.create(function()
  2733. for i = 0,10/bonuspeed,0.1 do
  2734. swait()
  2735. if rainbowmode == true then
  2736. rng.Color = Color3.new(r/255,g/255,b/255)
  2737. end
  2738. if type == "Add" then
  2739. scaler2 = scaler2 - 0.01*value/bonuspeed
  2740. elseif type == "Divide" then
  2741. scaler2 = scaler2 - 0.01/value*bonuspeed
  2742. end
  2743. if chaosmode == true then
  2744. rng.BrickColor = BrickColor.random()
  2745. end
  2746. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2747. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2748. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2749. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2750. end
  2751. rng:Destroy()
  2752. end))
  2753. end
  2754.  
  2755. function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2756. local type = type
  2757. local rng = Instance.new("Part", workspace)
  2758. rng.Anchored = true
  2759. rng.BrickColor = color
  2760. rng.CanCollide = false
  2761. rng.FormFactor = 3
  2762. rng.Name = "Ring"
  2763. rng.Material = "Neon"
  2764. rng.Size = Vector3.new(1, 1, 1)
  2765. rng.Transparency = 0
  2766. rng.TopSurface = 0
  2767. rng.BottomSurface = 0
  2768. rng.CFrame = pos
  2769. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2770. local rngm = Instance.new("SpecialMesh", rng)
  2771. rngm.MeshType = "Sphere"
  2772. rngm.Scale = vt(x1,y1,z1)
  2773. if rainbowmode == true then
  2774. rng.Color = Color3.new(r/255,g/255,b/255)
  2775. end
  2776. local scaler2 = 1
  2777. local speeder = FastSpeed
  2778. if type == "Add" then
  2779. scaler2 = 1*value
  2780. elseif type == "Divide" then
  2781. scaler2 = 1/value
  2782. end
  2783. coroutine.resume(coroutine.create(function()
  2784. for i = 0,10/bonuspeed,0.1 do
  2785. swait()
  2786. if rainbowmode == true then
  2787. rng.Color = Color3.new(r/255,g/255,b/255)
  2788. end
  2789. if type == "Add" then
  2790. scaler2 = scaler2 - 0.01*value/bonuspeed
  2791. elseif type == "Divide" then
  2792. scaler2 = scaler2 - 0.01/value*bonuspeed
  2793. end
  2794. if chaosmode == true then
  2795. rng.BrickColor = BrickColor.random()
  2796. end
  2797. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2798. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2799. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2800. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2801. end
  2802. rng:Destroy()
  2803. end))
  2804. end
  2805. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2806. local type = type
  2807. local rng = Instance.new("Part", char)
  2808. rng.Anchored = true
  2809. rng.BrickColor = color
  2810. rng.CanCollide = false
  2811. rng.FormFactor = 3
  2812. rng.Name = "Ring"
  2813. rng.Material = "Neon"
  2814. rng.Size = Vector3.new(1, 1, 1)
  2815. rng.Transparency = 0
  2816. rng.TopSurface = 0
  2817. rng.BottomSurface = 0
  2818. rng.CFrame = pos
  2819. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2820. local rngm = Instance.new("SpecialMesh", rng)
  2821. rngm.MeshType = "Sphere"
  2822. rngm.Scale = vt(x1,y1,z1)
  2823. if rainbowmode == true then
  2824. rng.Color = Color3.new(r/255,g/255,b/255)
  2825. end
  2826. local scaler2 = 1
  2827. local speeder = FastSpeed
  2828. if type == "Add" then
  2829. scaler2 = 1*value
  2830. elseif type == "Divide" then
  2831. scaler2 = 1/value
  2832. end
  2833. coroutine.resume(coroutine.create(function()
  2834. for i = 0,10/bonuspeed,0.1 do
  2835. swait()
  2836. if rainbowmode == true then
  2837. rng.Color = Color3.new(r/255,g/255,b/255)
  2838. end
  2839. if type == "Add" then
  2840. scaler2 = scaler2 - 0.01*value/bonuspeed
  2841. elseif type == "Divide" then
  2842. scaler2 = scaler2 - 0.01/value*bonuspeed
  2843. end
  2844. if chaosmode == true then
  2845. rng.BrickColor = BrickColor.random()
  2846. end
  2847. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2848. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2849. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2850. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2851. end
  2852. rng:Destroy()
  2853. end))
  2854. end
  2855.  
  2856.  
  2857. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2858. local type = type
  2859. local rng = Instance.new("Part", char)
  2860. rng.Anchored = true
  2861. rng.BrickColor = color
  2862. rng.CanCollide = false
  2863. rng.FormFactor = 3
  2864. rng.Name = "Ring"
  2865. rng.Material = "Neon"
  2866. rng.Size = Vector3.new(1, 1, 1)
  2867. rng.Transparency = 1
  2868. rng.TopSurface = 0
  2869. rng.BottomSurface = 0
  2870. rng.CFrame = pos
  2871. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2872. local rngm = Instance.new("SpecialMesh", rng)
  2873. rngm.MeshType = "Sphere"
  2874. rngm.Scale = vt(x1,y1,z1)
  2875. if rainbowmode == true then
  2876. rng.Color = Color3.new(r/255,g/255,b/255)
  2877. end
  2878. local scaler2 = 1
  2879. local speeder = FastSpeed
  2880. if type == "Add" then
  2881. scaler2 = 1*value
  2882. elseif type == "Divide" then
  2883. scaler2 = 1/value
  2884. end
  2885. coroutine.resume(coroutine.create(function()
  2886. for i = 0,10/bonuspeed,0.1 do
  2887. swait()
  2888. if rainbowmode == true then
  2889. rng.Color = Color3.new(r/255,g/255,b/255)
  2890. end
  2891. if type == "Add" then
  2892. scaler2 = scaler2 - 0.01*value/bonuspeed
  2893. elseif type == "Divide" then
  2894. scaler2 = scaler2 - 0.01/value*bonuspeed
  2895. end
  2896. if chaosmode == true then
  2897. rng.BrickColor = BrickColor.random()
  2898. end
  2899. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2900. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2901. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2902. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2903. end
  2904. rng:Destroy()
  2905. end))
  2906. end
  2907.  
  2908. function dmg(dude)
  2909. if dude.Name ~= Character then
  2910. local bgf = Instance.new("BodyGyro",dude.Head)
  2911. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2912. local val = Instance.new("BoolValue",dude)
  2913. val.Name = "IsHit"
  2914. local ds = coroutine.wrap(function()
  2915. dude:WaitForChild("Head"):BreakJoints()
  2916. wait(0.5)
  2917. targetted = nil
  2918. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  2919. coroutine.resume(coroutine.create(function()
  2920. for i, v in pairs(dude:GetChildren()) do
  2921. if v:IsA("Accessory") then
  2922. v:Destroy()
  2923. end
  2924. if v:IsA("Humanoid") then
  2925. v:Destroy()
  2926. end
  2927. if v:IsA("CharacterMesh") then
  2928. v:Destroy()
  2929. end
  2930. if v:IsA("Model") then
  2931. v:Destroy()
  2932. end
  2933. if v:IsA("Part") or v:IsA("MeshPart") then
  2934. for x, o in pairs(v:GetChildren()) do
  2935. if o:IsA("Decal") then
  2936. o:Destroy()
  2937. end
  2938. end
  2939. coroutine.resume(coroutine.create(function()
  2940. v.Material = "Neon"
  2941. v.CanCollide = false
  2942. local bld = Instance.new("ParticleEmitter",v)
  2943. bld.LightEmission = 1
  2944. bld.Texture = "rbxassetid://284205403"
  2945. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  2946. bld.Rate = 50
  2947. bld.Lifetime = NumberRange.new(1)
  2948. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  2949. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2950. bld.Speed = NumberRange.new(0,0)
  2951. bld.VelocitySpread = 50000
  2952. bld.Rotation = NumberRange.new(-500,500)
  2953. bld.RotSpeed = NumberRange.new(-500,500)
  2954. local sbs = Instance.new("BodyPosition", v)
  2955. sbs.P = 3000
  2956. sbs.D = 1000
  2957. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2958. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2959. v.Color = Color3.new(1,1,1)
  2960. coroutine.resume(coroutine.create(function()
  2961. for i = 0, 49 do
  2962. swait(1)
  2963. v.Transparency = v.Transparency + 0.02
  2964. end
  2965. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  2966. bld.Speed = NumberRange.new(1,5)
  2967. bld.Acceleration = vt(0,10,0)
  2968. wait(0.5)
  2969. bld.Enabled = false
  2970. wait(3)
  2971. v:Destroy()
  2972. dude:Destroy()
  2973. end))
  2974. end))
  2975. end
  2976. end
  2977. end))
  2978. end)
  2979. ds()
  2980. end
  2981. end
  2982.  
  2983.  
  2984. function FindNearestHead(Position, Distance, SinglePlayer)
  2985. if SinglePlayer then
  2986. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2987. end
  2988. local List = {}
  2989. for i, v in pairs(workspace:GetChildren()) do
  2990. if v:IsA("Model") then
  2991. if v:findFirstChild("Head") then
  2992. if v ~= Character then
  2993. if (v.Head.Position - Position).magnitude <= Distance then
  2994. table.insert(List, v)
  2995. end
  2996. end
  2997. end
  2998. end
  2999. end
  3000. return List
  3001. end
  3002.  
  3003. function FaceMouse()
  3004. Cam = workspace.CurrentCamera
  3005. return {
  3006. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3007. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3008. }
  3009. end
  3010.  
  3011. function FaceMouse2()
  3012. Cam = workspace.CurrentCamera
  3013. return {
  3014. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3015. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3016. }
  3017. end
  3018.  
  3019. local ModeOfGlitch = 1
  3020. -- Functions are ready.
  3021. local storehumanoidWS = 16
  3022.  
  3023. function Blink()
  3024. for i = 0, 14 do
  3025. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3026. end
  3027. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3028. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3029. CameraEnshaking(2,10)
  3030. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3031. if v:FindFirstChild('Head') then
  3032. end
  3033. end
  3034. for i = 0, 14 do
  3035. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3036. end
  3037. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3038. end
  3039.  
  3040. function ExtinctiveHeartbreak()
  3041. local targetted = nil
  3042. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3043. targetted = mouse.Target.Parent
  3044. end
  3045. if targetted ~= nil then
  3046. attack = true
  3047. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3048. for i = 0, 9 do
  3049. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3050. end
  3051. for i = 0, 24 do
  3052. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3053. end
  3054. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3055. local originalpos = root.CFrame
  3056. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  3057. for i = 0, 9 do
  3058. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3059. end
  3060. for i = 0, 24 do
  3061. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3062. end
  3063. hum.WalkSpeed = 0
  3064. targetted.Head.Anchored = true
  3065. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3066. for i = 0,2,0.1 do
  3067. swait()
  3068. 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(0)),.4)
  3069. 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)),.4)
  3070. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  3071. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3072. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  3073. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
  3074. end
  3075. coroutine.resume(coroutine.create(function()
  3076. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3077. bld.LightEmission = 0.1
  3078. bld.Texture = "rbxassetid://284205403"
  3079. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3080. bld.Rate = 500
  3081. bld.Lifetime = NumberRange.new(1)
  3082. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3083. bld.Acceleration = vt(0,-25,0)
  3084. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3085. bld.Speed = NumberRange.new(10,50)
  3086. bld.EmissionDirection = "Front"
  3087. bld.VelocitySpread = 25
  3088. bld.Rotation = NumberRange.new(-500,500)
  3089. bld.RotSpeed = NumberRange.new(-500,500)
  3090. end))
  3091. coroutine.resume(coroutine.create(function()
  3092. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3093. bld.LightEmission = 0.1
  3094. bld.Texture = "rbxassetid://284205403"
  3095. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3096. bld.Rate = 500
  3097. bld.Lifetime = NumberRange.new(1)
  3098. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3099. bld.Acceleration = vt(0,-25,0)
  3100. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3101. bld.Speed = NumberRange.new(10,50)
  3102. bld.EmissionDirection = "Front"
  3103. bld.VelocitySpread = 25
  3104. bld.Rotation = NumberRange.new(-500,500)
  3105. bld.RotSpeed = NumberRange.new(-500,500)
  3106. end))
  3107. CameraEnshaking(5,5)
  3108. game:GetService("Debris"):AddItem(bld,3)
  3109. dmg(targetted)
  3110. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  3111. for i = 0,1,0.1 do
  3112. swait()
  3113. 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(0)),.8)
  3114. 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)),.8)
  3115. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  3116. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3117. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3118. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
  3119. end
  3120. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3121. for i = 0, 9 do
  3122. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3123. end
  3124. for i = 0, 24 do
  3125. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3126. end
  3127. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3128. root.CFrame = originalpos
  3129. for i = 0, 9 do
  3130. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3131. end
  3132. for i = 0, 24 do
  3133. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3134. end
  3135. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3136. bld.Enabled = false
  3137. attack = false
  3138. hum.WalkSpeed = storehumanoidWS
  3139. end
  3140. end
  3141. function MeteorStrike()
  3142. attack = true
  3143. for i = 0, 2, 0.1 do
  3144. swait()
  3145. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3146. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3147. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3148. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3149. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3150. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3151. end
  3152. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  3153. for i=1,20 do
  3154. sphereMKCharge(5,-0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10)
  3155. swait()
  3156. end
  3157. swait(30)
  3158. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3159. for i =1,20 do
  3160. sphereMKw(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0)
  3161. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  3162. end
  3163. for i = 0,2,0.1 do
  3164. swait()
  3165. 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(-30)),.5)
  3166. 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(30)),.5)
  3167. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,30 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
  3168. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  3169. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  3170. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  3171. end
  3172. for i =1,20 do
  3173. sphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3174. end
  3175. text.TextTransparency = 1
  3176. text.TextStrokeTransparency = 1
  3177. tr2.Enabled = false
  3178. tr1.Enabled = false
  3179. tr3.Enabled = false
  3180. tl1.Enabled = false
  3181. tl2.Enabled = false
  3182. tl3.Enabled = false
  3183. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3184. eff = false
  3185. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3186. local invtab = {}
  3187. local function search(targ)
  3188. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3189. table.insert(invtab,targ)
  3190. end
  3191. for i,v in pairs(targ:GetChildren()) do
  3192. search(v)
  3193. end
  3194. end
  3195. search(plr.Character)
  3196. local frm = 0
  3197. local frmcon
  3198. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3199. if frm < 10 then
  3200. for i,v in pairs(invtab) do
  3201. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3202. v.Transparency = v.Transparency + 0.1
  3203. end
  3204. end
  3205. frm = frm + 1
  3206. else
  3207. frmcon:disconnect()
  3208. end
  3209. end)
  3210. swait(200)
  3211. text.TextTransparency = 0
  3212. text.TextStrokeTransparency = 0
  3213. tr2.Enabled = false
  3214. tr1.Enabled = false
  3215. tr3.Enabled = false
  3216. tl1.Enabled = false
  3217. tl2.Enabled = false
  3218. tl3.Enabled = false
  3219. eff = true
  3220. for i =1,20 do
  3221. sphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3222. end
  3223. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3224. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3225. local invtab = {}
  3226. local function search(targ)
  3227. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3228. table.insert(invtab,targ)
  3229. end
  3230. for i,v in pairs(targ:GetChildren()) do
  3231. search(v)
  3232. end
  3233. end
  3234. search(plr.Character)
  3235. local frm = 0
  3236. local frmcon
  3237. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3238. if frm < 10 then
  3239. for i,v in pairs(invtab) do
  3240. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3241. v.Transparency = v.Transparency - 0.1
  3242. end
  3243. end
  3244. frm = frm + 1
  3245. else
  3246. frmcon:disconnect()
  3247. end
  3248. end)
  3249. swait(5)
  3250. for i = 0, 2, 0.1 do
  3251. swait()
  3252. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3253. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3254. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3255. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3256. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3257. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3258. end
  3259. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3260. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  3261. MagniDamage(root, 30, 65,90, 0, "Normal")
  3262. for i =1,20 do
  3263. sphereMK(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3264. end
  3265. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  3266. for i =1,20 do
  3267. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  3268. end
  3269. swait(20)
  3270. attack = false
  3271. tr2.Enabled = true
  3272. tr1.Enabled = true
  3273. tr3.Enabled = true
  3274. tl1.Enabled = true
  3275. tl2.Enabled = true
  3276. tl3.Enabled = true
  3277. end
  3278. function FinalCalam()
  3279. attack = true
  3280. hum.WalkSpeed = 0
  3281. local orb = Instance.new("Part", char)
  3282. orb.Anchored = true
  3283. orb.BrickColor = MAINRUINCOLOR
  3284. orb.CanCollide = false
  3285. orb.FormFactor = 3
  3286. orb.Name = "Ring"
  3287. orb.Material = "Neon"
  3288. orb.Size = Vector3.new(1, 1, 1)
  3289. orb.Transparency = 0
  3290. orb.TopSurface = 0
  3291. orb.BottomSurface = 0
  3292. local orbm = Instance.new("SpecialMesh", orb)
  3293. orbm.MeshType = "Sphere"
  3294. orbm.Name = "SizeMesh"
  3295. orbm.Scale = vt(0,0,0)
  3296. local scaled = 0.1
  3297. local posid = 0
  3298. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3299. for i = 0, 5, 0.1 do
  3300. swait()
  3301. scaled = scaled - 0.001
  3302. posid = posid - scaled
  3303. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3304. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3305. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10)
  3306. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  3307. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 10))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3308. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3309. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3310. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3311. end
  3312. swait(60)
  3313. for i =1,3 do
  3314. swait(30)
  3315. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3316. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3317. end
  3318. swait(30)
  3319. for i = 0, 2, 0.1 do
  3320. swait()
  3321. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3322. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3323. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3324. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3325. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3326. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3327. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3328. end
  3329. swait(60)
  3330. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3331. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3332. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3333. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3334. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3335. if v:FindFirstChild('Head') then
  3336. dmg(v)
  3337. end
  3338. end
  3339. for i = 1,20 do
  3340. sphereMK(1,2.5,"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,50,-0.05,MAINRUINCOLOR,0)
  3341. for i = 0, 10 do
  3342. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,MAINRUINCOLOR,0)
  3343. end
  3344. end
  3345. orb:Remove()
  3346. attack = false
  3347. hum.WalkSpeed = storehumanoidWS
  3348. end
  3349. function PureBomb()
  3350. attack = true
  3351.  
  3352. local orb = Instance.new("Part", char)
  3353. orb.Anchored = true
  3354. orb.BrickColor = BrickColor.new("Toothpaste")
  3355. orb.CanCollide = false
  3356. orb.FormFactor = 3
  3357. orb.Name = "Ring"
  3358. orb.Material = "Neon"
  3359. orb.Size = Vector3.new(1, 1, 1)
  3360. orb.Transparency = 0
  3361. orb.TopSurface = 0
  3362. orb.BottomSurface = 0
  3363. local orbm = Instance.new("SpecialMesh", orb)
  3364. orbm.MeshType = "Sphere"
  3365. orbm.Name = "SizeMesh"
  3366. orbm.Scale = vt(0,0,0)
  3367. local scaled = 0.1
  3368. local posid = 0
  3369. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3370. for i = 0, 5, 0.1 do
  3371. swait()
  3372. scaled = scaled - 0.001
  3373. posid = posid - scaled
  3374. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3375. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3376. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10)
  3377. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0)
  3378. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3379. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3380. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3381. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3382. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3383. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3384. end
  3385. for i = 0, 2, 0.1 do
  3386. swait()
  3387. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3388. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3389. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3390. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3391. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3392. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3393. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3394. end
  3395. coroutine.resume(coroutine.create(function()
  3396. orb.Anchored = false
  3397. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3398. local a = Instance.new("Part",workspace)
  3399. a.Name = "Direction"
  3400. a.Anchored = true
  3401. a.BrickColor = bc("Bright red")
  3402. a.Material = "Neon"
  3403. a.Transparency = 1
  3404. a.CanCollide = false
  3405. local ray = Ray.new(
  3406. orb.CFrame.p, -- origin
  3407. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3408. )
  3409. local ignore = orb
  3410. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3411. a.BottomSurface = 10
  3412. a.TopSurface = 10
  3413. local distance = (orb.CFrame.p - position).magnitude
  3414. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3415. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3416. orb.CFrame = a.CFrame
  3417. a:Destroy()
  3418. local bv = Instance.new("BodyVelocity")
  3419. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3420. bv.velocity = orb.CFrame.lookVector*125
  3421. bv.Parent = orb
  3422. local hitted = false
  3423. game:GetService("Debris"):AddItem(orb, 15)
  3424. wait()
  3425. local hit =orb.Touched:connect(function(hit)
  3426. if hitted == false then
  3427. hitted = true
  3428. CameraEnshaking(10,2.5)
  3429. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3430. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3431. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3432. for i = 0, 49 do
  3433. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  3434. end
  3435. for i = 0, 9 do
  3436. sphereMK(1,2.5,"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,50,-0.05,BrickColor.new("Toothpaste"),0)
  3437. sphereMK(2,5,"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,50,-0.05,BrickColor.new("Toothpaste"),0)
  3438. end
  3439. orb.Anchored = true
  3440. orb.Transparency = 1
  3441. wait(8)
  3442. orb:Destroy()
  3443. end
  3444. end)
  3445. end))
  3446. for i = 0, 1, 0.1 do
  3447. swait()
  3448. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3449. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3450. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3451. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3452. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3453. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3454. end
  3455. attack = false
  3456. end
  3457.  
  3458. function ChaosGroundStrike()
  3459. attack = true
  3460. for i = 0, 2, 0.1 do
  3461. swait()
  3462. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3463. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3464. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3465. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3466. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3467. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3468. end
  3469. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3470. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3471. CameraEnshaking(4,12)
  3472. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3473. if v:FindFirstChild('Head') then
  3474. dmg(v)
  3475. end
  3476. end
  3477. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3478. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3479. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3480. for i = 0, 2, 0.1 do
  3481. swait()
  3482. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3483. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3484. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3485. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3486. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3487. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3488. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3489. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3490. end
  3491. attack = false
  3492. end
  3493.  
  3494. function Starfall()
  3495. attack = true
  3496. hum.WalkSpeed = 0
  3497. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3498. for i = 0, 5, 0.1 do
  3499. swait()
  3500. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3501. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3502. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3503. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3504. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3505. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3506. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3507. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3508. end
  3509. local Overed = false
  3510. CameraEnshaking(2,20)
  3511. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3512. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3513. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3514. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3515. local orb = Instance.new("Part", char)
  3516. orb.Anchored = true
  3517. orb.BrickColor = BrickColor.new("Toothpaste")
  3518. orb.CanCollide = false
  3519. orb.FormFactor = 3
  3520. orb.Name = "Remenant"
  3521. orb.Material = "Neon"
  3522. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3523. orb.Size = Vector3.new(1, 1, 1)
  3524. orb.Transparency = 1
  3525. orb.TopSurface = 0
  3526. orb.BottomSurface = 0
  3527. hum.WalkSpeed = storehumanoidWS
  3528. coroutine.resume(coroutine.create(function()
  3529. for i = 0, 9 do
  3530. swait(10)
  3531. local lb = Instance.new("Part")
  3532. lb.Color = MAINRUINCOLOR.Color
  3533. lb.CanCollide = false
  3534. lb.Material = "Neon"
  3535. lb.Anchored = true
  3536. lb.TopSurface = 0
  3537. lb.BottomSurface = 0
  3538. lb.Transparency = 0
  3539. lb.Size = vt(1,1,1)
  3540. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3541. lb.Anchored = false
  3542. lb.Parent = char
  3543. local thingery = Instance.new("SpecialMesh",lb)
  3544. thingery.MeshType = "Sphere"
  3545. thingery.Scale = vt(20,20,20)
  3546. game:GetService("Debris"):AddItem(lb, 10)
  3547. local bv = Instance.new("BodyVelocity")
  3548. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3549. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3550. bv.Parent = lb
  3551. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3552. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3553. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3554. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3555. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3556. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3557. local hitted = false
  3558. coroutine.resume(coroutine.create(function()
  3559. while true do
  3560. swait(1)
  3561. if lb.Parent ~= nil and hitted == false then
  3562. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3563. elseif lb.Parent == nil then
  3564. break
  3565. end
  3566. end
  3567. end))
  3568.  
  3569. game:GetService("Debris"):AddItem(a, 0.1)
  3570.  
  3571. coroutine.resume(coroutine.create(function()
  3572. swait(1)
  3573. lb.Touched:connect(function(hit)
  3574. if hitted == false then
  3575. hitted = true
  3576. lb.Transparency = 1
  3577. lb.Anchored = true
  3578. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3579. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3580. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3581. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3582. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3583. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3584. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3585. CameraEnshaking(1,5)
  3586. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3587. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3588. for i = 0, 9 do
  3589. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3590. end
  3591. for i = 0, 49 do
  3592. swait()
  3593. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3594. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3595. end
  3596. end
  3597. end)
  3598. end))
  3599. end
  3600. Overed = true
  3601. orb:Destroy()
  3602. end))
  3603.  
  3604. attack = false
  3605. end
  3606.  
  3607. function StarfallEX()
  3608. attack = true
  3609. hum.WalkSpeed = 0
  3610. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3611. for i = 0, 5, 0.1 do
  3612. swait()
  3613. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3614. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3615. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3616. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3617. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3618. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3619. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3620. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3621. end
  3622. local Overed = false
  3623. CameraEnshaking(2,20)
  3624. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3625. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3626. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3627. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3628. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3629. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3630. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3631. local orb = Instance.new("Part", char)
  3632. orb.Anchored = true
  3633. orb.BrickColor = BrickColor.new("Toothpaste")
  3634. orb.CanCollide = false
  3635. orb.FormFactor = 3
  3636. orb.Name = "Remenant"
  3637. orb.Material = "Neon"
  3638. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3639. orb.Size = Vector3.new(1, 1, 1)
  3640. orb.Transparency = 1
  3641. orb.TopSurface = 0
  3642. orb.BottomSurface = 0
  3643. hum.WalkSpeed = storehumanoidWS
  3644. coroutine.resume(coroutine.create(function()
  3645. for i = 0, 9 do
  3646. swait(10)
  3647. local lb = Instance.new("Part")
  3648. lb.Color = MAINRUINCOLOR.Color
  3649. lb.CanCollide = false
  3650. lb.Material = "Neon"
  3651. lb.Anchored = true
  3652. lb.TopSurface = 0
  3653. lb.BottomSurface = 0
  3654. lb.Transparency = 0
  3655. lb.Size = vt(1,1,1)
  3656. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3657. lb.Anchored = false
  3658. lb.Parent = char
  3659. local thingery = Instance.new("SpecialMesh",lb)
  3660. thingery.MeshType = "Sphere"
  3661. thingery.Scale = vt(20,20,20)
  3662. game:GetService("Debris"):AddItem(lb, 10)
  3663. local bv = Instance.new("BodyVelocity")
  3664. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3665. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3666. bv.Parent = lb
  3667. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3668. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3669. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3670. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3671. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3672. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3673. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3674. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3675. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3676. local hitted = false
  3677. coroutine.resume(coroutine.create(function()
  3678. while true do
  3679. swait(1)
  3680. if lb.Parent ~= nil and hitted == false then
  3681. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3682. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3683. elseif lb.Parent == nil then
  3684. break
  3685. end
  3686. end
  3687. end))
  3688.  
  3689. game:GetService("Debris"):AddItem(a, 0.1)
  3690.  
  3691. coroutine.resume(coroutine.create(function()
  3692. swait(1)
  3693. lb.Touched:connect(function(hit)
  3694. if hitted == false then
  3695. hitted = true
  3696. lb.Transparency = 1
  3697. lb.Anchored = true
  3698. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3699. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3700. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3701. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3702. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3703. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3704. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3705. CameraEnshaking(10,5)
  3706. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3707. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3708. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3709. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3710. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3711. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3712. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3713. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3714. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3715. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3716. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3717. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3718. for i = 0, 9 do
  3719. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3720. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3721. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3722. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3723. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3724. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3725. end
  3726. for i = 0, 49 do
  3727. swait()
  3728. MagniDamage(lb, 30, 30, 60, 0, "Normal")
  3729. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3730. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3731. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3732. end
  3733. end
  3734. end)
  3735. end))
  3736. end
  3737. Overed = true
  3738. orb:Destroy()
  3739. end))
  3740.  
  3741. attack = false
  3742. end
  3743.  
  3744. function StarDivision()
  3745. attack = true
  3746. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  3747. for i = 0, 2, 0.1 do
  3748. swait()
  3749. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3750. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6)
  3751. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.6)
  3752. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90)),.6)
  3753. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  3754. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  3755. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  3756. end
  3757. local orb = Instance.new("Part", char)
  3758. orb.BrickColor = MAINRUINCOLOR
  3759. orb.CanCollide = false
  3760. orb.FormFactor = 3
  3761. orb.Name = "Ring"
  3762. orb.Material = "Neon"
  3763. orb.Size = Vector3.new(1, 1, 1)
  3764. orb.Transparency = 0
  3765. orb.TopSurface = 0
  3766. orb.BottomSurface = 0
  3767. local orbm = Instance.new("SpecialMesh", orb)
  3768. orbm.MeshType = "Sphere"
  3769. orbm.Name = "SizeMesh"
  3770. orbm.Scale = vt(2,2,2)
  3771. local a = Instance.new("Part",workspace)
  3772. a.Name = "Direction"
  3773. a.Anchored = true
  3774. a.BrickColor = bc("Bright red")
  3775. a.Material = "Neon"
  3776. a.Transparency = 1
  3777. a.CanCollide = false
  3778. local ray = Ray.new(
  3779. sorb.CFrame.p, -- origin
  3780. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3781. )
  3782. local ignore = sorb
  3783. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3784. a.BottomSurface = 10
  3785. a.TopSurface = 10
  3786. local distance = (sorb.CFrame.p - position).magnitude
  3787. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3788. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3789. orb.CFrame = a.CFrame
  3790. a:Destroy()
  3791. local bv = Instance.new("BodyVelocity")
  3792. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3793. bv.velocity = orb.CFrame.lookVector*100
  3794. bv.Parent = orb
  3795. local hitted = false
  3796. game:GetService("Debris"):AddItem(orb, 10)
  3797. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  3798. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  3799. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  3800. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  3801. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  3802. coroutine.resume(coroutine.create(function()
  3803. while true do
  3804. swait(1)
  3805. if orb.Parent ~= nil and hitted == false then
  3806. PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2)
  3807. elseif orb.Parent == nil then
  3808. break
  3809. end
  3810. end
  3811. end))
  3812. coroutine.resume(coroutine.create(function()
  3813. swait(1)
  3814. orb.Touched:connect(function(hit)
  3815. if hitted == false then
  3816. hitted = true
  3817. game:GetService("Debris"):AddItem(orb, 5)
  3818. orb.Transparency = 1
  3819. orb.Anchored = true
  3820. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3821. elocacenter.Anchored = true
  3822. elocacenter.CFrame = orb.CFrame
  3823. elocacenter.Orientation = vt(0,0,0)
  3824. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3825. eloca1.Anchored = true
  3826. eloca1.CFrame = elocacenter.CFrame
  3827. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3828. eloca2.Anchored = true
  3829. eloca2.CFrame = elocacenter.CFrame
  3830. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3831. eloca3.Anchored = true
  3832. eloca3.CFrame = elocacenter.CFrame
  3833. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3834. eloca4.Anchored = true
  3835. eloca4.CFrame = elocacenter.CFrame
  3836. local lookavec = 0
  3837. local speeds = 0
  3838. CameraEnshaking(1,1)
  3839. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  3840. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3841. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3842. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3843. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3844. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3845. for i = 0, 99 do
  3846. swait()
  3847. lookavec = lookavec + 1
  3848. speeds = speeds + 0.1
  3849. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3850. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3851. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3852.  
  3853. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3854. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3855.  
  3856. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3857. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3858.  
  3859. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3860. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3861. end
  3862.  
  3863. for i = 0, 149 do
  3864. swait()
  3865. speeds = speeds + 0.1
  3866. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3867. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3868. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3869.  
  3870. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3871. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3872.  
  3873. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3874. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3875.  
  3876. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3877. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3878. end
  3879. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  3880. if v:FindFirstChild('Head') then
  3881. dmg(v)
  3882. end
  3883. end
  3884. CameraEnshaking(7,30)
  3885. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  3886. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  3887. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  3888. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  3889. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  3890. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  3891. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  3892. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3893. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3894. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3895. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3896. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3897. for i = 0, 24 do
  3898. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  3899. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  3900. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  3901. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  3902. end
  3903. coroutine.resume(coroutine.create(function()
  3904. for i = 0, 499 do
  3905. swait(1)
  3906. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  3907. PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5)
  3908. end
  3909. elocacenter:Destroy()
  3910. eloca1:Destroy()
  3911. eloca2:Destroy()
  3912. eloca3:Destroy()
  3913. eloca4:Destroy()
  3914. end))
  3915. end
  3916. end)
  3917. end))
  3918. attack = false
  3919. end
  3920.  
  3921.  
  3922. function UniversalCollapse()
  3923. attack = true
  3924. local speedearn = 0
  3925. hum.WalkSpeed = 0
  3926. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  3927. for i = 0, 10, 0.1 do
  3928. swait()
  3929. speedearn = speedearn + 0.1
  3930. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3931. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3932. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3933. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3934. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3935. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  3936. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  3937. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3938. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  3939. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  3940. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  3941. end
  3942. CameraEnshaking(5,45)
  3943. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  3944. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  3945. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3946. if v:FindFirstChild('Head') then
  3947. dmg(v)
  3948. end
  3949. end
  3950. hum.WalkSpeed = storehumanoidWS
  3951. attack = false
  3952. end
  3953. function ChaosBegone()
  3954. attack = true
  3955. local speedearn = 0
  3956. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  3957. for i = 0, 10, 0.1 do
  3958. swait()
  3959. speedearn = speedearn + 0.1
  3960. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3961. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3962. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3963. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3964. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3965. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3966. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3967. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3968. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3969. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3970. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3971. end
  3972. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  3973. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  3974. CameraEnshaking(5,25)
  3975. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3976. if v:FindFirstChild('Head') then
  3977. dmg(v)
  3978. end
  3979. end
  3980. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  3981. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  3982. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  3983. for i = 0, 3, 0.1 do
  3984. swait()
  3985. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3986. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3987. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3988. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3989. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3990. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3991. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3992. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3993. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3994. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3995. end
  3996. attack = false
  3997. end
  3998.  
  3999. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4000. local orb = Instance.new("Part", char)
  4001. orb.Anchored = true
  4002. orb.BrickColor = color
  4003. orb.CanCollide = false
  4004. orb.FormFactor = 3
  4005. orb.Name = "Ring"
  4006. orb.Material = "Neon"
  4007. orb.Size = Vector3.new(1, 1, 1)
  4008. orb.Transparency = 0
  4009. orb.TopSurface = 0
  4010. orb.BottomSurface = 0
  4011. local orbm = Instance.new("SpecialMesh", orb)
  4012. orbm.MeshType = "Sphere"
  4013. orb.CFrame = positted
  4014. orbm.Name = "SizeMesh"
  4015. orbm.Scale = vt(1,1,1)
  4016. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4017. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4018. --[[for i = 0, 2 do
  4019. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4020. end]]--
  4021. coroutine.resume(coroutine.create(function()
  4022. wait(timer)
  4023. CameraEnshaking(3,ShakePower)
  4024. orb.Transparency = 1
  4025. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4026. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4027. --[[for i = 0, 4 do
  4028. sphereMK(5,0.15*MagniBoost,"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,orb.BrickColor,0)
  4029. end]]--
  4030. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4031. wait(3)
  4032. orb:Destroy()
  4033. end))
  4034. end
  4035.  
  4036. function orb_spawn(positted,timer)
  4037. local randomcol = math.random(1,2)
  4038. local orb = Instance.new("Part", char)
  4039. orb.Anchored = true
  4040. if randomcol == 1 then
  4041. orb.BrickColor = BrickColor.new("White")
  4042. elseif randomcol == 2 then
  4043. orb.BrickColor = BrickColor.new("Really black")
  4044. end
  4045. orb.CanCollide = false
  4046. orb.FormFactor = 3
  4047. orb.Name = "Ring"
  4048. orb.Material = "Neon"
  4049. orb.Size = Vector3.new(1, 1, 1)
  4050. orb.Transparency = 0
  4051. orb.TopSurface = 0
  4052. orb.BottomSurface = 0
  4053. local orbm = Instance.new("SpecialMesh", orb)
  4054. orbm.MeshType = "Sphere"
  4055. orb.CFrame = positted
  4056. orbm.Name = "SizeMesh"
  4057. orbm.Scale = vt(1,1,1)
  4058. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4059. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4060. for i = 0, 2 do
  4061. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4062. end
  4063. coroutine.resume(coroutine.create(function()
  4064. wait(timer)
  4065. CameraEnshaking(3,2)
  4066. orb.Transparency = 1
  4067. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4068. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4069. for i = 0, 4 do
  4070. sphereMK(5,0.65,"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,orb.BrickColor,0)
  4071. end
  4072. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4073. wait(3)
  4074. orb:Destroy()
  4075. end))
  4076. end
  4077.  
  4078. function scattercorrupt()
  4079. attack = true
  4080. local rot = 0
  4081. local randomrotations = math.random(1,2)
  4082. local lookv = 2.5
  4083. local power = 5
  4084. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4085. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4086. for i = 0, 9 do
  4087. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0)
  4088. end
  4089. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4090. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4091. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4092. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4093. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4094. local hite = Instance.new("Part", char)
  4095. hite.Anchored = true
  4096. hite.CanCollide = false
  4097. hite.FormFactor = 3
  4098. hite.Name = "Ring"
  4099. hite.Material = "Neon"
  4100. hite.Size = Vector3.new(1, 1, 1)
  4101. hite.Transparency = 1
  4102. hite.TopSurface = 0
  4103. hite.BottomSurface = 0
  4104. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4105. local rem = Instance.new("Part", char)
  4106. rem.Anchored = true
  4107. rem.CanCollide = false
  4108. rem.FormFactor = 3
  4109. rem.Name = "Ring"
  4110. rem.Material = "Neon"
  4111. rem.Size = Vector3.new(1, 1, 1)
  4112. rem.Transparency = 1
  4113. rem.TopSurface = 0
  4114. rem.BottomSurface = 0
  4115. rem.CFrame = hite.CFrame
  4116. local rem2 = rem:Clone()
  4117. rem2.Parent = char
  4118. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4119. local rem3 = rem:Clone()
  4120. rem3.Parent = char
  4121. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4122. local rem4 = rem:Clone()
  4123. rem4.Parent = char
  4124. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4125. hite:Destroy()
  4126. coroutine.resume(coroutine.create(function()
  4127. for i = 0, 24 do
  4128. swait(1)
  4129. if randomrotations == 1 then
  4130. rot = rot + 1
  4131. elseif randomrotations == 2 then
  4132. rot = rot - 1
  4133. end
  4134. power = power + 0.5
  4135. lookv = lookv + 7.5
  4136. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4137. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4138. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4139. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4140. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4141. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4142. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4143. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4144. end
  4145. end))
  4146. attack = false
  4147. end
  4148. function yinyangi()
  4149. attack = true
  4150. for i = 0, 2, 0.1 do
  4151. swait()
  4152. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  4153. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  4154. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  4155. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4156. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4157. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4158. end
  4159. local bv = Instance.new("BodyVelocity")
  4160. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4161. bv.velocity = root.CFrame.lookVector*175
  4162. bv.Parent = root
  4163. for Rotations = 0, 9 do
  4164. for i = 0, 1, 0.5 do
  4165. swait()
  4166. bv.velocity = root.CFrame.lookVector*175
  4167. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4168. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4169. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5)
  4170. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4171. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4172. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4173. end
  4174. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4175. for i = 0, 1, 0.5 do
  4176. swait()
  4177. bv.velocity = root.CFrame.lookVector*175
  4178. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4179. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4180. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5)
  4181. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4182. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4183. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4184. end
  4185. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4186. for i = 0, 1, 0.5 do
  4187. swait()
  4188. bv.velocity = root.CFrame.lookVector*175
  4189. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4190. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4191. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5)
  4192. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4193. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4194. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4195. end
  4196. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4197. for i = 0, 1, 0.5 do
  4198. swait()
  4199. bv.velocity = root.CFrame.lookVector*175
  4200. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4201. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4202. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5)
  4203. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4204. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4205. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4206. end
  4207. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4208. end
  4209. bv:Destroy()
  4210. attack = false
  4211. end
  4212.  
  4213. function Wip()
  4214. attack = true
  4215.  
  4216. local rngb = Instance.new("Part", char)
  4217. rngb.Anchored = true
  4218. rngb.BrickColor = origcolor
  4219. rngb.CanCollide = false
  4220. rngb.FormFactor = 3
  4221. rngb.Name = "Ring"
  4222. rngb.Material = "Neon"
  4223. rngb.Size = Vector3.new(1, 0.05, 1)
  4224. rngb.Transparency = 1
  4225. rngb.TopSurface = 0
  4226. rngb.BottomSurface = 0
  4227. local rngmb = Instance.new("SpecialMesh", rngb)
  4228. rngmb.MeshType = "Brick"
  4229. rngmb.Name = "SizeMesh"
  4230. rngmb.Scale = vt(0,1,0)
  4231.  
  4232. local orb = rngb:Clone()
  4233. orb.Parent = char
  4234. orb.Transparency = 0
  4235. orb.BrickColor = BrickColor.new("White")
  4236. orb.Size = vt(1,1,1)
  4237. local orbmish = orb.SizeMesh
  4238. orbmish.Scale = vt(0,0,0)
  4239. orbmish.MeshType = "Sphere"
  4240.  
  4241. local orbe = rngb:Clone()
  4242. orbe.Parent = char
  4243. orbe.Transparency = 0.5
  4244. orbe.BrickColor = BrickColor.new("New Yeller")
  4245. orbe.Size = vt(1,1,1)
  4246. local orbmish2 = orbe.SizeMesh
  4247. orbmish2.Scale = vt(0,0,0)
  4248. orbmish2.MeshType = "Sphere"
  4249. orbe.Color = Color3.new(r/255,g/255,b/255)
  4250.  
  4251. rngb:Destroy()
  4252. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4253. local scaled = 1
  4254. for i = 0,5,0.1 do
  4255. swait()
  4256. scaled = scaled - 0.02
  4257. if rainbowmode == true then
  4258. orbe.Color = Color3.new(r/255,g/255,b/255)
  4259. end
  4260. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4261. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4262. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4263. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4264. sphereMKCharge(2.5,-0.5,"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,MAINRUINCOLOR,25)
  4265. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4266. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4267. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4268. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4269. 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)
  4270. 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(-2.5),math.rad(10),math.rad(0)),.3)
  4271. RootPart.CFrame = FaceMouse()[1]
  4272. end]]--
  4273. for i = 0,5,0.1 do
  4274. swait()
  4275. if rainbowmode == true then
  4276. orbe.Color = Color3.new(r/255,g/255,b/255)
  4277. end
  4278. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4279. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4280. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4281. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4282. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4283. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4284. 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)
  4285. 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(-2.5),math.rad(10),math.rad(0)),.3)
  4286. RootPart.CFrame = FaceMouse()[1]
  4287. end
  4288. orbe.Transparency = 1
  4289. orb.Transparency = 1
  4290. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4291. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4292. local a = Instance.new("Part",Character)
  4293. a.Name = "Direction"
  4294. a.Anchored = true
  4295. a.BrickColor = bc("White")
  4296. a.Material = "Neon"
  4297. a.Transparency = 0
  4298. a.Shape = "Cylinder"
  4299. a.CanCollide = false
  4300. local a2 = Instance.new("Part",Character)
  4301. a2.Name = "Direction"
  4302. a2.Anchored = true
  4303. a2.BrickColor = bc("New Yeller")
  4304. a2.Color = Color3.new(r/255,g/255,b/255)
  4305. a2.Material = "Neon"
  4306. a2.Transparency = 0.5
  4307. a2.Shape = "Cylinder"
  4308. a2.CanCollide = false
  4309. local ba = Instance.new("Part",Character)
  4310. ba.Name = "HitDirect"
  4311. ba.Anchored = true
  4312. ba.BrickColor = bc("Cool yellow")
  4313. ba.Material = "Neon"
  4314. ba.Transparency = 1
  4315. ba.CanCollide = false
  4316. local ray = Ray.new(
  4317. orb.CFrame.p, -- origin
  4318. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4319. )
  4320. local ignore = Character
  4321. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4322. a.BottomSurface = 10
  4323. a.TopSurface = 10
  4324. a2.BottomSurface = 10
  4325. a2.TopSurface = 10
  4326. local distance = (orb.CFrame.p - position).magnitude
  4327. a.Size = Vector3.new(distance, 1, 1)
  4328. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4329. a2.Size = Vector3.new(distance, 1, 1)
  4330. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4331. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4332. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4333. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4334. game:GetService("Debris"):AddItem(a, 20)
  4335. game:GetService("Debris"):AddItem(a2, 20)
  4336. game:GetService("Debris"):AddItem(ba, 20)
  4337. local msh = Instance.new("SpecialMesh",a)
  4338. msh.MeshType = "Cylinder"
  4339. msh.Scale = vt(1,5*5,5*5)
  4340. local msh2 = Instance.new("SpecialMesh",a2)
  4341. msh2.MeshType = "Cylinder"
  4342. msh2.Scale = vt(1,6*5,6*5)
  4343.  
  4344. for i = 0,10,0.1 do
  4345. swait()
  4346. CameraEnshaking(1,5)
  4347. a2.Color = Color3.new(r/255,g/255,b/255)
  4348. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4349. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4350. ray = Ray.new(
  4351. orb.CFrame.p, -- origin
  4352. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4353. )
  4354. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4355. distance = (orb.CFrame.p - position).magnitude
  4356. if typrot == 1 then
  4357. rotation = rotation + 2.5
  4358. elseif typrot == 2 then
  4359. rotation = rotation - 2.5
  4360. end
  4361. RootPart.CFrame = FaceMouse()[1]
  4362. a.Size = Vector3.new(distance, 1, 1)
  4363. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4364. a2.Size = Vector3.new(distance, 1, 1)
  4365. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4366. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4367. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4368. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4369. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  4370. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  4371. sphereMK(5,1.5,"Add",ba.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,MAINRUINCOLOR,0)
  4372. sphereMK(5,1.5,"Add",ba.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,MAINRUINCOLOR,0)
  4373. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  4374. end
  4375. a:Destroy()
  4376. a2:Destroy()
  4377. ba:Destroy()
  4378. orb:Destroy()
  4379. orbe:Destroy()
  4380. attack = false
  4381. end
  4382. function HolyBarrier()
  4383. attack = true
  4384. shielding = true
  4385. for i = 0, 2, 0.1 do
  4386. swait()
  4387. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  4388. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  4389. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
  4390. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  4391. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  4392. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  4393. end
  4394. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  4395. stash = Instance.new("Model",workspace)
  4396. local barrier = Instance.new("Part",stash)
  4397. barrier.Anchored = true
  4398. barrier.CanCollide = false
  4399. barrier.Size = Vector3.new(20,20,20)
  4400. barrier.CFrame = root.CFrame
  4401. barrier.Transparency = 0.6
  4402. barrier.BrickColor = MAINRUINCOLOR
  4403. barrier.Material = Enum.Material.Neon
  4404. barrier.Shape = Enum.PartType.Ball
  4405. barrier.CFrame = root.CFrame
  4406. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4407. Torso.Anchored = true
  4408. for i=1,50 do
  4409. local p = Instance.new("Part",stash)
  4410. p.Anchored = true
  4411. p.Transparency = 1
  4412. p.Size = Vector3.new(11,11,11)
  4413. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  4414. end
  4415. repeat
  4416. swait(5)
  4417. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("White"),0)
  4418. until shielding == false
  4419. stash:Remove()
  4420. Torso.Anchored = false
  4421. shielding = false
  4422. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4423. attack = false
  4424. end
  4425. function Judgement()
  4426. attack = true
  4427. judgement = true
  4428. hum.WalkSpeed = 0
  4429. local p = Instance.new("Part",root)
  4430. p.Anchored = true
  4431. p.CanCollide = false
  4432. p.BrickColor = MAINRUINCOLOR
  4433. p.Material = Enum.Material.Neon
  4434. p.Size = Vector3.new(1,1,1)
  4435. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4436. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4437. local m = Instance.new("SpecialMesh",p)
  4438. m.MeshType = "Cylinder"
  4439. m.Scale = Vector3.new(2000,2,2)
  4440. local targ = Instance.new("Part",root)
  4441. targ.Anchored = true
  4442. targ.Transparency = 1
  4443. targ.CanCollide = false
  4444. targ.Size = Vector3.new(1,1,1)
  4445. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4446. local s = Instance.new("Sound",targ)
  4447. s.SoundId = "https://roblox.com/asset/?id=115327352"
  4448. s.Looped = true
  4449. s.Pitch = 1.2
  4450. s.Volume = 3
  4451. spawn(function()
  4452. swait(15)
  4453. s:Play()
  4454. end)
  4455. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  4456. for i = 1,15 do
  4457. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4458. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4459. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4460. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4461. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4462. 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(-20)),.2)
  4463. 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(-2.5),math.rad(10),math.rad(20)),.2)
  4464. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  4465. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0)
  4466. m.Scale = m.Scale+Vector3.new(0,1,1)
  4467. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4468. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4469. swait()
  4470. end
  4471. sphereMK(3, 0.2, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  4472. repeat
  4473. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4474. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0)
  4475. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  4476. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4477. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4478. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  4479. swait()
  4480. until judgement == false
  4481. for i =1,15 do
  4482. m.Scale = m.Scale-Vector3.new(1,1,1)
  4483. p.Transparency = i / 15
  4484. s.Pitch = s.Pitch - 0.4
  4485. swait()
  4486. end
  4487. p:Destroy()
  4488. hum.WalkSpeed = storehumanoidWS
  4489. attack = false
  4490. end
  4491.  
  4492. function UniversalSpark()
  4493. attack = true
  4494.  
  4495. local rngb = Instance.new("Part", char)
  4496. rngb.Anchored = true
  4497. rngb.BrickColor = origcolor
  4498. rngb.CanCollide = false
  4499. rngb.FormFactor = 3
  4500. rngb.Name = "Ring"
  4501. rngb.Material = "Neon"
  4502. rngb.Size = Vector3.new(1, 0.05, 1)
  4503. rngb.Transparency = 1
  4504. rngb.TopSurface = 0
  4505. rngb.BottomSurface = 0
  4506. local rngmb = Instance.new("SpecialMesh", rngb)
  4507. rngmb.MeshType = "Brick"
  4508. rngmb.Name = "SizeMesh"
  4509. rngmb.Scale = vt(0,1,0)
  4510.  
  4511. local orb = rngb:Clone()
  4512. orb.Parent = char
  4513. orb.Transparency = 0
  4514. orb.BrickColor = BrickColor.new("White")
  4515. orb.Size = vt(1,1,1)
  4516. local orbmish = orb.SizeMesh
  4517. orbmish.Scale = vt(0,0,0)
  4518. orbmish.MeshType = "Sphere"
  4519.  
  4520. local orbe = rngb:Clone()
  4521. orbe.Parent = char
  4522. orbe.Transparency = 0.5
  4523. orbe.BrickColor = BrickColor.new("New Yeller")
  4524. orbe.Size = vt(1,1,1)
  4525. local orbmish2 = orbe.SizeMesh
  4526. orbmish2.Scale = vt(0,0,0)
  4527. orbmish2.MeshType = "Sphere"
  4528. orbe.Color = Color3.new(r/255,g/255,b/255)
  4529.  
  4530. rngb:Destroy()
  4531. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4532. local scaled = 1
  4533. for i = 0,5,0.1 do
  4534. swait()
  4535. scaled = scaled - 0.02
  4536. if rainbowmode == true then
  4537. orbe.Color = Color3.new(r/255,g/255,b/255)
  4538. end
  4539. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4540. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4541. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4542. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4543. sphereMKCharge(2.5,-0.5,"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,MAINRUINCOLOR,25)
  4544. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4545. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4546. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4547. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4548. 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)
  4549. 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(-2.5),math.rad(10),math.rad(0)),.3)
  4550. RootPart.CFrame = FaceMouse()[1]
  4551. end]]--
  4552. for i = 0,5,0.1 do
  4553. swait()
  4554. if rainbowmode == true then
  4555. orbe.Color = Color3.new(r/255,g/255,b/255)
  4556. end
  4557. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4558. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4559. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4560. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4561. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4562. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4563. 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)
  4564. 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(-2.5),math.rad(10),math.rad(0)),.3)
  4565. RootPart.CFrame = FaceMouse()[1]
  4566. end
  4567. orbe.Transparency = 1
  4568. orb.Transparency = 1
  4569. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4570. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  4571. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  4572. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4573.  
  4574. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4575. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  4576. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4577. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  4578. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  4579. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  4580. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  4581. local xd= Instance.new("Sound",char)
  4582. xd.SoundId = "rbxassetid://445796828"
  4583. xd.Pitch = 0.75
  4584. xd.Looped = true
  4585. xd.Volume = 1.25
  4586. xd:Play()
  4587. local a = Instance.new("Part",Character)
  4588. a.Name = "Direction"
  4589. a.Anchored = true
  4590. a.BrickColor = bc("Alder")
  4591. a.Color = MAINRUINCOLOR.Color
  4592. a.Material = "Neon"
  4593. a.Transparency = 0.5
  4594. a.Shape = "Cylinder"
  4595. a.CanCollide = false
  4596. local a2 = Instance.new("Part",Character)
  4597. a2.Name = "Direction"
  4598. a2.Anchored = true
  4599. a2.BrickColor = bc("New Yeller")
  4600. a2.Color = MAINRUINCOLOR.Color
  4601. a2.Material = "Neon"
  4602. a2.Transparency = 0.5
  4603. a2.Shape = "Cylinder"
  4604. a2.CanCollide = false
  4605. local ba = Instance.new("Part",Character)
  4606. ba.Name = "HitDirect"
  4607. ba.Anchored = true
  4608. ba.BrickColor = bc("Cool yellow")
  4609. ba.Material = "Neon"
  4610. ba.Transparency = 1
  4611. ba.CanCollide = false
  4612. local ray = Ray.new(
  4613. orb.CFrame.p, -- origin
  4614. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4615. )
  4616. local ignore = Character
  4617. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4618. a.BottomSurface = 10
  4619. a.TopSurface = 10
  4620. a2.BottomSurface = 10
  4621. a2.TopSurface = 10
  4622. local distance = (orb.CFrame.p - position).magnitude
  4623. a.Size = Vector3.new(distance, 1, 1)
  4624. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4625. a2.Size = Vector3.new(distance, 1, 1)
  4626. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4627. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4628. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4629. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4630. game:GetService("Debris"):AddItem(a, 60)
  4631. game:GetService("Debris"):AddItem(a2, 60)
  4632. game:GetService("Debris"):AddItem(ba, 60)
  4633. local outerscale = 0
  4634. local msh = Instance.new("SpecialMesh",a)
  4635. msh.MeshType = "Cylinder"
  4636. msh.Scale = vt(1,0,0)
  4637. local msh2 = Instance.new("SpecialMesh",a2)
  4638. msh2.MeshType = "Cylinder"
  4639. msh2.Scale = vt(1,0,0)
  4640. for i = 0,2,0.1 do
  4641. swait()
  4642. CameraEnshaking(1,1)
  4643. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  4644. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  4645. outerscale = outerscale - 0.015
  4646. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4647. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4648. ray = Ray.new(
  4649. orb.CFrame.p, -- origin
  4650. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4651. )
  4652. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4653. distance = (orb.CFrame.p - position).magnitude
  4654. if typrot == 1 then
  4655. rotation = rotation + 2.5
  4656. elseif typrot == 2 then
  4657. rotation = rotation - 2.5
  4658. end
  4659. RootPart.CFrame = FaceMouse()[1]
  4660. a.Size = Vector3.new(distance, 1, 1)
  4661. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4662. a2.Size = Vector3.new(distance, 1, 1)
  4663. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4664. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4665. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4666. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4667. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4668. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4669. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4670. end
  4671. for z = 0, 2 do
  4672. for i = 0,4,0.1 do
  4673. swait()
  4674. CameraEnshaking(1,1)
  4675. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4676. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4677. outerscale = outerscale + 0.015
  4678. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4679. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4680. ray = Ray.new(
  4681. orb.CFrame.p, -- origin
  4682. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4683. )
  4684. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4685. distance = (orb.CFrame.p - position).magnitude
  4686. if typrot == 1 then
  4687. rotation = rotation + 2.5
  4688. elseif typrot == 2 then
  4689. rotation = rotation - 2.5
  4690. end
  4691. RootPart.CFrame = FaceMouse()[1]
  4692. a.Size = Vector3.new(distance, 1, 1)
  4693. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4694. a2.Size = Vector3.new(distance, 1, 1)
  4695. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4696. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4697. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4698. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4699. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4700. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4701. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4702. end
  4703. for i = 0,4,0.1 do
  4704. swait()
  4705. CameraEnshaking(1,1)
  4706. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4707. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4708. outerscale = outerscale - 0.015
  4709. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4710. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4711. ray = Ray.new(
  4712. orb.CFrame.p, -- origin
  4713. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4714. )
  4715. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4716. distance = (orb.CFrame.p - position).magnitude
  4717. if typrot == 1 then
  4718. rotation = rotation + 2.5
  4719. elseif typrot == 2 then
  4720. rotation = rotation - 2.5
  4721. end
  4722. RootPart.CFrame = FaceMouse()[1]
  4723. a.Size = Vector3.new(distance, 1, 1)
  4724. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4725. a2.Size = Vector3.new(distance, 1, 1)
  4726. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4727. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4728. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4729. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4730. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4731. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4732. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4733. end
  4734. end
  4735. for i = 0,4,0.1 do
  4736. swait()
  4737. CameraEnshaking(1,1)
  4738. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4739. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4740. xd.Volume = xd.Volume - 0.025
  4741. a.Transparency = a.Transparency + 0.025
  4742. a2.Transparency = a2.Transparency + 0.025
  4743. outerscale = outerscale - 0.015
  4744. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4745. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4746. ray = Ray.new(
  4747. orb.CFrame.p, -- origin
  4748. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4749. )
  4750. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4751. distance = (orb.CFrame.p - position).magnitude
  4752. if typrot == 1 then
  4753. rotation = rotation + 2.5
  4754. elseif typrot == 2 then
  4755. rotation = rotation - 2.5
  4756. end
  4757. RootPart.CFrame = FaceMouse()[1]
  4758. a.Size = Vector3.new(distance, 1, 1)
  4759. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4760. a2.Size = Vector3.new(distance, 1, 1)
  4761. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4762. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4763. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4764. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4765. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4766. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4767. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4768. end
  4769. xd:Destroy()
  4770. a:Destroy()
  4771. a2:Destroy()
  4772. ba:Destroy()
  4773. orb:Destroy()
  4774. orbe:Destroy()
  4775. attack = false
  4776. end
  4777.  
  4778.  
  4779. function resetmode()
  4780. rainbowmode = false
  4781. chaosmode = false
  4782. tl1.Enabled = true
  4783. tl2.Enabled = true
  4784. tl3.Enabled = true
  4785. ModeOfGlitch = 1
  4786. storehumanoidWS = 16
  4787. coroutine.resume(coroutine.create(function()
  4788. attack = true
  4789. hum.WalkSpeed = 0
  4790. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  4791. for i = 0,4,0.1 do
  4792. swait()
  4793. sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100)
  4794. 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(30)),.5)
  4795. 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(-30)),.5)
  4796. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.5)
  4797. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.5)
  4798. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
  4799. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
  4800. end
  4801. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  4802. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  4803. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  4804. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  4805. RecolorTextAndRename("Divinity",Color3.new(0,0,0),Color3.new(1,0,0))
  4806. CameraEnshaking(5,2.5)
  4807. MAINRUINCOLOR = BrickColor.new("New yeller")
  4808. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4809. for i = 0, 49 do
  4810. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
  4811. end
  4812. for i = 0,3,0.1 do
  4813. sphereMK(2.5,-1,"Add",root.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,25,-0.025,MAINRUINCOLOR,0)
  4814. end
  4815. for i, v in pairs(mw2:GetChildren()) do
  4816. if v:IsA("Part") then
  4817. v.BrickColor = BrickColor.new("New Yeller")
  4818. v.Material = "Neon"
  4819. end
  4820. end
  4821. for i, v in pairs(mw1:GetChildren()) do
  4822. if v:IsA("Part") then
  4823. v.Transparency = 0
  4824. v.BrickColor = BrickColor.new("New Yeller")
  4825. v.Material = "Neon"
  4826. end
  4827. end
  4828. for i, v in pairs(m:GetChildren()) do
  4829. if v:IsA("Part") then
  4830. v.BrickColor = BrickColor.new("New Yeller")
  4831. v.Material = "Glass"
  4832. end
  4833. end
  4834. for i, v in pairs(m2:GetChildren()) do
  4835. if v:IsA("Part") then
  4836. v.BrickColor = BrickColor.new("Cool Yellow")
  4837. v.Material = "Granite"
  4838. end
  4839. end
  4840. for i, v in pairs(m3:GetChildren()) do
  4841. if v:IsA("Part") then
  4842. v.BrickColor = BrickColor.new("New Yeller")
  4843. v.Material = "Neon"
  4844. end
  4845. end
  4846. for i, v in pairs(extrawingmod1:GetChildren()) do
  4847. if v:IsA("Part") then
  4848. v.Transparency = 1
  4849. v.BrickColor = BrickColor.new("New Yeller")
  4850. v.Material = "Neon"
  4851. end
  4852. end
  4853. for i, v in pairs(extrawingmod2:GetChildren()) do
  4854. if v:IsA("Part") then
  4855. v.Transparency = 1
  4856. v.BrickColor = BrickColor.new("Cool Yellow")
  4857. v.Material = "Neon"
  4858. end
  4859. end
  4860. for i = 0,2,0.1 do
  4861. swait()
  4862. 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(-30)),.5)
  4863. 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(30)),.5)
  4864. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  4865. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  4866. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  4867. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  4868. end
  4869. hum.WalkSpeed = storehumanoidWS
  4870. attack = false
  4871. end))
  4872. newTheme("rbxassetid://925192139",48.6,1,0.3)
  4873. end
  4874.  
  4875. function attackone()
  4876. attack = true
  4877. for i = 0,1,0.1 do
  4878. swait()
  4879. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  4880. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  4881. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4882. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4883. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2)
  4884. 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(10)),.2)
  4885. end
  4886. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  4887.  
  4888. local hitb = Instance.new("Part", char)
  4889. hitb.Anchored = true
  4890. hitb.CanCollide = false
  4891. hitb.FormFactor = 3
  4892. hitb.Name = "Ring"
  4893. hitb.Material = "Neon"
  4894. hitb.Size = Vector3.new(1, 1, 1)
  4895. hitb.Transparency = 1
  4896. hitb.TopSurface = 0
  4897. hitb.BottomSurface = 0
  4898. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  4899. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  4900. hitb:Destroy()
  4901. for i = 0,1,0.1 do
  4902. swait()
  4903. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  4904. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  4905. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  4906. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  4907. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4)
  4908. 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(-10)),.4)
  4909. end
  4910.  
  4911. attack = false
  4912. end
  4913.  
  4914. function attacktwo()
  4915. attack = true
  4916. for i = 0,1,0.1 do
  4917. swait()
  4918. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  4919. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  4920. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  4921. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  4922. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2)
  4923. 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(10)),.2)
  4924. end
  4925. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  4926. local hitb = Instance.new("Part", char)
  4927. hitb.Anchored = true
  4928. hitb.CanCollide = false
  4929. hitb.FormFactor = 3
  4930. hitb.Name = "Ring"
  4931. hitb.Material = "Neon"
  4932. hitb.Size = Vector3.new(1, 1, 1)
  4933. hitb.Transparency = 1
  4934. hitb.TopSurface = 0
  4935. hitb.BottomSurface = 0
  4936. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  4937. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  4938. hitb:Destroy()
  4939. for i = 0,1,0.1 do
  4940. swait()
  4941. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  4942. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  4943. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  4944. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  4945. 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(-40)),.4)
  4946. 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(-10)),.4)
  4947. end
  4948. attack = false
  4949. end
  4950.  
  4951. function attackthree()
  4952. attack = true
  4953. for i = 0,1,0.1 do
  4954. swait()
  4955. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  4956. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  4957. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  4958. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4959. 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)
  4960. 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(-2.5),math.rad(10),math.rad(0)),.3)
  4961. end
  4962. local distlook = 5
  4963. for i = 0, 4 do
  4964. swait(2)
  4965. CameraEnshaking(2,3)
  4966. local hite = Instance.new("Part", char)
  4967. hite.Anchored = true
  4968. hite.CanCollide = false
  4969. hite.FormFactor = 3
  4970. hite.Name = "Ring"
  4971. hite.Material = "Neon"
  4972. hite.Size = Vector3.new(1, 1, 1)
  4973. hite.Transparency = 1
  4974. hite.TopSurface = 0
  4975. hite.BottomSurface = 0
  4976. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  4977. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  4978. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  4979. MagniDamage(hite, 10, 15,35, 0, "Normal")
  4980. for i = 0, 2 do
  4981. sphereMK(2,0.2,"Add",rarm.CFrame*CFrame.Angles(math.rad(-90+math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  4982. sphereMK(3,0.2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  4983. sphereMK(6,0.35,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  4984. end
  4985. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  4986. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  4987. game:GetService("Debris"):AddItem(hite, 5)
  4988. distlook = distlook + 10
  4989. end
  4990. attack = false
  4991. end
  4992.  
  4993. local ActiveGia = false
  4994. function THEHELLITSTHATBIG()
  4995. ActiveGia = true
  4996. attack = true
  4997. hum.WalkSpeed = 0
  4998. for i = 0,2,0.1 do
  4999. swait()
  5000. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5001. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5002. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5003. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5004. 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(-20)),.2)
  5005. 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(-2.5),math.rad(10),math.rad(20)),.2)
  5006. end
  5007. for i = 0,1,0.1 do
  5008. torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5009. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5010. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5011. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5012. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5013. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5014. end
  5015. CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
  5016. secrleg.Transparency = 0.5
  5017. seclleg.Transparency = 0.5
  5018. secrarm.Transparency = 0.5
  5019. seclarm.Transparency = 0.5
  5020. seched.Transparency = 0.5
  5021. sectors.Transparency = 0.5
  5022. for i = 0,25,0.1 do
  5023. swait()
  5024. PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10)
  5025. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5026. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.025)
  5027. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),0.025)
  5028. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5029. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5030. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5031. end
  5032. --[[secrleg.Transparency = 1
  5033. seclleg.Transparency = 1
  5034. secrarm.Transparency = 1
  5035. seclarm.Transparency = 1
  5036. seched.Transparency = 1
  5037. sectors.Transparency = 1]]--
  5038. torsweld.Part0 = root
  5039. hum.WalkSpeed = storehumanoidWS
  5040. attack = false
  5041. end
  5042.  
  5043. function removelol()
  5044. ActiveGia = false
  5045. attack = true
  5046. hum.WalkSpeed = 0
  5047. for i = 0,2,0.1 do
  5048. swait()
  5049. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5050. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5051. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5052. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5053. 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(-20)),.2)
  5054. 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(-2.5),math.rad(10),math.rad(20)),.2)
  5055. end
  5056. CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
  5057. for i = 0,25,0.1 do
  5058. swait()
  5059. secrleg.Transparency = secrleg.Transparency + 0.00225
  5060. seclleg.Transparency = secrleg.Transparency
  5061. secrarm.Transparency = secrleg.Transparency
  5062. seclarm.Transparency = secrleg.Transparency
  5063. seched.Transparency = secrleg.Transparency
  5064. sectors.Transparency = secrleg.Transparency
  5065. PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10)
  5066. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5067. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(20)),0.025)
  5068. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(-20)),0.025)
  5069. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5070. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5071. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5072. end
  5073. CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
  5074. CFuncs["Sound"].Create("rbxassetid://165970390", char, 5, 1)
  5075. sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5076. sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5077. sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5078. secrleg.Transparency = 1
  5079. seclleg.Transparency = 1
  5080. secrarm.Transparency = 1
  5081. seclarm.Transparency = 1
  5082. seched.Transparency = 1
  5083. sectors.Transparency = 1
  5084. torsweld.Part0 = root
  5085. hum.WalkSpeed = storehumanoidWS
  5086. attack = false
  5087. end
  5088.  
  5089. function FinalCalamity()
  5090. end
  5091.  
  5092. local attacktype = 1
  5093. mouse.Button1Down:connect(function()
  5094. if attack == false and attacktype == 1 then
  5095. attacktype = 2
  5096. attackone()
  5097. elseif attack == false and attacktype == 2 then
  5098. attacktype = 3
  5099. attacktwo()
  5100. elseif attack == false and attacktype == 3 then
  5101. attacktype = 1
  5102. attackthree()
  5103. elseif attack == false and attacktype == 4 then
  5104. attacktype = 1
  5105. --attackfour()
  5106. end
  5107. end)
  5108. mouse.KeyDown:connect(function(k)
  5109. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  5110. ModeOfGlitch = 2
  5111. storehumanoidWS = 75
  5112. hum.WalkSpeed = 75
  5113. rainbowmode = false
  5114. chaosmode = false
  5115. tl1.Enabled = true
  5116. tl2.Enabled = true
  5117. tl3.Enabled = true
  5118. RecolorTextAndRename("Pure",Color3.new(1,1,1),Color3.new(0,1,1))
  5119. newTheme("rbxassetid://932991228",0,1,0.3)
  5120. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5121. for i, v in pairs(mw2:GetChildren()) do
  5122. if v:IsA("Part") then
  5123. v.BrickColor = MAINRUINCOLOR
  5124. v.Material = "Neon"
  5125. end
  5126. end
  5127. for i, v in pairs(mw1:GetChildren()) do
  5128. if v:IsA("Part") then
  5129. v.Transparency = 0
  5130. v.BrickColor = MAINRUINCOLOR
  5131. v.Material = "Neon"
  5132. end
  5133. end
  5134. for i, v in pairs(m:GetChildren()) do
  5135. if v:IsA("Part") then
  5136. v.BrickColor = BrickColor.new("toothpaste")
  5137. v.Material = "Ice"
  5138. end
  5139. end
  5140. for i, v in pairs(m2:GetChildren()) do
  5141. if v:IsA("Part") then
  5142. v.BrickColor = BrickColor.new("toothpaste")
  5143. v.Material = "Glass"
  5144. end
  5145. end
  5146. for i, v in pairs(m3:GetChildren()) do
  5147. if v:IsA("Part") then
  5148. v.BrickColor = BrickColor.new("Toothpaste")
  5149. v.Material = "Neon"
  5150. end
  5151. end
  5152. for i, v in pairs(extrawingmod1:GetChildren()) do
  5153. if v:IsA("Part") then
  5154. v.Transparency = 1
  5155. v.BrickColor = BrickColor.new("toothpaste")
  5156. v.Material = "Neon"
  5157. end
  5158. end
  5159. for i, v in pairs(extrawingmod2:GetChildren()) do
  5160. if v:IsA("Part") then
  5161. v.Transparency = 1
  5162. v.BrickColor = BrickColor.new("toothpaste")
  5163. v.Material = "Neon"
  5164. end
  5165. end
  5166. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  5167. resetmode()
  5168. end
  5169. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  5170. ModeOfGlitch = 3
  5171. storehumanoidWS = 75
  5172. hum.WalkSpeed = 75
  5173. rainbowmode = false
  5174. chaosmode = false
  5175. tl1.Enabled = true
  5176. tl2.Enabled = true
  5177. tl3.Enabled = true
  5178. RecolorTextAndRename("Anger",Color3.new(0,0,0),Color3.new(0.35,0,1))
  5179. newTheme("rbxassetid://381991270",58.15,1,1.25)
  5180. MAINRUINCOLOR = BrickColor.new("Crimson")
  5181. for i, v in pairs(mw2:GetChildren()) do
  5182. if v:IsA("Part") then
  5183. v.BrickColor = MAINRUINCOLOR
  5184. v.Material = "Neon"
  5185. end
  5186. end
  5187. for i, v in pairs(mw1:GetChildren()) do
  5188. if v:IsA("Part") then
  5189. v.Transparency = 0
  5190. v.BrickColor = MAINRUINCOLOR
  5191. v.Material = "Neon"
  5192. end
  5193. end
  5194. for i, v in pairs(m:GetChildren()) do
  5195. if v:IsA("Part") then
  5196. v.BrickColor = BrickColor.new("Really Red")
  5197. v.Material = "Ice"
  5198. end
  5199. end
  5200. for i, v in pairs(m2:GetChildren()) do
  5201. if v:IsA("Part") then
  5202. v.BrickColor = BrickColor.new("Really Black")
  5203. v.Material = "Glass"
  5204. end
  5205. end
  5206. for i, v in pairs(m3:GetChildren()) do
  5207. if v:IsA("Part") then
  5208. v.BrickColor = BrickColor.new("Really Red")
  5209. v.Material = "Neon"
  5210. end
  5211. end
  5212. for i, v in pairs(extrawingmod1:GetChildren()) do
  5213. if v:IsA("Part") then
  5214. v.Transparency = 1
  5215. v.BrickColor = BrickColor.new("Really Red")
  5216. v.Material = "Neon"
  5217. end
  5218. end
  5219. for i, v in pairs(extrawingmod2:GetChildren()) do
  5220. if v:IsA("Part") then
  5221. v.Transparency = 1
  5222. v.BrickColor = BrickColor.new("Really Red")
  5223. v.Material = "Neon"
  5224. end
  5225. end
  5226. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  5227. resetmode()
  5228. end
  5229. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  5230. ModeOfGlitch = 4
  5231. storehumanoidWS = 75
  5232. hum.WalkSpeed = 75
  5233. rainbowmode = false
  5234. chaosmode = true
  5235. tl1.Enabled = true
  5236. tl2.Enabled = true
  5237. tl3.Enabled = true
  5238. RecolorTextAndRename("Edgy",Color3.new(0,0,0),BrickColor.random().Color)
  5239. newTheme("rbxassetid://1891600872",0,1,1)
  5240. MAINRUINCOLOR = BrickColor.new("Black")
  5241. for i, v in pairs(mw2:GetChildren()) do
  5242. if v:IsA("Part") then
  5243. v.BrickColor = MAINRUINCOLOR
  5244. v.Material = "Neon"
  5245. end
  5246. end
  5247. for i, v in pairs(mw1:GetChildren()) do
  5248. if v:IsA("Part") then
  5249. v.Transparency = 0.75
  5250. v.BrickColor = BrickColor.random()
  5251. v.Material = "Neon"
  5252. end
  5253. end
  5254. for i, v in pairs(m:GetChildren()) do
  5255. if v:IsA("Part") then
  5256. v.BrickColor = BrickColor.new("Really Black")
  5257. v.Material = "Neon"
  5258. end
  5259. end
  5260. for i, v in pairs(m2:GetChildren()) do
  5261. if v:IsA("Part") then
  5262. v.BrickColor = BrickColor.random()
  5263. v.Material = "Neon"
  5264. end
  5265. end
  5266. for i, v in pairs(m3:GetChildren()) do
  5267. if v:IsA("Part") then
  5268. v.BrickColor = BrickColor.new("Really Black")
  5269. v.Material = "Neon"
  5270. end
  5271. end
  5272. for i, v in pairs(extrawingmod1:GetChildren()) do
  5273. if v:IsA("Part") then
  5274. v.Transparency = 1
  5275. v.BrickColor = BrickColor.new("White")
  5276. v.Material = "Neon"
  5277. end
  5278. end
  5279. for i, v in pairs(extrawingmod2:GetChildren()) do
  5280. if v:IsA("Part") then
  5281. v.Transparency = 1
  5282. v.BrickColor = BrickColor.new("White")
  5283. v.Material = "Neon"
  5284. end
  5285. end
  5286. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  5287. resetmode()
  5288. end
  5289. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  5290. ModeOfGlitch = 5
  5291. storehumanoidWS = 75
  5292. hum.WalkSpeed = 75
  5293. rainbowmode = false
  5294. chaosmode = false
  5295. tl1.Enabled = true
  5296. tl2.Enabled = true
  5297. tl3.Enabled = true
  5298. RecolorTextAndRename("Love",Color3.new(1,1,1),Color3.new(1,1,0.5))
  5299. newTheme("rbxassetid://1564992814",0,1.02,1)
  5300. MAINRUINCOLOR = BrickColor.new("Pink")
  5301. for i, v in pairs(mw2:GetChildren()) do
  5302. if v:IsA("Part") then
  5303. v.BrickColor = MAINRUINCOLOR
  5304. v.Material = "Neon"
  5305. end
  5306. end
  5307. for i, v in pairs(mw1:GetChildren()) do
  5308. if v:IsA("Part") then
  5309. v.Transparency = 0
  5310. v.BrickColor = MAINRUINCOLOR
  5311. v.Material = "Neon"
  5312. end
  5313. end
  5314. for i, v in pairs(m:GetChildren()) do
  5315. if v:IsA("Part") then
  5316. v.BrickColor = BrickColor.new("Black")
  5317. v.Material = "Ice"
  5318. end
  5319. end
  5320. for i, v in pairs(m2:GetChildren()) do
  5321. if v:IsA("Part") then
  5322. v.BrickColor = BrickColor.new("Bright yellow")
  5323. v.Material = "Ice"
  5324. end
  5325. end
  5326. for i, v in pairs(m3:GetChildren()) do
  5327. if v:IsA("Part") then
  5328. v.BrickColor = BrickColor.new("Bright yellow")
  5329. v.Material = "Neon"
  5330. end
  5331. end
  5332. for i, v in pairs(extrawingmod1:GetChildren()) do
  5333. if v:IsA("Part") then
  5334. v.Transparency = 1
  5335. v.BrickColor = BrickColor.new("White")
  5336. v.Material = "Neon"
  5337. end
  5338. end
  5339. for i, v in pairs(extrawingmod2:GetChildren()) do
  5340. if v:IsA("Part") then
  5341. v.Transparency = 1
  5342. v.BrickColor = BrickColor.new("White")
  5343. v.Material = "Neon"
  5344. end
  5345. end
  5346. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  5347. resetmode()
  5348. end
  5349. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  5350. ModeOfGlitch = 6
  5351. storehumanoidWS = 75
  5352. hum.WalkSpeed = 75
  5353. rainbowmode = false
  5354. chaosmode = false
  5355. tl1.Enabled = true
  5356. tl2.Enabled = true
  5357. tl3.Enabled = true
  5358. RecolorTextAndRename("Rave",Color3.new(0,0,0),Color3.new(1,1,1))
  5359. newTheme("rbxassetid://1585109345",0,1,1)
  5360. MAINRUINCOLOR = BrickColor.new("Really Blue")
  5361. for i, v in pairs(mw2:GetChildren()) do
  5362. if v:IsA("Part") then
  5363. v.BrickColor = MAINRUINCOLOR
  5364. v.Material = "Neon"
  5365. end
  5366. end
  5367. for i, v in pairs(mw1:GetChildren()) do
  5368. if v:IsA("Part") then
  5369. v.Transparency = 0
  5370. v.BrickColor = MAINRUINCOLOR
  5371. v.Material = "Neon"
  5372. end
  5373. end
  5374. for i, v in pairs(m:GetChildren()) do
  5375. if v:IsA("Part") then
  5376. v.BrickColor = BrickColor.new("Really Blue")
  5377. v.Material = "Ice"
  5378. end
  5379. end
  5380. for i, v in pairs(m2:GetChildren()) do
  5381. if v:IsA("Part") then
  5382. v.BrickColor = BrickColor.new("Really Blue")
  5383. v.Material = "Ice"
  5384. end
  5385. end
  5386. for i, v in pairs(m3:GetChildren()) do
  5387. if v:IsA("Part") then
  5388. v.BrickColor = BrickColor.new("Really Blue")
  5389. v.Material = "Neon"
  5390. end
  5391. end
  5392. for i, v in pairs(extrawingmod1:GetChildren()) do
  5393. if v:IsA("Part") then
  5394. v.Transparency = 1
  5395. v.BrickColor = BrickColor.new("Really Blue")
  5396. v.Material = "Neon"
  5397. end
  5398. end
  5399. for i, v in pairs(extrawingmod2:GetChildren()) do
  5400. if v:IsA("Part") then
  5401. v.Transparency = 1
  5402. v.BrickColor = BrickColor.new("Toothpaste")
  5403. v.Material = "Neon"
  5404. end
  5405. end
  5406. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  5407. resetmode()
  5408. end
  5409. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  5410. ModeOfGlitch = 6127843
  5411. storehumanoidWS = 75
  5412. hum.WalkSpeed = 75
  5413. rainbowmode = true
  5414. chaosmode = false
  5415. tl1.Enabled = true
  5416. tl2.Enabled = true
  5417. tl3.Enabled = true
  5418. RecolorTextAndRename("Anime Rainbow",Color3.new(1,1,1),Color3.new(1,1,1))
  5419. newTheme("rbxassetid://1014618056",0,1,5)
  5420. MAINRUINCOLOR = BrickColor.new("Red")
  5421. for i, v in pairs(mw2:GetChildren()) do
  5422. if v:IsA("Part") then
  5423. v.BrickColor = MAINRUINCOLOR
  5424. v.Material = "Neon"
  5425. end
  5426. end
  5427. for i, v in pairs(mw1:GetChildren()) do
  5428. if v:IsA("Part") then
  5429. v.Transparency = 0
  5430. v.BrickColor = MAINRUINCOLOR
  5431. v.Material = "Neon"
  5432. end
  5433. end
  5434. for i, v in pairs(m:GetChildren()) do
  5435. if v:IsA("Part") then
  5436. v.BrickColor = BrickColor.new("Red")
  5437. v.Material = "Neon"
  5438. end
  5439. end
  5440. for i, v in pairs(m2:GetChildren()) do
  5441. if v:IsA("Part") then
  5442. v.BrickColor = BrickColor.new("Red")
  5443. v.Material = "Neon"
  5444. end
  5445. end
  5446. for i, v in pairs(m3:GetChildren()) do
  5447. if v:IsA("Part") then
  5448. v.BrickColor = BrickColor.new("Red")
  5449. v.Material = "Neon"
  5450. end
  5451. end
  5452. for i, v in pairs(extrawingmod1:GetChildren()) do
  5453. if v:IsA("Part") then
  5454. v.Transparency = 1
  5455. v.BrickColor = BrickColor.new("Red")
  5456. v.Material = "Neon"
  5457. end
  5458. end
  5459. for i, v in pairs(extrawingmod2:GetChildren()) do
  5460. if v:IsA("Part") then
  5461. v.Transparency = 1
  5462. v.BrickColor = BrickColor.new("Red")
  5463. v.Material = "Neon"
  5464. end
  5465. end
  5466. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  5467. resetmode()
  5468. end
  5469. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  5470. ModeOfGlitch = 1000000
  5471. storehumanoidWS = 100
  5472. hum.WalkSpeed = 100
  5473. rainbowmode = false
  5474. chaosmode = false
  5475. tl1.Enabled = true
  5476. tl2.Enabled = true
  5477. tl3.Enabled = true
  5478. RecolorTextAndRename("Chaos?",Color3.new(0.25,0,1),Color3.new(0.5,0,1))
  5479. newTheme("rbxassetid://1232367576",0,1,1)
  5480. MAINRUINCOLOR = BrickColor.new("Bright violet")
  5481. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5482. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5483. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5484. for i, v in pairs(mw2:GetChildren()) do
  5485. if v:IsA("Part") then
  5486. v.BrickColor = MAINRUINCOLOR
  5487. v.Material = "Neon"
  5488. end
  5489. end
  5490. for i, v in pairs(mw1:GetChildren()) do
  5491. if v:IsA("Part") then
  5492. v.Transparency = 0
  5493. v.BrickColor = MAINRUINCOLOR
  5494. v.Material = "Neon"
  5495. end
  5496. end
  5497. for i, v in pairs(m:GetChildren()) do
  5498. if v:IsA("Part") then
  5499. v.Color = Color3.new(0.5,0,1)
  5500. v.Material = "Neon"
  5501. end
  5502. end
  5503. for i, v in pairs(m2:GetChildren()) do
  5504. if v:IsA("Part") then
  5505. v.Color = Color3.new(0.25,0,1)
  5506. v.Material = "Neon"
  5507. end
  5508. end
  5509. for i, v in pairs(m3:GetChildren()) do
  5510. if v:IsA("Part") then
  5511. v.Color = Color3.new(0.45,0,1)
  5512. v.Material = "Neon"
  5513. end
  5514. end
  5515. for i, v in pairs(extrawingmod1:GetChildren()) do
  5516. if v:IsA("Part") then
  5517. v.Transparency = 0.75
  5518. v.Color = Color3.new(0.25,0,1)
  5519. v.Material = "Neon"
  5520. end
  5521. end
  5522. for i, v in pairs(extrawingmod2:GetChildren()) do
  5523. if v:IsA("Part") then
  5524. v.Transparency = 0.75
  5525. v.Color = Color3.new(0.5,0,1)
  5526. v.Material = "Neon"
  5527. end
  5528. end
  5529. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  5530. resetmode()
  5531. end
  5532. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  5533. newThemeCust("rbxassetid://1186327667",0,1,1)
  5534. attack = true
  5535. hum.WalkSpeed = 0
  5536. MAINRUINCOLOR = BrickColor.new("Really Red")
  5537. for i = 0, 24, 0.1 do
  5538. swait()
  5539. sphereMK(1,-2,"Add",tors.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,MAINRUINCOLOR,100)
  5540. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  5541. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  5542. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  5543. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5544. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  5545. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  5546. end
  5547. CameraEnshaking(1,1)
  5548. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5549. CFuncs["Sound"].Create("rbxassetid://299058146", char, 1,1)
  5550. wait(0.65)
  5551. CameraEnshaking(1,2)
  5552. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5553. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5554. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5555. CFuncs["Sound"].Create("rbxassetid://299058146", char, 2,1)
  5556. wait(0.65)
  5557. CameraEnshaking(1,3)
  5558. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5559. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5560. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5561. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5562. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5563. CFuncs["Sound"].Create("rbxassetid://299058146", char, 3,1)
  5564. wait(0.65)
  5565. CameraEnshaking(10,5)
  5566. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5567. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5568. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5569. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5570. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5571. CFuncs["Sound"].Create("rbxassetid://157681337", char, 6, 1)
  5572. CFuncs["Sound"].Create("rbxassetid://278707142", char, 10, 1)
  5573. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5574. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5575. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5576. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5577. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5578. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5579. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5580. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5581. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5582. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5583. for i = 0, 49 do
  5584. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  5585. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  5586. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  5587. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  5588. end
  5589. ModeOfGlitch = 12345678987654321
  5590. storehumanoidWS = 200
  5591. hum.WalkSpeed = 200
  5592. rainbowmode = false
  5593. chaosmode = false
  5594. tl1.Enabled = true
  5595. tl2.Enabled = true
  5596. tl3.Enabled = true
  5597. RecolorTextAndRename("ASCENDED",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  5598. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5599. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5600. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5601. for i, v in pairs(mw2:GetChildren()) do
  5602. if v:IsA("Part") then
  5603. v.BrickColor = MAINRUINCOLOR
  5604. v.Material = "Neon"
  5605. end
  5606. end
  5607. for i, v in pairs(mw1:GetChildren()) do
  5608. if v:IsA("Part") then
  5609. v.Transparency = 0
  5610. v.BrickColor = MAINRUINCOLOR
  5611. v.Material = "Neon"
  5612. end
  5613. end
  5614. for i, v in pairs(m:GetChildren()) do
  5615. if v:IsA("Part") then
  5616. v.Color = Color3.new(0.5,0,1)
  5617. v.Material = "Neon"
  5618. end
  5619. end
  5620. for i, v in pairs(m2:GetChildren()) do
  5621. if v:IsA("Part") then
  5622. v.Color = Color3.new(0.5,0,1)
  5623. v.Material = "Neon"
  5624. end
  5625. end
  5626. for i, v in pairs(m3:GetChildren()) do
  5627. if v:IsA("Part") then
  5628. v.Color = Color3.new(0.5,0,1)
  5629. v.Material = "Neon"
  5630. end
  5631. end
  5632. for i, v in pairs(extrawingmod1:GetChildren()) do
  5633. if v:IsA("Part") then
  5634. v.Transparency = 0
  5635. v.Color = Color3.new(0.5,0,1)
  5636. v.Material = "Neon"
  5637. end
  5638. end
  5639. for i, v in pairs(extrawingmod2:GetChildren()) do
  5640. if v:IsA("Part") then
  5641. v.Transparency = 0
  5642. v.Color = Color3.new(0.5,0,1)
  5643. v.Material = "Neon"
  5644. end
  5645. attack = false
  5646. end
  5647. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  5648. resetmode()
  5649. end
  5650. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  5651. newThemeCust("rbxassetid://560419279",0,1,1)
  5652. attack = true
  5653. hum.WalkSpeed = 0
  5654. MAINRUINCOLOR = BrickColor.new("Crimson")
  5655. for i = 0, 24, 0.1 do
  5656. swait()
  5657. sphereMK(1,-2,"Add",tors.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,MAINRUINCOLOR,100)
  5658. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  5659. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  5660. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  5661. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5662. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  5663. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  5664. end
  5665. CameraEnshaking(1,1)
  5666. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5667. CFuncs["Sound"].Create("rbxassetid://299058146", char, 1,1)
  5668. wait(0.65)
  5669. CameraEnshaking(1,2)
  5670. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5671. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5672. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5673. CFuncs["Sound"].Create("rbxassetid://299058146", char, 2,1)
  5674. wait(0.65)
  5675. CameraEnshaking(1,3)
  5676. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5677. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5678. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5679. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5680. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5681. CFuncs["Sound"].Create("rbxassetid://299058146", char, 3,1)
  5682. wait(0.65)
  5683. CameraEnshaking(10,5)
  5684. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5685. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5686. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5687. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5688. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5689. CFuncs["Sound"].Create("rbxassetid://157681337", char, 6, 1)
  5690. CFuncs["Sound"].Create("rbxassetid://1286168545", char, 10, 1)
  5691. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5692. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5693. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5694. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5695. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5696. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5697. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5698. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5699. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5700. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5701. for i = 0, 49 do
  5702. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  5703. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  5704. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  5705. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  5706. end
  5707. ModeOfGlitch = 666
  5708. storehumanoidWS = 175
  5709. hum.WalkSpeed = 175
  5710. rainbowmode = false
  5711. chaosmode = false
  5712. tl1.Enabled = true
  5713. tl2.Enabled = true
  5714. tl3.Enabled = true
  5715. RecolorTextAndRename("ViOlEnCe",Color3.new(1,0,0),Color3.new(0.75,0,0))
  5716. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5717. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5718. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5719. for i, v in pairs(mw2:GetChildren()) do
  5720. if v:IsA("Part") then
  5721. v.BrickColor = MAINRUINCOLOR
  5722. v.Material = "Neon"
  5723. end
  5724. end
  5725. for i, v in pairs(mw1:GetChildren()) do
  5726. if v:IsA("Part") then
  5727. v.Transparency = 0
  5728. v.BrickColor = MAINRUINCOLOR
  5729. v.Material = "Neon"
  5730. end
  5731. end
  5732. for i, v in pairs(m:GetChildren()) do
  5733. if v:IsA("Part") then
  5734. v.Color = Color3.new(1,0,0)
  5735. v.Material = "Neon"
  5736. end
  5737. end
  5738. for i, v in pairs(m2:GetChildren()) do
  5739. if v:IsA("Part") then
  5740. v.Color = Color3.new(1,0,0)
  5741. v.Material = "Neon"
  5742. end
  5743. end
  5744. for i, v in pairs(m3:GetChildren()) do
  5745. if v:IsA("Part") then
  5746. v.Color = Color3.new(1,0,0)
  5747. v.Material = "Neon"
  5748. end
  5749. end
  5750. for i, v in pairs(extrawingmod1:GetChildren()) do
  5751. if v:IsA("Part") then
  5752. v.Transparency = 0
  5753. v.Color = Color3.new(1,0,0)
  5754. v.Material = "Neon"
  5755. end
  5756. end
  5757. for i, v in pairs(extrawingmod2:GetChildren()) do
  5758. if v:IsA("Part") then
  5759. v.Transparency = 0
  5760. v.Color = Color3.new(1,0,0)
  5761. v.Material = "Neon"
  5762. end
  5763. attack = false
  5764. end
  5765. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  5766. resetmode()
  5767. end
  5768. if k == "l" and toggleTag == false then
  5769. toggleTag = true
  5770. text.TextTransparency = 0
  5771. text.TextStrokeTransparency = 0
  5772. elseif k == "l" and toggleTag == true then
  5773. toggleTag = false
  5774. text.TextTransparency = 1
  5775. text.TextStrokeTransparency = 1
  5776. end
  5777. if k == "z" and attack == false and ModeOfGlitch == 1 then
  5778. ExtinctiveHeartbreak()
  5779. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  5780. PureBomb()
  5781. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  5782. scattercorrupt()
  5783. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  5784. ChaosGroundStrike()
  5785. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  5786. Judgement()
  5787. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  5788. HolyBarrier()
  5789. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  5790. Starfall()
  5791. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  5792. yinyangi()
  5793. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  5794. MeteorStrike()
  5795. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  5796. Wip()
  5797. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
  5798. StarfallEX()
  5799. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
  5800. FinalCalam()
  5801. end
  5802. if k == "n" and attack == false then
  5803. Blink()
  5804. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  5805. StarDivision()
  5806. end
  5807. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  5808. UniversalCollapse()
  5809. end
  5810. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  5811. hum.WalkSpeed = 16 + 184
  5812. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  5813. hum.WalkSpeed = 200 - 184
  5814. end
  5815. if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
  5816. UniversalSpark()
  5817. end
  5818. if k == "z" and attack == false and ModeOfGlitch == 666 then
  5819. StarDivision()
  5820. end
  5821. if k == "x" and attack == false and ModeOfGlitch == 666 then
  5822. Starfall()
  5823. end
  5824. if k == "m" and attack == false and ModeOfGlitch == 4 then
  5825. ChaosBegone()
  5826. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
  5827. THEHELLITSTHATBIG()
  5828. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
  5829. removelol()
  5830. end
  5831. end)
  5832. mouse.KeyUp:connect(function(k)
  5833. if k == "f" and ModeOfGlitch == 5 then
  5834. shielding = false
  5835. end
  5836. if k == "z" and ModeOfGlitch == 5 then
  5837. judgement = false
  5838. end
  5839. end)
  5840. coroutine.resume(coroutine.create(function()
  5841. while true do
  5842. swait(2)
  5843. if rainbowmode == true or ModeOfGlitch == 6 then
  5844. if eff == true then
  5845. sphereMK(5,0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),-6,math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),1.5,1.5,10,-0.015,MAINRUINCOLOR,0)
  5846. end
  5847. end
  5848. end
  5849. end))
  5850. coroutine.resume(coroutine.create(function()
  5851. while true do
  5852. swait(2)
  5853. if shielding == true then
  5854. end
  5855. end
  5856. end))
  5857.  
  5858.  
  5859. coroutine.resume(coroutine.create(function()
  5860. while true do
  5861. if ModeOfGlitch == 1000000 then
  5862. swait(0.5)
  5863. end
  5864. swait()
  5865. if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5866. sphereMK(5,0.5,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-15,15)),math.rad(math.random(-15,15)),0),1,1,15,-0.01,MAINRUINCOLOR,0)
  5867. end
  5868. if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5869. sphereMK(5,math.random(1,2),"Add",root.CFrame*CFrame.new(math.random(-75,75),-25,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),0),1,1,50,-0.01,MAINRUINCOLOR,0)
  5870. end
  5871. end
  5872. end))
  5873.  
  5874.  
  5875. coroutine.resume(coroutine.create(function()
  5876. while true do
  5877. swait(2)
  5878. if chaosmode == true then
  5879. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  5880. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  5881. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  5882. RecolorTextAndRename("Edgy",Color3.new(0,0,0),BrickColor.random().Color)
  5883. for i, v in pairs(mw1:GetChildren()) do
  5884. if v:IsA("Part") then
  5885. v.Transparency = 0.75
  5886. v.BrickColor = BrickColor.random()
  5887. v.Material = "Neon"
  5888. end
  5889. end
  5890. for i, v in pairs(m2:GetChildren()) do
  5891. if v:IsA("Part") then
  5892. v.BrickColor = BrickColor.random()
  5893. v.Material = "Neon"
  5894. end
  5895. end
  5896. for i, v in pairs(secondchar:GetChildren()) do
  5897. if v:IsA("Part") then
  5898. v.BrickColor = BrickColor.random()
  5899. v.Material = "Neon"
  5900. end
  5901. end
  5902. end
  5903. end
  5904. end))
  5905. Humanoid.Name = "STARGLITCHER"
  5906. Humanoid.MaxHealth = math.huge
  5907. Humanoid.Health = math.huge
  5908. Instance.new("ForceField",char).Visible = false
  5909. Humanoid.Animator.Parent = nil
  5910. idleanim=.4
  5911. while true do
  5912. if rainbowmode == false then
  5913. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5914. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5915. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5916. for i, v in pairs(secondchar:GetChildren()) do
  5917. if v:IsA("Part") then
  5918. v.BrickColor = MAINRUINCOLOR
  5919. v.Material = "Neon"
  5920. end
  5921. end
  5922. if chaosmode == false then
  5923. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5924. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5925. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5926. for i, v in pairs(secondchar:GetChildren()) do
  5927. if v:IsA("Part") then
  5928. v.BrickColor = MAINRUINCOLOR
  5929. v.Material = "Neon"
  5930. end
  5931. end
  5932. end
  5933. end
  5934. if rainbowmode == true then
  5935. RecolorTextAndRename("Anime Rainbow",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  5936. MAINRUINCOLOR = BrickColor.new("White")
  5937. for i, v in pairs(m:GetChildren()) do
  5938. if v:IsA("Part") then
  5939. v.Color = Color3.new(r/255,g/255,b/255)
  5940. end
  5941. end
  5942. for i, v in pairs(m2:GetChildren()) do
  5943. if v:IsA("Part") then
  5944. v.Color = Color3.new(r/255,g/255,b/255)
  5945. end
  5946. end
  5947. for i, v in pairs(secondchar:GetChildren()) do
  5948. if v:IsA("Part") then
  5949. v.Color = Color3.new(r/255,g/255,b/255)
  5950. v.Material = "Neon"
  5951. end
  5952. end
  5953. for i, v in pairs(m3:GetChildren()) do
  5954. if v:IsA("Part") then
  5955. v.Color = Color3.new(r/255,g/255,b/255)
  5956. end
  5957. end
  5958. for i, v in pairs(mw1:GetChildren()) do
  5959. if v:IsA("Part") then
  5960. v.Color = Color3.new(r/255,g/255,b/255)
  5961. v.Material = "Neon"
  5962. end
  5963. end
  5964. for i, v in pairs(mw2:GetChildren()) do
  5965. if v:IsA("Part") then
  5966. v.Color = Color3.new(r/255,g/255,b/255)
  5967. v.Material = "Neon"
  5968. end
  5969. end
  5970. end
  5971. CameraManager()
  5972. swait()
  5973. lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3)
  5974. lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3)
  5975. lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3)
  5976. lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3)
  5977. lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3)
  5978. lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3)
  5979.  
  5980. if attack == false and ActiveGia == false then
  5981. torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5982. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5983. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5984. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5985. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5986. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5987. elseif attack == false and ActiveGia == true then
  5988. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  5989. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5990. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  5991. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  5992. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5993. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5994. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  5995. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5996. torsweld.C1=clerp(torsweld.C1,cf(0,-25 + 0.5 * math.cos(sine / 32) ,-8)*angles(math.rad(20),math.rad(0),math.rad(0)),.025)
  5997. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  5998. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  5999. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,1.5*8,0.6*8)*angles(math.rad(20),math.rad(0),math.rad(0)),0.025)
  6000. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0.11*8)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6001. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  6002. end
  6003. end
  6004.  
  6005. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3)
  6006. rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3)
  6007. rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3)
  6008. rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3)
  6009. rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3)
  6010. rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3)
  6011. sine = sine + change
  6012. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6013. local velderp=RootPart.Velocity.y
  6014. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6015. if equipped==true or equipped==false then
  6016. if attack==false then
  6017. idle=idle+1
  6018. else
  6019. idle=0
  6020. end
  6021. if idle>=500 then
  6022. if attack==false then
  6023. --Sheath()
  6024. end
  6025. end
  6026. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6027. Anim="Jump"
  6028. if attack==false then
  6029. 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)
  6030. 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)
  6031. 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)
  6032. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6033. 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)
  6034. 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)
  6035. end
  6036. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6037. Anim="Fall"
  6038. if attack==false then
  6039. 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)
  6040. 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)
  6041. 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)
  6042. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6043. 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)
  6044. 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)
  6045. end
  6046. elseif torvel<1 and hitfloor~=nil then
  6047. Anim="Idle"
  6048. if attack==false then
  6049. if ModeOfGlitch == 1 then
  6050. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  6051. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  6052. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  6053. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1)
  6054. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  6055. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6056.  
  6057. elseif ModeOfGlitch == 666 then
  6058. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  6059. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  6060. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  6061. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6062. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  6063. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  6064.  
  6065. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  6066. 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(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6067. 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)
  6068. 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(0)),.1)
  6069. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  6070. 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)
  6071. 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)
  6072.  
  6073. elseif ModeOfGlitch == 3 then
  6074. 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(0 - 1 * math.cos(sine / 34))),.1)
  6075. 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(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6076. 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)
  6077. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  6078. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  6079. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  6080.  
  6081. elseif ModeOfGlitch == 4 then
  6082. RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1)
  6083. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1)
  6084. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6085. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
  6086. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
  6087. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
  6088.  
  6089. elseif ModeOfGlitch == 5 then
  6090. 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(0 + 1 * math.cos(sine / 34))),.1)
  6091. 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)
  6092. 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(0)),.1)
  6093. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  6094. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30)),.1)
  6095. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  6096.  
  6097. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  6098. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  6099. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  6100. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  6101. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6102. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 28))),.1)
  6103. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 28))),.1)
  6104.  
  6105. elseif ModeOfGlitch == 12345678987654321 then
  6106. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  6107. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  6108. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-40)),.1)
  6109. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  6110. 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)
  6111. 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)
  6112. end
  6113. end
  6114. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  6115. Anim="Walk"
  6116. if attack==false then
  6117. if ModeOfGlitch == 1 then
  6118. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6119. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6120. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  6121. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 5 * math.cos(sine / 0.325)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 + 5 * math.cos(sine / 8))),.1)
  6122. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  6123. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6124.  
  6125. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
  6126. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(5 + 25 * math.cos(sine / 12))),.1)
  6127. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(-5 + 25 * math.cos(sine / 12))),.1)
  6128. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1)
  6129. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
  6130. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 - 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
  6131. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
  6132.  
  6133. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
  6134. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6135. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6136. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  6137. 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 / 8))),.1)
  6138. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  6139. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1)
  6140. end
  6141. end
  6142. elseif torvel>=22 and hitfloor~=nil then
  6143. Anim="Run"
  6144. if attack==false then
  6145. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6146. 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)
  6147. 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)
  6148. 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)
  6149. 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)
  6150. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 155 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
  6151. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 155 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  6152. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6153. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  6154. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  6155. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  6156. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  6157. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30 + 2.5 * math.cos(sine / 28))),.2)
  6158. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 2.5 * math.cos(sine / 28))),.2)
  6159. end
  6160. end
  6161. end
  6162. end
  6163. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement