Advertisement
Im_Meme

StarGlitcher v1 edit my me lol

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