Advertisement
scriptingboi1

.

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