Advertisement
Sheckles

uybhwvrhetytukiymthrgfvehrj

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