Advertisement
Guest User

Untitled

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