Advertisement
Baldeagle22

Mo

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