Advertisement
miissso

Untitled

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