Createok

Untitled

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