Advertisement
lundofett

Untitled

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