Advertisement
Sheckles

fbaf,jgjakfmh s

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