Advertisement
Guest User

lol script? omg... no way.

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