Advertisement
Void_scripter0

Halo switcher

Jun 6th, 2019
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 291.86 KB | None | 0 0
  1. --TODO: add comments or something idk
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player = owner
  4. local Mouse,mouse,UserInputService,ContextActionService
  5. do
  6. script.Parent = Player.Character
  7. local CAS = {Actions={}}
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10. Event.Parent = Player.Character
  11. local fakeEvent = function()
  12. local t = {_fakeEvent=true}
  13. t.Connect = function(self,f)self.Function=f end
  14. t.connect = t.Connect
  15. return t
  16. end
  17. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  18. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  19. function CAS:BindAction(name,fun,touch,...)
  20. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  21. end
  22. function CAS:UnbindAction(name)
  23. CAS.Actions[name] = nil
  24. end
  25. local function te(self,ev,...)
  26. local t = m[ev]
  27. if t and t._fakeEvent and t.Function then
  28. t.Function(...)
  29. end
  30. end
  31. m.TrigEvent = te
  32. UIS.TrigEvent = te
  33. Event.OnServerEvent:Connect(function(plr,io)
  34. if plr~=Player then return end
  35. if io.isMouse then
  36. m.Target = io.Target
  37. m.Hit = io.Hit
  38. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  39. if io.UserInputState == Enum.UserInputState.Begin then
  40. m:TrigEvent("Button1Down")
  41. else
  42. m:TrigEvent("Button1Up")
  43. end
  44. else
  45. for n,t in pairs(CAS.Actions) do
  46. for _,k in pairs(t.Keys) do
  47. if k==io.KeyCode then
  48. t.Function(t.Name,io.UserInputState,io)
  49. end
  50. end
  51. end
  52. if io.UserInputState == Enum.UserInputState.Begin then
  53. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  54. UIS:TrigEvent("InputBegan",io,false)
  55. else
  56. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent("InputEnded",io,false)
  58. end
  59. end
  60. end)
  61. NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63.  
  64. local Char = Player.Character
  65. local Event = Char:WaitForChild("UserInput_Event")
  66.  
  67. local UIS = game:GetService("UserInputService")
  68.  
  69. local input = function(io,a)
  70. if a then return end
  71. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  72. Event:FireServer(io)
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local Changed = false
  77. local Mouse = Player:GetMouse()
  78. local h,t = Mouse.Hit,Mouse.Target
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  82. h,t=Mouse.Hit,Mouse.Target
  83. end
  84. end
  85. ]==],Player.Character)
  86. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  87. end
  88.  
  89.  
  90. wait(0.5)
  91.  
  92. warn([[SG AWAKEN Loaded.
  93. The super switcher.
  94. Velnorum is one of the first wielders.
  95.  
  96. Created, Reworked by NoobyGames12 and converted by Helkern
  97. ]])
  98.  
  99.  
  100. ------------- ORIGINAL WIELDER OC: Velnorum
  101. print([[Icons:
  102. ! = New
  103. ? = Spoilers
  104. * = Exclusivity
  105. C = Changes
  106.  
  107. ]])
  108. warn([[V 4.1 Update Log:
  109. !C? - Mostly about 7-9 main modes added.
  110. ! - Non-canon [N] modes are added from few modes:
  111. > Mayhem: NANO
  112. > Purity: BRIGHTNESS
  113. > Chaos: CRAZED
  114. > Divinity: FALLEN
  115. > Destiny: OMEGA
  116. ! - Added back CALAMITY and INFESTATION.
  117. C - Two main click attacks changed.
  118. !C - Moves are added back, with severe change and difference.
  119. C - Some modes got renamed because fat filter
  120. C - Toned down the effects to be compatible with fe without strong lag.]])
  121. --- its obs smooth af do not touch
  122. ---- Sources and functions might be taken from others
  123. if game.PlaceId == 843468296 then
  124. error("This script has been banned. You cannot use it here. Please use Place 2.")
  125. end
  126. plr = owner
  127. char = plr.Character
  128. hum = char.Humanoid
  129. local cam = game.Workspace.CurrentCamera
  130. Camera = cam
  131. local CamInterrupt = false
  132. local TwoD = false
  133. local TargetInfo = {nil, nil}
  134. cam.CameraType = "Custom"
  135. t = char.Torso
  136. h = char.Head
  137. ra = char["Right Arm"]
  138. la = char["Left Arm"]
  139. rl = char["Right Leg"]
  140. ll = char["Left Leg"]
  141. tors = char.Torso
  142. lleg = char["Left Leg"]
  143. root = char.HumanoidRootPart
  144. hed = char.Head
  145. rleg = char["Right Leg"]
  146. rarm = char["Right Arm"]
  147. larm = char["Left Arm"]
  148. radian = math.rad
  149. random = math.random
  150. Vec3 = Vector3.new
  151. Inst = Instance.new
  152. cFrame = CFrame.new
  153. Euler = CFrame.fromEulerAnglesXYZ
  154. vt = Vector3.new
  155. bc = BrickColor.new
  156. br = BrickColor.random
  157. it = Instance.new
  158. cf = CFrame.new
  159.  
  160. local Booleans = {
  161. CamFollow = true,
  162. GyroUse = true
  163. }
  164.  
  165. function lerp(object, newCFrame, alpha)
  166. return object:lerp(newCFrame, alpha)
  167. end
  168.  
  169. local Directer = Inst("BodyGyro", root)
  170. Directer.MaxTorque = Vec3(0, 0, 0)
  171. Directer.P = 600000
  172. local CPart = Inst("Part")
  173. CPart.Anchored = true
  174. CPart.CanCollide = false
  175. CPart.Locked = true
  176. CPart.Transparency = 1
  177.  
  178. local rainbowmode = false
  179. local chaosmode = false
  180.  
  181. local kan = Instance.new("Sound",char)
  182. kan.Volume = 1.25
  183. kan.TimePosition = 0
  184. kan.PlaybackSpeed = 1
  185. kan.Pitch = 1
  186. kan.SoundId = "rbxassetid://614032233"
  187. kan.Name = "wrecked"
  188. kan.Looped = true
  189. kan:Play()
  190.  
  191. local currentThemePlaying = kan.SoundId
  192. local currentPitch = kan.Pitch
  193. local currentVol = kan.Volume
  194. function newTheme(ID,timepos,pitch,vol)
  195. local kanz = kan
  196. --kanz:Stop()
  197. kanz.Volume = vol
  198. --kanz.TimePosition = timepos
  199. kanz.PlaybackSpeed = pitch
  200. kanz.Pitch = pitch
  201. kanz.SoundId = ID
  202. kanz.Name = "wrecked"
  203. kanz.Looped = true
  204. currentThemePlaying = kanz.SoundId
  205. currentVol = kanz.Volume
  206. currentPitch = kanz.Pitch
  207. --kanz:Play()
  208. --coroutine.resume(coroutine.create(function()
  209. --wait(0.05)
  210. --end))
  211. end
  212.  
  213.  
  214. function newThemeCust(ID,timepos,pitch,vol)
  215. local kanz = kan
  216. kanz:Stop()
  217. kanz.Volume = vol
  218. kanz.TimePosition = timepos
  219. kanz.PlaybackSpeed = pitch
  220. kanz.Pitch = pitch
  221. kanz.SoundId = ID
  222. kanz.Name = "wrecked"
  223. kanz.Looped = true
  224. currentThemePlaying = kanz.SoundId
  225. currentVol = kanz.Volume
  226. currentPitch = kanz.Pitch
  227. kanz:Play()
  228. coroutine.resume(coroutine.create(function()
  229. wait(0.05)
  230. end))
  231. end
  232.  
  233. local mutedtog = false
  234.  
  235. function CameraEnshaking(Length,Intensity)
  236. coroutine.resume(coroutine.create(function()
  237. local intensity = 1*Intensity
  238. local rotM = 0.01*Intensity
  239. for i = 0, Length, 0.1 do
  240. swait()
  241. intensity = intensity - 0.05*Intensity/Length
  242. rotM = rotM - 0.0005*Intensity/Length
  243. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  244. 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)
  245. end
  246. Humanoid.CameraOffset = Vec3(0, 0, 0)
  247. end))
  248. end
  249. CamShake=function(Part,Distan,Power,Times)
  250. local de=Part.Position
  251. for i,v in pairs(workspace:children()) do
  252. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  253. for _,c in pairs(v:children()) do
  254. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  255. local Noob=v.Humanoid
  256. if Noob~=nil then
  257. coroutine.resume(coroutine.create(function()
  258. FV = Instance.new("BoolValue", Noob)
  259. FV.Name = "CameraShake"
  260. for ShakeNum=1,Times do
  261. swait()
  262. local ef=Power
  263. if ef>=1 then
  264. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  265. else
  266. ef=Power*10
  267. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  268. end
  269. end
  270. Humanoid.CameraOffset = Vector3.new(0,0,0)
  271. FV:Destroy()
  272. end))
  273. CameraShake(Times, Power, Noob)
  274. end
  275. end
  276. end
  277. end
  278. end
  279. end
  280.  
  281. local toggleTag = true
  282. local bilguit = Instance.new("BillboardGui", hed)
  283. bilguit.Adornee = nil
  284. bilguit.Name = "ModeName"
  285. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  286. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  287. local modet = Instance.new("TextLabel", bilguit)
  288. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  289. modet.FontSize = "Size8"
  290. modet.TextScaled = true
  291. modet.TextTransparency = 0
  292. modet.BackgroundTransparency = 1
  293. modet.TextTransparency = 0
  294. modet.TextStrokeTransparency = 0
  295. modet.Font = "Antique"
  296. modet.TextStrokeColor3 = Color3.new(1,0,0)
  297. modet.TextColor3 = Color3.new(0.25,0,0)
  298. modet.Text = "MAYHEM"
  299.  
  300.  
  301. function chatfunc(text,color,typet,font,timeex)
  302. local chat = coroutine.wrap(function()
  303. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  304. Character:FindFirstChild("TalkingBillBoard"):destroy()
  305. end
  306. local naeeym2 = Instance.new("BillboardGui",Character)
  307. naeeym2.Size = UDim2.new(0,100,0,40)
  308. naeeym2.StudsOffset = Vector3.new(0,3,0)
  309. naeeym2.Adornee = Character.Head
  310. naeeym2.Name = "TalkingBillBoard"
  311. local tecks2 = Instance.new("TextLabel",naeeym2)
  312. tecks2.BackgroundTransparency = 1
  313. tecks2.BorderSizePixel = 0
  314. tecks2.Text = ""
  315. tecks2.Font = font
  316. tecks2.TextSize = 30
  317. tecks2.TextStrokeTransparency = 0
  318. tecks2.TextColor3 = color
  319. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  320. tecks2.Size = UDim2.new(1,0,0.5,0)
  321. local tecks3 = Instance.new("TextLabel",naeeym2)
  322. tecks3.BackgroundTransparency = 1
  323. tecks3.BorderSizePixel = 0
  324. tecks3.Text = ""
  325. tecks3.Font = font
  326. tecks3.TextSize = 30
  327. tecks3.TextStrokeTransparency = 0
  328. if typet == "Inverted" then
  329. tecks3.TextColor3 = Color3.new(0,0,0)
  330. tecks3.TextStrokeColor3 = color
  331. elseif typet == "Normal" then
  332. tecks3.TextColor3 = color
  333. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  334. end
  335. tecks3.Size = UDim2.new(1,0,0.5,0)
  336. coroutine.resume(coroutine.create(function()
  337. while true do
  338. swait(1)
  339. if chaosmode == true then
  340. tecks2.TextColor3 = BrickColor.random().Color
  341. tecks3.TextStrokeColor3 = BrickColor.random().Color
  342. end
  343. end
  344. end))
  345. modet.TextTransparency = modet.TextTransparency + 1
  346. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  347. for i = 0, 74*timeex do
  348. swait()
  349. modet.TextTransparency = 1
  350. modet.TextStrokeTransparency = 1
  351. tecks2.Text = text
  352. tecks3.Text = text
  353. end
  354. local randomrot = math.random(1,2)
  355. if randomrot == 1 then
  356. for i = 1, 50 do
  357. swait()
  358. tecks2.Text = text
  359. tecks3.Text = text
  360. modet.TextTransparency = modet.TextTransparency - .02
  361. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  362. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  363. tecks2.TextTransparency = tecks2.TextTransparency + .04
  364. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  365. tecks3.TextTransparency = tecks2.TextTransparency + .04
  366. end
  367. elseif randomrot == 2 then
  368. for i = 1, 50 do
  369. swait()
  370. tecks2.Text = text
  371. tecks3.Text = text
  372. modet.TextTransparency = modet.TextTransparency - .02
  373. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  374. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  375. tecks2.TextTransparency = tecks2.TextTransparency + .04
  376. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  377. tecks3.TextTransparency = tecks2.TextTransparency + .04
  378. end
  379. end
  380. modet.TextTransparency = 0
  381. modet.TextStrokeTransparency = 0
  382. if toggleTag == false then
  383. modet.TextTransparency = 1
  384. modet.TextStrokeTransparency = 1
  385. end
  386. naeeym2:Destroy()
  387. end)
  388. chat()
  389. end
  390.  
  391. function bosschatfunc(text,color,watval)
  392. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  393. coroutine.resume(coroutine.create(function()
  394. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  395. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  396. end
  397. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  398. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  399. scrg.Name = "Dialog"
  400. local txtlb = Instance.new("TextLabel",scrg)
  401. txtlb.Text = ""
  402. txtlb.Font = "Bodoni"
  403. txtlb.TextColor3 = Color3.new(0,0,0)
  404. txtlb.TextStrokeTransparency = 0
  405. txtlb.BackgroundTransparency = 0.75
  406. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  407. txtlb.TextStrokeColor3 = color
  408. txtlb.TextScaled = true
  409. txtlb.Size = UDim2.new(1,0,0.25,0)
  410. txtlb.TextXAlignment = "Left"
  411. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  412. local txtlb2 = Instance.new("TextLabel",scrg)
  413. txtlb2.Text = "?:"
  414. txtlb2.Font = "Arcade"
  415. txtlb2.TextColor3 = Color3.new(0,0,0)
  416. txtlb2.TextStrokeTransparency = 0
  417. txtlb2.BackgroundTransparency = 1
  418. txtlb2.TextStrokeColor3 = color
  419. txtlb2.TextSize = 40
  420. txtlb2.Size = UDim2.new(1,0,0.25,0)
  421. txtlb2.TextXAlignment = "Left"
  422. txtlb2.Position = UDim2.new(0,0,1,0)
  423. local fvalen = 0.55
  424. local fval = -0.49
  425. coroutine.resume(coroutine.create(function()
  426. while true do
  427. swait()
  428. if chaosmode == true then
  429. txtlb.Rotation = math.random(-1,1)
  430. txtlb2.Rotation = math.random(-1,1)
  431. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  432. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  433. txtlb.TextStrokeColor3 = BrickColor.random().Color
  434. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  435. end
  436. end
  437. end))
  438. coroutine.resume(coroutine.create(function()
  439. while true do
  440. swait()
  441. if scrg.Parent ~= nil then
  442. fvalen = fvalen - 0.0001
  443. elseif scrg.Parent == nil then
  444. break
  445. end
  446. end
  447. end))
  448. local flol = 1.75
  449. local flil = 1.6
  450. coroutine.resume(coroutine.create(function()
  451. for i = 0, 9 do
  452. swait()
  453. fval = fval + 0.05
  454. flol = flol - 0.1
  455. flil = flil - 0.1
  456. txtlb.Text = ""
  457. txtlb.Position = UDim2.new(0,0,flol,0)
  458. txtlb2.Position = UDim2.new(0,0,flil,0)
  459. end
  460. txtlb.Text = text
  461. wait(watval)
  462. local valinc = 0
  463. for i = 0, 99 do
  464. swait()
  465. valinc = valinc + 0.0001
  466. flol = flol + valinc
  467. flil = flil + valinc
  468. txtlb.Rotation = txtlb.Rotation + valinc*20
  469. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  470. txtlb.Position = UDim2.new(0,0,flol,0)
  471. txtlb2.Position = UDim2.new(0,0,flil,0)
  472. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  473. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  474. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  475. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  476. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  477. end
  478. scrg:Destroy()
  479. end))
  480. end))
  481. end
  482. end
  483.  
  484.  
  485. local Create = LoadLibrary("RbxUtility").Create
  486.  
  487. CFuncs = {
  488. ["Part"] = {
  489. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  490. local Part = Create("Part"){
  491. Parent = Parent,
  492. Reflectance = Reflectance,
  493. Transparency = Transparency,
  494. CanCollide = false,
  495. Locked = true,
  496. BrickColor = BrickColor.new(tostring(BColor)),
  497. Name = Name,
  498. Size = Size,
  499. Material = Material,
  500. }
  501. RemoveOutlines(Part)
  502. return Part
  503. end;
  504. };
  505.  
  506. ["Mesh"] = {
  507. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  508. local Msh = Create(Mesh){
  509. Parent = Part,
  510. Offset = OffSet,
  511. Scale = Scale,
  512. }
  513. if Mesh == "SpecialMesh" then
  514. Msh.MeshType = MeshType
  515. Msh.MeshId = MeshId
  516. end
  517. return Msh
  518. end;
  519. };
  520.  
  521. ["Mesh"] = {
  522. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  523. local Msh = Create(Mesh){
  524. Parent = Part,
  525. Offset = OffSet,
  526. Scale = Scale,
  527. }
  528. if Mesh == "SpecialMesh" then
  529. Msh.MeshType = MeshType
  530. Msh.MeshId = MeshId
  531. end
  532. return Msh
  533. end;
  534. };
  535.  
  536. ["Weld"] = {
  537. Create = function(Parent, Part0, Part1, C0, C1)
  538. local Weld = Create("Weld"){
  539. Parent = Parent,
  540. Part0 = Part0,
  541. Part1 = Part1,
  542. C0 = C0,
  543. C1 = C1,
  544. }
  545. return Weld
  546. end;
  547. };
  548.  
  549. ["Sound"] = {
  550. Create = function(id, par, vol, pit)
  551. coroutine.resume(coroutine.create(function()
  552. local S = Create("Sound"){
  553. Volume = vol,
  554. Name = "EffectSoundo",
  555. Pitch = pit or 1,
  556. SoundId = id,
  557. Parent = par or workspace,
  558. }
  559. wait()
  560. S:play()
  561. game:GetService("Debris"):AddItem(S, 10)
  562. end))
  563. end;
  564. };
  565.  
  566. ["TimeSound"] = {
  567. Create = function(id, par, vol, pit, timepos)
  568. coroutine.resume(coroutine.create(function()
  569. local S = Create("Sound"){
  570. Volume = vol,
  571. Name = "EffectSoundo",
  572. Pitch = pit or 1,
  573. SoundId = id,
  574. TimePosition = timepos,
  575. Parent = par or workspace,
  576. }
  577. wait()
  578. S:play()
  579. game:GetService("Debris"):AddItem(S, 10)
  580. end))
  581. end;
  582. };
  583. ["EchoSound"] = {
  584. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  585. coroutine.resume(coroutine.create(function()
  586. local Sas = Create("Sound"){
  587. Volume = vol,
  588. Name = "EffectSoundo",
  589. Pitch = pit or 1,
  590. SoundId = id,
  591. TimePosition = timepos,
  592. Parent = par or workspace,
  593. }
  594. local E = Create("EchoSoundEffect"){
  595. Delay = echodelay,
  596. Name = "Echo",
  597. Feedback = fedb,
  598. DryLevel = dryl,
  599. Parent = Sas,
  600. }
  601. wait()
  602. Sas:play()
  603. game:GetService("Debris"):AddItem(Sas, delays)
  604. end))
  605. end;
  606. };
  607.  
  608. ["LongSound"] = {
  609. Create = function(id, par, vol, pit)
  610. coroutine.resume(coroutine.create(function()
  611. local S = Create("Sound"){
  612. Volume = vol,
  613. Pitch = pit or 1,
  614. SoundId = id,
  615. Parent = par or workspace,
  616. }
  617. wait()
  618. S:play()
  619. game:GetService("Debris"):AddItem(S, 60)
  620. end))
  621. end;
  622. };
  623.  
  624. ["ParticleEmitter"] = {
  625. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  626. local fp = Create("ParticleEmitter"){
  627. Parent = Parent,
  628. Color = ColorSequence.new(Color1, Color2),
  629. LightEmission = LightEmission,
  630. Size = Size,
  631. Texture = Texture,
  632. Transparency = Transparency,
  633. ZOffset = ZOffset,
  634. Acceleration = Accel,
  635. Drag = Drag,
  636. LockedToPart = LockedToPart,
  637. VelocityInheritance = VelocityInheritance,
  638. EmissionDirection = EmissionDirection,
  639. Enabled = Enabled,
  640. Lifetime = LifeTime,
  641. Rate = Rate,
  642. Rotation = Rotation,
  643. RotSpeed = RotSpeed,
  644. Speed = Speed,
  645. VelocitySpread = VelocitySpread,
  646. }
  647. return fp
  648. end;
  649. };
  650.  
  651. CreateTemplate = {
  652.  
  653. };
  654. }
  655.  
  656.  
  657.  
  658. New = function(Object, Parent, Name, Data)
  659. local Object = Instance.new(Object)
  660. for Index, Value in pairs(Data or {}) do
  661. Object[Index] = Value
  662. end
  663. Object.Parent = Parent
  664. Object.Name = Name
  665. return Object
  666. end
  667. local halocolor = BrickColor.new("Pastel light blue")
  668. local halocolor2 = BrickColor.new("Cool yellow")
  669. local starcolor = BrickColor.new("Bright yellow")
  670. local lunacolor = BrickColor.new("Navy blue")
  671. local lunacolor2 = BrickColor.new("Bright blue")
  672. local wepcolor = BrickColor.new("Really black")
  673. local maincolor = BrickColor.new("Really black")
  674. local m = Instance.new("Model",char)
  675. local m2 = Instance.new("Model",char)
  676. local m3 = Instance.new("Model",char)
  677. local mw1 = Instance.new("Model",char)
  678. local mw2 = Instance.new("Model",char)
  679.  
  680.  
  681. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  682. local gui = it(GuiType)
  683. gui.Parent = parent
  684. gui.Text = text
  685. gui.BackgroundTransparency = backtrans
  686. gui.BackgroundColor3 = backcol
  687. gui.SizeConstraint = "RelativeXY"
  688. gui.TextXAlignment = "Center"
  689. gui.TextYAlignment = "Center"
  690. gui.Position = pos
  691. gui.Size = size
  692. gui.Font = "SourceSans"
  693. gui.FontSize = "Size14"
  694. gui.TextWrapped = false
  695. gui.TextStrokeTransparency = 0
  696. gui.TextColor = BrickColor.new("White")
  697. return gui
  698. end
  699. --------------------------- GUI STUFF
  700. local basgui = it("GuiMain")
  701. basgui.Parent = plr.PlayerGui
  702. basgui.Name = "VISgui"
  703. local fullscreenz = it("Frame")
  704. fullscreenz.Parent = basgui
  705. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  706. fullscreenz.BackgroundTransparency = 1
  707. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  708. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  709. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  710. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  711. imgl2.BackgroundTransparency = 1
  712. imgl2.BorderSizePixel = 0
  713. imgl2.ImageTransparency = 0.5
  714. imgl2.ImageColor3 = Color3.new(1,0,0)
  715. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  716. imgl2.Size = UDim2.new(0,1000,0,1000)
  717. imgl2.Image = "rbxassetid://2325939897"
  718. local techc = imgl2:Clone()
  719. techc.Parent = fullscreenz
  720. techc.ImageTransparency = 0
  721. techc.Size = UDim2.new(0,900,0,900)
  722. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  723. techc.ImageColor3 = Color3.new(1,0,0)
  724. techc.Image = "rbxassetid://2273224484"
  725. local circl = imgl2:Clone()
  726. circl.Parent = fullscreenz
  727. circl.ImageTransparency = 0
  728. circl.Size = UDim2.new(0,550,0,550)
  729. circl.Position = UDim2.new(0.75,25,0.55,25)
  730. circl.ImageColor3 = Color3.new(0,0,0)
  731. circl.Image = "rbxassetid://2312119891"
  732. local circl2 = imgl2:Clone()
  733. circl2.Parent = fullscreenz
  734. circl2.ImageTransparency = 0
  735. circl2.Size = UDim2.new(0,700,0,700)
  736. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  737. circl2.ImageColor3 = Color3.new(1,0,0)
  738. circl2.Image = "rbxassetid://2312119891"
  739. local imgl2b = imgl2:Clone()
  740. imgl2b.Parent = fullscreenz
  741. imgl2b.ImageTransparency = 0
  742. imgl2b.Size = UDim2.new(0,800,0,800)
  743. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  744. imgl2b.ImageColor3 = Color3.new(0,0,0)
  745. local ned = Instance.new("TextLabel",fullscreenz)
  746. ned.ZIndex = 2
  747. ned.Font = "Arcade"
  748. ned.BackgroundTransparency = 1
  749. ned.BorderSizePixel = 0.65
  750. ned.Size = UDim2.new(0.3,0,0.2,0)
  751. ned.Position = UDim2.new(0.7,0,0.8,0)
  752. ned.TextColor3 = BrickColor.new("Really red").Color
  753. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  754. ned.TextScaled = true
  755. ned.TextStrokeTransparency = 0
  756. ned.Text = "MAYHEM"
  757. ned.TextSize = 24
  758. ned.Rotation = 1
  759. ned.TextXAlignment = "Right"
  760. ned.TextYAlignment = "Bottom"
  761.  
  762.  
  763.  
  764. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  765. local p = Instance.new("Part")
  766. p.TopSurface = 0
  767. p.BottomSurface = 0
  768. p.Parent = parent
  769. p.Size = Vector3.new(0.1,0.1,0.1)
  770. p.Transparency = transparency
  771. p.Reflectance = reflectance
  772. p.CanCollide = false
  773. p.Locked = true
  774. p.BrickColor = brickcolor
  775. p.Material = material
  776. return p
  777. end
  778.  
  779. function CreateMesh(parent,meshtype,x1,y1,z1)
  780. local mesh = Instance.new("SpecialMesh",parent)
  781. mesh.MeshType = meshtype
  782. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  783. return mesh
  784. end
  785.  
  786. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  787. local mesh = Instance.new("SpecialMesh",parent)
  788. mesh.MeshType = "FileMesh"
  789. mesh.MeshId = meshid
  790. mesh.Scale = Vector3.new(x1,y1,z1)
  791. return mesh
  792. end
  793.  
  794.  
  795. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  796. local mesh = Instance.new("SpecialMesh",parent)
  797. mesh.MeshType = "FileMesh"
  798. mesh.MeshId = meshid
  799. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  800. mesh.Scale = Vector3.new(x1,y1,z1)
  801. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  802. return mesh
  803. end
  804.  
  805. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  806. local weld = Instance.new("Weld")
  807. weld.Parent = parent
  808. weld.Part0 = part0
  809. weld.Part1 = part1
  810. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  811. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  812. return weld
  813. end
  814.  
  815.  
  816. --------------
  817. --------------
  818.  
  819.  
  820.  
  821.  
  822.  
  823. ---- HERES THE RING
  824.  
  825.  
  826. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  827. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  828. 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))
  829. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  830. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  831. 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))
  832. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  833. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  834. 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))
  835.  
  836.  
  837. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  838. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  839. 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))
  840.  
  841. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  842. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  843. 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))
  844.  
  845.  
  846.  
  847. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  848. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  849. 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))
  850.  
  851. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  852. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  853. 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))
  854.  
  855. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  856. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  857. 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))
  858.  
  859. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  860. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  861. 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))
  862. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  863. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  864. 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))
  865.  
  866. --- second ring
  867.  
  868. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  869. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  870. 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))
  871. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  872. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  873. 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))
  874. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  875. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  876. 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))
  877.  
  878. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  879. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  880. 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))
  881.  
  882. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  883. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  884. 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))
  885.  
  886.  
  887.  
  888. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  889. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  890. 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))
  891.  
  892. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  893. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  894. 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))
  895.  
  896. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  897. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  898. 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))
  899.  
  900. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  901. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  902. 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))
  903. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  904. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  905. 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))]]--
  906.  
  907.  
  908.  
  909. for i, v in pairs(m:GetChildren()) do
  910. if v:IsA("Part") then
  911. v.BrickColor = BrickColor.new("Really black")
  912. v.Material = "Glass"
  913. end
  914. end
  915. for i, v in pairs(m2:GetChildren()) do
  916. if v:IsA("Part") then
  917. v.BrickColor = BrickColor.new("Crimson")
  918. v.Material = "Granite"
  919. end
  920. end
  921. for i, v in pairs(m3:GetChildren()) do
  922. if v:IsA("Part") then
  923. v.BrickColor = BrickColor.new("Really red")
  924. v.Material = "Neon"
  925. end
  926. end
  927. for i, v in pairs(mw2:GetChildren()) do
  928. if v:IsA("Part") then
  929. v.BrickColor = BrickColor.new("Really red")
  930. v.Material = "Neon"
  931. end
  932. end
  933. for i, v in pairs(mw1:GetChildren()) do
  934. if v:IsA("Part") then
  935. v.Transparency = 1
  936. v.BrickColor = BrickColor.new("Really red")
  937. v.Material = "Neon"
  938. end
  939. end
  940.  
  941. ------
  942.  
  943.  
  944. function RemoveOutlines(part)
  945. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  946. end
  947. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  948. local Part = Create("Part")({
  949. Parent = Parent,
  950. Reflectance = Reflectance,
  951. Transparency = Transparency,
  952. CanCollide = false,
  953. Locked = true,
  954. BrickColor = BrickColor.new(tostring(BColor)),
  955. Name = Name,
  956. Size = Size,
  957. Material = Material
  958. })
  959. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  960. RemoveOutlines(Part)
  961. return Part
  962. end
  963. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  964. local Msh = Create(Mesh)({
  965. Parent = Part,
  966. Offset = OffSet,
  967. Scale = Scale
  968. })
  969. if Mesh == "SpecialMesh" then
  970. Msh.MeshType = MeshType
  971. Msh.MeshId = MeshId
  972. end
  973. return Msh
  974. end
  975. function CreateWeld(Parent, Part0, Part1, C0, C1)
  976. local Weld = Create("Weld")({
  977. Parent = Parent,
  978. Part0 = Part0,
  979. Part1 = Part1,
  980. C0 = C0,
  981. C1 = C1
  982. })
  983. return Weld
  984. end
  985.  
  986. Character=Player.Character
  987. PlayerGui=Player.PlayerGui
  988. Backpack=Player.Backpack
  989. Torso=Character.Torso
  990. Head=Character.Head
  991. Humanoid=Character.Humanoid
  992. m=Instance.new('Model',Character)
  993. LeftArm=Character["Left Arm"]
  994. LeftLeg=Character["Left Leg"]
  995. RightArm=Character["Right Arm"]
  996. RightLeg=Character["Right Leg"]
  997. LS=Torso["Left Shoulder"]
  998. LH=Torso["Left Hip"]
  999. RS=Torso["Right Shoulder"]
  1000. RH=Torso["Right Hip"]
  1001. Face = Head.face
  1002. Neck=Torso.Neck
  1003. it=Instance.new
  1004. attacktype=1
  1005. vt=Vector3.new
  1006. cf=CFrame.new
  1007. euler=CFrame.fromEulerAnglesXYZ
  1008. angles=CFrame.Angles
  1009. cloaked=false
  1010. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1011. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1012. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1013. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1014. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1015. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1016. RootPart=Character.HumanoidRootPart
  1017. RootJoint=RootPart.RootJoint
  1018. RootCF=euler(-1.57,0,3.14)
  1019. attack = false
  1020. attackdebounce = false
  1021. deb=false
  1022. equipped=true
  1023. hand=false
  1024. combo=0
  1025. mana=0
  1026. trispeed=.2
  1027. attackmode='none'
  1028. local idle=0
  1029. local Anim="Idle"
  1030. local Effects={}
  1031. local gun=false
  1032. local shoot=false
  1033. local sine = 0
  1034. local change = 1
  1035.  
  1036. function RecolorTextAndRename(name,col1,col2,font)
  1037. modet.TextStrokeColor3 = col2
  1038. modet.TextColor3 = col1
  1039. modet.Font = font
  1040. modet.Text = name
  1041. techc.ImageColor3 = col2
  1042. circl.ImageColor3 = col2
  1043. circl2.ImageColor3 = col1
  1044. imgl2.ImageColor3 = col1
  1045. imgl2b.ImageColor3 = col2
  1046. ned.Text = name
  1047. ned.TextColor3 = col1
  1048. ned.TextStrokeColor3 = col2
  1049. end
  1050. --save shoulders
  1051. RSH, LSH=nil, nil
  1052. --welds
  1053. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1054. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1055. LH=Torso["Left Hip"]
  1056. RH=Torso["Right Hip"]
  1057. TorsoColor=Torso.BrickColor
  1058. function NoOutline(Part)
  1059. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1060. end
  1061. ch=Character
  1062. RSH=ch.Torso["Right Shoulder"]
  1063. LSH=ch.Torso["Left Shoulder"]
  1064. --
  1065. RSH.Parent=nil
  1066. LSH.Parent=nil
  1067. --
  1068. RW.Name="Right Shoulder"
  1069. RW.Part0=ch.Torso
  1070. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1071. RW.C1=cf(0, 0.5, 0)
  1072. RW.Part1=ch["Right Arm"]
  1073. RW.Parent=ch.Torso
  1074. --
  1075. LW.Name="Left Shoulder"
  1076. LW.Part0=ch.Torso
  1077. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1078. LW.C1=cf(0, 0.5, 0)
  1079. LW.Part1=ch["Left Arm"]
  1080. LW.Parent=ch.Torso
  1081.  
  1082. local Stats=Instance.new("BoolValue")
  1083. Stats.Name="Stats"
  1084. Stats.Parent=Character
  1085. local Atk=Instance.new("NumberValue")
  1086. Atk.Name="Damage"
  1087. Atk.Parent=Stats
  1088. Atk.Value=1
  1089. local Def=Instance.new("NumberValue")
  1090. Def.Name="Defense"
  1091. Def.Parent=Stats
  1092. Def.Value=1
  1093. local Speed=Instance.new("NumberValue")
  1094. Speed.Name="Speed"
  1095. Speed.Parent=Stats
  1096. Speed.Value=1
  1097. local Mvmt=Instance.new("NumberValue")
  1098. Mvmt.Name="Movement"
  1099. Mvmt.Parent=Stats
  1100. Mvmt.Value=1
  1101.  
  1102. local donum=0
  1103.  
  1104.  
  1105. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1106. local fp=it("Part")
  1107. fp.formFactor=formfactor
  1108. fp.Parent=parent
  1109. fp.Reflectance=reflectance
  1110. fp.Transparency=transparency
  1111. fp.CanCollide=false
  1112. fp.Locked=true
  1113. fp.BrickColor=brickcolor
  1114. fp.Name=name
  1115. fp.Size=size
  1116. fp.Position=Torso.Position
  1117. NoOutline(fp)
  1118. fp.Material="SmoothPlastic"
  1119. fp:BreakJoints()
  1120. return fp
  1121. end
  1122.  
  1123. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1124. local mesh=it(Mesh)
  1125. mesh.Parent=part
  1126. if Mesh=="SpecialMesh" then
  1127. mesh.MeshType=meshtype
  1128. if meshid~="nil" then
  1129. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1130. end
  1131. end
  1132. mesh.Offset=offset
  1133. mesh.Scale=scale
  1134. return mesh
  1135. end
  1136.  
  1137. function weld(parent,part0,part1,c0)
  1138. local weld=it("Weld")
  1139. weld.Parent=parent
  1140. weld.Part0=part0
  1141. weld.Part1=part1
  1142. weld.C0=c0
  1143. return weld
  1144. end
  1145.  
  1146. local Color1=Torso.BrickColor
  1147.  
  1148. local bodvel=Instance.new("BodyVelocity")
  1149. local bg=Instance.new("BodyGyro")
  1150.  
  1151. --------- SazEreno's Artificial HB --------------
  1152. ArtificialHB = Instance.new("BindableEvent", script)
  1153. ArtificialHB.Name = "ArtificialHB"
  1154.  
  1155. script:WaitForChild("ArtificialHB")
  1156. Frame_Speed = 1 / 60
  1157. frame = Frame_Speed
  1158. tf = 0
  1159. allowframeloss = false
  1160. tossremainder = false
  1161. lastframe = tick()
  1162. script.ArtificialHB:Fire()
  1163.  
  1164. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1165. tf = tf + s
  1166. if tf >= frame then
  1167. if allowframeloss then
  1168. script.ArtificialHB:Fire()
  1169. lastframe = tick()
  1170. else
  1171. for i = 1, math.floor(tf / frame) do
  1172. script.ArtificialHB:Fire()
  1173. end
  1174. lastframe = tick()
  1175. end
  1176. if tossremainder then
  1177. tf = 0
  1178. else
  1179. tf = tf - frame * math.floor(tf / frame)
  1180. end
  1181. end
  1182. end)
  1183.  
  1184. ------------------
  1185. function swait(num)
  1186. function swait(num)
  1187. if num==0 or num==nil then
  1188. game:service'RunService'.Stepped:wait(0)
  1189. else
  1190. for i=0,num do
  1191. game:service'RunService'.Stepped:wait(0)
  1192. end
  1193. end
  1194. end
  1195. end
  1196.  
  1197. -------- RAINBOW LEAVE IT TO ME
  1198. local r = 255
  1199. local g = 0
  1200. local b = 0
  1201. coroutine.resume(coroutine.create(function()
  1202. while wait() do
  1203. for i = 0, 254/5 do
  1204. swait()
  1205. g = g + 5
  1206. end
  1207. for i = 0, 254/5 do
  1208. swait()
  1209. r = r - 5
  1210. end
  1211. for i = 0, 254/5 do
  1212. swait()
  1213. b = b + 5
  1214. end
  1215. for i = 0, 254/5 do
  1216. swait()
  1217. g = g - 5
  1218. end
  1219. for i = 0, 254/5 do
  1220. swait()
  1221. r = r + 5
  1222. end
  1223. for i = 0, 254/5 do
  1224. swait()
  1225. b = b - 5
  1226. end
  1227. end
  1228. end))
  1229.  
  1230.  
  1231. so = function(id,par,vol,pit)
  1232. coroutine.resume(coroutine.create(function()
  1233. local sou = Instance.new("Sound",par or workspace)
  1234. sou.Volume=vol
  1235. sou.Pitch=pit or 1
  1236. sou.SoundId=id
  1237. swait()
  1238. sou:play()
  1239. game:GetService("Debris"):AddItem(sou,6)
  1240. end))
  1241. end
  1242.  
  1243. function clerp(a,b,t)
  1244. local qa = {QuaternionFromCFrame(a)}
  1245. local qb = {QuaternionFromCFrame(b)}
  1246. local ax, ay, az = a.x, a.y, a.z
  1247. local bx, by, bz = b.x, b.y, b.z
  1248. local _t = 1-t
  1249. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1250. end
  1251.  
  1252. function QuaternionFromCFrame(cf)
  1253. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1254. local trace = m00 + m11 + m22
  1255. if trace > 0 then
  1256. local s = math.sqrt(1 + trace)
  1257. local recip = 0.5/s
  1258. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1259. else
  1260. local i = 0
  1261. if m11 > m00 then
  1262. i = 1
  1263. end
  1264. if m22 > (i == 0 and m00 or m11) then
  1265. i = 2
  1266. end
  1267. if i == 0 then
  1268. local s = math.sqrt(m00-m11-m22+1)
  1269. local recip = 0.5/s
  1270. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1271. elseif i == 1 then
  1272. local s = math.sqrt(m11-m22-m00+1)
  1273. local recip = 0.5/s
  1274. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1275. elseif i == 2 then
  1276. local s = math.sqrt(m22-m00-m11+1)
  1277. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1278. end
  1279. end
  1280. end
  1281.  
  1282. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1283. local xs, ys, zs = x + x, y + y, z + z
  1284. local wx, wy, wz = w*xs, w*ys, w*zs
  1285. local xx = x*xs
  1286. local xy = x*ys
  1287. local xz = x*zs
  1288. local yy = y*ys
  1289. local yz = y*zs
  1290. local zz = z*zs
  1291. 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))
  1292. end
  1293.  
  1294. function QuaternionSlerp(a, b, t)
  1295. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1296. local startInterp, finishInterp;
  1297. if cosTheta >= 0.0001 then
  1298. if (1 - cosTheta) > 0.0001 then
  1299. local theta = math.acos(cosTheta)
  1300. local invSinTheta = 1/math.sin(theta)
  1301. startInterp = math.sin((1-t)*theta)*invSinTheta
  1302. finishInterp = math.sin(t*theta)*invSinTheta
  1303. else
  1304. startInterp = 1-t
  1305. finishInterp = t
  1306. end
  1307. else
  1308. if (1+cosTheta) > 0.0001 then
  1309. local theta = math.acos(-cosTheta)
  1310. local invSinTheta = 1/math.sin(theta)
  1311. startInterp = math.sin((t-1)*theta)*invSinTheta
  1312. finishInterp = math.sin(t*theta)*invSinTheta
  1313. else
  1314. startInterp = t-1
  1315. finishInterp = t
  1316. end
  1317. end
  1318. 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
  1319. end
  1320.  
  1321. local function CFrameFromTopBack(at, top, back)
  1322. local right = top:Cross(back)
  1323. return CFrame.new(at.x, at.y, at.z,
  1324. right.x, top.x, back.x,
  1325. right.y, top.y, back.y,
  1326. right.z, top.z, back.z)
  1327. end
  1328.  
  1329. function Triangle(a, b, c)
  1330. local edg1 = (c-a):Dot((b-a).unit)
  1331. local edg2 = (a-b):Dot((c-b).unit)
  1332. local edg3 = (b-c):Dot((a-c).unit)
  1333. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1334. a, b, c = a, b, c
  1335. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1336. a, b, c = b, c, a
  1337. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1338. a, b, c = c, a, b
  1339. else
  1340. assert(false, "unreachable")
  1341. end
  1342.  
  1343. local len1 = (c-a):Dot((b-a).unit)
  1344. local len2 = (b-a).magnitude - len1
  1345. local width = (a + (b-a).unit*len1 - c).magnitude
  1346.  
  1347. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1348.  
  1349. local list = {}
  1350.  
  1351. if len1 > 0.01 then
  1352. local w1 = Instance.new('WedgePart', m)
  1353. game:GetService("Debris"):AddItem(w1,5)
  1354. w1.Material = "SmoothPlastic"
  1355. w1.FormFactor = 'Custom'
  1356. w1.BrickColor = BrickColor.new("Really red")
  1357. w1.Transparency = 0
  1358. w1.Reflectance = 0
  1359. w1.Material = "SmoothPlastic"
  1360. w1.CanCollide = false
  1361. local l1 = Instance.new("PointLight",w1)
  1362. l1.Color = Color3.new(170,0,0)
  1363. NoOutline(w1)
  1364. local sz = Vector3.new(0.2, width, len1)
  1365. w1.Size = sz
  1366. local sp = Instance.new("SpecialMesh",w1)
  1367. sp.MeshType = "Wedge"
  1368. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1369. w1:BreakJoints()
  1370. w1.Anchored = true
  1371. w1.Parent = workspace
  1372. w1.Transparency = 0.7
  1373. table.insert(Effects,{w1,"Disappear",.01})
  1374. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1375. table.insert(list,w1)
  1376. end
  1377.  
  1378. if len2 > 0.01 then
  1379. local w2 = Instance.new('WedgePart', m)
  1380. game:GetService("Debris"):AddItem(w2,5)
  1381. w2.Material = "SmoothPlastic"
  1382. w2.FormFactor = 'Custom'
  1383. w2.BrickColor = BrickColor.new("Really red")
  1384. w2.Transparency = 0
  1385. w2.Reflectance = 0
  1386. w2.Material = "SmoothPlastic"
  1387. w2.CanCollide = false
  1388. local l2 = Instance.new("PointLight",w2)
  1389. l2.Color = Color3.new(170,0,0)
  1390. NoOutline(w2)
  1391. local sz = Vector3.new(0.2, width, len2)
  1392. w2.Size = sz
  1393. local sp = Instance.new("SpecialMesh",w2)
  1394. sp.MeshType = "Wedge"
  1395. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1396. w2:BreakJoints()
  1397. w2.Anchored = true
  1398. w2.Parent = workspace
  1399. w2.Transparency = 0.7
  1400. table.insert(Effects,{w2,"Disappear",.01})
  1401. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1402. table.insert(list,w2)
  1403. end
  1404. return unpack(list)
  1405. end
  1406.  
  1407.  
  1408. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1409. if hit.Parent == nil then
  1410. return
  1411. end
  1412. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1413. for _, v in pairs(hit.Parent:children()) do
  1414. if v:IsA("Humanoid") then
  1415. h = v
  1416. end
  1417. end
  1418. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1419. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1420. return
  1421. end
  1422. local c = Create("ObjectValue")({
  1423. Name = "creator",
  1424. Value = game:GetService("Players").LocalPlayer,
  1425. Parent = h
  1426. })
  1427. game:GetService("Debris"):AddItem(c, 0.5)
  1428. if HitSound ~= nil and HitPitch ~= nil then
  1429. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1430. end
  1431. local Damage = math.random(minim, maxim)
  1432. local blocked = false
  1433. local block = hit.Parent:findFirstChild("Block")
  1434. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1435. blocked = true
  1436. block.Value = block.Value - 1
  1437. print(block.Value)
  1438. end
  1439. if blocked == false then
  1440. HitHealth = h.Health
  1441. h.MaxHealth = 100
  1442. h.Health = h.Health - Damage
  1443. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1444. print("gained kill")
  1445. dmg(h.Parent)
  1446. end
  1447. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1448. else
  1449. h.Health = h.Health - Damage / 2
  1450. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1451. end
  1452. if Type == "Knockdown" then
  1453. local hum = hit.Parent.Humanoid
  1454. hum.PlatformStand = true
  1455. coroutine.resume(coroutine.create(function(HHumanoid)
  1456. swait(1)
  1457. HHumanoid.PlatformStand = false
  1458. end), hum)
  1459. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1460. local bodvol = Create("BodyVelocity")({
  1461. velocity = angle * knockback,
  1462. P = 5000,
  1463. maxForce = Vector3.new(8000, 8000, 8000),
  1464. Parent = hit
  1465. })
  1466. local rl = Create("BodyAngularVelocity")({
  1467. P = 3000,
  1468. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1469. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1470. Parent = hit
  1471. })
  1472. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1473. game:GetService("Debris"):AddItem(rl, 0.5)
  1474. elseif Type == "Normal" then
  1475. local vp = Create("BodyVelocity")({
  1476. P = 500,
  1477. maxForce = Vector3.new(math.huge, 0, math.huge),
  1478. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1479. })
  1480. if knockback > 0 then
  1481. vp.Parent = hit.Parent.Head
  1482. end
  1483. game:GetService("Debris"):AddItem(vp, 0.5)
  1484. elseif Type == "Up" then
  1485. local bodyVelocity = Create("BodyVelocity")({
  1486. velocity = Vector3.new(0, 20, 0),
  1487. P = 5000,
  1488. maxForce = Vector3.new(8000, 8000, 8000),
  1489. Parent = hit
  1490. })
  1491. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1492. local bodyVelocity = Create("BodyVelocity")({
  1493. velocity = Vector3.new(0, 20, 0),
  1494. P = 5000,
  1495. maxForce = Vector3.new(8000, 8000, 8000),
  1496. Parent = hit
  1497. })
  1498. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1499. elseif Type == "Leech" then
  1500. local hum = hit.Parent.Humanoid
  1501. if hum ~= nil then
  1502. for i = 0, 2 do
  1503. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1504. end
  1505. Humanoid.Health = Humanoid.Health + 10
  1506. end
  1507. elseif Type == "UpKnock" then
  1508. local hum = hit.Parent.Humanoid
  1509. hum.PlatformStand = true
  1510. if hum ~= nil then
  1511. hitr = true
  1512. end
  1513. coroutine.resume(coroutine.create(function(HHumanoid)
  1514. swait(5)
  1515. HHumanoid.PlatformStand = false
  1516. hitr = false
  1517. end), hum)
  1518. local bodyVelocity = Create("BodyVelocity")({
  1519. velocity = Vector3.new(0, 20, 0),
  1520. P = 5000,
  1521. maxForce = Vector3.new(8000, 8000, 8000),
  1522. Parent = hit
  1523. })
  1524. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1525. local bodyVelocity = Create("BodyVelocity")({
  1526. velocity = Vector3.new(0, 20, 0),
  1527. P = 5000,
  1528. maxForce = Vector3.new(8000, 8000, 8000),
  1529. Parent = hit
  1530. })
  1531. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1532. elseif Type == "Snare" then
  1533. local bp = Create("BodyPosition")({
  1534. P = 2000,
  1535. D = 100,
  1536. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1537. position = hit.Parent.Torso.Position,
  1538. Parent = hit.Parent.Torso
  1539. })
  1540. game:GetService("Debris"):AddItem(bp, 1)
  1541. elseif Type == "Slashnare" then
  1542. 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)
  1543. for i = 1, math.random(4, 5) do
  1544. 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)
  1545. end
  1546. local bp = Create("BodyPosition")({
  1547. P = 2000,
  1548. D = 100,
  1549. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1550. position = hit.Parent.Torso.Position,
  1551. Parent = hit.Parent.Torso
  1552. })
  1553. game:GetService("Debris"):AddItem(bp, 1)
  1554. elseif Type == "Spike" then
  1555. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1556. local bp = Create("BodyPosition")({
  1557. P = 2000,
  1558. D = 100,
  1559. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1560. position = hit.Parent.Torso.Position,
  1561. Parent = hit.Parent.Torso
  1562. })
  1563. game:GetService("Debris"):AddItem(bp, 1)
  1564. elseif Type == "Freeze" then
  1565. local BodPos = Create("BodyPosition")({
  1566. P = 50000,
  1567. D = 1000,
  1568. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1569. position = hit.Parent.Torso.Position,
  1570. Parent = hit.Parent.Torso
  1571. })
  1572. local BodGy = Create("BodyGyro")({
  1573. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1574. P = 20000,
  1575. Parent = hit.Parent.Torso,
  1576. cframe = hit.Parent.Torso.CFrame
  1577. })
  1578. hit.Parent.Torso.Anchored = true
  1579. coroutine.resume(coroutine.create(function(Part)
  1580. swait(1.5)
  1581. Part.Anchored = false
  1582. end), hit.Parent.Torso)
  1583. game:GetService("Debris"):AddItem(BodPos, 3)
  1584. game:GetService("Debris"):AddItem(BodGy, 3)
  1585. end
  1586. local debounce = Create("BoolValue")({
  1587. Name = "DebounceHit",
  1588. Parent = hit.Parent,
  1589. Value = true
  1590. })
  1591. game:GetService("Debris"):AddItem(debounce, Delay)
  1592. c = Instance.new("ObjectValue")
  1593. c.Name = "creator"
  1594. c.Value = Player
  1595. c.Parent = h
  1596. game:GetService("Debris"):AddItem(c, 0.5)
  1597. end
  1598. end
  1599. function ShowDamage(Pos, Text, Time, Color)
  1600. local Rate = 0.03333333333333333
  1601. local Pos = Pos or Vector3.new(0, 0, 0)
  1602. local Text = Text or ""
  1603. local Time = Time or 2
  1604. local Color = Color or Color3.new(1, 0, 1)
  1605. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1606. EffectPart.Anchored = true
  1607. local BillboardGui = Create("BillboardGui")({
  1608. Size = UDim2.new(3, 0, 3, 0),
  1609. Adornee = EffectPart,
  1610. Parent = EffectPart
  1611. })
  1612. local TextLabel = Create("TextLabel")({
  1613. BackgroundTransparency = 1,
  1614. Size = UDim2.new(1, 0, 1, 0),
  1615. Text = Text,
  1616. TextColor3 = Color,
  1617. TextScaled = true,
  1618. Font = Enum.Font.ArialBold,
  1619. Parent = BillboardGui
  1620. })
  1621. game.Debris:AddItem(EffectPart, Time + 0.1)
  1622. EffectPart.Parent = game:GetService("Workspace")
  1623. delay(0, function()
  1624. local Frames = Time / Rate
  1625. for Frame = 1, Frames do
  1626. wait(Rate)
  1627. local Percent = Frame / Frames
  1628. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1629. TextLabel.TextTransparency = Percent
  1630. end
  1631. if EffectPart and EffectPart.Parent then
  1632. EffectPart:Destroy()
  1633. end
  1634. end)
  1635. end
  1636. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1637. for _, c in pairs(workspace:children()) do
  1638. local hum = c:findFirstChildOfClass("Humanoid")
  1639. if hum ~= nil then
  1640. local head = c:findFirstChild("Head")
  1641. if head ~= nil then
  1642. local targ = head.Position - Part.Position
  1643. local mag = targ.magnitude
  1644. if magni >= mag and c.Name ~= Player.Name then
  1645. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1646. end
  1647. end
  1648. end
  1649. end
  1650. end
  1651.  
  1652. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1653. for _, c in pairs(workspace:children()) do
  1654. local hum = c:findFirstChild("Humanoid")
  1655. if hum ~= nil then
  1656. local head = c:findFirstChild("Torso")
  1657. if head ~= nil then
  1658. local targ = head.Position - Part.Position
  1659. local mag = targ.magnitude
  1660. if magni >= mag and c.Name ~= Player.Name then
  1661. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1662. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1663. end
  1664. end
  1665. end
  1666. end
  1667. end
  1668.  
  1669. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1670. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1671. end
  1672.  
  1673. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1674. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1675. prt.Anchored=true
  1676. prt.CFrame=cframe
  1677. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1678. --http://www.roblox.com/asset/?id=4770560
  1679. game:GetService("Debris"):AddItem(prt,2)
  1680. CF=prt.CFrame
  1681. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1682. for i=0,1,0.2 do
  1683. wait()
  1684. Part.CFrame=CF*cf(0,0,-0.4)
  1685. end
  1686. for i=0,1,delay do
  1687. wait()
  1688. --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)
  1689. Mesh.Scale=Mesh.Scale
  1690. end
  1691. for i=0,1,0.1 do
  1692. wait()
  1693. Part.Transparency=i
  1694. end
  1695. Part.Parent=nil
  1696. end),prt,msh,CF)
  1697. end
  1698.  
  1699. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1700. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1701. prt.Anchored=true
  1702. prt.Material = "Neon"
  1703. prt.CFrame=cframe
  1704. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1705. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1706. game:GetService("Debris"):AddItem(prt,5)
  1707. coroutine.resume(coroutine.create(function(Part,Mesh)
  1708. for i=0,1,delay do
  1709. swait()
  1710. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1711. Part.Transparency=i
  1712. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1713. end
  1714. Part.Parent=nil
  1715. end),prt,msh)
  1716. end
  1717.  
  1718. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1719. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1720. prt.Anchored=true
  1721. prt.Material = "Neon"
  1722. prt.CFrame=cframe
  1723. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1724. game:GetService("Debris"):AddItem(prt,5)
  1725. coroutine.resume(coroutine.create(function(Part,Mesh)
  1726. local rtype = rottype
  1727. for i=0,1,delay do
  1728. swait()
  1729. if rtype == 1 then
  1730. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1731. elseif rtype == 2 then
  1732. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1733. end
  1734. Part.Transparency=i
  1735. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1736. end
  1737. Part.Parent=nil
  1738. end),prt,msh)
  1739. end
  1740.  
  1741. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1742. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1743. prt.Anchored=true
  1744. prt.CFrame=cframe
  1745. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1746. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1747. game:GetService("Debris"):AddItem(prt,5)
  1748. coroutine.resume(coroutine.create(function(Part,Mesh)
  1749. for i=0,1,delay do
  1750. wait()
  1751. Part.Transparency=i
  1752. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1753. end
  1754. Part.Parent=nil
  1755. end),prt,msh)
  1756. end
  1757.  
  1758. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1759. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1760. prt.Anchored=true
  1761. prt.Material = "Neon"
  1762. prt.CFrame=cframe
  1763. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1764. game:GetService("Debris"):AddItem(prt,5)
  1765. coroutine.resume(coroutine.create(function(Part,Mesh)
  1766. local rtype = rottype
  1767. for i=0,1,delay do
  1768. swait()
  1769. if rtype == 1 then
  1770. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1771. elseif rtype == 2 then
  1772. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1773. end
  1774. Part.Transparency=i
  1775. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1776. end
  1777. Part.Parent=nil
  1778. end),prt,msh)
  1779. end
  1780.  
  1781. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1782. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1783. prt.Anchored=true
  1784. prt.Material = "Neon"
  1785. prt.CFrame=cframe
  1786. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1787. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1788. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1789. game:GetService("Debris"):AddItem(prt,5)
  1790. coroutine.resume(coroutine.create(function(Part,Mesh)
  1791. local rtype = rottype
  1792. for i=0,1,delay do
  1793. swait()
  1794. if rtype == 1 then
  1795. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1796. elseif rtype == 2 then
  1797. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1798. end
  1799. dec.Transparency=i
  1800. dec2.Transparency=i
  1801. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1802. end
  1803. Part.Parent=nil
  1804. end),prt,msh)
  1805. end
  1806.  
  1807. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1808. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1809. prt.Anchored=true
  1810. prt.Material = "Neon"
  1811. prt.CFrame=cframe
  1812. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1813. game:GetService("Debris"):AddItem(prt,5)
  1814. coroutine.resume(coroutine.create(function(Part,Mesh)
  1815. local rtype = rottype
  1816. for i=0,1,delay do
  1817. swait()
  1818. if rtype == 1 then
  1819. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1820. elseif rtype == 2 then
  1821. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1822. end
  1823. prt.Transparency=i
  1824. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1825. end
  1826. Part.Parent=nil
  1827. end),prt,msh)
  1828. end
  1829.  
  1830. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1831. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1832. prt.Anchored=true
  1833. prt.Material = "Neon"
  1834. prt.CFrame=cframe
  1835. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1836. game:GetService("Debris"):AddItem(prt,5)
  1837. coroutine.resume(coroutine.create(function(Part,Mesh)
  1838. local rtype = rottype
  1839. for i=0,1,delay do
  1840. swait()
  1841. if rtype == 1 then
  1842. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1843. elseif rtype == 2 then
  1844. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1845. end
  1846. prt.Transparency=i
  1847. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1848. end
  1849. Part.Parent=nil
  1850. end),prt,msh)
  1851. end
  1852.  
  1853. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1854. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1855. prt.Anchored=true
  1856. prt.Material = "Neon"
  1857. prt.CFrame=cframe
  1858. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1859. game:GetService("Debris"):AddItem(prt,5)
  1860. coroutine.resume(coroutine.create(function(Part,Mesh)
  1861. local rtype = rottype
  1862. for i=0,1,delay do
  1863. swait()
  1864. if rtype == 1 then
  1865. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1866. elseif rtype == 2 then
  1867. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1868. end
  1869. prt.Transparency=i
  1870. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1871. end
  1872. Part.Parent=nil
  1873. end),prt,msh)
  1874. end
  1875.  
  1876. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1877. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1878. prt.Anchored=true
  1879. prt.Material = "Neon"
  1880. prt.CFrame=cframe
  1881. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1882. game:GetService("Debris"):AddItem(prt,5)
  1883. coroutine.resume(coroutine.create(function(Part,Mesh)
  1884. local rtype = rottype
  1885. for i=0,1,delay do
  1886. swait()
  1887. if rtype == 1 then
  1888. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1889. elseif rtype == 2 then
  1890. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1891. end
  1892. prt.Transparency=i
  1893. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1894. end
  1895. Part.Parent=nil
  1896. end),prt,msh)
  1897. end
  1898.  
  1899. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1900. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1901. prt.Anchored=false
  1902. prt.CFrame=cframe
  1903. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1904. local wld=weld(prt,prt,Parent,cframe)
  1905. game:GetService("Debris"):AddItem(prt,5)
  1906. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1907. for i=0,1,delay do
  1908. wait()
  1909. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1910. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1911. Part.Transparency=i
  1912. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1913. end
  1914. Part.Parent=nil
  1915. end),prt,msh,wld)
  1916. end
  1917.  
  1918. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1919. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1920. prt.Anchored=false
  1921. prt.CFrame=cframe
  1922. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1923. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1924. game:GetService("Debris"):AddItem(prt,5)
  1925. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1926. for i=0,1,delay do
  1927. wait()
  1928. Weld.C0=euler(i*20,0,0)
  1929. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1930. Part.Transparency=i
  1931. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1932. end
  1933. Part.Parent=nil
  1934. end),prt,msh,wld)
  1935. end
  1936.  
  1937. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1938. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1939. prt.Anchored=true
  1940. prt.CFrame=cframe
  1941. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1942. game:GetService("Debris"):AddItem(prt,2)
  1943. coroutine.resume(coroutine.create(function(Part,Mesh)
  1944. for i=0,1,delay do
  1945. wait()
  1946. Part.CFrame=Part.CFrame
  1947. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1948. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1949. prt2.Anchored=true
  1950. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1951. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1952. game:GetService("Debris"):AddItem(prt2,2)
  1953. coroutine.resume(coroutine.create(function(Part,Mesh)
  1954. for i=0,1,0.1 do
  1955. wait()
  1956. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1957. end
  1958. Part.Parent=nil
  1959. end),prt2,msh2)
  1960. end
  1961. for i=0,1,delay*2 do
  1962. wait()
  1963. Part.CFrame=Part.CFrame
  1964. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1965. end
  1966. Part.Parent=nil
  1967. end),prt,msh)
  1968. end
  1969.  
  1970. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1971. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1972. prt.Anchored=true
  1973. prt.CFrame=cframe
  1974. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1975. game:GetService("Debris"):AddItem(prt,2)
  1976. coroutine.resume(coroutine.create(function(Part,Mesh)
  1977. for i=0,1,delay do
  1978. wait()
  1979. Part.CFrame=Part.CFrame
  1980. Part.Transparency=i
  1981. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1982. end
  1983. Part.Parent=nil
  1984. end),prt,msh)
  1985. end
  1986.  
  1987. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1988. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1989. prt.Anchored=true
  1990. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1991. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1992. game:GetService("Debris"):AddItem(prt,2)
  1993. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1994. CF=Part.CFrame
  1995. Numbb=0
  1996. randnumb=math.random()/10
  1997. rand1=math.random()/10
  1998. for i=0,1,rand1 do
  1999. wait()
  2000. CF=CF*cf(0,math.random()/2,0)
  2001. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2002. Part.CFrame=CF*euler(Numbb,0,0)
  2003. Part.Transparency=i
  2004. Numbb=Numbb+randnumb
  2005. end
  2006. Part.Parent=nil
  2007. end),prt,CF,Numbb,randnumb)
  2008. end
  2009.  
  2010. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2011. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2012. prt.Anchored=true
  2013. prt.CFrame=cframe
  2014. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2015. game:GetService("Debris"):AddItem(prt,5)
  2016. coroutine.resume(coroutine.create(function(Part,Mesh)
  2017. for i=0,1,delay do
  2018. wait()
  2019. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2020. Part.Transparency=i
  2021. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2022. end
  2023. Part.Parent=nil
  2024. end),prt,msh)
  2025. end
  2026.  
  2027. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2028. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2029. prt.Anchored=true
  2030. prt.CFrame=cframe
  2031. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2032. game:GetService("Debris"):AddItem(prt,2)
  2033. coroutine.resume(coroutine.create(function(Part,Mesh)
  2034. for i=0,1,delay do
  2035. wait()
  2036. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2037. Part.Transparency=i
  2038. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2039. end
  2040. Part.Parent=nil
  2041. end),prt,msh)
  2042. end
  2043.  
  2044. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2045. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2046. prt.Anchored=true
  2047. prt.CFrame=cframe*cf(x,y,z)
  2048. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2049. game:GetService("Debris"):AddItem(prt,5)
  2050. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2051. local num=math.random()
  2052. local num2=math.random(-3,2)+math.random()
  2053. local numm=0
  2054. for i=0,1,delay*2 do
  2055. swait()
  2056. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2057. Part.Transparency=i
  2058. numm=numm+0.01
  2059. end
  2060. Part.Parent=nil
  2061. Mesh.Parent=nil
  2062. end),prt,msh,x,y,z)
  2063. end
  2064.  
  2065. function dmgstart(dmg,what)
  2066. hitcon = what.Touched:connect(function(hit)
  2067. local hum = hit.Parent:FindFirstChild("Humanoid")
  2068. if hum and not hum:IsDescendantOf(Character) then
  2069. hum:TakeDamage(dmg)
  2070. end
  2071. end)
  2072. end
  2073.  
  2074. function dmgstop()
  2075. hitcon:disconnect()
  2076. end
  2077.  
  2078. function Cloak()
  2079. Face.Parent=nil
  2080. cloaked=true
  2081. for _,v in pairs(Torso.Parent:children()) do
  2082. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2083. coroutine.resume(coroutine.create(function()
  2084. for i=0,1,0.2 do
  2085. wait()
  2086. v.Transparency=i
  2087. end
  2088. v.Transparency=1
  2089. end))
  2090. end
  2091. if v.className=="Hat" then
  2092. hatp=v.Handle
  2093. coroutine.resume(coroutine.create(function(derp)
  2094. for i=0,1,0.2 do
  2095. wait()
  2096. derp.Transparency=i
  2097. end
  2098. derp.Transparency=1
  2099. end),hatp)
  2100. end
  2101. end
  2102. for _,v in pairs(m:children()) do
  2103. if v.className=="Part" then
  2104. coroutine.resume(coroutine.create(function()
  2105. for i=0,1,0.2 do
  2106. wait()
  2107. v.Transparency=i
  2108. end
  2109. v.Transparency=1
  2110. end))
  2111. end
  2112. end
  2113. end
  2114.  
  2115. function UnCloak()
  2116. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2117. Face.Parent=Head
  2118. cloaked=false
  2119. for _,v in pairs(Torso.Parent:children()) do
  2120. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2121. coroutine.resume(coroutine.create(function()
  2122. for i=0,1,0.1 do
  2123. wait()
  2124. v.Transparency=v.Transparency-0.1
  2125. end
  2126. v.Transparency=0
  2127. end))
  2128. end
  2129. if v.className=="Hat" then
  2130. hatp=v.Handle
  2131. coroutine.resume(coroutine.create(function(derp)
  2132. for i=0,1,0.1 do
  2133. wait()
  2134. derp.Transparency=derp.Transparency-0.1
  2135. end
  2136. derp.Transparency=0
  2137. end),hatp)
  2138. end
  2139. end
  2140. for _,v in pairs(m:children()) do
  2141. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2142. coroutine.resume(coroutine.create(function()
  2143. for i=0,1,0.1 do
  2144. wait()
  2145. v.Transparency=v.Transparency-0.1
  2146. end
  2147. v.Transparency=0
  2148. end))
  2149. v.Transparency=0
  2150. end
  2151. end
  2152. end
  2153.  
  2154. local origcolor = BrickColor.new("Pastel light blue")
  2155. ---- This section of explosions.
  2156.  
  2157. ----
  2158.  
  2159.  
  2160. function ring(type,pos,scale,value)
  2161. local type = type
  2162. local rng = Instance.new("Part", char)
  2163. rng.Anchored = true
  2164. rng.BrickColor = origcolor
  2165. rng.CanCollide = false
  2166. rng.FormFactor = 3
  2167. rng.Name = "Ring"
  2168. rng.Size = Vector3.new(1, 1, 1)
  2169. rng.Transparency = 0
  2170. rng.TopSurface = 0
  2171. rng.BottomSurface = 0
  2172. rng.CFrame = pos
  2173. local rngm = Instance.new("SpecialMesh", rng)
  2174. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2175. rngm.Scale = scale
  2176. local scaler2 = 1
  2177. if type == "Add" then
  2178. scaler2 = 1*value
  2179. elseif type == "Divide" then
  2180. scaler2 = 1/value
  2181. end
  2182. coroutine.resume(coroutine.create(function()
  2183. for i = 0,10,0.1 do
  2184. swait()
  2185. if type == "Add" then
  2186. scaler2 = scaler2 - 0.01*value
  2187. elseif type == "Divide" then
  2188. scaler2 = scaler2 - 0.01/value
  2189. end
  2190. rng.Transparency = rng.Transparency + 0.01
  2191. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2192. end
  2193. rng:Destroy()
  2194. end))
  2195. end
  2196.  
  2197.  
  2198. function wave(type,pos,scale,value)
  2199. local type = type
  2200. local rng = Instance.new("Part", char)
  2201. rng.Anchored = true
  2202. rng.BrickColor = origcolor
  2203. rng.CanCollide = false
  2204. rng.FormFactor = 3
  2205. rng.Name = "Ring"
  2206. rng.Size = Vector3.new(1, 1, 1)
  2207. rng.Transparency = 0
  2208. rng.TopSurface = 0
  2209. rng.BottomSurface = 0
  2210. rng.CFrame = pos
  2211. local rngm = Instance.new("SpecialMesh", rng)
  2212. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2213. rngm.Scale = scale
  2214. local scaler2 = 1
  2215. if type == "Add" then
  2216. scaler2 = 1*value
  2217. elseif type == "Divide" then
  2218. scaler2 = 1/value
  2219. end
  2220. coroutine.resume(coroutine.create(function()
  2221. for i = 0,10,0.1 do
  2222. swait()
  2223. if type == "Add" then
  2224. scaler2 = scaler2 - 0.01*value
  2225. elseif type == "Divide" then
  2226. scaler2 = scaler2 - 0.01/value
  2227. end
  2228. rng.Transparency = rng.Transparency + 0.01
  2229. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2230. end
  2231. rng:Destroy()
  2232. end))
  2233. end
  2234.  
  2235. function wind(type,pos,scale,value,speed)
  2236. local type = type
  2237. local rng = Instance.new("Part", char)
  2238. rng.Anchored = true
  2239. rng.BrickColor = origcolor
  2240. rng.CanCollide = false
  2241. rng.FormFactor = 3
  2242. rng.Name = "Ring"
  2243. rng.Size = Vector3.new(1, 1, 1)
  2244. rng.Transparency = 0
  2245. rng.TopSurface = 0
  2246. rng.BottomSurface = 0
  2247. rng.CFrame = pos
  2248. local rngm = Instance.new("SpecialMesh", rng)
  2249. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2250. rngm.Scale = scale
  2251. local scaler2 = 1
  2252. if type == "Add" then
  2253. scaler2 = 1*value
  2254. elseif type == "Divide" then
  2255. scaler2 = 1/value
  2256. end
  2257. coroutine.resume(coroutine.create(function()
  2258. for i = 0,10,0.1 do
  2259. swait()
  2260. if type == "Add" then
  2261. scaler2 = scaler2 - 0.01*value
  2262. elseif type == "Divide" then
  2263. scaler2 = scaler2 - 0.01/value
  2264. end
  2265. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2266. rng.Transparency = rng.Transparency + 0.01
  2267. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2268. end
  2269. rng:Destroy()
  2270. end))
  2271. end
  2272.  
  2273. function groundwind(type,pos,scale,value,speed)
  2274. local type = type
  2275. local rng = Instance.new("Part", char)
  2276. rng.Anchored = true
  2277. rng.BrickColor = origcolor
  2278. rng.CanCollide = false
  2279. rng.FormFactor = 3
  2280. rng.Name = "Ring"
  2281. rng.Size = Vector3.new(1, 1, 1)
  2282. rng.Transparency = 0
  2283. rng.TopSurface = 0
  2284. rng.BottomSurface = 0
  2285. rng.CFrame = pos
  2286. local rngm = Instance.new("SpecialMesh", rng)
  2287. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2288. rngm.Scale = scale
  2289. local scaler2 = 1
  2290. if type == "Add" then
  2291. scaler2 = 1*value
  2292. elseif type == "Divide" then
  2293. scaler2 = 1/value
  2294. end
  2295. coroutine.resume(coroutine.create(function()
  2296. for i = 0,10,0.1 do
  2297. swait()
  2298. if type == "Add" then
  2299. scaler2 = scaler2 - 0.01*value
  2300. elseif type == "Divide" then
  2301. scaler2 = scaler2 - 0.01/value
  2302. end
  2303. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2304. rng.Transparency = rng.Transparency + 0.01
  2305. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2306. end
  2307. rng:Destroy()
  2308. end))
  2309. end
  2310.  
  2311. function CameraManager()
  2312. if TwoD and not CamInterrupt then
  2313. if Humanoid.Health > 0 then
  2314. Camera.CameraSubject = Humanoid
  2315. Camera.CameraType = "Scriptable"
  2316. Humanoid.AutoRotate = false
  2317. if Booleans.GyroUse then
  2318. Directer.MaxTorque = Vec3(0, huge, 0)
  2319. else
  2320. Directer.MaxTorque = Vec3(0, 0, 0)
  2321. end
  2322. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2323. if Booleans.CamFollow then
  2324. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2325. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2326. else
  2327. CPart.Position = RootPart.Position
  2328. end
  2329. else
  2330. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2331. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2332. end
  2333. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2334. else
  2335. Camera.CameraSubject = Humanoid
  2336. Camera.CameraType = "Custom"
  2337. Controller.Disabled = false
  2338. end
  2339. end
  2340. end
  2341.  
  2342. function ring(type,pos,scale,value)
  2343. local type = type
  2344. local rng = Instance.new("Part", char)
  2345. rng.Anchored = true
  2346. rng.BrickColor = origcolor
  2347. rng.CanCollide = false
  2348. rng.FormFactor = 3
  2349. rng.Name = "Ring"
  2350. rng.Size = Vector3.new(1, 1, 1)
  2351. rng.Transparency = 0
  2352. rng.TopSurface = 0
  2353. rng.BottomSurface = 0
  2354. rng.CFrame = pos
  2355. local rngm = Instance.new("SpecialMesh", rng)
  2356. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2357. rngm.Scale = scale
  2358. local scaler2 = 1
  2359. if type == "Add" then
  2360. scaler2 = 1*value
  2361. elseif type == "Divide" then
  2362. scaler2 = 1/value
  2363. end
  2364. coroutine.resume(coroutine.create(function()
  2365. for i = 0,10,0.1 do
  2366. swait()
  2367. if type == "Add" then
  2368. scaler2 = scaler2 - 0.01*value
  2369. elseif type == "Divide" then
  2370. scaler2 = scaler2 - 0.01/value
  2371. end
  2372. rng.Transparency = rng.Transparency + 0.01
  2373. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2374. end
  2375. rng:Destroy()
  2376. end))
  2377. end
  2378.  
  2379.  
  2380. function wave(type,pos,scale,value)
  2381. local type = type
  2382. local rng = Instance.new("Part", char)
  2383. rng.Anchored = true
  2384. rng.BrickColor = origcolor
  2385. rng.CanCollide = false
  2386. rng.FormFactor = 3
  2387. rng.Name = "Ring"
  2388. rng.Size = Vector3.new(1, 1, 1)
  2389. rng.Transparency = 0
  2390. rng.TopSurface = 0
  2391. rng.BottomSurface = 0
  2392. rng.CFrame = pos
  2393. local rngm = Instance.new("SpecialMesh", rng)
  2394. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2395. rngm.Scale = scale
  2396. local scaler2 = 1
  2397. if type == "Add" then
  2398. scaler2 = 1*value
  2399. elseif type == "Divide" then
  2400. scaler2 = 1/value
  2401. end
  2402. coroutine.resume(coroutine.create(function()
  2403. for i = 0,10,0.1 do
  2404. swait()
  2405. if type == "Add" then
  2406. scaler2 = scaler2 - 0.01*value
  2407. elseif type == "Divide" then
  2408. scaler2 = scaler2 - 0.01/value
  2409. end
  2410. rng.Transparency = rng.Transparency + 0.01
  2411. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2412. end
  2413. rng:Destroy()
  2414. end))
  2415. end
  2416.  
  2417. function sphere(bonuspeed,type,pos,scale,value,color)
  2418. local type = type
  2419. local rng = Instance.new("Part", char)
  2420. rng.Anchored = true
  2421. if ModeOfGlitch ~= 9 then
  2422. rng.BrickColor = color
  2423. elseif ModeOfGlitch == 9 then
  2424. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2425. end
  2426. rng.CanCollide = false
  2427. rng.FormFactor = 3
  2428. rng.Name = "Ring"
  2429. rng.Material = "Neon"
  2430. rng.Size = Vector3.new(1, 1, 1)
  2431. rng.Transparency = 0
  2432. rng.TopSurface = 0
  2433. rng.BottomSurface = 0
  2434. rng.CFrame = pos
  2435. local rngm = Instance.new("SpecialMesh", rng)
  2436. rngm.MeshType = "Sphere"
  2437. rngm.Scale = scale
  2438. if rainbowmode == true then
  2439. rng.Color = Color3.new(r/255,g/255,b/255)
  2440. end
  2441. if ModeOfGlitch == 9 then
  2442. coroutine.resume(coroutine.create(function()
  2443. while true do
  2444. swait()
  2445. if rng.Parent ~= nil then
  2446. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2447. else
  2448. break
  2449. end
  2450. end
  2451. end))
  2452. end
  2453. local scaler2 = 1
  2454. if type == "Add" then
  2455. scaler2 = 1*value
  2456. elseif type == "Divide" then
  2457. scaler2 = 1/value
  2458. end
  2459. coroutine.resume(coroutine.create(function()
  2460. for i = 0,10/bonuspeed,0.1 do
  2461. swait()
  2462. if rainbowmode == true then
  2463. rng.Color = Color3.new(r/255,g/255,b/255)
  2464. end
  2465. if type == "Add" then
  2466. scaler2 = scaler2 - 0.01*value/bonuspeed
  2467. elseif type == "Divide" then
  2468. scaler2 = scaler2 - 0.01/value*bonuspeed
  2469. end
  2470. if chaosmode == true then
  2471. rng.BrickColor = BrickColor.random()
  2472. end
  2473. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2474. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2475. end
  2476. rng:Destroy()
  2477. end))
  2478. end
  2479.  
  2480. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2481. local type = type
  2482. local rng = Instance.new("Part", char)
  2483. rng.Anchored = true
  2484. if ModeOfGlitch ~= 9 then
  2485. rng.BrickColor = color
  2486. elseif ModeOfGlitch == 9 then
  2487. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2488. end
  2489. rng.CanCollide = false
  2490. rng.FormFactor = 3
  2491. rng.Name = "Ring"
  2492. rng.Material = "Neon"
  2493. rng.Size = Vector3.new(1, 1, 1)
  2494. rng.Transparency = 0
  2495. rng.TopSurface = 0
  2496. rng.BottomSurface = 0
  2497. rng.CFrame = pos
  2498. local rngm = Instance.new("SpecialMesh", rng)
  2499. rngm.MeshType = "Sphere"
  2500. rngm.Scale = scale
  2501. local scaler2 = 1
  2502. local scaler2b = 1
  2503. local scaler2c = 1
  2504. if type == "Add" then
  2505. scaler2 = 1*value
  2506. scaler2b = 1*value2
  2507. scaler2c = 1*value3
  2508. elseif type == "Divide" then
  2509. scaler2 = 1/value
  2510. scaler2b = 1/value2
  2511. scaler2c = 1/value3
  2512. end
  2513. if ModeOfGlitch == 9 then
  2514. coroutine.resume(coroutine.create(function()
  2515. while true do
  2516. swait()
  2517. if rng.Parent ~= nil then
  2518. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2519. else
  2520. break
  2521. end
  2522. end
  2523. end))
  2524. end
  2525. coroutine.resume(coroutine.create(function()
  2526. for i = 0,10/bonuspeed,0.1 do
  2527. swait()
  2528. if type == "Add" then
  2529. scaler2 = scaler2 - 0.01*value/bonuspeed
  2530. scaler2b = scaler2b - 0.01*value/bonuspeed
  2531. scaler2c = scaler2c - 0.01*value/bonuspeed
  2532. elseif type == "Divide" then
  2533. scaler2 = scaler2 - 0.01/value*bonuspeed
  2534. scaler2b = scaler2b - 0.01/value*bonuspeed
  2535. scaler2c = scaler2c - 0.01/value*bonuspeed
  2536. end
  2537. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2538. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2539. end
  2540. rng:Destroy()
  2541. end))
  2542. end
  2543.  
  2544. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2545. local type = type
  2546. local rotenable = rotatingop
  2547. local rng = Instance.new("Part", char)
  2548. rng.Anchored = true
  2549. rng.BrickColor = color
  2550. rng.CanCollide = false
  2551. rng.FormFactor = 3
  2552. rng.Name = "Ring"
  2553. rng.Material = "Neon"
  2554. rng.Size = Vector3.new(1, 1, 1)
  2555. rng.Transparency = 0
  2556. if typeoftrans == "In" then
  2557. rng.Transparency = 1
  2558. end
  2559. rng.TopSurface = 0
  2560. rng.BottomSurface = 0
  2561. rng.CFrame = pos
  2562. local rngm = Instance.new("SpecialMesh", rng)
  2563. rngm.MeshType = "FileMesh"
  2564. if typeofshape == "Normal" then
  2565. rngm.MeshId = "rbxassetid://662586858"
  2566. elseif typeofshape == "Round" then
  2567. rngm.MeshId = "rbxassetid://662585058"
  2568. end
  2569. rngm.Scale = scale
  2570. local scaler2 = 1/10
  2571. if type == "Add" then
  2572. scaler2 = 1*value/10
  2573. elseif type == "Divide" then
  2574. scaler2 = 1/value/10
  2575. end
  2576. local randomrot = math.random(1,2)
  2577. coroutine.resume(coroutine.create(function()
  2578. for i = 0,10/bonuspeed,0.1 do
  2579. swait()
  2580. if type == "Add" then
  2581. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2582. elseif type == "Divide" then
  2583. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2584. end
  2585. if rotenable == true then
  2586. if randomrot == 1 then
  2587. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2588. elseif randomrot == 2 then
  2589. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2590. end
  2591. end
  2592. if typeoftrans == "Out" then
  2593. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2594. elseif typeoftrans == "In" then
  2595. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2596. end
  2597. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2598. end
  2599. rng:Destroy()
  2600. end))
  2601. end
  2602.  
  2603. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2604. local type = type
  2605. local rng = Instance.new("Part", char)
  2606. rng.Anchored = true
  2607. rng.BrickColor = color
  2608. rng.CanCollide = false
  2609. rng.FormFactor = 3
  2610. rng.Name = "Ring"
  2611. rng.Material = "Neon"
  2612. rng.Size = Vector3.new(1, 1, 1)
  2613. rng.Transparency = 0
  2614. rng.TopSurface = 0
  2615. rng.BottomSurface = 0
  2616. rng.CFrame = pos
  2617. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2618. local rngm = Instance.new("SpecialMesh", rng)
  2619. rngm.MeshType = "Brick"
  2620. rngm.Scale = vt(x1,y1,z1)
  2621. if rainbowmode == true then
  2622. rng.Color = Color3.new(r/255,g/255,b/255)
  2623. end
  2624. local scaler2 = 1
  2625. local speeder = FastSpeed/10
  2626. if type == "Add" then
  2627. scaler2 = 1*value
  2628. elseif type == "Divide" then
  2629. scaler2 = 1/value
  2630. end
  2631. coroutine.resume(coroutine.create(function()
  2632. for i = 0,10/bonuspeed,0.1 do
  2633. swait()
  2634. if rainbowmode == true then
  2635. rng.Color = Color3.new(r/255,g/255,b/255)
  2636. end
  2637. if type == "Add" then
  2638. scaler2 = scaler2 - 0.01*value/bonuspeed
  2639. elseif type == "Divide" then
  2640. scaler2 = scaler2 - 0.01/value*bonuspeed
  2641. end
  2642. if chaosmode == true then
  2643. rng.BrickColor = BrickColor.random()
  2644. end
  2645. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2646. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2647. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2648. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2649. end
  2650. rng:Destroy()
  2651. end))
  2652. end
  2653.  
  2654. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2655. local type = type
  2656. local rng = Instance.new("Part", char)
  2657. rng.Anchored = true
  2658. rng.BrickColor = color
  2659. rng.CanCollide = false
  2660. rng.FormFactor = 3
  2661. rng.Name = "Ring"
  2662. rng.Material = "Neon"
  2663. rng.Size = Vector3.new(1, 1, 1)
  2664. rng.Transparency = 0
  2665. rng.TopSurface = 0
  2666. rng.BottomSurface = 0
  2667. rng.CFrame = pos
  2668. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2669. local rngm = Instance.new("SpecialMesh", rng)
  2670. rngm.MeshType = "Brick"
  2671. rngm.Scale = vt(x1,y1,z1)
  2672. if rainbowmode == true then
  2673. rng.Color = Color3.new(r/255,g/255,b/255)
  2674. end
  2675. local scaler2 = 1
  2676. local speeder = FastSpeed/10
  2677. if type == "Add" then
  2678. scaler2 = 1*value
  2679. elseif type == "Divide" then
  2680. scaler2 = 1/value
  2681. end
  2682. coroutine.resume(coroutine.create(function()
  2683. for i = 0,10/bonuspeed,0.1 do
  2684. swait()
  2685. if rainbowmode == true then
  2686. rng.Color = Color3.new(r/255,g/255,b/255)
  2687. end
  2688. if type == "Add" then
  2689. scaler2 = scaler2 - 0.01*value/bonuspeed
  2690. elseif type == "Divide" then
  2691. scaler2 = scaler2 - 0.01/value*bonuspeed
  2692. end
  2693. if chaosmode == true then
  2694. rng.BrickColor = BrickColor.random()
  2695. end
  2696. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2697. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2698. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2699. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2700. end
  2701. rng:Destroy()
  2702. end))
  2703. end
  2704.  
  2705. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2706. local type = type
  2707. local rng = Instance.new("Part", char)
  2708. rng.Anchored = true
  2709. rng.BrickColor = color
  2710. rng.CanCollide = false
  2711. rng.FormFactor = 3
  2712. rng.Name = "Ring"
  2713. rng.Material = "Neon"
  2714. rng.Size = Vector3.new(1, 1, 1)
  2715. rng.Transparency = 0
  2716. rng.TopSurface = 0
  2717. rng.BottomSurface = 0
  2718. rng.CFrame = pos
  2719. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2720. local rngm = Instance.new("SpecialMesh", rng)
  2721. rngm.MeshType = "Brick"
  2722. rngm.Scale = vt(x1,y1,z1)
  2723. if rainbowmode == true then
  2724. rng.Color = Color3.new(r/255,g/255,b/255)
  2725. end
  2726. local scaler2 = 0
  2727. local speeder = FastSpeed/10
  2728. if type == "Add" then
  2729. scaler2 = 1*value
  2730. elseif type == "Divide" then
  2731. scaler2 = 1/value
  2732. end
  2733. coroutine.resume(coroutine.create(function()
  2734. for i = 0,10/bonuspeed,0.1 do
  2735. swait()
  2736. if rainbowmode == true then
  2737. rng.Color = Color3.new(r/255,g/255,b/255)
  2738. end
  2739. if type == "Add" then
  2740. scaler2 = scaler2 - 0.01*value/bonuspeed
  2741. elseif type == "Divide" then
  2742. scaler2 = scaler2 - 0.01/value*bonuspeed
  2743. end
  2744. if chaosmode == true then
  2745. rng.BrickColor = BrickColor.random()
  2746. end
  2747. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2748. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2749. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2750. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2751. end
  2752. rng:Destroy()
  2753. end))
  2754. end
  2755.  
  2756. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  2757. local type = type
  2758. local rng = Instance.new("Part", char)
  2759. rng.Anchored = true
  2760. rng.BrickColor = color
  2761. rng.Color = color3
  2762. rng.CanCollide = false
  2763. rng.FormFactor = 3
  2764. rng.Name = "Ring"
  2765. rng.Material = "Neon"
  2766. rng.Size = Vector3.new(1, 1, 1)
  2767. rng.Transparency = 0
  2768. rng.TopSurface = 0
  2769. rng.BottomSurface = 0
  2770. rng.CFrame = pos
  2771. local rngm = Instance.new("SpecialMesh", rng)
  2772. rngm.MeshType = "Brick"
  2773. rngm.Scale = scale
  2774. local scaler2 = 1
  2775. local scaler2b = 1
  2776. local scaler2c = 1
  2777. if type == "Add" then
  2778. scaler2 = 1*value
  2779. scaler2b = 1*value2
  2780. scaler2c = 1*value3
  2781. elseif type == "Divide" then
  2782. scaler2 = 1/value
  2783. scaler2b = 1/value2
  2784. scaler2c = 1/value3
  2785. end
  2786. coroutine.resume(coroutine.create(function()
  2787. for i = 0,10/bonuspeed,0.1 do
  2788. swait()
  2789. if type == "Add" then
  2790. scaler2 = scaler2 - 0.01*value/bonuspeed
  2791. scaler2b = scaler2b - 0.01*value/bonuspeed
  2792. scaler2c = scaler2c - 0.01*value/bonuspeed
  2793. elseif type == "Divide" then
  2794. scaler2 = scaler2 - 0.01/value*bonuspeed
  2795. scaler2b = scaler2b - 0.01/value*bonuspeed
  2796. scaler2c = scaler2c - 0.01/value*bonuspeed
  2797. end
  2798. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2799. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2800. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2801. end
  2802. rng:Destroy()
  2803. end))
  2804. end
  2805.  
  2806. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2807. local type = type
  2808. local rng = Instance.new("Part", char)
  2809. rng.Anchored = true
  2810. if ModeOfGlitch ~= 9 then
  2811. rng.BrickColor = color
  2812. elseif ModeOfGlitch == 9 then
  2813. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2814. end
  2815. rng.CanCollide = false
  2816. rng.FormFactor = 3
  2817. rng.Name = "Ring"
  2818. rng.Material = "Neon"
  2819. rng.Size = Vector3.new(1, 1, 1)
  2820. rng.Transparency = 0
  2821. rng.TopSurface = 0
  2822. rng.BottomSurface = 0
  2823. rng.CFrame = pos
  2824. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2825. local rngm = Instance.new("SpecialMesh", rng)
  2826. rngm.MeshType = "Sphere"
  2827. rngm.Scale = vt(x1,y1,z1)
  2828. if rainbowmode == true then
  2829. rng.Color = Color3.new(r/255,g/255,b/255)
  2830. end
  2831. if ModeOfGlitch == 9 then
  2832. coroutine.resume(coroutine.create(function()
  2833. while true do
  2834. swait()
  2835. if rng.Parent ~= nil then
  2836. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2837. else
  2838. break
  2839. end
  2840. end
  2841. end))
  2842. end
  2843. local scaler2 = 1
  2844. local speeder = FastSpeed
  2845. if type == "Add" then
  2846. scaler2 = 1*value
  2847. elseif type == "Divide" then
  2848. scaler2 = 1/value
  2849. end
  2850. coroutine.resume(coroutine.create(function()
  2851. for i = 0,10/bonuspeed,0.1 do
  2852. swait()
  2853. if rainbowmode == true then
  2854. rng.Color = Color3.new(r/255,g/255,b/255)
  2855. end
  2856. if type == "Add" then
  2857. scaler2 = scaler2 - 0.01*value/bonuspeed
  2858. elseif type == "Divide" then
  2859. scaler2 = scaler2 - 0.01/value*bonuspeed
  2860. end
  2861. if chaosmode == true then
  2862. rng.BrickColor = BrickColor.random()
  2863. end
  2864. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2865. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2866. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2867. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2868. end
  2869. rng:Destroy()
  2870. end))
  2871. end
  2872.  
  2873.  
  2874. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2875. local type = type
  2876. local rng = Instance.new("Part", char)
  2877. rng.Anchored = true
  2878. if ModeOfGlitch ~= 9 then
  2879. rng.BrickColor = color
  2880. elseif ModeOfGlitch == 9 then
  2881. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2882. end
  2883. rng.CanCollide = false
  2884. rng.FormFactor = 3
  2885. rng.Name = "Ring"
  2886. rng.Material = "Neon"
  2887. rng.Size = Vector3.new(1, 1, 1)
  2888. rng.Transparency = 1
  2889. rng.TopSurface = 0
  2890. rng.BottomSurface = 0
  2891. rng.CFrame = pos
  2892. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2893. local rngm = Instance.new("SpecialMesh", rng)
  2894. rngm.MeshType = "Sphere"
  2895. rngm.Scale = vt(x1,y1,z1)
  2896. if rainbowmode == true then
  2897. rng.Color = Color3.new(r/255,g/255,b/255)
  2898. end
  2899. if ModeOfGlitch == 9 then
  2900. coroutine.resume(coroutine.create(function()
  2901. while true do
  2902. swait()
  2903. if rng.Parent ~= nil then
  2904. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2905. else
  2906. break
  2907. end
  2908. end
  2909. end))
  2910. end
  2911. local scaler2 = 1
  2912. local speeder = FastSpeed
  2913. if type == "Add" then
  2914. scaler2 = 1*value
  2915. elseif type == "Divide" then
  2916. scaler2 = 1/value
  2917. end
  2918. coroutine.resume(coroutine.create(function()
  2919. for i = 0,10/bonuspeed,0.1 do
  2920. swait()
  2921. if rainbowmode == true then
  2922. rng.Color = Color3.new(r/255,g/255,b/255)
  2923. end
  2924. if type == "Add" then
  2925. scaler2 = scaler2 - 0.01*value/bonuspeed
  2926. elseif type == "Divide" then
  2927. scaler2 = scaler2 - 0.01/value*bonuspeed
  2928. end
  2929. if chaosmode == true then
  2930. rng.BrickColor = BrickColor.random()
  2931. end
  2932. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2933. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2934. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2935. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2936. end
  2937. rng:Destroy()
  2938. end))
  2939. end
  2940.  
  2941. function dmg(dude)
  2942. if dude.Name ~= Character then
  2943. local keptcolor = MAINRUINCOLOR
  2944. local bgf = Instance.new("BodyGyro",dude.Head)
  2945. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2946. --[[local val = Instance.new("BoolValue",dude)
  2947. val.Name = "IsHit"]]--
  2948. local ds = coroutine.wrap(function()
  2949. dude:WaitForChild("Head"):BreakJoints()
  2950. for i, v in pairs(dude:GetChildren()) do
  2951. if v:IsA("Part") or v:IsA("MeshPart") then
  2952. v.Name = "DEMINISHED"
  2953. end
  2954. end
  2955. wait(0.5)
  2956. targetted = nil
  2957. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  2958. coroutine.resume(coroutine.create(function()
  2959. for i, v in pairs(dude:GetChildren()) do
  2960. if v:IsA("Accessory") then
  2961. v:Destroy()
  2962. end
  2963. if v:IsA("Humanoid") then
  2964. v:Destroy()
  2965. end
  2966. if v:IsA("CharacterMesh") then
  2967. v:Destroy()
  2968. end
  2969. if v:IsA("Model") then
  2970. v:Destroy()
  2971. end
  2972. if v:IsA("Part") or v:IsA("MeshPart") then
  2973. for x, o in pairs(v:GetChildren()) do
  2974. if o:IsA("Decal") then
  2975. o:Destroy()
  2976. end
  2977. end
  2978. coroutine.resume(coroutine.create(function()
  2979. v.Material = "Neon"
  2980. v.CanCollide = false
  2981. v.Anchored = false
  2982. local bld = Instance.new("ParticleEmitter",v)
  2983. bld.LightEmission = 0.75
  2984. bld.Texture = "rbxassetid://363275192" ---284205403
  2985. bld.Color = ColorSequence.new(keptcolor.Color)
  2986. bld.Rate = 500
  2987. bld.Lifetime = NumberRange.new(1)
  2988. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  2989. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2990. bld.Speed = NumberRange.new(2,5)
  2991. bld.VelocitySpread = 50000
  2992. bld.Rotation = NumberRange.new(-500,500)
  2993. bld.RotSpeed = NumberRange.new(-500,500)
  2994. local sbs = Instance.new("BodyPosition", v)
  2995. sbs.P = 3000
  2996. sbs.D = 1000
  2997. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2998. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  2999. v.Color = keptcolor.Color
  3000. coroutine.resume(coroutine.create(function()
  3001. for i = 0, 49 do
  3002. swait(1)
  3003. v:BreakJoints()
  3004. v.Transparency = v.Transparency + 0.02
  3005. end
  3006. v:BreakJoints()
  3007. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3008. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3009. bld.Speed = NumberRange.new(10,25)
  3010. bld.Drag = 5
  3011. bld.Acceleration = vt(0,2,0)
  3012. wait(0.5)
  3013. bld.Enabled = false
  3014. wait(8)
  3015. v:Destroy()
  3016. dude:Destroy()
  3017. end))
  3018. end))
  3019. end
  3020. end
  3021. end))
  3022. end)
  3023. ds()
  3024. end
  3025. end
  3026.  
  3027.  
  3028. function FindNearestHead(Position, Distance, SinglePlayer)
  3029. if SinglePlayer then
  3030. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3031. end
  3032. local List = {}
  3033. for i, v in pairs(workspace:GetChildren()) do
  3034. if v:IsA("Model") then
  3035. if v:findFirstChild("Head") then
  3036. if v ~= Character then
  3037. if (v.Head.Position - Position).magnitude <= Distance then
  3038. table.insert(List, v)
  3039. end
  3040. end
  3041. end
  3042. end
  3043. end
  3044. return List
  3045. end
  3046.  
  3047. function FaceMouse()
  3048. Cam = workspace.CurrentCamera
  3049. return {
  3050. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3051. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3052. }
  3053. end
  3054.  
  3055. function FaceMouse2()
  3056. Cam = workspace.CurrentCamera
  3057. return {
  3058. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3059. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3060. }
  3061. end
  3062.  
  3063. local ModeOfGlitch = 1
  3064. -- Functions are ready.
  3065. local storehumanoidWS = 16
  3066.  
  3067. function CorruptBlink()
  3068. for i = 0, 14 do
  3069. 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)
  3070. end
  3071. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3072. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3073. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3074. CameraEnshaking(2,10)
  3075. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3076. if v:FindFirstChild('Head') then
  3077. dmg(v)
  3078. end
  3079. end
  3080. for i = 0, 14 do
  3081. 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)
  3082. end
  3083. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3084. end
  3085. function PureBomb()
  3086. attack = true
  3087. hum.WalkSpeed = 0
  3088. local orb = Instance.new("Part", char)
  3089. orb.Anchored = true
  3090. orb.BrickColor = BrickColor.new("Toothpaste")
  3091. orb.CanCollide = false
  3092. orb.FormFactor = 3
  3093. orb.Name = "Ring"
  3094. orb.Material = "Neon"
  3095. orb.Size = Vector3.new(1, 1, 1)
  3096. orb.Transparency = 0
  3097. orb.TopSurface = 0
  3098. orb.BottomSurface = 0
  3099. local orbm = Instance.new("SpecialMesh", orb)
  3100. orbm.MeshType = "Sphere"
  3101. orbm.Name = "SizeMesh"
  3102. orbm.Scale = vt(0,0,0)
  3103. local scaled = 0.1
  3104. local posid = 0
  3105. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3106. for i = 0, 5, 0.1 do
  3107. swait()
  3108. scaled = scaled - 0.001
  3109. posid = posid - scaled
  3110. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3111. local scaled = 0.1
  3112. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3113. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10)
  3114. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0)
  3115. 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)
  3116. 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)
  3117. 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)
  3118. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3119. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3120. 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)
  3121. end
  3122. for i = 0, 2, 0.1 do
  3123. swait()
  3124. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3125. 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)
  3126. 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)
  3127. 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)
  3128. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3129. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3130. 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)
  3131. end
  3132. coroutine.resume(coroutine.create(function()
  3133. orb.Anchored = false
  3134. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3135. local a = Instance.new("Part",workspace)
  3136. a.Name = "Direction"
  3137. a.Anchored = true
  3138. a.BrickColor = bc("Bright red")
  3139. a.Material = "Neon"
  3140. a.Transparency = 1
  3141. a.CanCollide = false
  3142. local ray = Ray.new(
  3143. orb.CFrame.p, -- origin
  3144. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3145. )
  3146. local ignore = orb
  3147. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3148. a.BottomSurface = 10
  3149. a.TopSurface = 10
  3150. local distance = (orb.CFrame.p - position).magnitude
  3151. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3152. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3153. orb.CFrame = a.CFrame
  3154. a:Destroy()
  3155. local bv = Instance.new("BodyVelocity")
  3156. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3157. bv.velocity = orb.CFrame.lookVector*125
  3158. bv.Parent = orb
  3159. local hitted = false
  3160. game:GetService("Debris"):AddItem(orb, 15)
  3161. wait()
  3162. local hit =orb.Touched:connect(function(hit)
  3163. if hitted == false then
  3164. hitted = true
  3165. CameraEnshaking(10,2.5)
  3166. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3167. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3168. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3169. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3170. for i = 0, 49 do
  3171. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  3172. end
  3173. for i = 0, 9 do
  3174. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3175. sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3176. end
  3177. orb.Anchored = true
  3178. orb.Transparency = 1
  3179. wait(8)
  3180. orb:Destroy()
  3181. end
  3182. end)
  3183. end))
  3184. for i = 0, 1, 0.1 do
  3185. swait()
  3186. 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)
  3187. 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)
  3188. 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)
  3189. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3190. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3191. 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)
  3192. end
  3193. hum.WalkSpeed = storehumanoidWS
  3194. attack = false
  3195. end
  3196.  
  3197. function BanishingOrb()
  3198. attack = true
  3199. hum.WalkSpeed = 0
  3200. local orb = Instance.new("Part", char)
  3201. orb.Anchored = true
  3202. orb.BrickColor = BrickColor.new("Black")
  3203. orb.CanCollide = false
  3204. orb.FormFactor = 3
  3205. orb.Name = "Ring"
  3206. orb.Material = "Neon"
  3207. orb.Size = Vector3.new(1, 1, 1)
  3208. orb.Transparency = 0
  3209. orb.TopSurface = 0
  3210. orb.BottomSurface = 0
  3211. local orbm = Instance.new("SpecialMesh", orb)
  3212. orbm.MeshType = "Sphere"
  3213. orbm.Name = "SizeMesh"
  3214. orbm.Scale = vt(0,0,0)
  3215. local scaled = 0.1
  3216. local posid = 0
  3217. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3218. for i = 0, 5, 0.1 do
  3219. swait()
  3220. scaled = scaled - 0.001
  3221. posid = posid - scaled
  3222. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3223. local scaled = 0.1
  3224. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3225. 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("Black"),10)
  3226. 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)
  3227. 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)
  3228. 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)
  3229. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3230. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3231. 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)
  3232. end
  3233. for i = 0, 2, 0.1 do
  3234. swait()
  3235. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3236. 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)
  3237. 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)
  3238. 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)
  3239. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3240. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3241. 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)
  3242. end
  3243. coroutine.resume(coroutine.create(function()
  3244. orb.Anchored = false
  3245. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3246. local a = Instance.new("Part",workspace)
  3247. a.Name = "Direction"
  3248. a.Anchored = true
  3249. a.BrickColor = bc("Bright red")
  3250. a.Material = "Neon"
  3251. a.Transparency = 1
  3252. a.CanCollide = false
  3253. local ray = Ray.new(
  3254. orb.CFrame.p, -- origin
  3255. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3256. )
  3257. local ignore = orb
  3258. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3259. a.BottomSurface = 10
  3260. a.TopSurface = 10
  3261. local distance = (orb.CFrame.p - position).magnitude
  3262. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3263. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3264. orb.CFrame = a.CFrame
  3265. a:Destroy()
  3266. local bv = Instance.new("BodyVelocity")
  3267. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3268. bv.velocity = orb.CFrame.lookVector*0
  3269. bv.Parent = orb
  3270. local hitted = false
  3271. local rate = 0
  3272. coroutine.resume(coroutine.create(function()
  3273. for i = 0, 24 do
  3274. wait(0.1)
  3275. rate = rate + 0.25
  3276. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3277. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3278. if v:FindFirstChild('Head') then
  3279. dmg(v)
  3280. end
  3281. end
  3282. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3283. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3284. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3285. end
  3286. orb.Anchored = true
  3287. orb.Transparency = 1
  3288. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3289. if v:FindFirstChild('Head') then
  3290. dmg(v)
  3291. end
  3292. end
  3293. local eff = Instance.new("ParticleEmitter",orb)
  3294. eff.Texture = "rbxassetid://296874871"
  3295. eff.LightEmission = 0.95
  3296. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3297. eff.Rate = 1000000000
  3298. eff.Lifetime = NumberRange.new(3)
  3299. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,9,0),NumberSequenceKeypoint.new(1,0,0)})
  3300. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3301. eff.Speed = NumberRange.new(30)
  3302. eff.Acceleration = vt(0,-15,0)
  3303. eff.Rotation = NumberRange.new(-500,500)
  3304. eff.VelocitySpread = 100000
  3305. eff.RotSpeed = NumberRange.new(-500,500)
  3306. coroutine.resume(coroutine.create(function()
  3307. wait(0.6)
  3308. eff.Enabled = false
  3309. end))
  3310. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3311. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3312. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3313. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3314. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3315. game:GetService("Debris"):AddItem(orb, 15)
  3316. end))
  3317. end))
  3318. for i = 0, 1, 0.1 do
  3319. swait()
  3320. 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)
  3321. 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)
  3322. 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)
  3323. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3324. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3325. 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)
  3326. end
  3327. hum.WalkSpeed = storehumanoidWS
  3328. attack = false
  3329. end
  3330.  
  3331.  
  3332. function ChaosGroundStrike()
  3333. attack = true
  3334. for i = 0, 2, 0.1 do
  3335. swait()
  3336. 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)
  3337. 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)
  3338. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3339. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3340. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3341. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3342. end
  3343. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3344. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3345. CameraEnshaking(4,12)
  3346. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3347. if v:FindFirstChild('Head') then
  3348. dmg(v)
  3349. end
  3350. end
  3351. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3352. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3353. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3354. for i = 0, 2, 0.1 do
  3355. swait()
  3356. 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)
  3357. 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)
  3358. 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)
  3359. 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)
  3360. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3361. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3362. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3363. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3364. end
  3365. attack = false
  3366. end
  3367.  
  3368.  
  3369.  
  3370. function Starfall()
  3371. attack = true
  3372. hum.WalkSpeed = 0
  3373. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3374. for i = 0, 5, 0.1 do
  3375. swait()
  3376. 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)
  3377. 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)
  3378. 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)
  3379. 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)
  3380. 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)
  3381. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3382. 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)
  3383. 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)
  3384. end
  3385. local Overed = false
  3386. CameraEnshaking(2,20)
  3387. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3388. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3389. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3390. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3391. local orb = Instance.new("Part", char)
  3392. orb.Anchored = true
  3393. orb.BrickColor = BrickColor.new("Toothpaste")
  3394. orb.CanCollide = false
  3395. orb.FormFactor = 3
  3396. orb.Name = "Remenant"
  3397. orb.Material = "Neon"
  3398. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3399. orb.Size = Vector3.new(1, 1, 1)
  3400. orb.Transparency = 1
  3401. orb.TopSurface = 0
  3402. orb.BottomSurface = 0
  3403. hum.WalkSpeed = storehumanoidWS
  3404. coroutine.resume(coroutine.create(function()
  3405. for i = 0, 9 do
  3406. swait(10)
  3407. local lb = Instance.new("Part")
  3408. lb.Color = MAINRUINCOLOR.Color
  3409. lb.CanCollide = false
  3410. lb.Material = "Neon"
  3411. lb.Anchored = true
  3412. lb.TopSurface = 0
  3413. lb.BottomSurface = 0
  3414. lb.Transparency = 0
  3415. lb.Size = vt(1,1,1)
  3416. 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)))
  3417. lb.Anchored = false
  3418. lb.Parent = char
  3419. local thingery = Instance.new("SpecialMesh",lb)
  3420. thingery.MeshType = "Sphere"
  3421. thingery.Scale = vt(20,20,20)
  3422. game:GetService("Debris"):AddItem(lb, 10)
  3423. local bv = Instance.new("BodyVelocity")
  3424. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3425. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3426. bv.Parent = lb
  3427. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3428. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3429. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3430. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3431. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3432. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3433. local hitted = false
  3434. coroutine.resume(coroutine.create(function()
  3435. while true do
  3436. swait(1)
  3437. if lb.Parent ~= nil and hitted == false then
  3438. 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)
  3439. elseif lb.Parent == nil then
  3440. break
  3441. end
  3442. end
  3443. end))
  3444.  
  3445. game:GetService("Debris"):AddItem(a, 0.1)
  3446.  
  3447. coroutine.resume(coroutine.create(function()
  3448. swait(1)
  3449. lb.Touched:connect(function(hit)
  3450. if hitted == false then
  3451. hitted = true
  3452. lb.Transparency = 1
  3453. lb.Anchored = true
  3454. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3455. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3456. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3457. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3458. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3459. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3460. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3461. CameraEnshaking(1,5)
  3462. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3463. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3464. for i = 0, 9 do
  3465. 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)
  3466. end
  3467. for i = 0, 49 do
  3468. swait()
  3469. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3470. 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)
  3471. end
  3472. end
  3473. end)
  3474. end))
  3475. end
  3476. Overed = true
  3477. orb:Destroy()
  3478. end))
  3479.  
  3480. attack = false
  3481. end
  3482.  
  3483. function StarfallEX()
  3484. attack = true
  3485. hum.WalkSpeed = 0
  3486. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3487. for i = 0, 10, 0.1 do
  3488. swait()
  3489. 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)
  3490. 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)
  3491. 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)
  3492. 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)
  3493. 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)
  3494. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3495. 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)
  3496. 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)
  3497. end
  3498. local Overed = false
  3499. CameraEnshaking(2,20)
  3500. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3501. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3502. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3503. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3504. local orb = Instance.new("Part", char)
  3505. orb.Anchored = true
  3506. orb.BrickColor = BrickColor.new("Toothpaste")
  3507. orb.CanCollide = false
  3508. orb.FormFactor = 3
  3509. orb.Name = "Remenant"
  3510. orb.Material = "Neon"
  3511. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3512. orb.Size = Vector3.new(1, 1, 1)
  3513. orb.Transparency = 1
  3514. orb.TopSurface = 0
  3515. orb.BottomSurface = 0
  3516. hum.WalkSpeed = storehumanoidWS
  3517. coroutine.resume(coroutine.create(function()
  3518. for i = 0, 4 do
  3519. swait(15)
  3520. local lb = Instance.new("Part")
  3521. lb.Color = MAINRUINCOLOR.Color
  3522. lb.CanCollide = false
  3523. lb.Material = "Neon"
  3524. lb.Anchored = true
  3525. lb.TopSurface = 0
  3526. lb.BottomSurface = 0
  3527. lb.Transparency = 0
  3528. lb.Size = vt(1,1,1)
  3529. 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)))
  3530. lb.Anchored = false
  3531. lb.Parent = char
  3532. local thingery = Instance.new("SpecialMesh",lb)
  3533. thingery.MeshType = "Sphere"
  3534. thingery.Scale = vt(50,50,50)
  3535. game:GetService("Debris"):AddItem(lb, 10)
  3536. local bv = Instance.new("BodyVelocity")
  3537. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3538. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3539. bv.Parent = lb
  3540. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3541. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3542. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3543. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3544. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3545. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3546. local hitted = false
  3547. coroutine.resume(coroutine.create(function()
  3548. while true do
  3549. swait(1)
  3550. if lb.Parent ~= nil and hitted == false then
  3551. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),25,25,25,0.25,MAINRUINCOLOR,-2)
  3552. elseif lb.Parent == nil then
  3553. break
  3554. end
  3555. end
  3556. end))
  3557.  
  3558. game:GetService("Debris"):AddItem(a, 0.1)
  3559.  
  3560. coroutine.resume(coroutine.create(function()
  3561. swait(1)
  3562. lb.Touched:connect(function(hit)
  3563. if hitted == false then
  3564. hitted = true
  3565. lb.Transparency = 1
  3566. lb.Anchored = true
  3567. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3568. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3569. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3570. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3571. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3572. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3573. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3574. CameraEnshaking(1,5)
  3575. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3576. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3577. for i = 0, 9 do
  3578. 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,100,-0.1,MAINRUINCOLOR,0)
  3579. end
  3580. for i = 0, 99 do
  3581. swait()
  3582. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3583. 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))),32,32,32,0.32,MAINRUINCOLOR,0)
  3584. end
  3585. end
  3586. end)
  3587. end))
  3588. end
  3589. Overed = true
  3590. orb:Destroy()
  3591. end))
  3592.  
  3593. attack = false
  3594. end
  3595.  
  3596. function DivineBlast()
  3597. attack = true
  3598. hum.WalkSpeed = 0
  3599. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3600. elocacenter.Anchored = true
  3601. elocacenter.CFrame = sorb.CFrame
  3602. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3603. eloca1.Anchored = true
  3604. eloca1.CFrame = elocacenter.CFrame
  3605. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3606. eloca2.Anchored = true
  3607. eloca2.CFrame = elocacenter.CFrame
  3608. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3609. eloca3.Anchored = true
  3610. eloca3.CFrame = elocacenter.CFrame
  3611. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3612. eloca4.Anchored = true
  3613. eloca4.CFrame = elocacenter.CFrame
  3614. local lookavec = 0
  3615. local speeds = 0
  3616. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3617. for i = 0, 3, 0.1 do
  3618. swait()
  3619. ---
  3620. lookavec = lookavec + 0.1
  3621. speeds = speeds + 10
  3622. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3623. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3624. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3625.  
  3626. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3627. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3628.  
  3629. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3630. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3631.  
  3632. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3633. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3634. ---
  3635. root.CFrame = FaceMouse()[1]
  3636. 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)
  3637. 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)
  3638. 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)
  3639. 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)
  3640. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3641. 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)
  3642. end
  3643. for i = 0, 3, 0.1 do
  3644. swait()
  3645. ---
  3646. speeds = speeds + 10
  3647. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3648. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3649. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3650.  
  3651. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3652. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3653.  
  3654. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3655. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3656.  
  3657. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3658. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3659. ---
  3660. root.CFrame = FaceMouse()[1]
  3661. 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)
  3662. 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)
  3663. 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)
  3664. 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)
  3665. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3666. 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)
  3667. end
  3668. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3669. for i = 0, 3, 0.1 do
  3670. swait()
  3671. ---
  3672. speeds = speeds + 10
  3673. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3674. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3675. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3676.  
  3677. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3678. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3679.  
  3680. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3681. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3682.  
  3683. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3684. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3685. ---
  3686. root.CFrame = FaceMouse()[1]
  3687. 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)
  3688. 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)
  3689. 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(40)),.1)
  3690. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-40)),.1)
  3691. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  3692. 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)
  3693. end
  3694. coroutine.resume(coroutine.create(function()
  3695. local a = Instance.new("Part",Character)
  3696. a.Name = "Direction"
  3697. a.Anchored = true
  3698. a.BrickColor = bc("White")
  3699. a.Material = "Neon"
  3700. a.Transparency = 0
  3701. a.Shape = "Cylinder"
  3702. a.CanCollide = false
  3703. local a2 = Instance.new("Part",Character)
  3704. a2.Name = "Direction"
  3705. a2.Anchored = true
  3706. a2.BrickColor = bc("Bright yellow")
  3707. a2.Material = "Neon"
  3708. a2.Transparency = 0
  3709. a2.Shape = "Cylinder"
  3710. a2.CanCollide = false
  3711. local b = Instance.new("Part",Character)
  3712. b.Name = "HitDirect"
  3713. b.Anchored = true
  3714. b.BrickColor = bc("Cool yellow")
  3715. b.Material = "Neon"
  3716. b.Transparency = 1
  3717. b.CanCollide = false
  3718. local ray = Ray.new(
  3719. elocacenter.CFrame.p, -- origin
  3720. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  3721. )
  3722. local ignore = Character
  3723. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3724. a.BottomSurface = 10
  3725. a.TopSurface = 10
  3726. a2.BottomSurface = 10
  3727. a2.TopSurface = 10
  3728. local distance = (elocacenter.CFrame.p - position).magnitude
  3729. a.Size = Vector3.new(distance, 1, 1)
  3730. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3731. a2.Size = Vector3.new(distance, 1, 1)
  3732. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3733. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3734. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3735. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  3736. game:GetService("Debris"):AddItem(a, 10)
  3737. game:GetService("Debris"):AddItem(a2, 10)
  3738. game:GetService("Debris"):AddItem(b, 10)
  3739. local msh = Instance.new("SpecialMesh",a)
  3740. msh.MeshType = "Cylinder"
  3741. msh.Scale = vt(1,2,2)
  3742. local msh2 = Instance.new("SpecialMesh",a2)
  3743. msh2.MeshType = "Cylinder"
  3744. msh2.Scale = vt(1,2.5,2.5)
  3745. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  3746. coroutine.resume(coroutine.create(function()
  3747. for i = 0,10,0.1 do
  3748. swait()
  3749. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  3750. a.Transparency = a.Transparency + 0.025
  3751. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  3752. a2.Transparency = a2.Transparency + 0.05
  3753. end
  3754. a:Destroy()
  3755. a2:Destroy()
  3756. end))
  3757. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  3758. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  3759. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  3760. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  3761. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  3762. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  3763. MagniDamage(b, 25, 40,65, 0, "Normal")
  3764. for i = 0, 49 do
  3765. PixelBlock(2,math.random(10,20),"Add",b.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.04,BrickColor.new("Bright yellow"),0)
  3766. PixelBlock(1,math.random(1,10),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Bright yellow"),0)
  3767. end
  3768. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  3769. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  3770. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3771. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3772. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3773. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3774. end))
  3775. game:GetService("Debris"):AddItem(elocacenter, 5)
  3776. hum.WalkSpeed = storehumanoidWS
  3777. attack = false
  3778. end
  3779.  
  3780. function StarDivision()
  3781. attack = true
  3782. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  3783. for i = 0, 2, 0.1 do
  3784. swait()
  3785. 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)
  3786. 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)
  3787. 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)
  3788. 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)
  3789. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  3790. 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)
  3791. end
  3792. local orb = Instance.new("Part", char)
  3793. orb.BrickColor = MAINRUINCOLOR
  3794. orb.CanCollide = false
  3795. orb.FormFactor = 3
  3796. orb.Name = "Ring"
  3797. orb.Material = "Neon"
  3798. orb.Size = Vector3.new(1, 1, 1)
  3799. orb.Transparency = 0
  3800. orb.TopSurface = 0
  3801. orb.BottomSurface = 0
  3802. local orbm = Instance.new("SpecialMesh", orb)
  3803. orbm.MeshType = "Sphere"
  3804. orbm.Name = "SizeMesh"
  3805. orbm.Scale = vt(2,2,2)
  3806. local a = Instance.new("Part",workspace)
  3807. a.Name = "Direction"
  3808. a.Anchored = true
  3809. a.BrickColor = bc("Bright red")
  3810. a.Material = "Neon"
  3811. a.Transparency = 1
  3812. a.CanCollide = false
  3813. local ray = Ray.new(
  3814. sorb.CFrame.p, -- origin
  3815. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3816. )
  3817. local ignore = sorb
  3818. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3819. a.BottomSurface = 10
  3820. a.TopSurface = 10
  3821. local distance = (sorb.CFrame.p - position).magnitude
  3822. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3823. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3824. orb.CFrame = a.CFrame
  3825. a:Destroy()
  3826. local bv = Instance.new("BodyVelocity")
  3827. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3828. bv.velocity = orb.CFrame.lookVector*100
  3829. bv.Parent = orb
  3830. local hitted = false
  3831. game:GetService("Debris"):AddItem(orb, 10)
  3832. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  3833. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  3834. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  3835. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  3836. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  3837. coroutine.resume(coroutine.create(function()
  3838. while true do
  3839. swait(1)
  3840. if orb.Parent ~= nil and hitted == false then
  3841. 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)
  3842. elseif orb.Parent == nil then
  3843. break
  3844. end
  3845. end
  3846. end))
  3847. coroutine.resume(coroutine.create(function()
  3848. swait(1)
  3849. orb.Touched:connect(function(hit)
  3850. if hitted == false then
  3851. hitted = true
  3852. game:GetService("Debris"):AddItem(orb, 5)
  3853. orb.Transparency = 1
  3854. orb.Anchored = true
  3855. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3856. elocacenter.Anchored = true
  3857. elocacenter.CFrame = orb.CFrame
  3858. elocacenter.Orientation = vt(0,0,0)
  3859. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3860. eloca1.Anchored = true
  3861. eloca1.CFrame = elocacenter.CFrame
  3862. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3863. eloca2.Anchored = true
  3864. eloca2.CFrame = elocacenter.CFrame
  3865. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3866. eloca3.Anchored = true
  3867. eloca3.CFrame = elocacenter.CFrame
  3868. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3869. eloca4.Anchored = true
  3870. eloca4.CFrame = elocacenter.CFrame
  3871. local lookavec = 0
  3872. local speeds = 0
  3873. CameraEnshaking(1,1)
  3874. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  3875. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3876. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3877. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3878. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3879. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3880. for i = 0, 99 do
  3881. swait()
  3882. lookavec = lookavec + 1
  3883. speeds = speeds + 0.1
  3884. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3885. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3886. 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)
  3887.  
  3888. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3889. 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)
  3890.  
  3891. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3892. 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)
  3893.  
  3894. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3895. 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)
  3896. end
  3897.  
  3898. for i = 0, 149 do
  3899. swait()
  3900. speeds = speeds + 0.1
  3901. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3902. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3903. 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)
  3904.  
  3905. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3906. 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)
  3907.  
  3908. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3909. 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)
  3910.  
  3911. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3912. 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)
  3913. end
  3914. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  3915. if v:FindFirstChild('Head') then
  3916. dmg(v)
  3917. end
  3918. end
  3919. CameraEnshaking(7,30)
  3920. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  3921. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  3922. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  3923. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  3924. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  3925. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  3926. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  3927. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3928. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3929. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3930. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3931. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3932. for i = 0, 24 do
  3933. 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)
  3934. 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)
  3935. 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)
  3936. 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)
  3937. end
  3938. coroutine.resume(coroutine.create(function()
  3939. for i = 0, 499 do
  3940. swait(1)
  3941. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  3942. 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)
  3943. end
  3944. elocacenter:Destroy()
  3945. eloca1:Destroy()
  3946. eloca2:Destroy()
  3947. eloca3:Destroy()
  3948. eloca4:Destroy()
  3949. end))
  3950. end
  3951. end)
  3952. end))
  3953. attack = false
  3954. end
  3955.  
  3956.  
  3957. function THE_TRUE_POWER_OF_VIOLENCE()
  3958. attack = true
  3959. hum.WalkSpeed = 0
  3960. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
  3961. for i = 0, 10, 0.1 do
  3962. swait()
  3963. 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)
  3964. 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)
  3965. 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(0)),.4)
  3966. 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(40)),.4)
  3967. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  3968. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  3969. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3970. end
  3971. local orb = Instance.new("Part", char)
  3972. orb.BrickColor = MAINRUINCOLOR
  3973. orb.CanCollide = false
  3974. orb.FormFactor = 3
  3975. orb.Name = "Ring"
  3976. orb.Material = "Neon"
  3977. orb.Size = Vector3.new(1, 1, 1)
  3978. orb.Transparency = 0
  3979. orb.TopSurface = 0
  3980. orb.BottomSurface = 0
  3981. orb.CFrame = sorb.CFrame
  3982. local orbm = Instance.new("SpecialMesh", orb)
  3983. orbm.MeshType = "Sphere"
  3984. orbm.Name = "SizeMesh"
  3985. orbm.Scale = vt(0,0,0)
  3986. local sbs = Instance.new("BodyPosition", orb)
  3987. sbs.P = 3000
  3988. sbs.D = 1000
  3989. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3990. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  3991. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  3992. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3993. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3994. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3995. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3996. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3997. for i = 0, 10, 0.1 do
  3998. swait()
  3999. PixelBlockNeg(1,0.01,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),6,6,6,0.12,MAINRUINCOLOR,0)
  4000. 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))),.6)
  4001. 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(0)),.6)
  4002. 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(60)),.6)
  4003. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4004. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4005. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4006. end
  4007. orb.Anchored = true
  4008. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4009. elocacenter.Anchored = true
  4010. elocacenter.CFrame = orb.CFrame
  4011. elocacenter.Orientation = vt(0,0,0)
  4012. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4013. eloca1.Anchored = true
  4014. eloca1.CFrame = elocacenter.CFrame
  4015. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4016. eloca2.Anchored = true
  4017. eloca2.CFrame = elocacenter.CFrame
  4018. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4019. eloca3.Anchored = true
  4020. eloca3.CFrame = elocacenter.CFrame
  4021. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4022. eloca4.Anchored = true
  4023. eloca4.CFrame = elocacenter.CFrame
  4024. local lookavec = 0
  4025. local speeds = 0
  4026. CameraEnshaking(1,1)
  4027. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4028. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4029. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4030. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4031. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4032. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4033. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4034. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4035. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4036. for i = 0, 99 do
  4037. swait()
  4038. lookavec = lookavec + 2.5
  4039. speeds = speeds + 0.25
  4040. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4041. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4042. PixelBlockNeg(2,0,"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)
  4043.  
  4044. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4045. PixelBlockNeg(2,0,"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)
  4046.  
  4047. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4048. PixelBlockNeg(2,0,"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)
  4049.  
  4050. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4051. PixelBlockNeg(2,0,"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)
  4052. end
  4053.  
  4054. for i = 0, 149 do
  4055. swait()
  4056. speeds = speeds + 0.25
  4057. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4058. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4059. PixelBlockNeg(2,0,"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)
  4060.  
  4061. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4062. PixelBlockNeg(2,0,"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)
  4063.  
  4064. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4065. PixelBlockNeg(2,0,"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)
  4066.  
  4067. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4068. PixelBlockNeg(2,0,"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)
  4069. end
  4070. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4071. for i = 0, 99 do
  4072. swait()
  4073. lookavec = lookavec - 2.5
  4074. speeds = speeds + 0.25
  4075. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4076. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4077. PixelBlockNeg(2,0,"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)
  4078.  
  4079. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4080. PixelBlockNeg(2,0,"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)
  4081.  
  4082. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4083. PixelBlockNeg(2,0,"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)
  4084.  
  4085. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4086. PixelBlockNeg(2,0,"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)
  4087. end
  4088. local scaled = 0.1*75
  4089. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4090. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4091. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4092. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4093. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4094. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4095. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4096. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4097. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4098. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4099. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4100. for i = 0, 10, 0.1 do
  4101. swait()
  4102. scaled = scaled - 0.001*75
  4103. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4104. 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)
  4105. 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))),.6)
  4106. 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(0)),.6)
  4107. 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(60)),.6)
  4108. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4109. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4110. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4111. end
  4112. for x = 0, 4 do
  4113. for i = 0, 9 do
  4114. sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
  4115. end
  4116. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4117. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4118. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4119. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4120. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4121. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4122. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4123. for i = 0, 5, 0.1 do
  4124. swait()
  4125. 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)
  4126. 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)
  4127. 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)
  4128. 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(0)),.1)
  4129. 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)
  4130. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4131. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4132. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4133. end
  4134. end
  4135. local speedearn = 0
  4136. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4137. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4138. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4139. for i = 0, 30, 0.1 do
  4140. swait()
  4141. scaled = scaled - 0.001*75/10
  4142. speedearn = speedearn + 0.5
  4143. for i = 0, 4 do
  4144. sphereMK(1+speedearn,speedearn,"Add",elocacenter.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)
  4145. end
  4146. PixelBlock(1,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1*speedearn/10,1*speedearn/10,1*speedearn/10,0.02*speedearn/10,MAINRUINCOLOR,0)
  4147. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4148. 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)
  4149. 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)
  4150. 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))),.6)
  4151. 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(0)),.6)
  4152. 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)),.6)
  4153. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4154. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4155. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4156. end
  4157. orb.Transparency = 1
  4158. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4159. if v:FindFirstChild('Head') then
  4160. dmg(v)
  4161. end
  4162. end
  4163. CameraEnshaking(7,30)
  4164. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4165. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4166. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4167. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4168. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4169. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4170. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4171. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4172. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4173. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4174. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4175. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4176. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4177. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4178. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4179. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4180. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4181. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4182. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4183. for i = 0, 99 do
  4184. PixelBlock(1,math.random(50,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
  4185. PixelBlock(2,math.random(250,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0)
  4186. end
  4187. for i = 0, 24 do
  4188. sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
  4189. 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)
  4190. 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)
  4191. 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)
  4192. 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)
  4193. end
  4194. game:GetService("Debris"):AddItem(orb, 10)
  4195. hum.WalkSpeed = storehumanoidWS
  4196. attack = false
  4197. end
  4198.  
  4199.  
  4200. function ViolentRing()
  4201. attack = true
  4202. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4203. for i = 0, 2, 0.1 do
  4204. swait()
  4205. local snap = math.random(1,10)
  4206. if snap == 1 then
  4207. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(-50 + math.random(-10,10))),1)
  4208. end
  4209. PixelBlockX(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  4210. PixelBlockNeg(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  4211. PixelBlockX(5,0.25,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.65,0.65,0.65,0.0065,MAINRUINCOLOR,0)
  4212. 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))),.6)
  4213. 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(0)),.6)
  4214. 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)),.6)
  4215. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4216. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4217. 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)),.6)
  4218. RootPart.CFrame = FaceMouse()[1]
  4219. end
  4220. local orb = Instance.new("Part", char)
  4221. orb.BrickColor = MAINRUINCOLOR
  4222. orb.CanCollide = false
  4223. orb.FormFactor = 3
  4224. orb.Name = "Ring"
  4225. orb.Material = "Neon"
  4226. orb.Size = Vector3.new(1, 1, 1)
  4227. orb.Transparency = 0
  4228. orb.TopSurface = 0
  4229. orb.BottomSurface = 0
  4230. local orbm = Instance.new("SpecialMesh", orb)
  4231. orbm.MeshType = "Sphere"
  4232. orbm.Name = "SizeMesh"
  4233. orbm.Scale = vt(2,2,2)
  4234. orb.CFrame = mouse.Hit
  4235. local bv = Instance.new("BodyVelocity")
  4236. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4237. bv.velocity = orb.CFrame.lookVector*100
  4238. bv.Parent = orb
  4239. local hitted = false
  4240. coroutine.resume(coroutine.create(function()
  4241. game:GetService("Debris"):AddItem(orb, 5)
  4242. orb.Transparency = 1
  4243. orb.Anchored = true
  4244. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4245. elocacenter.Anchored = true
  4246. elocacenter.CFrame = orb.CFrame
  4247. elocacenter.Orientation = vt(0,0,0)
  4248. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4249. eloca1.Anchored = true
  4250. eloca1.CFrame = elocacenter.CFrame
  4251. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4252. eloca2.Anchored = true
  4253. eloca2.CFrame = elocacenter.CFrame
  4254. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4255. eloca3.Anchored = true
  4256. eloca3.CFrame = elocacenter.CFrame
  4257. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4258. eloca4.Anchored = true
  4259. eloca4.CFrame = elocacenter.CFrame
  4260. local lookavec = 0
  4261. local speeds = 0
  4262. CameraEnshaking(1,1)
  4263. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4264. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4265. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4266. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4267. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4268. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4269. for i = 0, 24 do
  4270. swait()
  4271. lookavec = lookavec + 3.5
  4272. speeds = speeds + 1
  4273. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4274. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4275. 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)
  4276.  
  4277. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4278. 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)
  4279.  
  4280. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4281. 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)
  4282.  
  4283. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4284. 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)
  4285. end
  4286.  
  4287. local risen = 0
  4288. for i = 0, 49 do
  4289. swait()
  4290. risen = risen + 0.05
  4291. speeds = speeds + 0.1
  4292. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4293. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4294. PixelBlockNeg(2,math.random(1+risen,2+risen),"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)
  4295.  
  4296. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4297. PixelBlockNeg(2,math.random(1+risen,2+risen),"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)
  4298.  
  4299. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4300. PixelBlockNeg(2,math.random(1+risen,2+risen),"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)
  4301.  
  4302. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4303. PixelBlockNeg(2,math.random(1+risen,2+risen),"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)
  4304. end
  4305. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4306. if v:FindFirstChild('Head') then
  4307. dmg(v)
  4308. end
  4309. end
  4310. CameraEnshaking(4,10)
  4311. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4312. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4313. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4314. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4315. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4316. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4317. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4318. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4319. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4320. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4321. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4322. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4323. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4324. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4325. for i = 0, 24 do
  4326. sphereMK(2,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.25,MAINRUINCOLOR,0)
  4327. sphereMK(4,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)
  4328. sphereMK(6,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)
  4329. sphereMK(8,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)
  4330. end
  4331. coroutine.resume(coroutine.create(function()
  4332. wait(10)
  4333. elocacenter:Destroy()
  4334. eloca1:Destroy()
  4335. eloca2:Destroy()
  4336. eloca3:Destroy()
  4337. eloca4:Destroy()
  4338. end))
  4339. end))
  4340. attack = false
  4341. end
  4342.  
  4343. function UniversalCollapse()
  4344. attack = true
  4345. local speedearn = 0
  4346. hum.WalkSpeed = 0
  4347. local sbs = Instance.new("BodyPosition", root)
  4348. sbs.P = 3000
  4349. sbs.D = 1000
  4350. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4351. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4352. CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
  4353. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4354. for i = 0, 110, 0.1 do
  4355. swait()
  4356. speedearn = speedearn + 0.1
  4357. 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)
  4358. 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)
  4359. 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)
  4360. 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)
  4361. 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)
  4362. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4363. 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)
  4364. 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)
  4365. 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)
  4366. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4367. 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)
  4368. 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)
  4369. end
  4370. CameraEnshaking(5,50)
  4371. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4372. for i = 0, 2 do
  4373. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4374. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4375. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4376. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4377. end
  4378. for i = 0, 49 do
  4379. 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)
  4380. 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)
  4381. 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)
  4382. 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)
  4383. end
  4384. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4385. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4386. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4387. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4388. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4389. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4390. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4391. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4392. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4393. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4394. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4395. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4396. for i = 0, 99 do
  4397. PixelBlock(1,math.random(50,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
  4398. PixelBlock(2,math.random(250,1000),"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,10,0.2,MAINRUINCOLOR,0)
  4399. end
  4400. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4401. if v:FindFirstChild('Head') then
  4402. dmg(v)
  4403. end
  4404. end
  4405. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4406. sbs:Destroy()
  4407. hum.WalkSpeed = storehumanoidWS
  4408. attack = false
  4409. end
  4410.  
  4411.  
  4412. function ChaosEND()
  4413. attack = true
  4414. local speedearn = 0
  4415. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
  4416. for i = 0, 15, 0.1 do
  4417. swait()
  4418. speedearn = speedearn + 0.25
  4419. 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))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4420. 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))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4421. 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))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4422. 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))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4423. 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))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4424. 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)
  4425. 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)
  4426. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4427. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4428. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4429. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4430. end
  4431. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4432. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4433. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  4434. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  4435. CameraEnshaking(5,25)
  4436. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4437. if v:FindFirstChild('Head') then
  4438. dmg(v)
  4439. end
  4440. end
  4441. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4442. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4443. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4444. for i = 0, 3, 0.1 do
  4445. swait()
  4446. 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))),25,25,250,-0.25,BrickColor.random(),0)
  4447. 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))),25,25,250,-0.25,BrickColor.random(),0)
  4448. 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))),25,25,250,-0.25,BrickColor.random(),0)
  4449. 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))),25,25,250,-0.25,BrickColor.random(),0)
  4450. 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)
  4451. 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)
  4452. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4453. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4454. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4455. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4456. end
  4457. attack = false
  4458. end
  4459.  
  4460. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4461. local orb = Instance.new("Part", char)
  4462. orb.Anchored = true
  4463. orb.BrickColor = color
  4464. orb.CanCollide = false
  4465. orb.FormFactor = 3
  4466. orb.Name = "Ring"
  4467. orb.Material = "Neon"
  4468. orb.Size = Vector3.new(1, 1, 1)
  4469. orb.Transparency = 0
  4470. orb.TopSurface = 0
  4471. orb.BottomSurface = 0
  4472. local orbm = Instance.new("SpecialMesh", orb)
  4473. orbm.MeshType = "Sphere"
  4474. orb.CFrame = positted
  4475. orbm.Name = "SizeMesh"
  4476. orbm.Scale = vt(1,1,1)
  4477. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4478. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4479. --[[for i = 0, 2 do
  4480. 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)
  4481. end]]--
  4482. coroutine.resume(coroutine.create(function()
  4483. wait(timer)
  4484. CameraEnshaking(3,ShakePower)
  4485. orb.Transparency = 1
  4486. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4487. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4488. --[[for i = 0, 4 do
  4489. 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)
  4490. end]]--
  4491. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4492. wait(3)
  4493. orb:Destroy()
  4494. end))
  4495. end
  4496.  
  4497. function orb_spawn(positted,timer)
  4498. local randomcol = math.random(1,2)
  4499. local orb = Instance.new("Part", char)
  4500. orb.Anchored = true
  4501. if randomcol == 1 then
  4502. orb.BrickColor = BrickColor.new("White")
  4503. elseif randomcol == 2 then
  4504. orb.BrickColor = BrickColor.new("Really black")
  4505. end
  4506. orb.CanCollide = false
  4507. orb.FormFactor = 3
  4508. orb.Name = "Ring"
  4509. orb.Material = "Neon"
  4510. orb.Size = Vector3.new(1, 1, 1)
  4511. orb.Transparency = 0
  4512. orb.TopSurface = 0
  4513. orb.BottomSurface = 0
  4514. local orbm = Instance.new("SpecialMesh", orb)
  4515. orbm.MeshType = "Sphere"
  4516. orb.CFrame = positted
  4517. orbm.Name = "SizeMesh"
  4518. orbm.Scale = vt(1,1,1)
  4519. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4520. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4521. for i = 0, 2 do
  4522. 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)
  4523. end
  4524. coroutine.resume(coroutine.create(function()
  4525. wait(timer)
  4526. CameraEnshaking(3,2)
  4527. orb.Transparency = 1
  4528. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4529. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4530. for i = 0, 4 do
  4531. 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)
  4532. end
  4533. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4534. wait(3)
  4535. orb:Destroy()
  4536. end))
  4537. end
  4538.  
  4539. function scattercorrupt()
  4540. attack = true
  4541. local rot = 0
  4542. local randomrotations = math.random(1,2)
  4543. local lookv = 2.5
  4544. local power = 5
  4545. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4546. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4547. for i = 0, 9 do
  4548. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0)
  4549. end
  4550. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4551. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4552. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4553. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4554. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4555. local hite = Instance.new("Part", char)
  4556. hite.Anchored = true
  4557. hite.CanCollide = false
  4558. hite.FormFactor = 3
  4559. hite.Name = "Ring"
  4560. hite.Material = "Neon"
  4561. hite.Size = Vector3.new(1, 1, 1)
  4562. hite.Transparency = 1
  4563. hite.TopSurface = 0
  4564. hite.BottomSurface = 0
  4565. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4566. local rem = Instance.new("Part", char)
  4567. rem.Anchored = true
  4568. rem.CanCollide = false
  4569. rem.FormFactor = 3
  4570. rem.Name = "Ring"
  4571. rem.Material = "Neon"
  4572. rem.Size = Vector3.new(1, 1, 1)
  4573. rem.Transparency = 1
  4574. rem.TopSurface = 0
  4575. rem.BottomSurface = 0
  4576. rem.CFrame = hite.CFrame
  4577. local rem2 = rem:Clone()
  4578. rem2.Parent = char
  4579. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4580. local rem3 = rem:Clone()
  4581. rem3.Parent = char
  4582. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4583. local rem4 = rem:Clone()
  4584. rem4.Parent = char
  4585. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4586. hite:Destroy()
  4587. coroutine.resume(coroutine.create(function()
  4588. for i = 0, 24 do
  4589. swait(1)
  4590. if randomrotations == 1 then
  4591. rot = rot + 1
  4592. elseif randomrotations == 2 then
  4593. rot = rot - 1
  4594. end
  4595. power = power + 0.5
  4596. lookv = lookv + 7.5
  4597. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4598. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4599. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4600. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4601. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4602. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4603. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4604. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4605. end
  4606. end))
  4607. attack = false
  4608. end
  4609. function yinyangi()
  4610. attack = true
  4611. for i = 0, 2, 0.1 do
  4612. swait()
  4613. 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)
  4614. 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)
  4615. 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)
  4616. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4617. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4618. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4619. end
  4620. local bv = Instance.new("BodyVelocity")
  4621. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4622. bv.velocity = root.CFrame.lookVector*175
  4623. bv.Parent = root
  4624. for Rotations = 0, 9 do
  4625. for i = 0, 1, 0.5 do
  4626. swait()
  4627. bv.velocity = root.CFrame.lookVector*175
  4628. 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)
  4629. 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)
  4630. 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)
  4631. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4632. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4633. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4634. end
  4635. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4636. for i = 0, 1, 0.5 do
  4637. swait()
  4638. bv.velocity = root.CFrame.lookVector*175
  4639. 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)
  4640. 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)
  4641. 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)
  4642. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4643. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4644. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4645. end
  4646. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4647. for i = 0, 1, 0.5 do
  4648. swait()
  4649. bv.velocity = root.CFrame.lookVector*175
  4650. 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)
  4651. 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)
  4652. 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)
  4653. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4654. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4655. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4656. end
  4657. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4658. for i = 0, 1, 0.5 do
  4659. swait()
  4660. bv.velocity = root.CFrame.lookVector*175
  4661. 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)
  4662. 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)
  4663. 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)
  4664. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4665. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4666. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4667. end
  4668. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4669. end
  4670. bv:Destroy()
  4671. attack = false
  4672. end
  4673.  
  4674. function createBGCircle(size,parent,color)
  4675. local bgui = Instance.new("BillboardGui",parent)
  4676. bgui.Size = UDim2.new(size, 0, size, 0)
  4677. local imgc = Instance.new("ImageLabel",bgui)
  4678. imgc.BackgroundTransparency = 1
  4679. imgc.ImageTransparency = 0
  4680. imgc.Size = UDim2.new(1,0,1,0)
  4681. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  4682. imgc.ImageColor3 = color
  4683. return bgui,imgc
  4684. end
  4685.  
  4686. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  4687. local bgui,imgc = createBGCircle(size,guipar,color)
  4688. bgui.AlwaysOnTop = true
  4689. imgc.Image = "rbxassetid://" ..img
  4690. local rrot = math.random(1,2)
  4691. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  4692. coroutine.resume(coroutine.create(function()
  4693. for i = 0, 24*delay do
  4694. swait()
  4695. if rotationenabled == true then
  4696. if rrot == 1 then
  4697. imgc.Rotation = imgc.Rotation + rotsp
  4698. elseif rrot == 2 then
  4699. imgc.Rotation = imgc.Rotation - rotsp
  4700. end
  4701. end
  4702. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  4703. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  4704. end
  4705. bgui:Destroy()
  4706. end))
  4707. end
  4708.  
  4709.  
  4710. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  4711. for i, v in pairs(mw2:GetChildren()) do
  4712. if v:IsA("Part") then
  4713. v.BrickColor = one
  4714. v.Material = "Neon"
  4715. end
  4716. end
  4717. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  4718. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  4719. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  4720. tr1.Color = ColorSequence.new(one.Color)
  4721. tr2.Color = ColorSequence.new(one.Color)
  4722. tr3.Color = ColorSequence.new(one.Color)
  4723. for i, v in pairs(mw1:GetChildren()) do
  4724. if v:IsA("Part") then
  4725. if secondaryenabled == false then
  4726. v.Transparency = 1
  4727. elseif secondaryenabled == true then
  4728. v.Transparency = 0
  4729. end
  4730. v.BrickColor = two
  4731. v.Material = "Neon"
  4732. end
  4733. end
  4734. if secondaryenabled == false then
  4735. tl1.Enabled = false
  4736. tl2.Enabled = false
  4737. tl3.Enabled = false
  4738. elseif secondaryenabled == true then
  4739. tl1.Enabled = true
  4740. tl2.Enabled = true
  4741. tl3.Enabled = true
  4742. end
  4743. tl1.Color = ColorSequence.new(two.Color)
  4744. tl2.Color = ColorSequence.new(two.Color)
  4745. tl3.Color = ColorSequence.new(two.Color)
  4746. for i, v in pairs(m:GetChildren()) do
  4747. if v:IsA("Part") then
  4748. v.BrickColor = three
  4749. v.Material = "Ice"
  4750. end
  4751. end
  4752. for i, v in pairs(m2:GetChildren()) do
  4753. if v:IsA("Part") then
  4754. v.BrickColor = four
  4755. v.Material = "Ice"
  4756. end
  4757. end
  4758. for i, v in pairs(m3:GetChildren()) do
  4759. if v:IsA("Part") then
  4760. v.BrickColor = five
  4761. v.Material = "Neon"
  4762. end
  4763. end
  4764.  
  4765.  
  4766.  
  4767. function normalmog()
  4768. attack = true
  4769. hum.WalkSpeed = 0
  4770. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  4771. for i = 0,6,0.1 do
  4772. swait()
  4773. 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)
  4774. slash(math.random(30,60)/10,5,true,"Round","Add","In",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.01,0.5),-0.5,MAINRUINCOLOR)
  4775. 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)),.2)
  4776. 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)),.2)
  4777. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  4778. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2)
  4779. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  4780. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  4781. end
  4782. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  4783. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  4784. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  4785. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  4786. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  4787. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  4788. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  4789. rainbowmode = false
  4790. chaosmode = false
  4791. ModeOfGlitch = 1
  4792. storehumanoidWS = 16
  4793. newTheme("rbxassetid://614032233",48.6,1,1.25)
  4794. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  4795. CameraEnshaking(5,2.5)
  4796. MAINRUINCOLOR = BrickColor.new("Really red")
  4797. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4798. for i = 0, 49 do
  4799. 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)
  4800. end
  4801. for i = 0, 24 do
  4802. sphere2(2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,7,-0.01,MAINRUINCOLOR)
  4803. slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,350)/250,BrickColor.new("White"))
  4804. end
  4805. for i = 0,3,0.1 do
  4806. 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)
  4807. end
  4808. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  4809. for i = 0,2,0.1 do
  4810. swait()
  4811. 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)
  4812. 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)
  4813. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  4814. 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)
  4815. 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)
  4816. 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)
  4817. end
  4818. hum.WalkSpeed = storehumanoidWS
  4819. attack = false
  4820. end
  4821.  
  4822. function attackone()
  4823. attack = true
  4824. local keptcolor = MAINRUINCOLOR
  4825. for i = 0,1,0.1 do
  4826. swait()
  4827. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  4828. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  4829. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  4830. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4831. 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(-15),math.rad(0),math.rad(0)),.3)
  4832. 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(0),math.rad(0)),.3)
  4833. end
  4834. local distlook = 5
  4835. coroutine.resume(coroutine.create(function()
  4836. for i = 0, 4 do
  4837. swait(2)
  4838. CameraEnshaking(2,3)
  4839. local hite = Instance.new("Part", char)
  4840. hite.Anchored = true
  4841. hite.CanCollide = false
  4842. hite.FormFactor = 3
  4843. hite.Name = "Ring"
  4844. hite.Material = "Neon"
  4845. hite.Size = Vector3.new(1, 1, 1)
  4846. hite.Transparency = 1
  4847. hite.TopSurface = 0
  4848. hite.BottomSurface = 0
  4849. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  4850. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
  4851. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
  4852. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
  4853. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
  4854. MagniDamage(hite, 9, 10,25, 0, "Normal")
  4855. for i = 0, 14 do
  4856. local rsiz = math.random(5,20)
  4857. sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  4858. end
  4859. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  4860. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  4861. game:GetService("Debris"):AddItem(hite, 5)
  4862. distlook = distlook + 10
  4863. end
  4864. end))
  4865. for i = 0,1,0.1 do
  4866. swait()
  4867. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  4868. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  4869. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  4870. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  4871. 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(-10)),.5)
  4872. 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(0),math.rad(-10)),.5)
  4873. end
  4874. attack = false
  4875. end
  4876.  
  4877. function attacktwo()
  4878. attack = true
  4879. hum.WalkSpeed = 2
  4880. local keptcolor = MAINRUINCOLOR
  4881. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  4882. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  4883. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
  4884. for i = 0, 14 do
  4885. end
  4886. for i = 0,1,0.1 do
  4887. swait()
  4888. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  4889. RH.C0=clerp(RH.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(-5)),.3)
  4890. 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(30),math.rad(0)),.3)
  4891. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  4892. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  4893. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  4894. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  4895. end
  4896. for i = 0, 1 do
  4897. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  4898. for i = 0,1,0.6 do
  4899. swait()
  4900. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  4901. RH.C0=clerp(RH.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(-5)),.6)
  4902. 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(30),math.rad(0)),.6)
  4903. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  4904. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  4905. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  4906. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  4907. end
  4908. for i = 0,1,0.6 do
  4909. swait()
  4910. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  4911. RH.C0=clerp(RH.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(-5)),.6)
  4912. 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(30),math.rad(0)),.6)
  4913. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  4914. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  4915. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  4916. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  4917. end
  4918. for i = 0,1,0.6 do
  4919. swait()
  4920. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  4921. RH.C0=clerp(RH.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(-5)),.6)
  4922. 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(30),math.rad(0)),.6)
  4923. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  4924. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  4925. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  4926. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  4927. end
  4928. for i = 0,1,0.6 do
  4929. swait()
  4930. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  4931. RH.C0=clerp(RH.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(-5)),.6)
  4932. 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(30),math.rad(0)),.6)
  4933. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  4934. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  4935. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  4936. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  4937. end
  4938. local rot = 0
  4939. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  4940. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  4941. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  4942. CreateMesh(dis,"Sphere",10,1,10)
  4943. local at1 = Instance.new("Attachment",dis)
  4944. at1.Position = vt(-5,0,0)
  4945. local at2 = Instance.new("Attachment",dis)
  4946. at2.Position = vt(5,0,0)
  4947. local trl = Instance.new('Trail',wed)
  4948. trl.Attachment0 = at1
  4949. trl.Attachment1 = at2
  4950. trl.Texture = "rbxassetid://1049219073"
  4951. trl.LightEmission = 1
  4952. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4953. trl.Color = ColorSequence.new(dis.Color)
  4954. trl.Lifetime = 0.6
  4955. local a = Instance.new("Part",workspace)
  4956. a.Name = "Direction"
  4957. a.Anchored = true
  4958. a.BrickColor = bc("Bright red")
  4959. a.Material = "Neon"
  4960. a.Transparency = 1
  4961. a.CanCollide = false
  4962. local ray = Ray.new(
  4963. dis.CFrame.p, -- origin
  4964. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  4965. )
  4966. local ignore = dis
  4967. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4968. a.BottomSurface = 10
  4969. a.TopSurface = 10
  4970. local distance = (dis.CFrame.p - position).magnitude
  4971. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4972. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  4973. dis.CFrame = a.CFrame
  4974. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4975. a:Destroy()
  4976. local bv = Instance.new("BodyVelocity")
  4977. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4978. bv.velocity = dis.CFrame.lookVector*250
  4979. bv.Parent = dis
  4980. game:GetService("Debris"):AddItem(dis, 5)
  4981. local hitted = false
  4982. coroutine.resume(coroutine.create(function()
  4983. dis.Touched:connect(function(hit)
  4984. if hitted == false and hit.Parent ~= char then
  4985. hitted = true
  4986. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  4987. MagniDamage(dis, 30, 33,56, 0, "Normal")
  4988. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  4989. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  4990. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  4991. coroutine.resume(coroutine.create(function()
  4992. for i = 0, 9 do
  4993. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  4994. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4995. local at1 = Instance.new("Attachment",disr)
  4996. at1.Position = vt(-5,0,0)
  4997. local at2 = Instance.new("Attachment",disr)
  4998. at2.Position = vt(5,0,0)
  4999. local trl = Instance.new('Trail',disr)
  5000. trl.Attachment0 = at1
  5001. trl.FaceCamera = true
  5002. trl.Attachment1 = at2
  5003. trl.Texture = "rbxassetid://2342682798"
  5004. trl.LightEmission = 1
  5005. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5006. trl.Color = ColorSequence.new(keptcolor.Color)
  5007. trl.Lifetime = 0.5
  5008. local bv = Instance.new("BodyVelocity")
  5009. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5010. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5011. bv.Parent = disr
  5012. local val = 0
  5013. coroutine.resume(coroutine.create(function()
  5014. swait(30)
  5015. for i = 0, 9 do
  5016. swait()
  5017. val = val + 0.1
  5018. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5019. end
  5020. game:GetService("Debris"):AddItem(disr, 3)
  5021. end))
  5022. end
  5023. local eff = Instance.new("ParticleEmitter",dis)
  5024. eff.Texture = "rbxassetid://2273224484"
  5025. eff.LightEmission = 1
  5026. eff.Color = ColorSequence.new(keptcolor.Color)
  5027. eff.Rate = 50
  5028. eff.Lifetime = NumberRange.new(0.5,2)
  5029. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5030. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5031. eff.Speed = NumberRange.new(20,250)
  5032. eff.Drag = 5
  5033. eff.Rotation = NumberRange.new(-500,500)
  5034. eff.VelocitySpread = 9000
  5035. eff.RotSpeed = NumberRange.new(-50,50)
  5036. wait(0.25)
  5037. eff.Enabled = false
  5038. end))
  5039. for i = 0, 9 do
  5040. end
  5041. for i = 0, 19 do
  5042. end
  5043. coroutine.resume(coroutine.create(function()
  5044. for i = 0, 19 do
  5045. swait()
  5046. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5047. end
  5048. hum.CameraOffset = vt(0,0,0)
  5049. end))
  5050. dis.Anchored = true
  5051. dis.Transparency = 1
  5052. wait(8)
  5053. dis:Destroy()
  5054. end
  5055. end)
  5056. end))
  5057. rot = rot - 15
  5058. end
  5059. for i = 0,2,0.1 do
  5060. swait()
  5061. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  5062. 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(5)),.3)
  5063. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5064. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5065. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5066. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5067. end
  5068. attack = false
  5069. hum.WalkSpeed = storehumanoidWS
  5070. end
  5071.  
  5072. function attackthree()
  5073. attack = true
  5074. local keptcolor = MAINRUINCOLOR
  5075. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5076. for i = 0,2,0.1 do
  5077. swait()
  5078. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5079. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5080. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5081. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5082. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5083. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-50),math.rad(-10)),.3)
  5084. 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(40)),.3)
  5085. end
  5086. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5087. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5088. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5089. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5090. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5091. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5092. for i = 0, 24 do
  5093. end
  5094. for i = 0,4,0.1 do
  5095. swait()
  5096. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5097. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5098. CreateMesh(dis,"Sphere",1,1,1)
  5099. dis.Anchored = true
  5100. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5101. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5102. coroutine.resume(coroutine.create(function()
  5103. swait(30)
  5104. dis.Transparency = 1
  5105. coroutine.resume(coroutine.create(function()
  5106. for i = 0, 19 do
  5107. swait()
  5108. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5109. end
  5110. hum.CameraOffset = vt(0,0,0)
  5111. end))
  5112. coroutine.resume(coroutine.create(function()
  5113. local eff = Instance.new("ParticleEmitter",dis)
  5114. eff.Texture = "rbxassetid://2273224484"
  5115. eff.LightEmission = 1
  5116. eff.Color = ColorSequence.new(dis.Color)
  5117. eff.Rate = 500000
  5118. eff.Lifetime = NumberRange.new(0.5,2)
  5119. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5120. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5121. eff.Speed = NumberRange.new(50,450)
  5122. eff.Drag = 5
  5123. eff.Rotation = NumberRange.new(-500,500)
  5124. eff.VelocitySpread = 9000
  5125. eff.RotSpeed = NumberRange.new(-50,50)
  5126. wait(0.125)
  5127. eff.Enabled = false
  5128. end))
  5129. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5130. for i = 0, 2 do
  5131. --slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,150)/250,dis.BrickColor)
  5132. end
  5133. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5134. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5135. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5136. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5137. end))
  5138. game:GetService("Debris"):AddItem(dis, 5)
  5139. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5140. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5141. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5142. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5143. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-8),math.rad(0),math.rad(-20)),.5)
  5144. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(9),math.rad(0),math.rad(20)),.5)
  5145. end
  5146. attack = false
  5147. end
  5148. ----------------------------------- Abilities
  5149.  
  5150. function ExtinctiveHeartbreak()
  5151. local targetted = nil
  5152. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5153. targetted = mouse.Target.Parent
  5154. end
  5155. if targetted ~= nil then
  5156. attack = true
  5157. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5158. for i = 0, 9 do
  5159. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5160. end
  5161. for i = 0, 24 do
  5162. --
  5163. end
  5164. --sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5165. local originalpos = root.CFrame
  5166. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5167. for i = 0, 9 do
  5168. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5169. end
  5170. for i = 0, 24 do
  5171. end
  5172. hum.WalkSpeed = 0
  5173. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5174. local radm = math.random(1,3)
  5175. if radm == 1 then
  5176. --bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5177. elseif radm == 2 then
  5178. --bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5179. elseif radm == 3 then
  5180. --bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5181. end
  5182. for i = 0,2,0.1 do
  5183. swait()
  5184. 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(-10),math.rad(0)),.4)
  5185. 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)
  5186. 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)
  5187. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5188. 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)
  5189. 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)
  5190. end
  5191. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  5192. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  5193. for i = 0,2,0.1 do
  5194. swait()
  5195. coroutine.resume(coroutine.create(function()
  5196. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5197. for i,v in pairs(targetted:GetChildren()) do
  5198. if v:IsA("Part") or v:IsA("MeshPart") then
  5199. v.Velocity = vt(0,0,0)
  5200. end
  5201. end
  5202. end))
  5203. 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)
  5204. 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(10),math.rad(0)),.8)
  5205. 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)
  5206. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5207. 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)
  5208. 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)
  5209. end
  5210. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  5211. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  5212. for i = 0, 1 do
  5213. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  5214. end
  5215. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  5216. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5217. for i = 0,4,0.1 do
  5218. swait()
  5219. coroutine.resume(coroutine.create(function()
  5220. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5221. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5222. local at1 = Instance.new("Attachment",dis)
  5223. at1.Position = vt(-25000,0,0)
  5224. local at2 = Instance.new("Attachment",dis)
  5225. at2.Position = vt(25000,0,0)
  5226. local trl = Instance.new('Trail',dis)
  5227. trl.Attachment0 = at1
  5228. trl.FaceCamera = true
  5229. trl.Attachment1 = at2
  5230. trl.Texture = "rbxassetid://1049219073"
  5231. trl.LightEmission = 1
  5232. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5233. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5234. trl.Lifetime = 5
  5235. local bv = Instance.new("BodyVelocity")
  5236. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5237. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5238. bv.Parent = dis
  5239. game:GetService("Debris"):AddItem(dis, 5)
  5240. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5241. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5242. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5243. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5244. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5245. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5246. sphere2(5,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(3,3,3),-0.03,15,-0.03,MAINRUINCOLOR)
  5247. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5248. for i = 0, 2 do
  5249. --slash(5,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,350)/250,BrickColor.new("Crimson"))
  5250. end
  5251. symbolizeBlink(targetted.Head,0,2092248396,Color3.new(1,0,0),math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25)
  5252. for i,v in pairs(targetted:GetChildren()) do
  5253. if v:IsA("Part") or v:IsA("MeshPart") then
  5254. v.Velocity = vt(0,0,0)
  5255. end
  5256. end
  5257. end))
  5258. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5259. 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)
  5260. 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(10),math.rad(0)),.8)
  5261. 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)
  5262. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5263. 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(40)),.8)
  5264. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(170),math.rad(0),math.rad(-30)),.8)
  5265. end
  5266. hum.CameraOffset = vt(0,0,0)
  5267. for i = 0, 49 do
  5268. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5269. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5270. local at1 = Instance.new("Attachment",dis)
  5271. at1.Position = vt(-50000,0,0)
  5272. local at2 = Instance.new("Attachment",dis)
  5273. at2.Position = vt(50000,0,0)
  5274. local trl = Instance.new('Trail',dis)
  5275. trl.Attachment0 = at1
  5276. trl.FaceCamera = true
  5277. trl.Attachment1 = at2
  5278. trl.Texture = "rbxassetid://1049219073"
  5279. trl.LightEmission = 1
  5280. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5281. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5282. trl.Lifetime = 5
  5283. local bv = Instance.new("BodyVelocity")
  5284. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5285. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5286. bv.Parent = dis
  5287. game:GetService("Debris"):AddItem(dis, 5)
  5288. end
  5289. for i = 0, 49 do
  5290. sphere2(math.random(10,75)/10,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,5,5),-0.05,50,-0.05,MAINRUINCOLOR)
  5291. --slash(math.random(10,30)/15,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(40,500)/250,BrickColor.new("Really red"))
  5292. end
  5293. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5294. for i = 0, 1 do
  5295. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5296. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5297. end
  5298. for i = 0, 4 do
  5299. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5300. end
  5301. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5302. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5303. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5304. dmg(targetted)
  5305. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5306. for i = 0, 9 do
  5307. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5308. end
  5309. for i = 0, 24 do
  5310. end
  5311. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5312. root.CFrame = originalpos
  5313. for i = 0, 9 do
  5314. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5315. end
  5316. for i = 0, 24 do
  5317. end
  5318. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5319. attack = false
  5320. hum.WalkSpeed = storehumanoidWS
  5321. end
  5322. end
  5323.  
  5324. function CorruptionEvent()
  5325. attack = true
  5326. hum.WalkSpeed = 0
  5327. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5328. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5329. local keptcolor = MAINRUINCOLOR
  5330. for i = 0,4,0.1 do
  5331. swait()
  5332. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5333. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5334. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1)
  5335. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  5336. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5337. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5338. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5339. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5340. end
  5341. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5342. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5343. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5344. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5345. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5346. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5347. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5348. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5349. hum.CameraOffset = vt(0,0,0)
  5350. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5351. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5352. for i = 0, 24 do
  5353. --slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
  5354. end
  5355. local rrot = 0
  5356. coroutine.resume(coroutine.create(function()
  5357. for i = 0, 4 do
  5358. rrot = rrot + 45
  5359. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5360. xa.Anchored = true
  5361. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5362. xb.Anchored = true
  5363. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5364. xc.Anchored = true
  5365. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5366. xd.Anchored = true
  5367. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5368. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5369. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5370. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5371. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5372. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5373. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5374. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5375. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5376. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5377. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5378. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5379. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5380. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5381. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5382. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5383. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5384. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5385. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5386. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5387. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5388. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5389. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5390. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5391. sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5392. sphere2(2,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5393. sphere2(2,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5394. sphere2(2,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5395. sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5396. sphere2(4,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5397. sphere2(4,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5398. sphere2(4,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5399. game:GetService("Debris"):AddItem(xa, 5)
  5400. game:GetService("Debris"):AddItem(xb, 5)
  5401. game:GetService("Debris"):AddItem(xc, 5)
  5402. game:GetService("Debris"):AddItem(xd, 5)
  5403. coroutine.resume(coroutine.create(function()
  5404. for i = 0, 19 do
  5405. swait()
  5406. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5407. end
  5408. hum.CameraOffset = vt(0,0,0)
  5409. end))
  5410. swait(9)
  5411. end
  5412. end))
  5413. for i = 0,2,0.1 do
  5414. swait()
  5415. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8)
  5416. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8)
  5417. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5418. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5419. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5420. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5421. end
  5422. attack = false
  5423. hum.WalkSpeed = storehumanoidWS
  5424. end
  5425.  
  5426. function EndGROUND()
  5427. attack = true
  5428. hum.WalkSpeed = 0
  5429. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5430. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5431. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5432. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5433. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5434. local keptcolor = MAINRUINCOLOR
  5435. for i = 0,4,0.1 do
  5436. swait()
  5437. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5438. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5439. --slash(math.random(25,50)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Really black"))
  5440. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15),math.rad(-20)),.1)
  5441. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  5442. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5443. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5444. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5445. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5446. end
  5447. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5448. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5449. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5450. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5451. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5452. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5453. coroutine.resume(coroutine.create(function()
  5454. local shval = 10
  5455. for i = 0, 99 do
  5456. swait()
  5457. shval = shval - 0.1
  5458. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5459. end
  5460. hum.CameraOffset = vt(0,0,0)
  5461. end))
  5462. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5463. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5464. for i = 0, 24 do
  5465. --slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
  5466. end
  5467. local rrot = 0
  5468. local xam = 1
  5469. coroutine.resume(coroutine.create(function()
  5470. for i = 0, 14 do
  5471. --swait()
  5472. rrot = rrot + 40*xam
  5473. xam = xam + 0.25
  5474. local bonus = xam
  5475. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5476. xa.Anchored = true
  5477. xa.Color = Color3.new(0,0,0)
  5478. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5479. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5480. local xc = 0
  5481. coroutine.resume(coroutine.create(function()
  5482. for i = 0, 99 do
  5483. swait()
  5484. xc = xc + 0.01
  5485. xa.Color = Color3.new(xc,0,0)
  5486. end
  5487. xa.Transparency = 1
  5488. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5489. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5490. for i = 0, 9 do
  5491. --slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01*bonus,0.01,0.01*bonus),math.random(50,125)/250*bonus,BrickColor.new("Really black"))
  5492. end
  5493. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30*bonus,30*bonus,30*bonus),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5494. sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25*bonus,1,25*bonus),0.05*bonus,1.5*bonus,0.05*bonus,keptcolor,keptcolor.Color)
  5495. sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30*bonus,1,30*bonus),0.05*bonus,1.5*bonus,0.05*bonus,BrickColor.new("Really black"),Color3.new(0,0,0))
  5496. game:GetService("Debris"):AddItem(xa, 5)
  5497. coroutine.resume(coroutine.create(function()
  5498. for i = 0, 19 do
  5499. swait()
  5500. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5501. end
  5502. hum.CameraOffset = vt(0,0,0)
  5503. end))
  5504. end))
  5505. end
  5506. end))
  5507. for i = 0,2,0.1 do
  5508. swait()
  5509. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(30)),.8)
  5510. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.8)
  5511. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5512. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5513. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5514. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5515. end
  5516. attack = false
  5517. hum.WalkSpeed = storehumanoidWS
  5518. end
  5519.  
  5520. function HeavenlyDisk()
  5521. attack = true
  5522. hum.WalkSpeed = 2
  5523. local keptcolor = MAINRUINCOLOR
  5524. local radm = math.random(1,3)
  5525. if radm == 1 then
  5526. --bosschatfunc("Don't make this too easy for you.",MAINRUINCOLOR.Color,1)
  5527. elseif radm == 2 then
  5528. --bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5529. elseif radm == 3 then
  5530. --bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5531. end
  5532. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5533. CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
  5534. for i = 0, 14 do
  5535. --
  5536. end
  5537. for i = 0,2,0.1 do
  5538. swait()
  5539. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5540. RH.C0=clerp(RH.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(-5)),.3)
  5541. 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(30),math.rad(0)),.3)
  5542. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5543. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5544. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5545. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5546. end
  5547. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5548. for i = 0,1,0.6 do
  5549. swait()
  5550. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5551. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5552. RH.C0=clerp(RH.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(-5)),.6)
  5553. 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(30),math.rad(0)),.6)
  5554. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5555. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5556. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5557. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5558. end
  5559. for i = 0,1,0.6 do
  5560. swait()
  5561. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5562. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5563. RH.C0=clerp(RH.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(-5)),.6)
  5564. 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(30),math.rad(0)),.6)
  5565. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  5566. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5567. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5568. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5569. end
  5570. for i = 0,1,0.6 do
  5571. swait()
  5572. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5573. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5574. RH.C0=clerp(RH.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(-5)),.6)
  5575. 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(30),math.rad(0)),.6)
  5576. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  5577. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5578. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5579. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5580. end
  5581. for i = 0,1,0.6 do
  5582. swait()
  5583. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5584. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5585. RH.C0=clerp(RH.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(-5)),.6)
  5586. 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(30),math.rad(0)),.6)
  5587. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  5588. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5589. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5590. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5591. end
  5592. local rot = 15
  5593. for i = 0, 2 do
  5594. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  5595. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5596. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5597. CreateMesh(dis,"Sphere",10,1,10)
  5598. local at1 = Instance.new("Attachment",dis)
  5599. at1.Position = vt(-5,0,0)
  5600. local at2 = Instance.new("Attachment",dis)
  5601. at2.Position = vt(5,0,0)
  5602. local trl = Instance.new('Trail',wed)
  5603. trl.Attachment0 = at1
  5604. trl.Attachment1 = at2
  5605. trl.Texture = "rbxassetid://1049219073"
  5606. trl.LightEmission = 1
  5607. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5608. trl.Color = ColorSequence.new(dis.Color)
  5609. trl.Lifetime = 0.6
  5610. local a = Instance.new("Part",workspace)
  5611. a.Name = "Direction"
  5612. a.Anchored = true
  5613. a.BrickColor = bc("Bright red")
  5614. a.Material = "Neon"
  5615. a.Transparency = 1
  5616. a.CanCollide = false
  5617. local ray = Ray.new(
  5618. dis.CFrame.p, -- origin
  5619. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5620. )
  5621. local ignore = dis
  5622. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5623. a.BottomSurface = 10
  5624. a.TopSurface = 10
  5625. local distance = (dis.CFrame.p - position).magnitude
  5626. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5627. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5628. dis.CFrame = a.CFrame
  5629. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5630. a:Destroy()
  5631. local bv = Instance.new("BodyVelocity")
  5632. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5633. bv.velocity = dis.CFrame.lookVector*250
  5634. bv.Parent = dis
  5635. game:GetService("Debris"):AddItem(dis, 5)
  5636. local hitted = false
  5637. coroutine.resume(coroutine.create(function()
  5638. dis.Touched:connect(function(hit)
  5639. if hitted == false and hit.Parent ~= char then
  5640. hitted = true
  5641. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5642. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  5643. --sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5644. --sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5645. --sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  5646. coroutine.resume(coroutine.create(function()
  5647. for i = 0, 9 do
  5648. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5649. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5650. local at1 = Instance.new("Attachment",disr)
  5651. at1.Position = vt(-2,0,0)
  5652. local at2 = Instance.new("Attachment",disr)
  5653. at2.Position = vt(2,0,0)
  5654. local trl = Instance.new('Trail',disr)
  5655. trl.Attachment0 = at1
  5656. trl.FaceCamera = true
  5657. trl.Attachment1 = at2
  5658. trl.Texture = "rbxassetid://2342682798"
  5659. trl.LightEmission = 1
  5660. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5661. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  5662. trl.Lifetime = 0.5
  5663. local bv = Instance.new("BodyVelocity")
  5664. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5665. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5666. bv.Parent = disr
  5667. local val = 0
  5668. coroutine.resume(coroutine.create(function()
  5669. swait(30)
  5670. for i = 0, 9 do
  5671. swait()
  5672. val = val + 0.1
  5673. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5674. end
  5675. game:GetService("Debris"):AddItem(disr, 3)
  5676. end))
  5677. end
  5678. local eff = Instance.new("ParticleEmitter",dis)
  5679. eff.Texture = "rbxassetid://2273224484"
  5680. eff.LightEmission = 1
  5681. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  5682. eff.Rate = 500000
  5683. eff.Lifetime = NumberRange.new(0.5,2)
  5684. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5685. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5686. eff.Speed = NumberRange.new(20,250)
  5687. eff.Drag = 5
  5688. eff.Rotation = NumberRange.new(-500,500)
  5689. eff.VelocitySpread = 9000
  5690. eff.RotSpeed = NumberRange.new(-50,50)
  5691. wait(0.25)
  5692. eff.Enabled = false
  5693. end))
  5694. for i = 0, 9 do
  5695. --slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
  5696. end
  5697. for i = 0, 19 do
  5698. --
  5699. end
  5700. coroutine.resume(coroutine.create(function()
  5701. for i = 0, 19 do
  5702. swait()
  5703. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5704. end
  5705. hum.CameraOffset = vt(0,0,0)
  5706. end))
  5707. dis.Anchored = true
  5708. dis.Transparency = 1
  5709. wait(8)
  5710. dis:Destroy()
  5711. end
  5712. end)
  5713. end))
  5714. rot = rot - 15
  5715. end
  5716. for i = 0,2,0.1 do
  5717. swait()
  5718. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  5719. 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(5)),.3)
  5720. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5721. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  5722. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5723. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5724. end
  5725. attack = false
  5726. hum.WalkSpeed = storehumanoidWS
  5727. end
  5728.  
  5729. function RapidBurst()
  5730. attack = true
  5731. hum.WalkSpeed = 0
  5732. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  5733. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  5734. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  5735. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  5736. local keptcolor = MAINRUINCOLOR
  5737. for i = 0,8,0.1 do
  5738. swait()
  5739. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5740. --slash(math.random(25,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,25,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,0.01,2),-2,BrickColor.random())
  5741. block(10,"Add",root.CFrame*CFrame.new(0,25,0),vt(0,0,0),0.5,0.5,0.5,BrickColor.random(),BrickColor.random().Color)
  5742. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-15 - 2 * math.cos(sine / 32))),.1)
  5743. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 2 * math.cos(sine / 32))),.1)
  5744. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(-15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  5745. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  5746. RW.C0=clerp(RW.C0,cf(1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-10 + 3 * math.cos(sine / 45))),.1)
  5747. LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(13 - 3 * math.cos(sine / 45))),.1)
  5748. end
  5749. for i = 0, 99 do
  5750. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5751. dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5752. local at1 = Instance.new("Attachment",dis)
  5753. at1.Position = vt(-25000,0,0)
  5754. local at2 = Instance.new("Attachment",dis)
  5755. at2.Position = vt(25000,0,0)
  5756. local trl = Instance.new('Trail',dis)
  5757. trl.Attachment0 = at1
  5758. trl.FaceCamera = true
  5759. trl.Attachment1 = at2
  5760. trl.Texture = "rbxassetid://1049219073"
  5761. trl.LightEmission = 1
  5762. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5763. trl.Color = ColorSequence.new(BrickColor.random().Color)
  5764. trl.Lifetime = 5
  5765. local bv = Instance.new("BodyVelocity")
  5766. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5767. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5768. bv.Parent = dis
  5769. game:GetService("Debris"):AddItem(dis, 5)
  5770. end
  5771. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  5772. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  5773. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  5774. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  5775. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  5776. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  5777. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  5778. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  5779. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  5780. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  5781. hum.CameraOffset = vt(0,0,0)
  5782. for i = 0, 24 do
  5783. --slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(500,1500)/250,BrickColor.random())
  5784. end
  5785. local distam = 0
  5786. coroutine.resume(coroutine.create(function()
  5787. for i = 0, 99 do
  5788. wait()
  5789. distam = distam + 1
  5790. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5791. xa.Anchored = true
  5792. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  5793. game:GetService("Debris"):AddItem(xa, 5)
  5794. for i = 0, 4 do
  5795. --slash(math.random(25,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.random())
  5796. end
  5797. coroutine.resume(coroutine.create(function()
  5798. local eff = Instance.new("ParticleEmitter",xa)
  5799. eff.Texture = "rbxassetid://2273224484"
  5800. eff.LightEmission = 1
  5801. eff.Color = ColorSequence.new(BrickColor.random().Color)
  5802. eff.Rate = 500000
  5803. eff.Lifetime = NumberRange.new(1,3)
  5804. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  5805. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5806. eff.Speed = NumberRange.new(50,500)
  5807. eff.Drag = 5
  5808. eff.Rotation = NumberRange.new(-500,500)
  5809. eff.VelocitySpread = 9000
  5810. eff.RotSpeed = NumberRange.new(-50,50)
  5811. wait(0.25)
  5812. eff.Enabled = false
  5813. end))
  5814. coroutine.resume(coroutine.create(function()
  5815. for i = 0, 19 do
  5816. swait()
  5817. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  5818. end
  5819. hum.CameraOffset = vt(0,0,0)
  5820. end))
  5821. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  5822. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  5823. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  5824. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  5825. end
  5826. end))
  5827. attack = false
  5828. hum.WalkSpeed = storehumanoidWS
  5829. end
  5830.  
  5831.  
  5832. function FallenOrbs()
  5833. attack = true
  5834. hum.WalkSpeed = 2
  5835. local keptcolor = MAINRUINCOLOR
  5836. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
  5837. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
  5838. local radm = math.random(1,3)
  5839. if radm == 1 then
  5840. bosschatfunc("This won't be easy for you.",MAINRUINCOLOR.Color,1)
  5841. elseif radm == 2 then
  5842. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  5843. elseif radm == 3 then
  5844. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  5845. end
  5846. coroutine.resume(coroutine.create(function()
  5847. for i = 0, 29 do
  5848. swait(2)
  5849. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  5850. dis.Anchored = true
  5851. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  5852. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  5853. CreateMesh(dis,"Sphere",2,2,2)
  5854. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  5855. --slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(10,50)/250,BrickColor.new("White"))
  5856. coroutine.resume(coroutine.create(function()
  5857. wait(0.5)
  5858. dis.Anchored = false
  5859. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  5860. local at1 = Instance.new("Attachment",dis)
  5861. at1.Position = vt(-1,0,0)
  5862. local at2 = Instance.new("Attachment",dis)
  5863. at2.Position = vt(1,0,0)
  5864. local trl = Instance.new('Trail',dis)
  5865. trl.Attachment0 = at1
  5866. trl.FaceCamera = true
  5867. trl.Attachment1 = at2
  5868. trl.Texture = "rbxassetid://1049219073"
  5869. trl.LightEmission = 1
  5870. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5871. trl.Color = ColorSequence.new(dis.Color)
  5872. trl.Lifetime = 0.6
  5873. local a = Instance.new("Part",workspace)
  5874. a.Name = "Direction"
  5875. a.Anchored = true
  5876. a.BrickColor = bc("Bright red")
  5877. a.Material = "Neon"
  5878. a.Transparency = 1
  5879. a.CanCollide = false
  5880. local ray = Ray.new(
  5881. dis.CFrame.p, -- origin
  5882. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5883. )
  5884. local ignore = dis
  5885. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5886. a.BottomSurface = 10
  5887. a.TopSurface = 10
  5888. local distance = (dis.CFrame.p - position).magnitude
  5889. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5890. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5891. dis.CFrame = a.CFrame
  5892. a:Destroy()
  5893. local bv = Instance.new("BodyVelocity")
  5894. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5895. bv.velocity = dis.CFrame.lookVector*500
  5896. bv.Parent = dis
  5897. game:GetService("Debris"):AddItem(dis, 5)
  5898. local hitted = false
  5899. coroutine.resume(coroutine.create(function()
  5900. dis.Touched:connect(function(hit)
  5901. if hitted == false and hit.Parent ~= char then
  5902. hitted = true
  5903. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  5904. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  5905. --sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  5906. --sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  5907. coroutine.resume(coroutine.create(function()
  5908. for i = 0, 4 do
  5909. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5910. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5911. local at1 = Instance.new("Attachment",disr)
  5912. at1.Position = vt(-10,0,0)
  5913. local at2 = Instance.new("Attachment",disr)
  5914. at2.Position = vt(10,0,0)
  5915. local trl = Instance.new('Trail',disr)
  5916. trl.Attachment0 = at1
  5917. trl.FaceCamera = true
  5918. trl.Attachment1 = at2
  5919. trl.Texture = "rbxassetid://2342682798"
  5920. trl.LightEmission = 1
  5921. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5922. trl.Color = ColorSequence.new(disr.Color)
  5923. trl.Lifetime = 0.5
  5924. local bv = Instance.new("BodyVelocity")
  5925. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5926. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  5927. bv.Parent = disr
  5928. local val = 0
  5929. coroutine.resume(coroutine.create(function()
  5930. swait(30)
  5931. for i = 0, 9 do
  5932. swait()
  5933. val = val + 0.1
  5934. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5935. end
  5936. game:GetService("Debris"):AddItem(disr, 3)
  5937. end))
  5938. end
  5939. local eff = Instance.new("ParticleEmitter",dis)
  5940. eff.Texture = "rbxassetid://2273224484"
  5941. eff.LightEmission = 1
  5942. eff.Color = ColorSequence.new(dis.Color)
  5943. eff.Rate = 500000
  5944. eff.Lifetime = NumberRange.new(0.5,2)
  5945. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5946. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5947. eff.Speed = NumberRange.new(20,250)
  5948. eff.Drag = 5
  5949. eff.Rotation = NumberRange.new(-500,500)
  5950. eff.VelocitySpread = 9000
  5951. eff.RotSpeed = NumberRange.new(-50,50)
  5952. wait(0.5)
  5953. eff.Enabled = false
  5954. end))
  5955. for i = 0, 4 do
  5956. --slash(math.random(20,50)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
  5957. end
  5958. coroutine.resume(coroutine.create(function()
  5959. for i = 0, 19 do
  5960. swait()
  5961. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5962. end
  5963. hum.CameraOffset = vt(0,0,0)
  5964. end))
  5965. dis.Anchored = true
  5966. dis.Transparency = 1
  5967. wait(8)
  5968. dis:Destroy()
  5969. end
  5970. end)
  5971. end))
  5972. end))
  5973. end
  5974. end))
  5975. for i = 0,9,0.1 do
  5976. swait()
  5977. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5978. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.3)
  5979. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.3)
  5980. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(90)),.3)
  5981. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(-15 + 1 * math.cos(sine / 58)),math.rad(-90 + 2 * math.cos(sine / 53))),.3)
  5982. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(90 + 2 * math.cos(sine / 45))),.3)
  5983. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(8 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(-9 - 4 * math.cos(sine / 45))),.3)
  5984. end
  5985. attack = false
  5986. hum.WalkSpeed = storehumanoidWS
  5987. end
  5988.  
  5989. function EquinoxOrbs()
  5990. hum.WalkSpeed = 0
  5991. attack = true
  5992. for i = 0,1,0.1 do
  5993. swait()
  5994. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20)),.2)
  5995. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20)),.2)
  5996. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  5997. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  5998. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  5999. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6000. end
  6001. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6002. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6003. for i = 0, 24 do
  6004. --slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(100,400)/250,BrickColor.new("White"))
  6005. end
  6006. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6007. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6008. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6009. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6010. for i = 0,4,0.1 do
  6011. swait()
  6012. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6013. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6014. CreateMesh(dis,"Sphere",1,1,1)
  6015. dis.Anchored = true
  6016. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6017. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6018. CreateMesh(dis2,"Sphere",1,1,1)
  6019. dis2.Anchored = true
  6020. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6021. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6022. --sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6023. coroutine.resume(coroutine.create(function()
  6024. swait(60)
  6025. dis.Transparency = 1
  6026. dis2.Transparency = 1
  6027. coroutine.resume(coroutine.create(function()
  6028. for i = 0, 19 do
  6029. swait()
  6030. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6031. end
  6032. hum.CameraOffset = vt(0,0,0)
  6033. end))
  6034. coroutine.resume(coroutine.create(function()
  6035. local eff = Instance.new("ParticleEmitter",dis)
  6036. eff.Texture = "rbxassetid://2273224484"
  6037. eff.LightEmission = 1
  6038. eff.Color = ColorSequence.new(dis.Color)
  6039. eff.Rate = 500000
  6040. eff.Lifetime = NumberRange.new(0.5,2)
  6041. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6042. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6043. eff.Speed = NumberRange.new(50,450)
  6044. eff.Drag = 5
  6045. eff.Rotation = NumberRange.new(-500,500)
  6046. eff.VelocitySpread = 9000
  6047. eff.RotSpeed = NumberRange.new(-50,50)
  6048. local eff2 = eff:Clone()
  6049. eff2.Parent = dis2
  6050. eff2.LightEmission = 0
  6051. eff2.Color = ColorSequence.new(dis2.Color)
  6052. wait(0.25)
  6053. eff.Enabled = false
  6054. eff2.Enabled = false
  6055. end))
  6056. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6057. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6058. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6059. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6060. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6061. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6062. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6063. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6064. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6065. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6066. end))
  6067. game:GetService("Debris"):AddItem(dis, 5)
  6068. game:GetService("Debris"):AddItem(dis2, 5)
  6069. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20)),.2)
  6070. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20)),.2)
  6071. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6072. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6073. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6074. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6075. end
  6076. attack = false
  6077. hum.WalkSpeed = storehumanoidWS
  6078. end
  6079. function FallenDEMISE()
  6080. attack = true
  6081. hum.WalkSpeed = 0
  6082. local keptcolor = MAINRUINCOLOR
  6083. --bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6084. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6085. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6086. for i = 0, 15, 0.1 do
  6087. swait()
  6088. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6089. dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6090. local at1 = Instance.new("Attachment",dis)
  6091. at1.Position = vt(-25000,0,0)
  6092. local at2 = Instance.new("Attachment",dis)
  6093. at2.Position = vt(25000,0,0)
  6094. local trl = Instance.new('Trail',dis)
  6095. trl.Attachment0 = at1
  6096. trl.FaceCamera = true
  6097. trl.Attachment1 = at2
  6098. trl.Texture = "rbxassetid://1049219073"
  6099. trl.LightEmission = 1
  6100. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6101. trl.Color = ColorSequence.new(dis.Color)
  6102. trl.Lifetime = 5
  6103. local bv = Instance.new("BodyVelocity")
  6104. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6105. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6106. bv.Parent = dis
  6107. game:GetService("Debris"):AddItem(dis, 1)
  6108. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6109. --slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Toothpaste"))
  6110. --slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Deep orange"))
  6111. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1)
  6112. LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1)
  6113. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6114. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6115. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6116. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6117. end
  6118. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6119. for i = 0, 30, 0.1 do
  6120. swait()
  6121. coroutine.resume(coroutine.create(function()
  6122. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6123. if v:FindFirstChild('Head') then
  6124. dmg(v)
  6125. end
  6126. end
  6127. end))
  6128. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6129. dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6130. local at1 = Instance.new("Attachment",dis)
  6131. at1.Position = vt(-50000,0,0)
  6132. local at2 = Instance.new("Attachment",dis)
  6133. at2.Position = vt(50000,0,0)
  6134. local trl = Instance.new('Trail',dis)
  6135. trl.Attachment0 = at1
  6136. trl.FaceCamera = true
  6137. trl.Attachment1 = at2
  6138. trl.Texture = "rbxassetid://1049219073"
  6139. trl.LightEmission = 1
  6140. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6141. trl.Color = ColorSequence.new(dis.Color)
  6142. trl.Lifetime = 10
  6143. local bv = Instance.new("BodyVelocity")
  6144. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6145. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6146. bv.Parent = dis
  6147. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6148. --sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6149. --sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6150. --sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Deep orange"))
  6151. --sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Toothpaste"))
  6152. --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Deep orange"))
  6153. --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Toothpaste"))
  6154. for i = 0, 2 do
  6155. --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,math.random(-3,1000),0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(2,0.01,2),math.random(250,750)/250,MAINRUINCOLOR)
  6156. end
  6157. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1)
  6158. LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1)
  6159. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6160. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6161. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6162. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6163. end
  6164. attack = false
  6165. hum.WalkSpeed = storehumanoidWS
  6166. end
  6167. -------------------------------------
  6168.  
  6169. Humanoid.Animator.Parent = nil
  6170.  
  6171. -------------------------------------
  6172.  
  6173. local attacktype = 1
  6174. mouse.Button1Down:connect(function()
  6175. if attack == false and attacktype == 1 then
  6176. attacktype = 2
  6177. attackone()
  6178. elseif attack == false and attacktype == 2 then
  6179. attacktype = 3
  6180. attacktwo()
  6181. elseif attack == false and attacktype == 3 then
  6182. attacktype = 1
  6183. attackthree()
  6184. elseif attack == false and attacktype == 4 then
  6185. attacktype = 1
  6186. --attackfour()
  6187. end
  6188. end)
  6189. mouse.KeyDown:connect(function(k)
  6190. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  6191. --normalmog() ---Disabled due to crashing... only in VSB
  6192. ModeOfGlitch = 1
  6193. storehumanoidWS = 16
  6194. hum.WalkSpeed = 16
  6195. rainbowmode = false
  6196. chaosmode = false
  6197. newTheme("rbxassetid://614032233",48.6,1,1.25)
  6198. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  6199. MAINRUINCOLOR = BrickColor.new("Really red")
  6200. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  6201. end
  6202. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  6203. ModeOfGlitch = 2
  6204. storehumanoidWS = 16
  6205. hum.WalkSpeed = 16
  6206. rainbowmode = false
  6207. chaosmode = false
  6208. RecolorTextAndRename("PURITY",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  6209. newTheme("rbxassetid://1539245059",0,1,1.25)
  6210. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  6211. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6212. end
  6213. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  6214. ModeOfGlitch = 3
  6215. storehumanoidWS = 16
  6216. hum.WalkSpeed = 16
  6217. rainbowmode = false
  6218. chaosmode = false
  6219. RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  6220. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  6221. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6222. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6223. end
  6224. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  6225. ModeOfGlitch = 4
  6226. storehumanoidWS = 16
  6227. hum.WalkSpeed = 16
  6228. rainbowmode = false
  6229. chaosmode = true
  6230. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  6231. newTheme("rbxassetid://1369263130",0,1.01,1.25)
  6232. MAINRUINCOLOR = BrickColor.new("Black")
  6233. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6234. end
  6235. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  6236. ModeOfGlitch = 5
  6237. storehumanoidWS = 16
  6238. hum.WalkSpeed = 16
  6239. rainbowmode = false
  6240. chaosmode = false
  6241. RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  6242. newTheme("rbxassetid://661079869",0,1.02,1.25)
  6243. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  6244. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6245. end
  6246. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  6247. ModeOfGlitch = 6
  6248. storehumanoidWS = 100
  6249. hum.WalkSpeed = 100
  6250. rainbowmode = false
  6251. chaosmode = false
  6252. RecolorTextAndRename("EQUINOX",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  6253. newTheme("rbxassetid://1347011178",0,1.01,1.25)
  6254. MAINRUINCOLOR = BrickColor.new("White")
  6255. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6256. end
  6257. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  6258. ModeOfGlitch = 8
  6259. storehumanoidWS = 140
  6260. hum.WalkSpeed = 140
  6261. rainbowmode = false
  6262. chaosmode = false
  6263. RecolorTextAndRename("DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  6264. newTheme("rbxassetid://1495032271",0,1.01,1.25)
  6265. MAINRUINCOLOR = BrickColor.new("Alder")
  6266. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6267. end
  6268. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  6269. ModeOfGlitch = 9
  6270. storehumanoidWS = 150
  6271. hum.WalkSpeed = 150
  6272. rainbowmode = false
  6273. chaosmode = false
  6274. RecolorTextAndRename("INFESTATION",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  6275. newTheme("rbxassetid://708334127",0,1.01,1.25)
  6276. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  6277. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6278. end
  6279. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  6280. ModeOfGlitch = 8889
  6281. storehumanoidWS = 180
  6282. hum.WalkSpeed = 180
  6283. rainbowmode = false
  6284. chaosmode = false
  6285. RecolorTextAndRename("CALAMITY",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  6286. newTheme("rbxassetid://1359036559",0,1.01,1.25)
  6287. MAINRUINCOLOR = BrickColor.new("Lilac")
  6288. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6289. end
  6290. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  6291. ModeOfGlitch = 55469696922
  6292. storehumanoidWS = 275
  6293. hum.WalkSpeed = 275
  6294. rainbowmode = false
  6295. chaosmode = false
  6296. RecolorTextAndRename("NANO",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  6297. newTheme("rbxassetid://582020393",0,1.005,1.25)
  6298. MAINRUINCOLOR = BrickColor.new("Hot pink")
  6299. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6300. end
  6301. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  6302. ModeOfGlitch = 4367677813
  6303. storehumanoidWS = 225
  6304. hum.WalkSpeed = 225
  6305. rainbowmode = false
  6306. chaosmode = false
  6307. RecolorTextAndRename("BRIGHTNESS",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  6308. newTheme("rbxassetid://363284685",0,1.01,1.25)
  6309. MAINRUINCOLOR = BrickColor.new("Baby blue")
  6310. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6311. end
  6312. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  6313. ModeOfGlitch = 9999999921111
  6314. storehumanoidWS = 300
  6315. hum.WalkSpeed = 300
  6316. rainbowmode = false
  6317. chaosmode = false
  6318. RecolorTextAndRename("OMEGA",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  6319. newTheme("rbxassetid://643309199",0,1.01,1.25)
  6320. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  6321. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6322. end
  6323. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  6324. ModeOfGlitch = 999999999556
  6325. storehumanoidWS = 500
  6326. hum.WalkSpeed = 500
  6327. rainbowmode = false
  6328. chaosmode = false
  6329. RecolorTextAndRename("CRAZED",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  6330. newTheme("rbxassetid://719008519",0,1.02,1.25)
  6331. MAINRUINCOLOR = BrickColor.new("Navy blue")
  6332. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6333. end
  6334. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  6335. ModeOfGlitch = 1264532489
  6336. storehumanoidWS = 250
  6337. hum.WalkSpeed = 250
  6338. rainbowmode = false
  6339. chaosmode = false
  6340. RecolorTextAndRename("FALLEN",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  6341. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  6342. MAINRUINCOLOR = BrickColor.new("Pastel green")
  6343. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6344. end
  6345. if k == "l" and mutedtog == false then
  6346. mutedtog = true
  6347. kan.Volume = 0
  6348. elseif k == "l" and mutedtog == true then
  6349. mutedtog = false
  6350. kan.Volume = 1.25
  6351. end
  6352. if k == "p" and toggleTag == false then
  6353. toggleTag = true
  6354. modet.TextTransparency = 0
  6355. modet.TextStrokeTransparency = 0
  6356. elseif k == "p" and toggleTag == true then
  6357. toggleTag = false
  6358. modet.TextTransparency = 1
  6359. modet.TextStrokeTransparency = 1
  6360. end
  6361. if k == "z" and attack == false and ModeOfGlitch == 1 then
  6362. ExtinctiveHeartbreak()
  6363. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  6364. HeavenlyDisk()
  6365. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  6366. CorruptionEvent()
  6367. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  6368. RapidBurst()
  6369. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  6370. --DivineLights()
  6371. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  6372. EquinoxOrbs()
  6373. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  6374. FallenOrbs()
  6375. end
  6376. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  6377. FallenDEMISE()
  6378. end
  6379. if k == "x" and attack == false and ModeOfGlitch == 1 then
  6380. EndGROUND()
  6381. end
  6382. end)
  6383.  
  6384. --[[coroutine.resume(coroutine.create(function()
  6385. while true do
  6386. swait(2)
  6387. if chaosmode == true then
  6388. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  6389. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  6390. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  6391. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  6392. for i, v in pairs(mw1:GetChildren()) do
  6393. if v:IsA("Part") then
  6394. v.Transparency = 0.75
  6395. v.BrickColor = BrickColor.random()
  6396. v.Material = "Neon"
  6397. end
  6398. end
  6399. for i, v in pairs(m2:GetChildren()) do
  6400. if v:IsA("Part") then
  6401. v.BrickColor = BrickColor.random()
  6402. v.Material = "Neon"
  6403. end
  6404. end
  6405. end
  6406. end
  6407. end))]]--
  6408. Humanoid.Name = "STARGLITCHER"
  6409. Humanoid.MaxHealth = math.huge
  6410. Humanoid.Health = math.huge
  6411. Instance.new("ForceField",char).Visible = false
  6412.  
  6413. local bguis = Instance.new("BillboardGui",tors)
  6414. bguis.Size = UDim2.new(25, 0, 25, 0)
  6415. local imgca = Instance.new("ImageLabel",bguis)
  6416. imgca.BackgroundTransparency = 1
  6417. imgca.ImageTransparency = 1
  6418. imgca.Size = UDim2.new(1,0,1,0)
  6419. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  6420. imgca.ImageColor3 = Color3.new(0,0,0)
  6421.  
  6422. idleanim=.4
  6423. while true do
  6424. if mutedtog == false then
  6425. kan.Volume = currentVol
  6426. elseif mutedtog == true then
  6427. kan.Volume = 0
  6428. end
  6429. kan.PlaybackSpeed = currentPitch
  6430. kan.Pitch = currentPitch
  6431. kan.SoundId = currentThemePlaying
  6432. kan.Looped = true
  6433. kan.Parent = char
  6434. kan:Resume()
  6435. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  6436. imgca.ImageTransparency = 1
  6437. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  6438. imgca.ImageColor3 = MAINRUINCOLOR.Color
  6439. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  6440. end
  6441. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  6442. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  6443. coroutine.resume(coroutine.create(function()
  6444. if chaosmode == true then
  6445. for i, v in pairs(mw1:GetChildren()) do
  6446. if v:IsA("Part") then
  6447. v.Transparency = 0
  6448. v.BrickColor = BrickColor.random()
  6449. v.Material = "Neon"
  6450. end
  6451. end
  6452. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  6453. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  6454. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  6455. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  6456. end
  6457. end))
  6458. if chaosmode == false then
  6459. modet.Position = UDim2.new(0,0,0,0)
  6460. modet.Rotation = -5 * math.cos(sine / 32)
  6461. techc.Rotation = techc.Rotation + 1
  6462. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  6463. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  6464. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  6465. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  6466. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  6467. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  6468. else
  6469. techc.Rotation = techc.Rotation + 1
  6470. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  6471. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  6472. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  6473. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  6474. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  6475. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  6476. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  6477. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  6478. end
  6479. CameraManager()
  6480. swait()
  6481. 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)
  6482. 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)
  6483. 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)
  6484. 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)
  6485. 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)
  6486. 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)
  6487. 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)
  6488. 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)
  6489. 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)
  6490. 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)
  6491. 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)
  6492. 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)
  6493. sine = sine + change
  6494. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6495. local velderp=RootPart.Velocity.y
  6496. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6497. if equipped==true or equipped==false then
  6498. if attack==false then
  6499. idle=idle+1
  6500. else
  6501. idle=0
  6502. end
  6503. if idle>=500 then
  6504. if attack==false then
  6505. --Sheath()
  6506. end
  6507. end
  6508. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6509. Anim="Jump"
  6510. if attack==false then
  6511. RH.C0=clerp(RH.C0,cf(1,-0.35 - 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)),.1)
  6512. 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)
  6513. 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)
  6514. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6515. 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)
  6516. 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)
  6517. end
  6518. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6519. Anim="Fall"
  6520. if attack==false then
  6521. RH.C0=clerp(RH.C0,cf(1,-0.35 - 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)),.1)
  6522. 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)
  6523. 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)
  6524. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  6525. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
  6526. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
  6527. end
  6528. elseif torvel<1 and hitfloor~=nil then
  6529. Anim="Idle"
  6530. if attack==false then
  6531. if ModeOfGlitch == 1 then
  6532. local snap = math.random(1,10)
  6533. if snap == 1 then
  6534. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(22 + math.random(-5,5))),1)
  6535. end
  6536. 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(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
  6537. 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(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  6538. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1)
  6539. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(22 - 2 * math.cos(sine / 56))),.1)
  6540. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
  6541. LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(148 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 2 * math.cos(sine / 45))),.1)
  6542. elseif ModeOfGlitch == 2 then
  6543. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  6544. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  6545. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 42))),.1)
  6546. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(0 + 1 * math.cos(sine / 53))),.1)
  6547. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  6548. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  6549. elseif ModeOfGlitch == 3 then
  6550. local snap = math.random(1,32)
  6551. if snap == 1 then
  6552. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1)
  6553. end
  6554. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  6555. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  6556. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
  6557. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6558. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1)
  6559. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1)
  6560. elseif ModeOfGlitch == 4 then
  6561. local snap = math.random(1,5)
  6562. if snap == 1 then
  6563. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
  6564. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(1 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  6565. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(-3 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  6566. end
  6567. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(25 - 2 * math.cos(sine / 32))),.1)
  6568. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-25 + 2 * math.cos(sine / 32))),.1)
  6569. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(25 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6570. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6571. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(1 + 3 * math.cos(sine / 45))),.1)
  6572. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-3 - 3 * math.cos(sine / 45))),.1)
  6573. elseif ModeOfGlitch == 5 then
  6574. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  6575. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  6576. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  6577. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1)
  6578. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(8 + 3 * math.cos(sine / 45))),.1)
  6579. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1)
  6580. elseif ModeOfGlitch == 6 then
  6581. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  6582. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  6583. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6584. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6585. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(14 + 5 * math.cos(sine / 32))),.1)
  6586. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 6 * math.cos(sine / 33))),.1)
  6587. elseif ModeOfGlitch == 8 then
  6588. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  6589. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  6590. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20)),.1)
  6591. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(20 + 2 * math.cos(sine / 53))),.1)
  6592. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  6593. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  6594. elseif ModeOfGlitch == 9 then
  6595. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  6596. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(9 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  6597. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 53))),.1)
  6598. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(19 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6599. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(18 - 3 * math.cos(sine / 53)),math.rad(17 + 3 * math.cos(sine / 45))),.1)
  6600. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(-11 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1)
  6601. elseif ModeOfGlitch == 8889 then
  6602. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 5 * math.cos(sine / 51))),.1)
  6603. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 44))),.1)
  6604. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-36)),.1)
  6605. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(36 + 2 * math.cos(sine / 53))),.1)
  6606. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(3 + 7 * math.cos(sine / 79)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 10 * math.cos(sine / 73))),.1)
  6607. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(15 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-27 - 6 * math.cos(sine / 33))),.1)
  6608. elseif ModeOfGlitch == 1264532489 then
  6609. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-14 - 5 * math.cos(sine / 48))),.1)
  6610. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 7 * math.cos(sine / 51))),.1)
  6611. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6612. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6613. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(13 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(28 + 2 * math.cos(sine / 45))),.1)
  6614. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  6615. elseif ModeOfGlitch == 9999999921111 then
  6616. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1)
  6617. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1)
  6618. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-21 - 2 * math.cos(sine / 32)),math.rad(8),math.rad(0)),.1)
  6619. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 6 * math.cos(sine / 37)),math.rad(-14 + 5 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6620. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-24 + 9 * math.cos(sine / 72)),math.rad(3 - 5 * math.cos(sine / 58)),math.rad(38 + 7 * math.cos(sine / 45))),.1)
  6621. LW.C0=clerp(LW.C0,cf(-0.8,0.35 + 0.025 * math.cos(sine / 45),-0.75)*angles(math.rad(160 - 2 * math.cos(sine / 66)),math.rad(5 - 8 * math.cos(sine / 59)),math.rad(87 - 3 * math.cos(sine / 45))),.1)
  6622. elseif ModeOfGlitch == 4367677813 then
  6623. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.1)
  6624. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.1)
  6625. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(10)),.1)
  6626. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
  6627. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(4 + 3 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(19 + 2 * math.cos(sine / 45))),.1)
  6628. LW.C0=clerp(LW.C0,cf(-1.25,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(10 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(13 - 4 * math.cos(sine / 45))),.1)
  6629. elseif ModeOfGlitch == 55469696922 then
  6630. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(19 + 8 * math.cos(sine / 62)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-20 - 3 * math.cos(sine / 34))),.1)
  6631. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 - 1 * math.cos(sine / 55)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(26 + 5 * math.cos(sine / 41))),.1)
  6632. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-13 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
  6633. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 8 * math.cos(sine / 37)),math.rad(-21 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
  6634. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 14 * math.cos(sine / 45))),.1)
  6635. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(35 - 8 * math.cos(sine / 51))),.1)
  6636. elseif ModeOfGlitch == 999999999556 then
  6637. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 6 * math.cos(sine / 39))),.1)
  6638. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 45))),.1)
  6639. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(17)),.1)
  6640. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(29 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-17 + 2 * math.cos(sine / 53))),.1)
  6641. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  6642. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  6643. end
  6644. end
  6645. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  6646. Anim="Walk"
  6647. if attack==false then
  6648. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*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 + 35 * math.cos(sine / 8))),.1)
  6649. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*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 + 35 * math.cos(sine / 8))),.1)
  6650. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  6651. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
  6652. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  6653. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  6654. end
  6655. elseif torvel>=22 and hitfloor~=nil then
  6656. Anim="Run"
  6657. if attack==false then
  6658. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 8889 then
  6659. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*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)
  6660. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*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)
  6661. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(25 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 1 * math.cos(sine / 6))),.1)
  6662. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-6 + 2 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 1 * math.cos(sine / 6))),.1)
  6663. RW.C0=clerp(RW.C0,cf(1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(-10),math.rad(7 + 5 * math.cos(sine / 6))),.1)
  6664. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(10),math.rad(-7 - 5 * math.cos(sine / 6))),.1)
  6665. if ModeOfGlitch == 9 then
  6666. --
  6667. end
  6668. elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  6669. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  6670. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  6671. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  6672. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  6673. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
  6674. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
  6675. end
  6676. end
  6677. end
  6678. end
  6679. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement