Advertisement
Sheckles

jhbgvfdrgthyjuk

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