Advertisement
Leodu41

test

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