Advertisement
5sdfsadgaq5465

Untitled

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