aweeb

japan

Mar 3rd, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 = "まyへm"
  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 = "まyへm"
  757. ned.TextSize = 24
  758. ned.Rotation = 1
  759. ned.TextXAlignment = "Right"
  760. ned.TextYAlignment = "Bottom"
  761.  
  762. local extrawingmod1 = Instance.new("Model",char)
  763. local extrawingmod2 = Instance.new("Model",char)
  764.  
  765. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  766. local p = Instance.new("Part")
  767. p.TopSurface = 0
  768. p.BottomSurface = 0
  769. p.Parent = parent
  770. p.Size = Vector3.new(0.1,0.1,0.1)
  771. p.Transparency = transparency
  772. p.Reflectance = reflectance
  773. p.CanCollide = false
  774. p.Locked = true
  775. p.BrickColor = brickcolor
  776. p.Material = material
  777. return p
  778. end
  779.  
  780. function CreateMesh(parent,meshtype,x1,y1,z1)
  781. local mesh = Instance.new("SpecialMesh",parent)
  782. mesh.MeshType = meshtype
  783. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  784. return mesh
  785. end
  786.  
  787. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  788. local mesh = Instance.new("SpecialMesh",parent)
  789. mesh.MeshType = "FileMesh"
  790. mesh.MeshId = meshid
  791. mesh.Scale = Vector3.new(x1,y1,z1)
  792. return mesh
  793. end
  794.  
  795.  
  796. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  797. local mesh = Instance.new("SpecialMesh",parent)
  798. mesh.MeshType = "FileMesh"
  799. mesh.MeshId = meshid
  800. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  801. mesh.Scale = Vector3.new(x1,y1,z1)
  802. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  803. return mesh
  804. end
  805.  
  806. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  807. local weld = Instance.new("Weld")
  808. weld.Parent = parent
  809. weld.Part0 = part0
  810. weld.Part1 = part1
  811. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  812. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  813. return weld
  814. end
  815.  
  816.  
  817. --------------
  818. --------------
  819.  
  820.  
  821.  
  822.  
  823. for i, v in pairs(m:GetChildren()) do
  824. if v:IsA("Part") then
  825. v.BrickColor = BrickColor.new("Really black")
  826. v.Material = "Glass"
  827. end
  828. end
  829. for i, v in pairs(m2:GetChildren()) do
  830. if v:IsA("Part") then
  831. v.BrickColor = BrickColor.new("Crimson")
  832. v.Material = "Granite"
  833. end
  834. end
  835. for i, v in pairs(m3:GetChildren()) do
  836. if v:IsA("Part") then
  837. v.BrickColor = BrickColor.new("Really red")
  838. v.Material = "Neon"
  839. end
  840. end
  841. for i, v in pairs(mw2:GetChildren()) do
  842. if v:IsA("Part") then
  843. v.BrickColor = BrickColor.new("Really red")
  844. v.Material = "Neon"
  845. end
  846. end
  847. for i, v in pairs(mw1:GetChildren()) do
  848. if v:IsA("Part") then
  849. v.Transparency = 1
  850. v.BrickColor = BrickColor.new("Really red")
  851. v.Material = "Neon"
  852. end
  853. end
  854. for i, v in pairs(extrawingmod1:GetChildren()) do
  855. if v:IsA("Part") then
  856. v.Transparency = 1
  857. v.BrickColor = BrickColor.new("White")
  858. v.Material = "Neon"
  859. end
  860. end
  861. for i, v in pairs(extrawingmod2:GetChildren()) do
  862. if v:IsA("Part") then
  863. v.Transparency = 1
  864. v.BrickColor = BrickColor.new("White")
  865. v.Material = "Neon"
  866. end
  867. end
  868. local MAINRUINCOLOR = BrickColor.new("Really red")
  869. ------
  870.  
  871.  
  872. function RemoveOutlines(part)
  873. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  874. end
  875. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  876. local Part = Create("Part")({
  877. Parent = Parent,
  878. Reflectance = Reflectance,
  879. Transparency = Transparency,
  880. CanCollide = false,
  881. Locked = true,
  882. BrickColor = BrickColor.new(tostring(BColor)),
  883. Name = Name,
  884. Size = Size,
  885. Material = Material
  886. })
  887. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  888. RemoveOutlines(Part)
  889. return Part
  890. end
  891. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  892. local Msh = Create(Mesh)({
  893. Parent = Part,
  894. Offset = OffSet,
  895. Scale = Scale
  896. })
  897. if Mesh == "SpecialMesh" then
  898. Msh.MeshType = MeshType
  899. Msh.MeshId = MeshId
  900. end
  901. return Msh
  902. end
  903. function CreateWeld(Parent, Part0, Part1, C0, C1)
  904. local Weld = Create("Weld")({
  905. Parent = Parent,
  906. Part0 = Part0,
  907. Part1 = Part1,
  908. C0 = C0,
  909. C1 = C1
  910. })
  911. return Weld
  912. end
  913.  
  914. Character=Player.Character
  915. PlayerGui=Player.PlayerGui
  916. Backpack=Player.Backpack
  917. Torso=Character.Torso
  918. Head=Character.Head
  919. Humanoid=Character.Humanoid
  920. m=Instance.new('Model',Character)
  921. LeftArm=Character["Left Arm"]
  922. LeftLeg=Character["Left Leg"]
  923. RightArm=Character["Right Arm"]
  924. RightLeg=Character["Right Leg"]
  925. LS=Torso["Left Shoulder"]
  926. LH=Torso["Left Hip"]
  927. RS=Torso["Right Shoulder"]
  928. RH=Torso["Right Hip"]
  929. Face = Head.face
  930. Neck=Torso.Neck
  931. it=Instance.new
  932. attacktype=1
  933. vt=Vector3.new
  934. cf=CFrame.new
  935. euler=CFrame.fromEulerAnglesXYZ
  936. angles=CFrame.Angles
  937. cloaked=false
  938. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  939. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  940. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  941. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  942. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  943. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  944. RootPart=Character.HumanoidRootPart
  945. RootJoint=RootPart.RootJoint
  946. RootCF=euler(-1.57,0,3.14)
  947. attack = false
  948. attackdebounce = false
  949. deb=false
  950. equipped=true
  951. hand=false
  952. combo=0
  953. mana=0
  954. trispeed=.2
  955. attackmode='none'
  956. local idle=0
  957. local Anim="Idle"
  958. local Effects={}
  959. local gun=false
  960. local shoot=false
  961. local sine = 0
  962. local change = 1
  963.  
  964. function RecolorTextAndRename(name,col1,col2,font)
  965. modet.TextStrokeColor3 = col2
  966. modet.TextColor3 = col1
  967. modet.Font = font
  968. modet.Text = name
  969. techc.ImageColor3 = col2
  970. circl.ImageColor3 = col2
  971. circl2.ImageColor3 = col1
  972. imgl2.ImageColor3 = col1
  973. imgl2b.ImageColor3 = col2
  974. ned.Text = name
  975. ned.TextColor3 = col1
  976. ned.TextStrokeColor3 = col2
  977. end
  978. --save shoulders
  979. RSH, LSH=nil, nil
  980. --welds
  981. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  982. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  983. LH=Torso["Left Hip"]
  984. RH=Torso["Right Hip"]
  985. TorsoColor=Torso.BrickColor
  986. function NoOutline(Part)
  987. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  988. end
  989. ch=Character
  990. RSH=ch.Torso["Right Shoulder"]
  991. LSH=ch.Torso["Left Shoulder"]
  992. --
  993. RSH.Parent=nil
  994. LSH.Parent=nil
  995. --
  996. RW.Name="Right Shoulder"
  997. RW.Part0=ch.Torso
  998. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  999. RW.C1=cf(0, 0.5, 0)
  1000. RW.Part1=ch["Right Arm"]
  1001. RW.Parent=ch.Torso
  1002. --
  1003. LW.Name="Left Shoulder"
  1004. LW.Part0=ch.Torso
  1005. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1006. LW.C1=cf(0, 0.5, 0)
  1007. LW.Part1=ch["Left Arm"]
  1008. LW.Parent=ch.Torso
  1009.  
  1010. local Stats=Instance.new("BoolValue")
  1011. Stats.Name="Stats"
  1012. Stats.Parent=Character
  1013. local Atk=Instance.new("NumberValue")
  1014. Atk.Name="Damage"
  1015. Atk.Parent=Stats
  1016. Atk.Value=1
  1017. local Def=Instance.new("NumberValue")
  1018. Def.Name="Defense"
  1019. Def.Parent=Stats
  1020. Def.Value=1
  1021. local Speed=Instance.new("NumberValue")
  1022. Speed.Name="Speed"
  1023. Speed.Parent=Stats
  1024. Speed.Value=1
  1025. local Mvmt=Instance.new("NumberValue")
  1026. Mvmt.Name="Movement"
  1027. Mvmt.Parent=Stats
  1028. Mvmt.Value=1
  1029.  
  1030. local donum=0
  1031.  
  1032.  
  1033. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1034. local fp=it("Part")
  1035. fp.formFactor=formfactor
  1036. fp.Parent=parent
  1037. fp.Reflectance=reflectance
  1038. fp.Transparency=transparency
  1039. fp.CanCollide=false
  1040. fp.Locked=true
  1041. fp.BrickColor=brickcolor
  1042. fp.Name=name
  1043. fp.Size=size
  1044. fp.Position=Torso.Position
  1045. NoOutline(fp)
  1046. fp.Material="SmoothPlastic"
  1047. fp:BreakJoints()
  1048. return fp
  1049. end
  1050.  
  1051. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1052. local mesh=it(Mesh)
  1053. mesh.Parent=part
  1054. if Mesh=="SpecialMesh" then
  1055. mesh.MeshType=meshtype
  1056. if meshid~="nil" then
  1057. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1058. end
  1059. end
  1060. mesh.Offset=offset
  1061. mesh.Scale=scale
  1062. return mesh
  1063. end
  1064.  
  1065. function weld(parent,part0,part1,c0)
  1066. local weld=it("Weld")
  1067. weld.Parent=parent
  1068. weld.Part0=part0
  1069. weld.Part1=part1
  1070. weld.C0=c0
  1071. return weld
  1072. end
  1073.  
  1074. local Color1=Torso.BrickColor
  1075.  
  1076. local bodvel=Instance.new("BodyVelocity")
  1077. local bg=Instance.new("BodyGyro")
  1078.  
  1079. --------- SazEreno's Artificial HB --------------
  1080. ArtificialHB = Instance.new("BindableEvent", script)
  1081. ArtificialHB.Name = "ArtificialHB"
  1082.  
  1083. script:WaitForChild("ArtificialHB")
  1084. Frame_Speed = 1 / 60
  1085. frame = Frame_Speed
  1086. tf = 0
  1087. allowframeloss = false
  1088. tossremainder = false
  1089. lastframe = tick()
  1090. script.ArtificialHB:Fire()
  1091.  
  1092. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1093. tf = tf + s
  1094. if tf >= frame then
  1095. if allowframeloss then
  1096. script.ArtificialHB:Fire()
  1097. lastframe = tick()
  1098. else
  1099. for i = 1, math.floor(tf / frame) do
  1100. script.ArtificialHB:Fire()
  1101. end
  1102. lastframe = tick()
  1103. end
  1104. if tossremainder then
  1105. tf = 0
  1106. else
  1107. tf = tf - frame * math.floor(tf / frame)
  1108. end
  1109. end
  1110. end)
  1111.  
  1112. ------------------
  1113. function swait(num)
  1114. function swait(num)
  1115. if num==0 or num==nil then
  1116. game:service'RunService'.Stepped:wait(0)
  1117. else
  1118. for i=0,num do
  1119. game:service'RunService'.Stepped:wait(0)
  1120. end
  1121. end
  1122. end
  1123. end
  1124.  
  1125. -------- RAINBOW LEAVE IT TO ME
  1126. local r = 255
  1127. local g = 0
  1128. local b = 0
  1129. coroutine.resume(coroutine.create(function()
  1130. while wait() do
  1131. for i = 0, 254/5 do
  1132. swait()
  1133. g = g + 5
  1134. end
  1135. for i = 0, 254/5 do
  1136. swait()
  1137. r = r - 5
  1138. end
  1139. for i = 0, 254/5 do
  1140. swait()
  1141. b = b + 5
  1142. end
  1143. for i = 0, 254/5 do
  1144. swait()
  1145. g = g - 5
  1146. end
  1147. for i = 0, 254/5 do
  1148. swait()
  1149. r = r + 5
  1150. end
  1151. for i = 0, 254/5 do
  1152. swait()
  1153. b = b - 5
  1154. end
  1155. end
  1156. end))
  1157.  
  1158.  
  1159. so = function(id,par,vol,pit)
  1160. coroutine.resume(coroutine.create(function()
  1161. local sou = Instance.new("Sound",par or workspace)
  1162. sou.Volume=vol
  1163. sou.Pitch=pit or 1
  1164. sou.SoundId=id
  1165. swait()
  1166. sou:play()
  1167. game:GetService("Debris"):AddItem(sou,6)
  1168. end))
  1169. end
  1170.  
  1171. function clerp(a,b,t)
  1172. local qa = {QuaternionFromCFrame(a)}
  1173. local qb = {QuaternionFromCFrame(b)}
  1174. local ax, ay, az = a.x, a.y, a.z
  1175. local bx, by, bz = b.x, b.y, b.z
  1176. local _t = 1-t
  1177. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1178. end
  1179.  
  1180. function QuaternionFromCFrame(cf)
  1181. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1182. local trace = m00 + m11 + m22
  1183. if trace > 0 then
  1184. local s = math.sqrt(1 + trace)
  1185. local recip = 0.5/s
  1186. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1187. else
  1188. local i = 0
  1189. if m11 > m00 then
  1190. i = 1
  1191. end
  1192. if m22 > (i == 0 and m00 or m11) then
  1193. i = 2
  1194. end
  1195. if i == 0 then
  1196. local s = math.sqrt(m00-m11-m22+1)
  1197. local recip = 0.5/s
  1198. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1199. elseif i == 1 then
  1200. local s = math.sqrt(m11-m22-m00+1)
  1201. local recip = 0.5/s
  1202. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1203. elseif i == 2 then
  1204. local s = math.sqrt(m22-m00-m11+1)
  1205. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1206. end
  1207. end
  1208. end
  1209.  
  1210. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1211. local xs, ys, zs = x + x, y + y, z + z
  1212. local wx, wy, wz = w*xs, w*ys, w*zs
  1213. local xx = x*xs
  1214. local xy = x*ys
  1215. local xz = x*zs
  1216. local yy = y*ys
  1217. local yz = y*zs
  1218. local zz = z*zs
  1219. 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))
  1220. end
  1221.  
  1222. function QuaternionSlerp(a, b, t)
  1223. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1224. local startInterp, finishInterp;
  1225. if cosTheta >= 0.0001 then
  1226. if (1 - cosTheta) > 0.0001 then
  1227. local theta = math.acos(cosTheta)
  1228. local invSinTheta = 1/math.sin(theta)
  1229. startInterp = math.sin((1-t)*theta)*invSinTheta
  1230. finishInterp = math.sin(t*theta)*invSinTheta
  1231. else
  1232. startInterp = 1-t
  1233. finishInterp = t
  1234. end
  1235. else
  1236. if (1+cosTheta) > 0.0001 then
  1237. local theta = math.acos(-cosTheta)
  1238. local invSinTheta = 1/math.sin(theta)
  1239. startInterp = math.sin((t-1)*theta)*invSinTheta
  1240. finishInterp = math.sin(t*theta)*invSinTheta
  1241. else
  1242. startInterp = t-1
  1243. finishInterp = t
  1244. end
  1245. end
  1246. 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
  1247. end
  1248.  
  1249. local function CFrameFromTopBack(at, top, back)
  1250. local right = top:Cross(back)
  1251. return CFrame.new(at.x, at.y, at.z,
  1252. right.x, top.x, back.x,
  1253. right.y, top.y, back.y,
  1254. right.z, top.z, back.z)
  1255. end
  1256.  
  1257. function Triangle(a, b, c)
  1258. local edg1 = (c-a):Dot((b-a).unit)
  1259. local edg2 = (a-b):Dot((c-b).unit)
  1260. local edg3 = (b-c):Dot((a-c).unit)
  1261. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1262. a, b, c = a, b, c
  1263. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1264. a, b, c = b, c, a
  1265. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1266. a, b, c = c, a, b
  1267. else
  1268. assert(false, "unreachable")
  1269. end
  1270.  
  1271. local len1 = (c-a):Dot((b-a).unit)
  1272. local len2 = (b-a).magnitude - len1
  1273. local width = (a + (b-a).unit*len1 - c).magnitude
  1274.  
  1275. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1276.  
  1277. local list = {}
  1278.  
  1279. if len1 > 0.01 then
  1280. local w1 = Instance.new('WedgePart', m)
  1281. game:GetService("Debris"):AddItem(w1,5)
  1282. w1.Material = "SmoothPlastic"
  1283. w1.FormFactor = 'Custom'
  1284. w1.BrickColor = BrickColor.new("Really red")
  1285. w1.Transparency = 0
  1286. w1.Reflectance = 0
  1287. w1.Material = "SmoothPlastic"
  1288. w1.CanCollide = false
  1289. local l1 = Instance.new("PointLight",w1)
  1290. l1.Color = Color3.new(170,0,0)
  1291. NoOutline(w1)
  1292. local sz = Vector3.new(0.2, width, len1)
  1293. w1.Size = sz
  1294. local sp = Instance.new("SpecialMesh",w1)
  1295. sp.MeshType = "Wedge"
  1296. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1297. w1:BreakJoints()
  1298. w1.Anchored = true
  1299. w1.Parent = workspace
  1300. w1.Transparency = 0.7
  1301. table.insert(Effects,{w1,"Disappear",.01})
  1302. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1303. table.insert(list,w1)
  1304. end
  1305.  
  1306. if len2 > 0.01 then
  1307. local w2 = Instance.new('WedgePart', m)
  1308. game:GetService("Debris"):AddItem(w2,5)
  1309. w2.Material = "SmoothPlastic"
  1310. w2.FormFactor = 'Custom'
  1311. w2.BrickColor = BrickColor.new("Really red")
  1312. w2.Transparency = 0
  1313. w2.Reflectance = 0
  1314. w2.Material = "SmoothPlastic"
  1315. w2.CanCollide = false
  1316. local l2 = Instance.new("PointLight",w2)
  1317. l2.Color = Color3.new(170,0,0)
  1318. NoOutline(w2)
  1319. local sz = Vector3.new(0.2, width, len2)
  1320. w2.Size = sz
  1321. local sp = Instance.new("SpecialMesh",w2)
  1322. sp.MeshType = "Wedge"
  1323. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1324. w2:BreakJoints()
  1325. w2.Anchored = true
  1326. w2.Parent = workspace
  1327. w2.Transparency = 0.7
  1328. table.insert(Effects,{w2,"Disappear",.01})
  1329. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1330. table.insert(list,w2)
  1331. end
  1332. return unpack(list)
  1333. end
  1334.  
  1335.  
  1336. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1337. if hit.Parent == nil then
  1338. return
  1339. end
  1340. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1341. for _, v in pairs(hit.Parent:children()) do
  1342. if v:IsA("Humanoid") then
  1343. h = v
  1344. end
  1345. end
  1346. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1347. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1348. return
  1349. end
  1350. local c = Create("ObjectValue")({
  1351. Name = "creator",
  1352. Value = game:GetService("Players").LocalPlayer,
  1353. Parent = h
  1354. })
  1355. game:GetService("Debris"):AddItem(c, 0.5)
  1356. if HitSound ~= nil and HitPitch ~= nil then
  1357. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1358. end
  1359. local Damage = math.random(minim, maxim)
  1360. local blocked = false
  1361. local block = hit.Parent:findFirstChild("Block")
  1362. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1363. blocked = true
  1364. block.Value = block.Value - 1
  1365. print(block.Value)
  1366. end
  1367. if blocked == false then
  1368. HitHealth = h.Health
  1369. h.MaxHealth = 100
  1370. h.Health = h.Health - Damage
  1371. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1372. print("gained kill")
  1373. dmg(h.Parent)
  1374. end
  1375. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1376. else
  1377. h.Health = h.Health - Damage / 2
  1378. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1379. end
  1380. if Type == "Knockdown" then
  1381. local hum = hit.Parent.Humanoid
  1382. hum.PlatformStand = true
  1383. coroutine.resume(coroutine.create(function(HHumanoid)
  1384. swait(1)
  1385. HHumanoid.PlatformStand = false
  1386. end), hum)
  1387. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1388. local bodvol = Create("BodyVelocity")({
  1389. velocity = angle * knockback,
  1390. P = 5000,
  1391. maxForce = Vector3.new(8000, 8000, 8000),
  1392. Parent = hit
  1393. })
  1394. local rl = Create("BodyAngularVelocity")({
  1395. P = 3000,
  1396. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1397. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1398. Parent = hit
  1399. })
  1400. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1401. game:GetService("Debris"):AddItem(rl, 0.5)
  1402. elseif Type == "Normal" then
  1403. local vp = Create("BodyVelocity")({
  1404. P = 500,
  1405. maxForce = Vector3.new(math.huge, 0, math.huge),
  1406. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1407. })
  1408. if knockback > 0 then
  1409. vp.Parent = hit.Parent.Head
  1410. end
  1411. game:GetService("Debris"):AddItem(vp, 0.5)
  1412. elseif Type == "Up" then
  1413. local bodyVelocity = Create("BodyVelocity")({
  1414. velocity = Vector3.new(0, 20, 0),
  1415. P = 5000,
  1416. maxForce = Vector3.new(8000, 8000, 8000),
  1417. Parent = hit
  1418. })
  1419. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1420. local bodyVelocity = Create("BodyVelocity")({
  1421. velocity = Vector3.new(0, 20, 0),
  1422. P = 5000,
  1423. maxForce = Vector3.new(8000, 8000, 8000),
  1424. Parent = hit
  1425. })
  1426. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1427. elseif Type == "Leech" then
  1428. local hum = hit.Parent.Humanoid
  1429. if hum ~= nil then
  1430. for i = 0, 2 do
  1431. 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)
  1432. end
  1433. Humanoid.Health = Humanoid.Health + 10
  1434. end
  1435. elseif Type == "UpKnock" then
  1436. local hum = hit.Parent.Humanoid
  1437. hum.PlatformStand = true
  1438. if hum ~= nil then
  1439. hitr = true
  1440. end
  1441. coroutine.resume(coroutine.create(function(HHumanoid)
  1442. swait(5)
  1443. HHumanoid.PlatformStand = false
  1444. hitr = false
  1445. end), hum)
  1446. local bodyVelocity = Create("BodyVelocity")({
  1447. velocity = Vector3.new(0, 20, 0),
  1448. P = 5000,
  1449. maxForce = Vector3.new(8000, 8000, 8000),
  1450. Parent = hit
  1451. })
  1452. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1453. local bodyVelocity = Create("BodyVelocity")({
  1454. velocity = Vector3.new(0, 20, 0),
  1455. P = 5000,
  1456. maxForce = Vector3.new(8000, 8000, 8000),
  1457. Parent = hit
  1458. })
  1459. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1460. elseif Type == "Snare" then
  1461. local bp = Create("BodyPosition")({
  1462. P = 2000,
  1463. D = 100,
  1464. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1465. position = hit.Parent.Torso.Position,
  1466. Parent = hit.Parent.Torso
  1467. })
  1468. game:GetService("Debris"):AddItem(bp, 1)
  1469. elseif Type == "Slashnare" then
  1470. 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)
  1471. for i = 1, math.random(4, 5) do
  1472. 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)
  1473. end
  1474. local bp = Create("BodyPosition")({
  1475. P = 2000,
  1476. D = 100,
  1477. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1478. position = hit.Parent.Torso.Position,
  1479. Parent = hit.Parent.Torso
  1480. })
  1481. game:GetService("Debris"):AddItem(bp, 1)
  1482. elseif Type == "Spike" then
  1483. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1484. local bp = Create("BodyPosition")({
  1485. P = 2000,
  1486. D = 100,
  1487. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1488. position = hit.Parent.Torso.Position,
  1489. Parent = hit.Parent.Torso
  1490. })
  1491. game:GetService("Debris"):AddItem(bp, 1)
  1492. elseif Type == "Freeze" then
  1493. local BodPos = Create("BodyPosition")({
  1494. P = 50000,
  1495. D = 1000,
  1496. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1497. position = hit.Parent.Torso.Position,
  1498. Parent = hit.Parent.Torso
  1499. })
  1500. local BodGy = Create("BodyGyro")({
  1501. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1502. P = 20000,
  1503. Parent = hit.Parent.Torso,
  1504. cframe = hit.Parent.Torso.CFrame
  1505. })
  1506. hit.Parent.Torso.Anchored = true
  1507. coroutine.resume(coroutine.create(function(Part)
  1508. swait(1.5)
  1509. Part.Anchored = false
  1510. end), hit.Parent.Torso)
  1511. game:GetService("Debris"):AddItem(BodPos, 3)
  1512. game:GetService("Debris"):AddItem(BodGy, 3)
  1513. end
  1514. local debounce = Create("BoolValue")({
  1515. Name = "DebounceHit",
  1516. Parent = hit.Parent,
  1517. Value = true
  1518. })
  1519. game:GetService("Debris"):AddItem(debounce, Delay)
  1520. c = Instance.new("ObjectValue")
  1521. c.Name = "creator"
  1522. c.Value = Player
  1523. c.Parent = h
  1524. game:GetService("Debris"):AddItem(c, 0.5)
  1525. end
  1526. end
  1527. function ShowDamage(Pos, Text, Time, Color)
  1528. local Rate = 0.03333333333333333
  1529. local Pos = Pos or Vector3.new(0, 0, 0)
  1530. local Text = Text or ""
  1531. local Time = Time or 2
  1532. local Color = Color or Color3.new(1, 0, 1)
  1533. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1534. EffectPart.Anchored = true
  1535. local BillboardGui = Create("BillboardGui")({
  1536. Size = UDim2.new(3, 0, 3, 0),
  1537. Adornee = EffectPart,
  1538. Parent = EffectPart
  1539. })
  1540. local TextLabel = Create("TextLabel")({
  1541. BackgroundTransparency = 1,
  1542. Size = UDim2.new(1, 0, 1, 0),
  1543. Text = Text,
  1544. TextColor3 = Color,
  1545. TextScaled = true,
  1546. Font = Enum.Font.ArialBold,
  1547. Parent = BillboardGui
  1548. })
  1549. game.Debris:AddItem(EffectPart, Time + 0.1)
  1550. EffectPart.Parent = game:GetService("Workspace")
  1551. delay(0, function()
  1552. local Frames = Time / Rate
  1553. for Frame = 1, Frames do
  1554. wait(Rate)
  1555. local Percent = Frame / Frames
  1556. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1557. TextLabel.TextTransparency = Percent
  1558. end
  1559. if EffectPart and EffectPart.Parent then
  1560. EffectPart:Destroy()
  1561. end
  1562. end)
  1563. end
  1564. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1565. for _, c in pairs(workspace:children()) do
  1566. local hum = c:findFirstChildOfClass("Humanoid")
  1567. if hum ~= nil then
  1568. local head = c:findFirstChild("Head")
  1569. if head ~= nil then
  1570. local targ = head.Position - Part.Position
  1571. local mag = targ.magnitude
  1572. if magni >= mag and c.Name ~= Player.Name then
  1573. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1574. end
  1575. end
  1576. end
  1577. end
  1578. end
  1579.  
  1580. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1581. for _, c in pairs(workspace:children()) do
  1582. local hum = c:findFirstChild("Humanoid")
  1583. if hum ~= nil then
  1584. local head = c:findFirstChild("Torso")
  1585. if head ~= nil then
  1586. local targ = head.Position - Part.Position
  1587. local mag = targ.magnitude
  1588. if magni >= mag and c.Name ~= Player.Name then
  1589. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1590. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1591. end
  1592. end
  1593. end
  1594. end
  1595. end
  1596.  
  1597. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1598. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1599. end
  1600.  
  1601. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1602. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1603. prt.Anchored=true
  1604. prt.CFrame=cframe
  1605. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1606. --http://www.roblox.com/asset/?id=4770560
  1607. game:GetService("Debris"):AddItem(prt,2)
  1608. CF=prt.CFrame
  1609. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1610. for i=0,1,0.2 do
  1611. wait()
  1612. Part.CFrame=CF*cf(0,0,-0.4)
  1613. end
  1614. for i=0,1,delay do
  1615. wait()
  1616. --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)
  1617. Mesh.Scale=Mesh.Scale
  1618. end
  1619. for i=0,1,0.1 do
  1620. wait()
  1621. Part.Transparency=i
  1622. end
  1623. Part.Parent=nil
  1624. end),prt,msh,CF)
  1625. end
  1626.  
  1627. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1628. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1629. prt.Anchored=true
  1630. prt.Material = "Neon"
  1631. prt.CFrame=cframe
  1632. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1633. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1634. game:GetService("Debris"):AddItem(prt,5)
  1635. coroutine.resume(coroutine.create(function(Part,Mesh)
  1636. for i=0,1,delay do
  1637. swait()
  1638. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1639. Part.Transparency=i
  1640. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1641. end
  1642. Part.Parent=nil
  1643. end),prt,msh)
  1644. end
  1645.  
  1646. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1647. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1648. prt.Anchored=true
  1649. prt.Material = "Neon"
  1650. prt.CFrame=cframe
  1651. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1652. game:GetService("Debris"):AddItem(prt,5)
  1653. coroutine.resume(coroutine.create(function(Part,Mesh)
  1654. local rtype = rottype
  1655. for i=0,1,delay do
  1656. swait()
  1657. if rtype == 1 then
  1658. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1659. elseif rtype == 2 then
  1660. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1661. end
  1662. Part.Transparency=i
  1663. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1664. end
  1665. Part.Parent=nil
  1666. end),prt,msh)
  1667. end
  1668.  
  1669. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1670. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1671. prt.Anchored=true
  1672. prt.CFrame=cframe
  1673. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1674. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1675. game:GetService("Debris"):AddItem(prt,5)
  1676. coroutine.resume(coroutine.create(function(Part,Mesh)
  1677. for i=0,1,delay do
  1678. wait()
  1679. Part.Transparency=i
  1680. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1681. end
  1682. Part.Parent=nil
  1683. end),prt,msh)
  1684. end
  1685.  
  1686. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1687. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1688. prt.Anchored=true
  1689. prt.Material = "Neon"
  1690. prt.CFrame=cframe
  1691. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1692. game:GetService("Debris"):AddItem(prt,5)
  1693. coroutine.resume(coroutine.create(function(Part,Mesh)
  1694. local rtype = rottype
  1695. for i=0,1,delay do
  1696. swait()
  1697. if rtype == 1 then
  1698. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1699. elseif rtype == 2 then
  1700. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1701. end
  1702. Part.Transparency=i
  1703. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1704. end
  1705. Part.Parent=nil
  1706. end),prt,msh)
  1707. end
  1708.  
  1709. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1710. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1711. prt.Anchored=true
  1712. prt.Material = "Neon"
  1713. prt.CFrame=cframe
  1714. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1715. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1716. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1717. game:GetService("Debris"):AddItem(prt,5)
  1718. coroutine.resume(coroutine.create(function(Part,Mesh)
  1719. local rtype = rottype
  1720. for i=0,1,delay do
  1721. swait()
  1722. if rtype == 1 then
  1723. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1724. elseif rtype == 2 then
  1725. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1726. end
  1727. dec.Transparency=i
  1728. dec2.Transparency=i
  1729. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1730. end
  1731. Part.Parent=nil
  1732. end),prt,msh)
  1733. end
  1734.  
  1735. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1736. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1737. prt.Anchored=true
  1738. prt.Material = "Neon"
  1739. prt.CFrame=cframe
  1740. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1741. game:GetService("Debris"):AddItem(prt,5)
  1742. coroutine.resume(coroutine.create(function(Part,Mesh)
  1743. local rtype = rottype
  1744. for i=0,1,delay do
  1745. swait()
  1746. if rtype == 1 then
  1747. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1748. elseif rtype == 2 then
  1749. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1750. end
  1751. prt.Transparency=i
  1752. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1753. end
  1754. Part.Parent=nil
  1755. end),prt,msh)
  1756. end
  1757.  
  1758. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,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,1,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.1,0)
  1771. elseif rtype == 2 then
  1772. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1773. end
  1774. prt.Transparency=i
  1775. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1776. end
  1777. Part.Parent=nil
  1778. end),prt,msh)
  1779. end
  1780.  
  1781. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1782. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1783. prt.Anchored=true
  1784. prt.Material = "Neon"
  1785. prt.CFrame=cframe
  1786. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1787. game:GetService("Debris"):AddItem(prt,5)
  1788. coroutine.resume(coroutine.create(function(Part,Mesh)
  1789. local rtype = rottype
  1790. for i=0,1,delay do
  1791. swait()
  1792. if rtype == 1 then
  1793. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1794. elseif rtype == 2 then
  1795. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1796. end
  1797. prt.Transparency=i
  1798. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1799. end
  1800. Part.Parent=nil
  1801. end),prt,msh)
  1802. end
  1803.  
  1804. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1805. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1806. prt.Anchored=true
  1807. prt.Material = "Neon"
  1808. prt.CFrame=cframe
  1809. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1810. game:GetService("Debris"):AddItem(prt,5)
  1811. coroutine.resume(coroutine.create(function(Part,Mesh)
  1812. local rtype = rottype
  1813. for i=0,1,delay do
  1814. swait()
  1815. if rtype == 1 then
  1816. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1817. elseif rtype == 2 then
  1818. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1819. end
  1820. prt.Transparency=i
  1821. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1822. end
  1823. Part.Parent=nil
  1824. end),prt,msh)
  1825. end
  1826.  
  1827. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1828. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1829. prt.Anchored=false
  1830. prt.CFrame=cframe
  1831. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1832. local wld=weld(prt,prt,Parent,cframe)
  1833. game:GetService("Debris"):AddItem(prt,5)
  1834. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1835. for i=0,1,delay do
  1836. wait()
  1837. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1838. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1839. Part.Transparency=i
  1840. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1841. end
  1842. Part.Parent=nil
  1843. end),prt,msh,wld)
  1844. end
  1845.  
  1846. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1847. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1848. prt.Anchored=false
  1849. prt.CFrame=cframe
  1850. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1851. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1852. game:GetService("Debris"):AddItem(prt,5)
  1853. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1854. for i=0,1,delay do
  1855. wait()
  1856. Weld.C0=euler(i*20,0,0)
  1857. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1858. Part.Transparency=i
  1859. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1860. end
  1861. Part.Parent=nil
  1862. end),prt,msh,wld)
  1863. end
  1864.  
  1865. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1866. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1867. prt.Anchored=true
  1868. prt.CFrame=cframe
  1869. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1870. game:GetService("Debris"):AddItem(prt,2)
  1871. coroutine.resume(coroutine.create(function(Part,Mesh)
  1872. for i=0,1,delay do
  1873. wait()
  1874. Part.CFrame=Part.CFrame
  1875. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1876. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1877. prt2.Anchored=true
  1878. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1879. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1880. game:GetService("Debris"):AddItem(prt2,2)
  1881. coroutine.resume(coroutine.create(function(Part,Mesh)
  1882. for i=0,1,0.1 do
  1883. wait()
  1884. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1885. end
  1886. Part.Parent=nil
  1887. end),prt2,msh2)
  1888. end
  1889. for i=0,1,delay*2 do
  1890. wait()
  1891. Part.CFrame=Part.CFrame
  1892. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1893. end
  1894. Part.Parent=nil
  1895. end),prt,msh)
  1896. end
  1897.  
  1898. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1899. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1900. prt.Anchored=true
  1901. prt.CFrame=cframe
  1902. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1903. game:GetService("Debris"):AddItem(prt,2)
  1904. coroutine.resume(coroutine.create(function(Part,Mesh)
  1905. for i=0,1,delay do
  1906. wait()
  1907. Part.CFrame=Part.CFrame
  1908. Part.Transparency=i
  1909. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1910. end
  1911. Part.Parent=nil
  1912. end),prt,msh)
  1913. end
  1914.  
  1915. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1916. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1917. prt.Anchored=true
  1918. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1919. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1920. game:GetService("Debris"):AddItem(prt,2)
  1921. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1922. CF=Part.CFrame
  1923. Numbb=0
  1924. randnumb=math.random()/10
  1925. rand1=math.random()/10
  1926. for i=0,1,rand1 do
  1927. wait()
  1928. CF=CF*cf(0,math.random()/2,0)
  1929. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1930. Part.CFrame=CF*euler(Numbb,0,0)
  1931. Part.Transparency=i
  1932. Numbb=Numbb+randnumb
  1933. end
  1934. Part.Parent=nil
  1935. end),prt,CF,Numbb,randnumb)
  1936. end
  1937.  
  1938. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1939. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1940. prt.Anchored=true
  1941. prt.CFrame=cframe
  1942. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1943. game:GetService("Debris"):AddItem(prt,5)
  1944. coroutine.resume(coroutine.create(function(Part,Mesh)
  1945. for i=0,1,delay do
  1946. wait()
  1947. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1948. Part.Transparency=i
  1949. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1950. end
  1951. Part.Parent=nil
  1952. end),prt,msh)
  1953. end
  1954.  
  1955. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1956. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1957. prt.Anchored=true
  1958. prt.CFrame=cframe
  1959. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1960. game:GetService("Debris"):AddItem(prt,2)
  1961. coroutine.resume(coroutine.create(function(Part,Mesh)
  1962. for i=0,1,delay do
  1963. wait()
  1964. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1965. Part.Transparency=i
  1966. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1967. end
  1968. Part.Parent=nil
  1969. end),prt,msh)
  1970. end
  1971.  
  1972. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1973. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1974. prt.Anchored=true
  1975. prt.CFrame=cframe*cf(x,y,z)
  1976. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1977. game:GetService("Debris"):AddItem(prt,5)
  1978. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1979. local num=math.random()
  1980. local num2=math.random(-3,2)+math.random()
  1981. local numm=0
  1982. for i=0,1,delay*2 do
  1983. swait()
  1984. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1985. Part.Transparency=i
  1986. numm=numm+0.01
  1987. end
  1988. Part.Parent=nil
  1989. Mesh.Parent=nil
  1990. end),prt,msh,x,y,z)
  1991. end
  1992.  
  1993. function dmgstart(dmg,what)
  1994. hitcon = what.Touched:connect(function(hit)
  1995. local hum = hit.Parent:FindFirstChild("Humanoid")
  1996. if hum and not hum:IsDescendantOf(Character) then
  1997. hum:TakeDamage(dmg)
  1998. end
  1999. end)
  2000. end
  2001.  
  2002. function dmgstop()
  2003. hitcon:disconnect()
  2004. end
  2005.  
  2006. function Cloak()
  2007. Face.Parent=nil
  2008. cloaked=true
  2009. for _,v in pairs(Torso.Parent:children()) do
  2010. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2011. coroutine.resume(coroutine.create(function()
  2012. for i=0,1,0.2 do
  2013. wait()
  2014. v.Transparency=i
  2015. end
  2016. v.Transparency=1
  2017. end))
  2018. end
  2019. if v.className=="Hat" then
  2020. hatp=v.Handle
  2021. coroutine.resume(coroutine.create(function(derp)
  2022. for i=0,1,0.2 do
  2023. wait()
  2024. derp.Transparency=i
  2025. end
  2026. derp.Transparency=1
  2027. end),hatp)
  2028. end
  2029. end
  2030. for _,v in pairs(m:children()) do
  2031. if v.className=="Part" then
  2032. coroutine.resume(coroutine.create(function()
  2033. for i=0,1,0.2 do
  2034. wait()
  2035. v.Transparency=i
  2036. end
  2037. v.Transparency=1
  2038. end))
  2039. end
  2040. end
  2041. end
  2042.  
  2043. function UnCloak()
  2044. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2045. Face.Parent=Head
  2046. cloaked=false
  2047. for _,v in pairs(Torso.Parent:children()) do
  2048. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2049. coroutine.resume(coroutine.create(function()
  2050. for i=0,1,0.1 do
  2051. wait()
  2052. v.Transparency=v.Transparency-0.1
  2053. end
  2054. v.Transparency=0
  2055. end))
  2056. end
  2057. if v.className=="Hat" then
  2058. hatp=v.Handle
  2059. coroutine.resume(coroutine.create(function(derp)
  2060. for i=0,1,0.1 do
  2061. wait()
  2062. derp.Transparency=derp.Transparency-0.1
  2063. end
  2064. derp.Transparency=0
  2065. end),hatp)
  2066. end
  2067. end
  2068. for _,v in pairs(m:children()) do
  2069. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2070. coroutine.resume(coroutine.create(function()
  2071. for i=0,1,0.1 do
  2072. wait()
  2073. v.Transparency=v.Transparency-0.1
  2074. end
  2075. v.Transparency=0
  2076. end))
  2077. v.Transparency=0
  2078. end
  2079. end
  2080. end
  2081.  
  2082. local origcolor = BrickColor.new("Pastel light blue")
  2083. ---- This section of explosions.
  2084.  
  2085. ----
  2086.  
  2087.  
  2088. function ring(type,pos,scale,value)
  2089. local type = type
  2090. local rng = Instance.new("Part", char)
  2091. rng.Anchored = true
  2092. rng.BrickColor = origcolor
  2093. rng.CanCollide = false
  2094. rng.FormFactor = 3
  2095. rng.Name = "Ring"
  2096. rng.Size = Vector3.new(1, 1, 1)
  2097. rng.Transparency = 0
  2098. rng.TopSurface = 0
  2099. rng.BottomSurface = 0
  2100. rng.CFrame = pos
  2101. local rngm = Instance.new("SpecialMesh", rng)
  2102. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2103. rngm.Scale = scale
  2104. local scaler2 = 1
  2105. if type == "Add" then
  2106. scaler2 = 1*value
  2107. elseif type == "Divide" then
  2108. scaler2 = 1/value
  2109. end
  2110. coroutine.resume(coroutine.create(function()
  2111. for i = 0,10,0.1 do
  2112. swait()
  2113. if type == "Add" then
  2114. scaler2 = scaler2 - 0.01*value
  2115. elseif type == "Divide" then
  2116. scaler2 = scaler2 - 0.01/value
  2117. end
  2118. rng.Transparency = rng.Transparency + 0.01
  2119. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2120. end
  2121. rng:Destroy()
  2122. end))
  2123. end
  2124.  
  2125.  
  2126. function wave(type,pos,scale,value)
  2127. local type = type
  2128. local rng = Instance.new("Part", char)
  2129. rng.Anchored = true
  2130. rng.BrickColor = origcolor
  2131. rng.CanCollide = false
  2132. rng.FormFactor = 3
  2133. rng.Name = "Ring"
  2134. rng.Size = Vector3.new(1, 1, 1)
  2135. rng.Transparency = 0
  2136. rng.TopSurface = 0
  2137. rng.BottomSurface = 0
  2138. rng.CFrame = pos
  2139. local rngm = Instance.new("SpecialMesh", rng)
  2140. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2141. rngm.Scale = scale
  2142. local scaler2 = 1
  2143. if type == "Add" then
  2144. scaler2 = 1*value
  2145. elseif type == "Divide" then
  2146. scaler2 = 1/value
  2147. end
  2148. coroutine.resume(coroutine.create(function()
  2149. for i = 0,10,0.1 do
  2150. swait()
  2151. if type == "Add" then
  2152. scaler2 = scaler2 - 0.01*value
  2153. elseif type == "Divide" then
  2154. scaler2 = scaler2 - 0.01/value
  2155. end
  2156. rng.Transparency = rng.Transparency + 0.01
  2157. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2158. end
  2159. rng:Destroy()
  2160. end))
  2161. end
  2162.  
  2163. function wind(type,pos,scale,value,speed)
  2164. local type = type
  2165. local rng = Instance.new("Part", char)
  2166. rng.Anchored = true
  2167. rng.BrickColor = origcolor
  2168. rng.CanCollide = false
  2169. rng.FormFactor = 3
  2170. rng.Name = "Ring"
  2171. rng.Size = Vector3.new(1, 1, 1)
  2172. rng.Transparency = 0
  2173. rng.TopSurface = 0
  2174. rng.BottomSurface = 0
  2175. rng.CFrame = pos
  2176. local rngm = Instance.new("SpecialMesh", rng)
  2177. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2178. rngm.Scale = scale
  2179. local scaler2 = 1
  2180. if type == "Add" then
  2181. scaler2 = 1*value
  2182. elseif type == "Divide" then
  2183. scaler2 = 1/value
  2184. end
  2185. coroutine.resume(coroutine.create(function()
  2186. for i = 0,10,0.1 do
  2187. swait()
  2188. if type == "Add" then
  2189. scaler2 = scaler2 - 0.01*value
  2190. elseif type == "Divide" then
  2191. scaler2 = scaler2 - 0.01/value
  2192. end
  2193. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2194. rng.Transparency = rng.Transparency + 0.01
  2195. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2196. end
  2197. rng:Destroy()
  2198. end))
  2199. end
  2200.  
  2201. function groundwind(type,pos,scale,value,speed)
  2202. local type = type
  2203. local rng = Instance.new("Part", char)
  2204. rng.Anchored = true
  2205. rng.BrickColor = origcolor
  2206. rng.CanCollide = false
  2207. rng.FormFactor = 3
  2208. rng.Name = "Ring"
  2209. rng.Size = Vector3.new(1, 1, 1)
  2210. rng.Transparency = 0
  2211. rng.TopSurface = 0
  2212. rng.BottomSurface = 0
  2213. rng.CFrame = pos
  2214. local rngm = Instance.new("SpecialMesh", rng)
  2215. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2216. rngm.Scale = scale
  2217. local scaler2 = 1
  2218. if type == "Add" then
  2219. scaler2 = 1*value
  2220. elseif type == "Divide" then
  2221. scaler2 = 1/value
  2222. end
  2223. coroutine.resume(coroutine.create(function()
  2224. for i = 0,10,0.1 do
  2225. swait()
  2226. if type == "Add" then
  2227. scaler2 = scaler2 - 0.01*value
  2228. elseif type == "Divide" then
  2229. scaler2 = scaler2 - 0.01/value
  2230. end
  2231. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2232. rng.Transparency = rng.Transparency + 0.01
  2233. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2234. end
  2235. rng:Destroy()
  2236. end))
  2237. end
  2238.  
  2239. function CameraManager()
  2240. if TwoD and not CamInterrupt then
  2241. if Humanoid.Health > 0 then
  2242. Camera.CameraSubject = Humanoid
  2243. Camera.CameraType = "Scriptable"
  2244. Humanoid.AutoRotate = false
  2245. if Booleans.GyroUse then
  2246. Directer.MaxTorque = Vec3(0, huge, 0)
  2247. else
  2248. Directer.MaxTorque = Vec3(0, 0, 0)
  2249. end
  2250. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2251. if Booleans.CamFollow then
  2252. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2253. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2254. else
  2255. CPart.Position = RootPart.Position
  2256. end
  2257. else
  2258. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2259. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2260. end
  2261. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2262. else
  2263. Camera.CameraSubject = Humanoid
  2264. Camera.CameraType = "Custom"
  2265. Controller.Disabled = false
  2266. end
  2267. end
  2268. end
  2269.  
  2270. function ring(type,pos,scale,value)
  2271. local type = type
  2272. local rng = Instance.new("Part", char)
  2273. rng.Anchored = true
  2274. rng.BrickColor = origcolor
  2275. rng.CanCollide = false
  2276. rng.FormFactor = 3
  2277. rng.Name = "Ring"
  2278. rng.Size = Vector3.new(1, 1, 1)
  2279. rng.Transparency = 0
  2280. rng.TopSurface = 0
  2281. rng.BottomSurface = 0
  2282. rng.CFrame = pos
  2283. local rngm = Instance.new("SpecialMesh", rng)
  2284. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2285. rngm.Scale = scale
  2286. local scaler2 = 1
  2287. if type == "Add" then
  2288. scaler2 = 1*value
  2289. elseif type == "Divide" then
  2290. scaler2 = 1/value
  2291. end
  2292. coroutine.resume(coroutine.create(function()
  2293. for i = 0,10,0.1 do
  2294. swait()
  2295. if type == "Add" then
  2296. scaler2 = scaler2 - 0.01*value
  2297. elseif type == "Divide" then
  2298. scaler2 = scaler2 - 0.01/value
  2299. end
  2300. rng.Transparency = rng.Transparency + 0.01
  2301. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2302. end
  2303. rng:Destroy()
  2304. end))
  2305. end
  2306.  
  2307.  
  2308. function wave(type,pos,scale,value)
  2309. local type = type
  2310. local rng = Instance.new("Part", char)
  2311. rng.Anchored = true
  2312. rng.BrickColor = origcolor
  2313. rng.CanCollide = false
  2314. rng.FormFactor = 3
  2315. rng.Name = "Ring"
  2316. rng.Size = Vector3.new(1, 1, 1)
  2317. rng.Transparency = 0
  2318. rng.TopSurface = 0
  2319. rng.BottomSurface = 0
  2320. rng.CFrame = pos
  2321. local rngm = Instance.new("SpecialMesh", rng)
  2322. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2323. rngm.Scale = scale
  2324. local scaler2 = 1
  2325. if type == "Add" then
  2326. scaler2 = 1*value
  2327. elseif type == "Divide" then
  2328. scaler2 = 1/value
  2329. end
  2330. coroutine.resume(coroutine.create(function()
  2331. for i = 0,10,0.1 do
  2332. swait()
  2333. if type == "Add" then
  2334. scaler2 = scaler2 - 0.01*value
  2335. elseif type == "Divide" then
  2336. scaler2 = scaler2 - 0.01/value
  2337. end
  2338. rng.Transparency = rng.Transparency + 0.01
  2339. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2340. end
  2341. rng:Destroy()
  2342. end))
  2343. end
  2344.  
  2345. function sphere(bonuspeed,type,pos,scale,value,color)
  2346. local type = type
  2347. local rng = Instance.new("Part", char)
  2348. rng.Anchored = true
  2349. if ModeOfGlitch ~= 9 then
  2350. rng.BrickColor = color
  2351. elseif ModeOfGlitch == 9 then
  2352. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2353. end
  2354. rng.CanCollide = false
  2355. rng.FormFactor = 3
  2356. rng.Name = "Ring"
  2357. rng.Material = "Neon"
  2358. rng.Size = Vector3.new(1, 1, 1)
  2359. rng.Transparency = 0
  2360. rng.TopSurface = 0
  2361. rng.BottomSurface = 0
  2362. rng.CFrame = pos
  2363. local rngm = Instance.new("SpecialMesh", rng)
  2364. rngm.MeshType = "Sphere"
  2365. rngm.Scale = scale
  2366. if rainbowmode == true then
  2367. rng.Color = Color3.new(r/255,g/255,b/255)
  2368. end
  2369. if ModeOfGlitch == 9 then
  2370. coroutine.resume(coroutine.create(function()
  2371. while true do
  2372. swait()
  2373. if rng.Parent ~= nil then
  2374. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2375. else
  2376. break
  2377. end
  2378. end
  2379. end))
  2380. end
  2381. local scaler2 = 1
  2382. if type == "Add" then
  2383. scaler2 = 1*value
  2384. elseif type == "Divide" then
  2385. scaler2 = 1/value
  2386. end
  2387. coroutine.resume(coroutine.create(function()
  2388. for i = 0,10/bonuspeed,0.1 do
  2389. swait()
  2390. if rainbowmode == true then
  2391. rng.Color = Color3.new(r/255,g/255,b/255)
  2392. end
  2393. if type == "Add" then
  2394. scaler2 = scaler2 - 0.01*value/bonuspeed
  2395. elseif type == "Divide" then
  2396. scaler2 = scaler2 - 0.01/value*bonuspeed
  2397. end
  2398. if chaosmode == true then
  2399. rng.BrickColor = BrickColor.random()
  2400. end
  2401. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2402. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2403. end
  2404. rng:Destroy()
  2405. end))
  2406. end
  2407.  
  2408. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2409. local type = type
  2410. local rng = Instance.new("Part", char)
  2411. rng.Anchored = true
  2412. if ModeOfGlitch ~= 9 then
  2413. rng.BrickColor = color
  2414. elseif ModeOfGlitch == 9 then
  2415. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2416. end
  2417. rng.CanCollide = false
  2418. rng.FormFactor = 3
  2419. rng.Name = "Ring"
  2420. rng.Material = "Neon"
  2421. rng.Size = Vector3.new(1, 1, 1)
  2422. rng.Transparency = 0
  2423. rng.TopSurface = 0
  2424. rng.BottomSurface = 0
  2425. rng.CFrame = pos
  2426. local rngm = Instance.new("SpecialMesh", rng)
  2427. rngm.MeshType = "Sphere"
  2428. rngm.Scale = scale
  2429. local scaler2 = 1
  2430. local scaler2b = 1
  2431. local scaler2c = 1
  2432. if type == "Add" then
  2433. scaler2 = 1*value
  2434. scaler2b = 1*value2
  2435. scaler2c = 1*value3
  2436. elseif type == "Divide" then
  2437. scaler2 = 1/value
  2438. scaler2b = 1/value2
  2439. scaler2c = 1/value3
  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. coroutine.resume(coroutine.create(function()
  2454. for i = 0,10/bonuspeed,0.1 do
  2455. swait()
  2456. if type == "Add" then
  2457. scaler2 = scaler2 - 0.01*value/bonuspeed
  2458. scaler2b = scaler2b - 0.01*value/bonuspeed
  2459. scaler2c = scaler2c - 0.01*value/bonuspeed
  2460. elseif type == "Divide" then
  2461. scaler2 = scaler2 - 0.01/value*bonuspeed
  2462. scaler2b = scaler2b - 0.01/value*bonuspeed
  2463. scaler2c = scaler2c - 0.01/value*bonuspeed
  2464. end
  2465. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2466. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2467. end
  2468. rng:Destroy()
  2469. end))
  2470. end
  2471.  
  2472. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2473. local type = type
  2474. local rotenable = rotatingop
  2475. local rng = Instance.new("Part", char)
  2476. rng.Anchored = true
  2477. rng.BrickColor = color
  2478. rng.CanCollide = false
  2479. rng.FormFactor = 3
  2480. rng.Name = "Ring"
  2481. rng.Material = "Neon"
  2482. rng.Size = Vector3.new(1, 1, 1)
  2483. rng.Transparency = 0
  2484. if typeoftrans == "In" then
  2485. rng.Transparency = 1
  2486. end
  2487. rng.TopSurface = 0
  2488. rng.BottomSurface = 0
  2489. rng.CFrame = pos
  2490. local rngm = Instance.new("SpecialMesh", rng)
  2491. rngm.MeshType = "FileMesh"
  2492. if typeofshape == "Normal" then
  2493. rngm.MeshId = "rbxassetid://662586858"
  2494. elseif typeofshape == "Round" then
  2495. rngm.MeshId = "rbxassetid://662585058"
  2496. end
  2497. rngm.Scale = scale
  2498. local scaler2 = 1/10
  2499. if type == "Add" then
  2500. scaler2 = 1*value/10
  2501. elseif type == "Divide" then
  2502. scaler2 = 1/value/10
  2503. end
  2504. local randomrot = math.random(1,2)
  2505. coroutine.resume(coroutine.create(function()
  2506. for i = 0,10/bonuspeed,0.1 do
  2507. swait()
  2508. if type == "Add" then
  2509. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2510. elseif type == "Divide" then
  2511. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2512. end
  2513. if rotenable == true then
  2514. if randomrot == 1 then
  2515. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2516. elseif randomrot == 2 then
  2517. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2518. end
  2519. end
  2520. if typeoftrans == "Out" then
  2521. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2522. elseif typeoftrans == "In" then
  2523. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2524. end
  2525. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2526. end
  2527. rng:Destroy()
  2528. end))
  2529. end
  2530.  
  2531. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2532. local type = type
  2533. local rng = Instance.new("Part", char)
  2534. rng.Anchored = true
  2535. rng.BrickColor = color
  2536. rng.CanCollide = false
  2537. rng.FormFactor = 3
  2538. rng.Name = "Ring"
  2539. rng.Material = "Neon"
  2540. rng.Size = Vector3.new(1, 1, 1)
  2541. rng.Transparency = 0
  2542. rng.TopSurface = 0
  2543. rng.BottomSurface = 0
  2544. rng.CFrame = pos
  2545. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2546. local rngm = Instance.new("SpecialMesh", rng)
  2547. rngm.MeshType = "Brick"
  2548. rngm.Scale = vt(x1,y1,z1)
  2549. if rainbowmode == true then
  2550. rng.Color = Color3.new(r/255,g/255,b/255)
  2551. end
  2552. local scaler2 = 1
  2553. local speeder = FastSpeed/10
  2554. if type == "Add" then
  2555. scaler2 = 1*value
  2556. elseif type == "Divide" then
  2557. scaler2 = 1/value
  2558. end
  2559. coroutine.resume(coroutine.create(function()
  2560. for i = 0,10/bonuspeed,0.1 do
  2561. swait()
  2562. if rainbowmode == true then
  2563. rng.Color = Color3.new(r/255,g/255,b/255)
  2564. end
  2565. if type == "Add" then
  2566. scaler2 = scaler2 - 0.01*value/bonuspeed
  2567. elseif type == "Divide" then
  2568. scaler2 = scaler2 - 0.01/value*bonuspeed
  2569. end
  2570. if chaosmode == true then
  2571. rng.BrickColor = BrickColor.random()
  2572. end
  2573. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2574. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2575. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2576. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2577. end
  2578. rng:Destroy()
  2579. end))
  2580. end
  2581.  
  2582. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2583. local type = type
  2584. local rng = Instance.new("Part", char)
  2585. rng.Anchored = true
  2586. rng.BrickColor = color
  2587. rng.CanCollide = false
  2588. rng.FormFactor = 3
  2589. rng.Name = "Ring"
  2590. rng.Material = "Neon"
  2591. rng.Size = Vector3.new(1, 1, 1)
  2592. rng.Transparency = 0
  2593. rng.TopSurface = 0
  2594. rng.BottomSurface = 0
  2595. rng.CFrame = pos
  2596. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2597. local rngm = Instance.new("SpecialMesh", rng)
  2598. rngm.MeshType = "Brick"
  2599. rngm.Scale = vt(x1,y1,z1)
  2600. if rainbowmode == true then
  2601. rng.Color = Color3.new(r/255,g/255,b/255)
  2602. end
  2603. local scaler2 = 1
  2604. local speeder = FastSpeed/10
  2605. if type == "Add" then
  2606. scaler2 = 1*value
  2607. elseif type == "Divide" then
  2608. scaler2 = 1/value
  2609. end
  2610. coroutine.resume(coroutine.create(function()
  2611. for i = 0,10/bonuspeed,0.1 do
  2612. swait()
  2613. if rainbowmode == true then
  2614. rng.Color = Color3.new(r/255,g/255,b/255)
  2615. end
  2616. if type == "Add" then
  2617. scaler2 = scaler2 - 0.01*value/bonuspeed
  2618. elseif type == "Divide" then
  2619. scaler2 = scaler2 - 0.01/value*bonuspeed
  2620. end
  2621. if chaosmode == true then
  2622. rng.BrickColor = BrickColor.random()
  2623. end
  2624. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2625. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2626. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2627. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2628. end
  2629. rng:Destroy()
  2630. end))
  2631. end
  2632.  
  2633. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2634. local type = type
  2635. local rng = Instance.new("Part", char)
  2636. rng.Anchored = true
  2637. rng.BrickColor = color
  2638. rng.CanCollide = false
  2639. rng.FormFactor = 3
  2640. rng.Name = "Ring"
  2641. rng.Material = "Neon"
  2642. rng.Size = Vector3.new(1, 1, 1)
  2643. rng.Transparency = 0
  2644. rng.TopSurface = 0
  2645. rng.BottomSurface = 0
  2646. rng.CFrame = pos
  2647. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2648. local rngm = Instance.new("SpecialMesh", rng)
  2649. rngm.MeshType = "Brick"
  2650. rngm.Scale = vt(x1,y1,z1)
  2651. if rainbowmode == true then
  2652. rng.Color = Color3.new(r/255,g/255,b/255)
  2653. end
  2654. local scaler2 = 0
  2655. local speeder = FastSpeed/10
  2656. if type == "Add" then
  2657. scaler2 = 1*value
  2658. elseif type == "Divide" then
  2659. scaler2 = 1/value
  2660. end
  2661. coroutine.resume(coroutine.create(function()
  2662. for i = 0,10/bonuspeed,0.1 do
  2663. swait()
  2664. if rainbowmode == true then
  2665. rng.Color = Color3.new(r/255,g/255,b/255)
  2666. end
  2667. if type == "Add" then
  2668. scaler2 = scaler2 - 0.01*value/bonuspeed
  2669. elseif type == "Divide" then
  2670. scaler2 = scaler2 - 0.01/value*bonuspeed
  2671. end
  2672. if chaosmode == true then
  2673. rng.BrickColor = BrickColor.random()
  2674. end
  2675. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2676. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2677. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2678. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2679. end
  2680. rng:Destroy()
  2681. end))
  2682. end
  2683.  
  2684. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  2685. local type = type
  2686. local rng = Instance.new("Part", char)
  2687. rng.Anchored = true
  2688. rng.BrickColor = color
  2689. rng.Color = color3
  2690. rng.CanCollide = false
  2691. rng.FormFactor = 3
  2692. rng.Name = "Ring"
  2693. rng.Material = "Neon"
  2694. rng.Size = Vector3.new(1, 1, 1)
  2695. rng.Transparency = 0
  2696. rng.TopSurface = 0
  2697. rng.BottomSurface = 0
  2698. rng.CFrame = pos
  2699. local rngm = Instance.new("SpecialMesh", rng)
  2700. rngm.MeshType = "Brick"
  2701. rngm.Scale = scale
  2702. local scaler2 = 1
  2703. local scaler2b = 1
  2704. local scaler2c = 1
  2705. if type == "Add" then
  2706. scaler2 = 1*value
  2707. scaler2b = 1*value2
  2708. scaler2c = 1*value3
  2709. elseif type == "Divide" then
  2710. scaler2 = 1/value
  2711. scaler2b = 1/value2
  2712. scaler2c = 1/value3
  2713. end
  2714. coroutine.resume(coroutine.create(function()
  2715. for i = 0,10/bonuspeed,0.1 do
  2716. swait()
  2717. if type == "Add" then
  2718. scaler2 = scaler2 - 0.01*value/bonuspeed
  2719. scaler2b = scaler2b - 0.01*value/bonuspeed
  2720. scaler2c = scaler2c - 0.01*value/bonuspeed
  2721. elseif type == "Divide" then
  2722. scaler2 = scaler2 - 0.01/value*bonuspeed
  2723. scaler2b = scaler2b - 0.01/value*bonuspeed
  2724. scaler2c = scaler2c - 0.01/value*bonuspeed
  2725. end
  2726. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2727. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2728. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2729. end
  2730. rng:Destroy()
  2731. end))
  2732. end
  2733.  
  2734. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2735. local type = type
  2736. local rng = Instance.new("Part", char)
  2737. rng.Anchored = true
  2738. if ModeOfGlitch ~= 9 then
  2739. rng.BrickColor = color
  2740. elseif ModeOfGlitch == 9 then
  2741. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2742. end
  2743. rng.CanCollide = false
  2744. rng.FormFactor = 3
  2745. rng.Name = "Ring"
  2746. rng.Material = "Neon"
  2747. rng.Size = Vector3.new(1, 1, 1)
  2748. rng.Transparency = 0
  2749. rng.TopSurface = 0
  2750. rng.BottomSurface = 0
  2751. rng.CFrame = pos
  2752. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2753. local rngm = Instance.new("SpecialMesh", rng)
  2754. rngm.MeshType = "Sphere"
  2755. rngm.Scale = vt(x1,y1,z1)
  2756. if rainbowmode == true then
  2757. rng.Color = Color3.new(r/255,g/255,b/255)
  2758. end
  2759. if ModeOfGlitch == 9 then
  2760. coroutine.resume(coroutine.create(function()
  2761. while true do
  2762. swait()
  2763. if rng.Parent ~= nil then
  2764. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2765. else
  2766. break
  2767. end
  2768. end
  2769. end))
  2770. end
  2771. local scaler2 = 1
  2772. local speeder = FastSpeed
  2773. if type == "Add" then
  2774. scaler2 = 1*value
  2775. elseif type == "Divide" then
  2776. scaler2 = 1/value
  2777. end
  2778. coroutine.resume(coroutine.create(function()
  2779. for i = 0,10/bonuspeed,0.1 do
  2780. swait()
  2781. if rainbowmode == true then
  2782. rng.Color = Color3.new(r/255,g/255,b/255)
  2783. end
  2784. if type == "Add" then
  2785. scaler2 = scaler2 - 0.01*value/bonuspeed
  2786. elseif type == "Divide" then
  2787. scaler2 = scaler2 - 0.01/value*bonuspeed
  2788. end
  2789. if chaosmode == true then
  2790. rng.BrickColor = BrickColor.random()
  2791. end
  2792. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2793. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2794. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2795. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2796. end
  2797. rng:Destroy()
  2798. end))
  2799. end
  2800.  
  2801.  
  2802. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2803. local type = type
  2804. local rng = Instance.new("Part", char)
  2805. rng.Anchored = true
  2806. if ModeOfGlitch ~= 9 then
  2807. rng.BrickColor = color
  2808. elseif ModeOfGlitch == 9 then
  2809. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2810. end
  2811. rng.CanCollide = false
  2812. rng.FormFactor = 3
  2813. rng.Name = "Ring"
  2814. rng.Material = "Neon"
  2815. rng.Size = Vector3.new(1, 1, 1)
  2816. rng.Transparency = 1
  2817. rng.TopSurface = 0
  2818. rng.BottomSurface = 0
  2819. rng.CFrame = pos
  2820. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2821. local rngm = Instance.new("SpecialMesh", rng)
  2822. rngm.MeshType = "Sphere"
  2823. rngm.Scale = vt(x1,y1,z1)
  2824. if rainbowmode == true then
  2825. rng.Color = Color3.new(r/255,g/255,b/255)
  2826. end
  2827. if ModeOfGlitch == 9 then
  2828. coroutine.resume(coroutine.create(function()
  2829. while true do
  2830. swait()
  2831. if rng.Parent ~= nil then
  2832. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2833. else
  2834. break
  2835. end
  2836. end
  2837. end))
  2838. end
  2839. local scaler2 = 1
  2840. local speeder = FastSpeed
  2841. if type == "Add" then
  2842. scaler2 = 1*value
  2843. elseif type == "Divide" then
  2844. scaler2 = 1/value
  2845. end
  2846. coroutine.resume(coroutine.create(function()
  2847. for i = 0,10/bonuspeed,0.1 do
  2848. swait()
  2849. if rainbowmode == true then
  2850. rng.Color = Color3.new(r/255,g/255,b/255)
  2851. end
  2852. if type == "Add" then
  2853. scaler2 = scaler2 - 0.01*value/bonuspeed
  2854. elseif type == "Divide" then
  2855. scaler2 = scaler2 - 0.01/value*bonuspeed
  2856. end
  2857. if chaosmode == true then
  2858. rng.BrickColor = BrickColor.random()
  2859. end
  2860. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2861. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2862. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2863. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2864. end
  2865. rng:Destroy()
  2866. end))
  2867. end
  2868.  
  2869. function dmg(dude)
  2870. if dude.Name ~= Character then
  2871. local keptcolor = MAINRUINCOLOR
  2872. local bgf = Instance.new("BodyGyro",dude.Head)
  2873. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2874. --[[local val = Instance.new("BoolValue",dude)
  2875. val.Name = "IsHit"]]--
  2876. local ds = coroutine.wrap(function()
  2877. dude:WaitForChild("Head"):BreakJoints()
  2878. for i, v in pairs(dude:GetChildren()) do
  2879. if v:IsA("Part") or v:IsA("MeshPart") then
  2880. v.Name = "DEMINISHED"
  2881. end
  2882. end
  2883. wait(0.5)
  2884. targetted = nil
  2885. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  2886. coroutine.resume(coroutine.create(function()
  2887. for i, v in pairs(dude:GetChildren()) do
  2888. if v:IsA("Accessory") then
  2889. v:Destroy()
  2890. end
  2891. if v:IsA("Humanoid") then
  2892. v:Destroy()
  2893. end
  2894. if v:IsA("CharacterMesh") then
  2895. v:Destroy()
  2896. end
  2897. if v:IsA("Model") then
  2898. v:Destroy()
  2899. end
  2900. if v:IsA("Part") or v:IsA("MeshPart") then
  2901. for x, o in pairs(v:GetChildren()) do
  2902. if o:IsA("Decal") then
  2903. o:Destroy()
  2904. end
  2905. end
  2906. coroutine.resume(coroutine.create(function()
  2907. v.Material = "Neon"
  2908. v.CanCollide = false
  2909. v.Anchored = false
  2910. local bld = Instance.new("ParticleEmitter",v)
  2911. bld.LightEmission = 0.75
  2912. bld.Texture = "rbxassetid://363275192" ---284205403
  2913. bld.Color = ColorSequence.new(keptcolor.Color)
  2914. bld.Rate = 500
  2915. bld.Lifetime = NumberRange.new(1)
  2916. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  2917. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2918. bld.Speed = NumberRange.new(2,5)
  2919. bld.VelocitySpread = 50000
  2920. bld.Rotation = NumberRange.new(-500,500)
  2921. bld.RotSpeed = NumberRange.new(-500,500)
  2922. local sbs = Instance.new("BodyPosition", v)
  2923. sbs.P = 3000
  2924. sbs.D = 1000
  2925. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2926. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  2927. v.Color = keptcolor.Color
  2928. coroutine.resume(coroutine.create(function()
  2929. for i = 0, 49 do
  2930. swait(1)
  2931. v:BreakJoints()
  2932. v.Transparency = v.Transparency + 0.02
  2933. end
  2934. v:BreakJoints()
  2935. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  2936. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  2937. bld.Speed = NumberRange.new(10,25)
  2938. bld.Drag = 5
  2939. bld.Acceleration = vt(0,2,0)
  2940. wait(0.5)
  2941. bld.Enabled = false
  2942. wait(8)
  2943. v:Destroy()
  2944. dude:Destroy()
  2945. end))
  2946. end))
  2947. end
  2948. end
  2949. end))
  2950. end)
  2951. ds()
  2952. end
  2953. end
  2954.  
  2955.  
  2956. function FindNearestHead(Position, Distance, SinglePlayer)
  2957. if SinglePlayer then
  2958. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2959. end
  2960. local List = {}
  2961. for i, v in pairs(workspace:GetChildren()) do
  2962. if v:IsA("Model") then
  2963. if v:findFirstChild("Head") then
  2964. if v ~= Character then
  2965. if (v.Head.Position - Position).magnitude <= Distance then
  2966. table.insert(List, v)
  2967. end
  2968. end
  2969. end
  2970. end
  2971. end
  2972. return List
  2973. end
  2974.  
  2975. function FaceMouse()
  2976. Cam = workspace.CurrentCamera
  2977. return {
  2978. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2979. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2980. }
  2981. end
  2982.  
  2983. function FaceMouse2()
  2984. Cam = workspace.CurrentCamera
  2985. return {
  2986. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2987. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2988. }
  2989. end
  2990.  
  2991. local ModeOfGlitch = 1
  2992. -- Functions are ready.
  2993. local storehumanoidWS = 16
  2994.  
  2995. function CorruptBlink()
  2996. for i = 0, 14 do
  2997. 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)
  2998. end
  2999. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3000. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3001. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3002. CameraEnshaking(2,10)
  3003. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3004. if v:FindFirstChild('Head') then
  3005. dmg(v)
  3006. end
  3007. end
  3008. for i = 0, 14 do
  3009. 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)
  3010. end
  3011. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3012. end
  3013. function PureBomb()
  3014. attack = true
  3015. hum.WalkSpeed = 0
  3016. local orb = Instance.new("Part", char)
  3017. orb.Anchored = true
  3018. orb.BrickColor = BrickColor.new("Toothpaste")
  3019. orb.CanCollide = false
  3020. orb.FormFactor = 3
  3021. orb.Name = "Ring"
  3022. orb.Material = "Neon"
  3023. orb.Size = Vector3.new(1, 1, 1)
  3024. orb.Transparency = 0
  3025. orb.TopSurface = 0
  3026. orb.BottomSurface = 0
  3027. local orbm = Instance.new("SpecialMesh", orb)
  3028. orbm.MeshType = "Sphere"
  3029. orbm.Name = "SizeMesh"
  3030. orbm.Scale = vt(0,0,0)
  3031. local scaled = 0.1
  3032. local posid = 0
  3033. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3034. for i = 0, 5, 0.1 do
  3035. swait()
  3036. scaled = scaled - 0.001
  3037. posid = posid - scaled
  3038. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3039. local scaled = 0.1
  3040. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3041. 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)
  3042. 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)
  3043. 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)
  3044. 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)
  3045. 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)
  3046. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3047. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3048. 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)
  3049. end
  3050. for i = 0, 2, 0.1 do
  3051. swait()
  3052. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3053. 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)
  3054. 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)
  3055. 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)
  3056. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3057. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3058. 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)
  3059. end
  3060. coroutine.resume(coroutine.create(function()
  3061. orb.Anchored = false
  3062. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3063. local a = Instance.new("Part",workspace)
  3064. a.Name = "Direction"
  3065. a.Anchored = true
  3066. a.BrickColor = bc("Bright red")
  3067. a.Material = "Neon"
  3068. a.Transparency = 1
  3069. a.CanCollide = false
  3070. local ray = Ray.new(
  3071. orb.CFrame.p, -- origin
  3072. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3073. )
  3074. local ignore = orb
  3075. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3076. a.BottomSurface = 10
  3077. a.TopSurface = 10
  3078. local distance = (orb.CFrame.p - position).magnitude
  3079. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3080. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3081. orb.CFrame = a.CFrame
  3082. a:Destroy()
  3083. local bv = Instance.new("BodyVelocity")
  3084. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3085. bv.velocity = orb.CFrame.lookVector*125
  3086. bv.Parent = orb
  3087. local hitted = false
  3088. game:GetService("Debris"):AddItem(orb, 15)
  3089. wait()
  3090. local hit =orb.Touched:connect(function(hit)
  3091. if hitted == false then
  3092. hitted = true
  3093. CameraEnshaking(10,2.5)
  3094. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3095. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3096. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3097. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3098. for i = 0, 49 do
  3099. 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)
  3100. end
  3101. for i = 0, 9 do
  3102. 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)
  3103. 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)
  3104. end
  3105. orb.Anchored = true
  3106. orb.Transparency = 1
  3107. wait(8)
  3108. orb:Destroy()
  3109. end
  3110. end)
  3111. end))
  3112. for i = 0, 1, 0.1 do
  3113. swait()
  3114. 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)
  3115. 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)
  3116. 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)
  3117. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3118. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3119. 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)
  3120. end
  3121. hum.WalkSpeed = storehumanoidWS
  3122. attack = false
  3123. end
  3124.  
  3125. function BanishingOrb()
  3126. attack = true
  3127. hum.WalkSpeed = 0
  3128. local orb = Instance.new("Part", char)
  3129. orb.Anchored = true
  3130. orb.BrickColor = BrickColor.new("Black")
  3131. orb.CanCollide = false
  3132. orb.FormFactor = 3
  3133. orb.Name = "Ring"
  3134. orb.Material = "Neon"
  3135. orb.Size = Vector3.new(1, 1, 1)
  3136. orb.Transparency = 0
  3137. orb.TopSurface = 0
  3138. orb.BottomSurface = 0
  3139. local orbm = Instance.new("SpecialMesh", orb)
  3140. orbm.MeshType = "Sphere"
  3141. orbm.Name = "SizeMesh"
  3142. orbm.Scale = vt(0,0,0)
  3143. local scaled = 0.1
  3144. local posid = 0
  3145. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3146. for i = 0, 5, 0.1 do
  3147. swait()
  3148. scaled = scaled - 0.001
  3149. posid = posid - scaled
  3150. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3151. local scaled = 0.1
  3152. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3153. 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)
  3154. 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)
  3155. 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)
  3156. 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)
  3157. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3158. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3159. 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)
  3160. end
  3161. for i = 0, 2, 0.1 do
  3162. swait()
  3163. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3164. 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)
  3165. 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)
  3166. 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)
  3167. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3168. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3169. 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)
  3170. end
  3171. coroutine.resume(coroutine.create(function()
  3172. orb.Anchored = false
  3173. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3174. local a = Instance.new("Part",workspace)
  3175. a.Name = "Direction"
  3176. a.Anchored = true
  3177. a.BrickColor = bc("Bright red")
  3178. a.Material = "Neon"
  3179. a.Transparency = 1
  3180. a.CanCollide = false
  3181. local ray = Ray.new(
  3182. orb.CFrame.p, -- origin
  3183. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3184. )
  3185. local ignore = orb
  3186. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3187. a.BottomSurface = 10
  3188. a.TopSurface = 10
  3189. local distance = (orb.CFrame.p - position).magnitude
  3190. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3191. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3192. orb.CFrame = a.CFrame
  3193. a:Destroy()
  3194. local bv = Instance.new("BodyVelocity")
  3195. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3196. bv.velocity = orb.CFrame.lookVector*0
  3197. bv.Parent = orb
  3198. local hitted = false
  3199. local rate = 0
  3200. coroutine.resume(coroutine.create(function()
  3201. for i = 0, 24 do
  3202. wait(0.1)
  3203. rate = rate + 0.25
  3204. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3205. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3206. if v:FindFirstChild('Head') then
  3207. dmg(v)
  3208. end
  3209. end
  3210. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3211. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3212. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3213. end
  3214. orb.Anchored = true
  3215. orb.Transparency = 1
  3216. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3217. if v:FindFirstChild('Head') then
  3218. dmg(v)
  3219. end
  3220. end
  3221. local eff = Instance.new("ParticleEmitter",orb)
  3222. eff.Texture = "rbxassetid://296874871"
  3223. eff.LightEmission = 0.95
  3224. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3225. eff.Rate = 1000000000
  3226. eff.Lifetime = NumberRange.new(3)
  3227. 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)})
  3228. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3229. eff.Speed = NumberRange.new(30)
  3230. eff.Acceleration = vt(0,-15,0)
  3231. eff.Rotation = NumberRange.new(-500,500)
  3232. eff.VelocitySpread = 100000
  3233. eff.RotSpeed = NumberRange.new(-500,500)
  3234. coroutine.resume(coroutine.create(function()
  3235. wait(0.6)
  3236. eff.Enabled = false
  3237. end))
  3238. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3239. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3240. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3241. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3242. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3243. game:GetService("Debris"):AddItem(orb, 15)
  3244. end))
  3245. end))
  3246. for i = 0, 1, 0.1 do
  3247. swait()
  3248. 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)
  3249. 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)
  3250. 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)
  3251. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3252. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3253. 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)
  3254. end
  3255. hum.WalkSpeed = storehumanoidWS
  3256. attack = false
  3257. end
  3258.  
  3259.  
  3260. function ChaosGroundStrike()
  3261. attack = true
  3262. for i = 0, 2, 0.1 do
  3263. swait()
  3264. 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)
  3265. 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)
  3266. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3267. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3268. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3269. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3270. end
  3271. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3272. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3273. CameraEnshaking(4,12)
  3274. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3275. if v:FindFirstChild('Head') then
  3276. dmg(v)
  3277. end
  3278. end
  3279. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3280. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3281. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3282. for i = 0, 2, 0.1 do
  3283. swait()
  3284. 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)
  3285. 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)
  3286. 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)
  3287. 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)
  3288. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3289. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3290. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3291. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3292. end
  3293. attack = false
  3294. end
  3295.  
  3296.  
  3297.  
  3298. function Starfall()
  3299. attack = true
  3300. hum.WalkSpeed = 0
  3301. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3302. for i = 0, 5, 0.1 do
  3303. swait()
  3304. 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)
  3305. 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)
  3306. 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)
  3307. 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)
  3308. 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)
  3309. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3310. 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)
  3311. 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)
  3312. end
  3313. local Overed = false
  3314. CameraEnshaking(2,20)
  3315. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3316. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3317. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3318. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3319. local orb = Instance.new("Part", char)
  3320. orb.Anchored = true
  3321. orb.BrickColor = BrickColor.new("Toothpaste")
  3322. orb.CanCollide = false
  3323. orb.FormFactor = 3
  3324. orb.Name = "Remenant"
  3325. orb.Material = "Neon"
  3326. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3327. orb.Size = Vector3.new(1, 1, 1)
  3328. orb.Transparency = 1
  3329. orb.TopSurface = 0
  3330. orb.BottomSurface = 0
  3331. hum.WalkSpeed = storehumanoidWS
  3332. coroutine.resume(coroutine.create(function()
  3333. for i = 0, 9 do
  3334. swait(10)
  3335. local lb = Instance.new("Part")
  3336. lb.Color = MAINRUINCOLOR.Color
  3337. lb.CanCollide = false
  3338. lb.Material = "Neon"
  3339. lb.Anchored = true
  3340. lb.TopSurface = 0
  3341. lb.BottomSurface = 0
  3342. lb.Transparency = 0
  3343. lb.Size = vt(1,1,1)
  3344. 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)))
  3345. lb.Anchored = false
  3346. lb.Parent = char
  3347. local thingery = Instance.new("SpecialMesh",lb)
  3348. thingery.MeshType = "Sphere"
  3349. thingery.Scale = vt(20,20,20)
  3350. game:GetService("Debris"):AddItem(lb, 10)
  3351. local bv = Instance.new("BodyVelocity")
  3352. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3353. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3354. bv.Parent = lb
  3355. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3356. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3357. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3358. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3359. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3360. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3361. local hitted = false
  3362. coroutine.resume(coroutine.create(function()
  3363. while true do
  3364. swait(1)
  3365. if lb.Parent ~= nil and hitted == false then
  3366. 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)
  3367. elseif lb.Parent == nil then
  3368. break
  3369. end
  3370. end
  3371. end))
  3372.  
  3373. game:GetService("Debris"):AddItem(a, 0.1)
  3374.  
  3375. coroutine.resume(coroutine.create(function()
  3376. swait(1)
  3377. lb.Touched:connect(function(hit)
  3378. if hitted == false then
  3379. hitted = true
  3380. lb.Transparency = 1
  3381. lb.Anchored = true
  3382. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3383. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3384. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3385. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3386. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3387. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3388. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3389. CameraEnshaking(1,5)
  3390. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3391. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3392. for i = 0, 9 do
  3393. 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)
  3394. end
  3395. for i = 0, 49 do
  3396. swait()
  3397. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3398. 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)
  3399. end
  3400. end
  3401. end)
  3402. end))
  3403. end
  3404. Overed = true
  3405. orb:Destroy()
  3406. end))
  3407.  
  3408. attack = false
  3409. end
  3410.  
  3411. function StarfallEX()
  3412. attack = true
  3413. hum.WalkSpeed = 0
  3414. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3415. for i = 0, 10, 0.1 do
  3416. swait()
  3417. 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)
  3418. 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)
  3419. 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)
  3420. 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)
  3421. 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)
  3422. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3423. 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)
  3424. 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)
  3425. end
  3426. local Overed = false
  3427. CameraEnshaking(2,20)
  3428. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3429. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3430. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3431. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3432. local orb = Instance.new("Part", char)
  3433. orb.Anchored = true
  3434. orb.BrickColor = BrickColor.new("Toothpaste")
  3435. orb.CanCollide = false
  3436. orb.FormFactor = 3
  3437. orb.Name = "Remenant"
  3438. orb.Material = "Neon"
  3439. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3440. orb.Size = Vector3.new(1, 1, 1)
  3441. orb.Transparency = 1
  3442. orb.TopSurface = 0
  3443. orb.BottomSurface = 0
  3444. hum.WalkSpeed = storehumanoidWS
  3445. coroutine.resume(coroutine.create(function()
  3446. for i = 0, 4 do
  3447. swait(15)
  3448. local lb = Instance.new("Part")
  3449. lb.Color = MAINRUINCOLOR.Color
  3450. lb.CanCollide = false
  3451. lb.Material = "Neon"
  3452. lb.Anchored = true
  3453. lb.TopSurface = 0
  3454. lb.BottomSurface = 0
  3455. lb.Transparency = 0
  3456. lb.Size = vt(1,1,1)
  3457. 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)))
  3458. lb.Anchored = false
  3459. lb.Parent = char
  3460. local thingery = Instance.new("SpecialMesh",lb)
  3461. thingery.MeshType = "Sphere"
  3462. thingery.Scale = vt(50,50,50)
  3463. game:GetService("Debris"):AddItem(lb, 10)
  3464. local bv = Instance.new("BodyVelocity")
  3465. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3466. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3467. bv.Parent = lb
  3468. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3469. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3470. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3471. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3472. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3473. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3474. local hitted = false
  3475. coroutine.resume(coroutine.create(function()
  3476. while true do
  3477. swait(1)
  3478. if lb.Parent ~= nil and hitted == false then
  3479. 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)
  3480. elseif lb.Parent == nil then
  3481. break
  3482. end
  3483. end
  3484. end))
  3485.  
  3486. game:GetService("Debris"):AddItem(a, 0.1)
  3487.  
  3488. coroutine.resume(coroutine.create(function()
  3489. swait(1)
  3490. lb.Touched:connect(function(hit)
  3491. if hitted == false then
  3492. hitted = true
  3493. lb.Transparency = 1
  3494. lb.Anchored = true
  3495. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3496. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3497. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3498. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3499. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3500. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3501. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3502. CameraEnshaking(1,5)
  3503. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3504. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3505. for i = 0, 9 do
  3506. 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)
  3507. end
  3508. for i = 0, 99 do
  3509. swait()
  3510. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3511. 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)
  3512. end
  3513. end
  3514. end)
  3515. end))
  3516. end
  3517. Overed = true
  3518. orb:Destroy()
  3519. end))
  3520.  
  3521. attack = false
  3522. end
  3523.  
  3524. function DivineBlast()
  3525. attack = true
  3526. hum.WalkSpeed = 0
  3527. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3528. elocacenter.Anchored = true
  3529. elocacenter.CFrame = sorb.CFrame
  3530. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3531. eloca1.Anchored = true
  3532. eloca1.CFrame = elocacenter.CFrame
  3533. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3534. eloca2.Anchored = true
  3535. eloca2.CFrame = elocacenter.CFrame
  3536. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3537. eloca3.Anchored = true
  3538. eloca3.CFrame = elocacenter.CFrame
  3539. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3540. eloca4.Anchored = true
  3541. eloca4.CFrame = elocacenter.CFrame
  3542. local lookavec = 0
  3543. local speeds = 0
  3544. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3545. for i = 0, 3, 0.1 do
  3546. swait()
  3547. ---
  3548. lookavec = lookavec + 0.1
  3549. speeds = speeds + 10
  3550. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3551. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3552. 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)
  3553.  
  3554. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3555. 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)
  3556.  
  3557. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3558. 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)
  3559.  
  3560. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3561. 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)
  3562. ---
  3563. root.CFrame = FaceMouse()[1]
  3564. 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)
  3565. 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)
  3566. 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)
  3567. 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)
  3568. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3569. 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)
  3570. end
  3571. for i = 0, 3, 0.1 do
  3572. swait()
  3573. ---
  3574. speeds = speeds + 10
  3575. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3576. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3577. 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)
  3578.  
  3579. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3580. 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)
  3581.  
  3582. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3583. 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)
  3584.  
  3585. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3586. 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)
  3587. ---
  3588. root.CFrame = FaceMouse()[1]
  3589. 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)
  3590. 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)
  3591. 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)
  3592. 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)
  3593. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3594. 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)
  3595. end
  3596. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3597. for i = 0, 3, 0.1 do
  3598. swait()
  3599. ---
  3600. speeds = speeds + 10
  3601. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3602. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3603. 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)
  3604.  
  3605. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3606. 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)
  3607.  
  3608. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3609. 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)
  3610.  
  3611. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3612. 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)
  3613. ---
  3614. root.CFrame = FaceMouse()[1]
  3615. 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)
  3616. 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)
  3617. 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)
  3618. 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)
  3619. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  3620. 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)
  3621. end
  3622. coroutine.resume(coroutine.create(function()
  3623. local a = Instance.new("Part",Character)
  3624. a.Name = "Direction"
  3625. a.Anchored = true
  3626. a.BrickColor = bc("White")
  3627. a.Material = "Neon"
  3628. a.Transparency = 0
  3629. a.Shape = "Cylinder"
  3630. a.CanCollide = false
  3631. local a2 = Instance.new("Part",Character)
  3632. a2.Name = "Direction"
  3633. a2.Anchored = true
  3634. a2.BrickColor = bc("Bright yellow")
  3635. a2.Material = "Neon"
  3636. a2.Transparency = 0
  3637. a2.Shape = "Cylinder"
  3638. a2.CanCollide = false
  3639. local b = Instance.new("Part",Character)
  3640. b.Name = "HitDirect"
  3641. b.Anchored = true
  3642. b.BrickColor = bc("Cool yellow")
  3643. b.Material = "Neon"
  3644. b.Transparency = 1
  3645. b.CanCollide = false
  3646. local ray = Ray.new(
  3647. elocacenter.CFrame.p, -- origin
  3648. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  3649. )
  3650. local ignore = Character
  3651. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3652. a.BottomSurface = 10
  3653. a.TopSurface = 10
  3654. a2.BottomSurface = 10
  3655. a2.TopSurface = 10
  3656. local distance = (elocacenter.CFrame.p - position).magnitude
  3657. a.Size = Vector3.new(distance, 1, 1)
  3658. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3659. a2.Size = Vector3.new(distance, 1, 1)
  3660. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3661. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3662. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3663. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  3664. game:GetService("Debris"):AddItem(a, 10)
  3665. game:GetService("Debris"):AddItem(a2, 10)
  3666. game:GetService("Debris"):AddItem(b, 10)
  3667. local msh = Instance.new("SpecialMesh",a)
  3668. msh.MeshType = "Cylinder"
  3669. msh.Scale = vt(1,2,2)
  3670. local msh2 = Instance.new("SpecialMesh",a2)
  3671. msh2.MeshType = "Cylinder"
  3672. msh2.Scale = vt(1,2.5,2.5)
  3673. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  3674. coroutine.resume(coroutine.create(function()
  3675. for i = 0,10,0.1 do
  3676. swait()
  3677. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  3678. a.Transparency = a.Transparency + 0.025
  3679. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  3680. a2.Transparency = a2.Transparency + 0.05
  3681. end
  3682. a:Destroy()
  3683. a2:Destroy()
  3684. end))
  3685. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  3686. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  3687. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  3688. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  3689. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  3690. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  3691. MagniDamage(b, 25, 40,65, 0, "Normal")
  3692. for i = 0, 49 do
  3693. 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)
  3694. 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)
  3695. end
  3696. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  3697. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  3698. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3699. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3700. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3701. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3702. end))
  3703. game:GetService("Debris"):AddItem(elocacenter, 5)
  3704. hum.WalkSpeed = storehumanoidWS
  3705. attack = false
  3706. end
  3707.  
  3708. function StarDivision()
  3709. attack = true
  3710. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  3711. for i = 0, 2, 0.1 do
  3712. swait()
  3713. 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)
  3714. 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)
  3715. 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)
  3716. 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)
  3717. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  3718. 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)
  3719. end
  3720. local orb = Instance.new("Part", char)
  3721. orb.BrickColor = MAINRUINCOLOR
  3722. orb.CanCollide = false
  3723. orb.FormFactor = 3
  3724. orb.Name = "Ring"
  3725. orb.Material = "Neon"
  3726. orb.Size = Vector3.new(1, 1, 1)
  3727. orb.Transparency = 0
  3728. orb.TopSurface = 0
  3729. orb.BottomSurface = 0
  3730. local orbm = Instance.new("SpecialMesh", orb)
  3731. orbm.MeshType = "Sphere"
  3732. orbm.Name = "SizeMesh"
  3733. orbm.Scale = vt(2,2,2)
  3734. local a = Instance.new("Part",workspace)
  3735. a.Name = "Direction"
  3736. a.Anchored = true
  3737. a.BrickColor = bc("Bright red")
  3738. a.Material = "Neon"
  3739. a.Transparency = 1
  3740. a.CanCollide = false
  3741. local ray = Ray.new(
  3742. sorb.CFrame.p, -- origin
  3743. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3744. )
  3745. local ignore = sorb
  3746. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3747. a.BottomSurface = 10
  3748. a.TopSurface = 10
  3749. local distance = (sorb.CFrame.p - position).magnitude
  3750. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3751. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3752. orb.CFrame = a.CFrame
  3753. a:Destroy()
  3754. local bv = Instance.new("BodyVelocity")
  3755. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3756. bv.velocity = orb.CFrame.lookVector*100
  3757. bv.Parent = orb
  3758. local hitted = false
  3759. game:GetService("Debris"):AddItem(orb, 10)
  3760. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  3761. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  3762. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  3763. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  3764. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  3765. coroutine.resume(coroutine.create(function()
  3766. while true do
  3767. swait(1)
  3768. if orb.Parent ~= nil and hitted == false then
  3769. 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)
  3770. elseif orb.Parent == nil then
  3771. break
  3772. end
  3773. end
  3774. end))
  3775. coroutine.resume(coroutine.create(function()
  3776. swait(1)
  3777. orb.Touched:connect(function(hit)
  3778. if hitted == false then
  3779. hitted = true
  3780. game:GetService("Debris"):AddItem(orb, 5)
  3781. orb.Transparency = 1
  3782. orb.Anchored = true
  3783. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3784. elocacenter.Anchored = true
  3785. elocacenter.CFrame = orb.CFrame
  3786. elocacenter.Orientation = vt(0,0,0)
  3787. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3788. eloca1.Anchored = true
  3789. eloca1.CFrame = elocacenter.CFrame
  3790. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3791. eloca2.Anchored = true
  3792. eloca2.CFrame = elocacenter.CFrame
  3793. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3794. eloca3.Anchored = true
  3795. eloca3.CFrame = elocacenter.CFrame
  3796. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3797. eloca4.Anchored = true
  3798. eloca4.CFrame = elocacenter.CFrame
  3799. local lookavec = 0
  3800. local speeds = 0
  3801. CameraEnshaking(1,1)
  3802. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  3803. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3804. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3805. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3806. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3807. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3808. for i = 0, 99 do
  3809. swait()
  3810. lookavec = lookavec + 1
  3811. speeds = speeds + 0.1
  3812. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3813. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3814. 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)
  3815.  
  3816. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3817. 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)
  3818.  
  3819. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3820. 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)
  3821.  
  3822. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3823. 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)
  3824. end
  3825.  
  3826. for i = 0, 149 do
  3827. swait()
  3828. speeds = speeds + 0.1
  3829. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3830. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3831. 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)
  3832.  
  3833. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3834. 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)
  3835.  
  3836. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3837. 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)
  3838.  
  3839. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3840. 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)
  3841. end
  3842. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  3843. if v:FindFirstChild('Head') then
  3844. dmg(v)
  3845. end
  3846. end
  3847. CameraEnshaking(7,30)
  3848. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  3849. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  3850. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  3851. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  3852. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  3853. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  3854. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  3855. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3856. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3857. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3858. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3859. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3860. for i = 0, 24 do
  3861. 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)
  3862. 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)
  3863. 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)
  3864. 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)
  3865. end
  3866. coroutine.resume(coroutine.create(function()
  3867. for i = 0, 499 do
  3868. swait(1)
  3869. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  3870. 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)
  3871. end
  3872. elocacenter:Destroy()
  3873. eloca1:Destroy()
  3874. eloca2:Destroy()
  3875. eloca3:Destroy()
  3876. eloca4:Destroy()
  3877. end))
  3878. end
  3879. end)
  3880. end))
  3881. attack = false
  3882. end
  3883.  
  3884.  
  3885. function THE_TRUE_POWER_OF_VIOLENCE()
  3886. attack = true
  3887. hum.WalkSpeed = 0
  3888. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
  3889. for i = 0, 10, 0.1 do
  3890. swait()
  3891. 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)
  3892. 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)
  3893. 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)
  3894. 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)
  3895. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  3896. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  3897. 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)
  3898. end
  3899. local orb = Instance.new("Part", char)
  3900. orb.BrickColor = MAINRUINCOLOR
  3901. orb.CanCollide = false
  3902. orb.FormFactor = 3
  3903. orb.Name = "Ring"
  3904. orb.Material = "Neon"
  3905. orb.Size = Vector3.new(1, 1, 1)
  3906. orb.Transparency = 0
  3907. orb.TopSurface = 0
  3908. orb.BottomSurface = 0
  3909. orb.CFrame = sorb.CFrame
  3910. local orbm = Instance.new("SpecialMesh", orb)
  3911. orbm.MeshType = "Sphere"
  3912. orbm.Name = "SizeMesh"
  3913. orbm.Scale = vt(0,0,0)
  3914. local sbs = Instance.new("BodyPosition", orb)
  3915. sbs.P = 3000
  3916. sbs.D = 1000
  3917. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3918. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  3919. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  3920. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3921. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3922. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3923. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3924. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3925. for i = 0, 10, 0.1 do
  3926. swait()
  3927. 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)
  3928. 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)
  3929. 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)
  3930. 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)
  3931. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  3932. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  3933. 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)
  3934. end
  3935. orb.Anchored = true
  3936. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  3937. elocacenter.Anchored = true
  3938. elocacenter.CFrame = orb.CFrame
  3939. elocacenter.Orientation = vt(0,0,0)
  3940. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  3941. eloca1.Anchored = true
  3942. eloca1.CFrame = elocacenter.CFrame
  3943. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  3944. eloca2.Anchored = true
  3945. eloca2.CFrame = elocacenter.CFrame
  3946. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  3947. eloca3.Anchored = true
  3948. eloca3.CFrame = elocacenter.CFrame
  3949. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  3950. eloca4.Anchored = true
  3951. eloca4.CFrame = elocacenter.CFrame
  3952. local lookavec = 0
  3953. local speeds = 0
  3954. CameraEnshaking(1,1)
  3955. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  3956. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  3957. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  3958. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  3959. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3960. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3961. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3962. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3963. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3964. for i = 0, 99 do
  3965. swait()
  3966. lookavec = lookavec + 2.5
  3967. speeds = speeds + 0.25
  3968. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3969. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3970. 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)
  3971.  
  3972. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3973. 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)
  3974.  
  3975. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3976. 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)
  3977.  
  3978. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3979. 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)
  3980. end
  3981.  
  3982. for i = 0, 149 do
  3983. swait()
  3984. speeds = speeds + 0.25
  3985. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3986. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3987. 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)
  3988.  
  3989. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3990. 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)
  3991.  
  3992. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3993. 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)
  3994.  
  3995. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3996. 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)
  3997. end
  3998. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  3999. for i = 0, 99 do
  4000. swait()
  4001. lookavec = lookavec - 2.5
  4002. speeds = speeds + 0.25
  4003. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4004. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4005. 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)
  4006.  
  4007. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4008. 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)
  4009.  
  4010. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4011. 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)
  4012.  
  4013. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4014. 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)
  4015. end
  4016. local scaled = 0.1*75
  4017. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4018. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4019. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4020. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4021. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4022. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4023. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4024. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4025. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4026. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4027. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4028. for i = 0, 10, 0.1 do
  4029. swait()
  4030. scaled = scaled - 0.001*75
  4031. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4032. 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)
  4033. 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)
  4034. 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)
  4035. 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)
  4036. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4037. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4038. 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)
  4039. end
  4040. for x = 0, 4 do
  4041. for i = 0, 9 do
  4042. 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)
  4043. end
  4044. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4045. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4046. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4047. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4048. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4049. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4050. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4051. for i = 0, 5, 0.1 do
  4052. swait()
  4053. 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)
  4054. 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)
  4055. 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)
  4056. 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)
  4057. 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)
  4058. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4059. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4060. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4061. end
  4062. end
  4063. local speedearn = 0
  4064. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4065. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4066. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4067. for i = 0, 30, 0.1 do
  4068. swait()
  4069. scaled = scaled - 0.001*75/10
  4070. speedearn = speedearn + 0.5
  4071. for i = 0, 4 do
  4072. 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)
  4073. end
  4074. 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)
  4075. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4076. 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)
  4077. 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)
  4078. 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)
  4079. 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)
  4080. 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)
  4081. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4082. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4083. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4084. end
  4085. orb.Transparency = 1
  4086. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4087. if v:FindFirstChild('Head') then
  4088. dmg(v)
  4089. end
  4090. end
  4091. CameraEnshaking(7,30)
  4092. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4093. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4094. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4095. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4096. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4097. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4098. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4099. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4100. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4101. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4102. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4103. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4104. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4105. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4106. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4107. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4108. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4109. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4110. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4111. for i = 0, 99 do
  4112. 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)
  4113. 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)
  4114. end
  4115. for i = 0, 24 do
  4116. 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)
  4117. 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)
  4118. 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)
  4119. 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)
  4120. 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)
  4121. end
  4122. game:GetService("Debris"):AddItem(orb, 10)
  4123. hum.WalkSpeed = storehumanoidWS
  4124. attack = false
  4125. end
  4126.  
  4127.  
  4128. function ViolentRing()
  4129. attack = true
  4130. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4131. for i = 0, 2, 0.1 do
  4132. swait()
  4133. local snap = math.random(1,10)
  4134. if snap == 1 then
  4135. 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)
  4136. end
  4137. 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)
  4138. 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)
  4139. 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)
  4140. 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)
  4141. 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)
  4142. 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)
  4143. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4144. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4145. 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)
  4146. RootPart.CFrame = FaceMouse()[1]
  4147. end
  4148. local orb = Instance.new("Part", char)
  4149. orb.BrickColor = MAINRUINCOLOR
  4150. orb.CanCollide = false
  4151. orb.FormFactor = 3
  4152. orb.Name = "Ring"
  4153. orb.Material = "Neon"
  4154. orb.Size = Vector3.new(1, 1, 1)
  4155. orb.Transparency = 0
  4156. orb.TopSurface = 0
  4157. orb.BottomSurface = 0
  4158. local orbm = Instance.new("SpecialMesh", orb)
  4159. orbm.MeshType = "Sphere"
  4160. orbm.Name = "SizeMesh"
  4161. orbm.Scale = vt(2,2,2)
  4162. orb.CFrame = mouse.Hit
  4163. local bv = Instance.new("BodyVelocity")
  4164. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4165. bv.velocity = orb.CFrame.lookVector*100
  4166. bv.Parent = orb
  4167. local hitted = false
  4168. coroutine.resume(coroutine.create(function()
  4169. game:GetService("Debris"):AddItem(orb, 5)
  4170. orb.Transparency = 1
  4171. orb.Anchored = true
  4172. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4173. elocacenter.Anchored = true
  4174. elocacenter.CFrame = orb.CFrame
  4175. elocacenter.Orientation = vt(0,0,0)
  4176. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4177. eloca1.Anchored = true
  4178. eloca1.CFrame = elocacenter.CFrame
  4179. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4180. eloca2.Anchored = true
  4181. eloca2.CFrame = elocacenter.CFrame
  4182. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4183. eloca3.Anchored = true
  4184. eloca3.CFrame = elocacenter.CFrame
  4185. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4186. eloca4.Anchored = true
  4187. eloca4.CFrame = elocacenter.CFrame
  4188. local lookavec = 0
  4189. local speeds = 0
  4190. CameraEnshaking(1,1)
  4191. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4192. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4193. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4194. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4195. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4196. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4197. for i = 0, 24 do
  4198. swait()
  4199. lookavec = lookavec + 3.5
  4200. speeds = speeds + 1
  4201. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4202. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4203. 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)
  4204.  
  4205. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4206. 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)
  4207.  
  4208. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4209. 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)
  4210.  
  4211. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4212. 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)
  4213. end
  4214.  
  4215. local risen = 0
  4216. for i = 0, 49 do
  4217. swait()
  4218. risen = risen + 0.05
  4219. speeds = speeds + 0.1
  4220. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4221. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4222. 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)
  4223.  
  4224. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4225. 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)
  4226.  
  4227. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4228. 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)
  4229.  
  4230. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4231. 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)
  4232. end
  4233. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4234. if v:FindFirstChild('Head') then
  4235. dmg(v)
  4236. end
  4237. end
  4238. CameraEnshaking(4,10)
  4239. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4240. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4241. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4242. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4243. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4244. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4245. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4246. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4247. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4248. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4249. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4250. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4251. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4252. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4253. for i = 0, 24 do
  4254. 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)
  4255. 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)
  4256. 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)
  4257. 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)
  4258. end
  4259. coroutine.resume(coroutine.create(function()
  4260. wait(10)
  4261. elocacenter:Destroy()
  4262. eloca1:Destroy()
  4263. eloca2:Destroy()
  4264. eloca3:Destroy()
  4265. eloca4:Destroy()
  4266. end))
  4267. end))
  4268. attack = false
  4269. end
  4270.  
  4271. function UniversalCollapse()
  4272. attack = true
  4273. local speedearn = 0
  4274. hum.WalkSpeed = 0
  4275. local sbs = Instance.new("BodyPosition", root)
  4276. sbs.P = 3000
  4277. sbs.D = 1000
  4278. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4279. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4280. CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
  4281. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4282. for i = 0, 110, 0.1 do
  4283. swait()
  4284. speedearn = speedearn + 0.1
  4285. 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)
  4286. 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)
  4287. 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)
  4288. 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)
  4289. 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)
  4290. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4291. 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)
  4292. 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)
  4293. 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)
  4294. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4295. 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)
  4296. 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)
  4297. end
  4298. CameraEnshaking(5,50)
  4299. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4300. for i = 0, 2 do
  4301. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4302. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4303. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4304. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4305. end
  4306. for i = 0, 49 do
  4307. 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)
  4308. 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)
  4309. 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)
  4310. 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)
  4311. end
  4312. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4313. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4314. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4315. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4316. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4317. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4318. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4319. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4320. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4321. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4322. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4323. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4324. for i = 0, 99 do
  4325. 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)
  4326. 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)
  4327. end
  4328. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4329. if v:FindFirstChild('Head') then
  4330. dmg(v)
  4331. end
  4332. end
  4333. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4334. sbs:Destroy()
  4335. hum.WalkSpeed = storehumanoidWS
  4336. attack = false
  4337. end
  4338.  
  4339.  
  4340. function ChaosEND()
  4341. attack = true
  4342. local speedearn = 0
  4343. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
  4344. for i = 0, 15, 0.1 do
  4345. swait()
  4346. speedearn = speedearn + 0.25
  4347. 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)
  4348. 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)
  4349. 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)
  4350. 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)
  4351. 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)
  4352. 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)
  4353. 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)
  4354. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4355. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4356. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4357. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4358. end
  4359. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4360. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4361. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  4362. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  4363. CameraEnshaking(5,25)
  4364. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4365. if v:FindFirstChild('Head') then
  4366. dmg(v)
  4367. end
  4368. end
  4369. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4370. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4371. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4372. for i = 0, 3, 0.1 do
  4373. swait()
  4374. 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)
  4375. 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)
  4376. 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)
  4377. 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)
  4378. 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)
  4379. 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)
  4380. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4381. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4382. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4383. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4384. end
  4385. attack = false
  4386. end
  4387.  
  4388. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4389. local orb = Instance.new("Part", char)
  4390. orb.Anchored = true
  4391. orb.BrickColor = color
  4392. orb.CanCollide = false
  4393. orb.FormFactor = 3
  4394. orb.Name = "Ring"
  4395. orb.Material = "Neon"
  4396. orb.Size = Vector3.new(1, 1, 1)
  4397. orb.Transparency = 0
  4398. orb.TopSurface = 0
  4399. orb.BottomSurface = 0
  4400. local orbm = Instance.new("SpecialMesh", orb)
  4401. orbm.MeshType = "Sphere"
  4402. orb.CFrame = positted
  4403. orbm.Name = "SizeMesh"
  4404. orbm.Scale = vt(1,1,1)
  4405. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4406. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4407. --[[for i = 0, 2 do
  4408. 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)
  4409. end]]--
  4410. coroutine.resume(coroutine.create(function()
  4411. wait(timer)
  4412. CameraEnshaking(3,ShakePower)
  4413. orb.Transparency = 1
  4414. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4415. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4416. --[[for i = 0, 4 do
  4417. 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)
  4418. end]]--
  4419. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4420. wait(3)
  4421. orb:Destroy()
  4422. end))
  4423. end
  4424.  
  4425. function orb_spawn(positted,timer)
  4426. local randomcol = math.random(1,2)
  4427. local orb = Instance.new("Part", char)
  4428. orb.Anchored = true
  4429. if randomcol == 1 then
  4430. orb.BrickColor = BrickColor.new("White")
  4431. elseif randomcol == 2 then
  4432. orb.BrickColor = BrickColor.new("Really black")
  4433. end
  4434. orb.CanCollide = false
  4435. orb.FormFactor = 3
  4436. orb.Name = "Ring"
  4437. orb.Material = "Neon"
  4438. orb.Size = Vector3.new(1, 1, 1)
  4439. orb.Transparency = 0
  4440. orb.TopSurface = 0
  4441. orb.BottomSurface = 0
  4442. local orbm = Instance.new("SpecialMesh", orb)
  4443. orbm.MeshType = "Sphere"
  4444. orb.CFrame = positted
  4445. orbm.Name = "SizeMesh"
  4446. orbm.Scale = vt(1,1,1)
  4447. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4448. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4449. for i = 0, 2 do
  4450. 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)
  4451. end
  4452. coroutine.resume(coroutine.create(function()
  4453. wait(timer)
  4454. CameraEnshaking(3,2)
  4455. orb.Transparency = 1
  4456. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4457. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4458. for i = 0, 4 do
  4459. 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)
  4460. end
  4461. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4462. wait(3)
  4463. orb:Destroy()
  4464. end))
  4465. end
  4466.  
  4467. function scattercorrupt()
  4468. attack = true
  4469. local rot = 0
  4470. local randomrotations = math.random(1,2)
  4471. local lookv = 2.5
  4472. local power = 5
  4473. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4474. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4475. for i = 0, 9 do
  4476. 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)
  4477. end
  4478. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4479. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4480. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4481. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4482. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4483. local hite = Instance.new("Part", char)
  4484. hite.Anchored = true
  4485. hite.CanCollide = false
  4486. hite.FormFactor = 3
  4487. hite.Name = "Ring"
  4488. hite.Material = "Neon"
  4489. hite.Size = Vector3.new(1, 1, 1)
  4490. hite.Transparency = 1
  4491. hite.TopSurface = 0
  4492. hite.BottomSurface = 0
  4493. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4494. local rem = Instance.new("Part", char)
  4495. rem.Anchored = true
  4496. rem.CanCollide = false
  4497. rem.FormFactor = 3
  4498. rem.Name = "Ring"
  4499. rem.Material = "Neon"
  4500. rem.Size = Vector3.new(1, 1, 1)
  4501. rem.Transparency = 1
  4502. rem.TopSurface = 0
  4503. rem.BottomSurface = 0
  4504. rem.CFrame = hite.CFrame
  4505. local rem2 = rem:Clone()
  4506. rem2.Parent = char
  4507. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4508. local rem3 = rem:Clone()
  4509. rem3.Parent = char
  4510. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4511. local rem4 = rem:Clone()
  4512. rem4.Parent = char
  4513. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4514. hite:Destroy()
  4515. coroutine.resume(coroutine.create(function()
  4516. for i = 0, 24 do
  4517. swait(1)
  4518. if randomrotations == 1 then
  4519. rot = rot + 1
  4520. elseif randomrotations == 2 then
  4521. rot = rot - 1
  4522. end
  4523. power = power + 0.5
  4524. lookv = lookv + 7.5
  4525. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4526. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4527. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4528. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4529. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4530. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4531. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4532. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4533. end
  4534. end))
  4535. attack = false
  4536. end
  4537. function yinyangi()
  4538. attack = true
  4539. for i = 0, 2, 0.1 do
  4540. swait()
  4541. 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)
  4542. 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)
  4543. 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)
  4544. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4545. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4546. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4547. end
  4548. local bv = Instance.new("BodyVelocity")
  4549. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4550. bv.velocity = root.CFrame.lookVector*175
  4551. bv.Parent = root
  4552. for Rotations = 0, 9 do
  4553. for i = 0, 1, 0.5 do
  4554. swait()
  4555. bv.velocity = root.CFrame.lookVector*175
  4556. 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)
  4557. 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)
  4558. 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)
  4559. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4560. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4561. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4562. end
  4563. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4564. for i = 0, 1, 0.5 do
  4565. swait()
  4566. bv.velocity = root.CFrame.lookVector*175
  4567. 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)
  4568. 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)
  4569. 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)
  4570. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4571. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4572. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4573. end
  4574. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4575. for i = 0, 1, 0.5 do
  4576. swait()
  4577. bv.velocity = root.CFrame.lookVector*175
  4578. 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)
  4579. 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)
  4580. 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)
  4581. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4582. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4583. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4584. end
  4585. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4586. for i = 0, 1, 0.5 do
  4587. swait()
  4588. bv.velocity = root.CFrame.lookVector*175
  4589. 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)
  4590. 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)
  4591. 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)
  4592. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4593. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4594. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4595. end
  4596. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4597. end
  4598. bv:Destroy()
  4599. attack = false
  4600. end
  4601.  
  4602. function createBGCircle(size,parent,color)
  4603. local bgui = Instance.new("BillboardGui",parent)
  4604. bgui.Size = UDim2.new(size, 0, size, 0)
  4605. local imgc = Instance.new("ImageLabel",bgui)
  4606. imgc.BackgroundTransparency = 1
  4607. imgc.ImageTransparency = 0
  4608. imgc.Size = UDim2.new(1,0,1,0)
  4609. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  4610. imgc.ImageColor3 = color
  4611. return bgui,imgc
  4612. end
  4613.  
  4614. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  4615. local bgui,imgc = createBGCircle(size,guipar,color)
  4616. bgui.AlwaysOnTop = true
  4617. imgc.Image = "rbxassetid://" ..img
  4618. local rrot = math.random(1,2)
  4619. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  4620. coroutine.resume(coroutine.create(function()
  4621. for i = 0, 24*delay do
  4622. swait()
  4623. if rotationenabled == true then
  4624. if rrot == 1 then
  4625. imgc.Rotation = imgc.Rotation + rotsp
  4626. elseif rrot == 2 then
  4627. imgc.Rotation = imgc.Rotation - rotsp
  4628. end
  4629. end
  4630. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  4631. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  4632. end
  4633. bgui:Destroy()
  4634. end))
  4635. end
  4636. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  4637. for i, v in pairs(mw2:GetChildren()) do
  4638. if v:IsA("Part") then
  4639. v.BrickColor = one
  4640. v.Material = "Neon"
  4641. end
  4642. end
  4643. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  4644. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  4645. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  4646. tr1.Color = ColorSequence.new(one.Color)
  4647. tr2.Color = ColorSequence.new(one.Color)
  4648. tr3.Color = ColorSequence.new(one.Color)
  4649. for i, v in pairs(mw1:GetChildren()) do
  4650. if v:IsA("Part") then
  4651. if secondaryenabled == false then
  4652. v.Transparency = 1
  4653. elseif secondaryenabled == true then
  4654. v.Transparency = 0
  4655. end
  4656. v.BrickColor = two
  4657. v.Material = "Neon"
  4658. end
  4659. end
  4660. if secondaryenabled == false then
  4661. tl1.Enabled = false
  4662. tl2.Enabled = false
  4663. tl3.Enabled = false
  4664. elseif secondaryenabled == true then
  4665. tl1.Enabled = true
  4666. tl2.Enabled = true
  4667. tl3.Enabled = true
  4668. end
  4669. tl1.Color = ColorSequence.new(two.Color)
  4670. tl2.Color = ColorSequence.new(two.Color)
  4671. tl3.Color = ColorSequence.new(two.Color)
  4672. for i, v in pairs(m:GetChildren()) do
  4673. if v:IsA("Part") then
  4674. v.BrickColor = three
  4675. v.Material = "Ice"
  4676. end
  4677. end
  4678. for i, v in pairs(m2:GetChildren()) do
  4679. if v:IsA("Part") then
  4680. v.BrickColor = four
  4681. v.Material = "Ice"
  4682. end
  4683. end
  4684. for i, v in pairs(m3:GetChildren()) do
  4685. if v:IsA("Part") then
  4686. v.BrickColor = five
  4687. v.Material = "Neon"
  4688. end
  4689. end
  4690. for i, v in pairs(extrawingmod1:GetChildren()) do
  4691. if v:IsA("Part") then
  4692. v.Transparency = exonetran
  4693. v.BrickColor = exone
  4694. v.Material = "Neon"
  4695. end
  4696. end
  4697. for i, v in pairs(extrawingmod2:GetChildren()) do
  4698. if v:IsA("Part") then
  4699. v.Transparency = extwotran
  4700. v.BrickColor = extwo
  4701. v.Material = "Neon"
  4702. end
  4703. end
  4704. end
  4705.  
  4706.  
  4707. function normalmog()
  4708. attack = true
  4709. hum.WalkSpeed = 0
  4710. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  4711. for i = 0,6,0.1 do
  4712. swait()
  4713. 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)
  4714. 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)
  4715. 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)
  4716. 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)
  4717. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  4718. 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)
  4719. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  4720. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  4721. end
  4722. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  4723. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  4724. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  4725. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  4726. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  4727. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  4728. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  4729. rainbowmode = false
  4730. chaosmode = false
  4731. ModeOfGlitch = 1
  4732. storehumanoidWS = 16
  4733. newTheme("rbxassetid://614032233",48.6,1,1.25)
  4734. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  4735. CameraEnshaking(5,2.5)
  4736. MAINRUINCOLOR = BrickColor.new("Really red")
  4737. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4738. for i = 0, 49 do
  4739. 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)
  4740. end
  4741. for i = 0, 24 do
  4742. 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)
  4743. 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"))
  4744. end
  4745. for i = 0,3,0.1 do
  4746. 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)
  4747. end
  4748. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  4749. for i = 0,2,0.1 do
  4750. swait()
  4751. 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)
  4752. 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)
  4753. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  4754. 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)
  4755. 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)
  4756. 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)
  4757. end
  4758. hum.WalkSpeed = storehumanoidWS
  4759. attack = false
  4760. end
  4761.  
  4762. function attackone()
  4763. attack = true
  4764. local keptcolor = MAINRUINCOLOR
  4765. for i = 0,1,0.1 do
  4766. swait()
  4767. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  4768. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  4769. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  4770. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4771. 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)
  4772. 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)
  4773. end
  4774. local distlook = 5
  4775. coroutine.resume(coroutine.create(function()
  4776. for i = 0, 4 do
  4777. swait(2)
  4778. CameraEnshaking(2,3)
  4779. local hite = Instance.new("Part", char)
  4780. hite.Anchored = true
  4781. hite.CanCollide = false
  4782. hite.FormFactor = 3
  4783. hite.Name = "Ring"
  4784. hite.Material = "Neon"
  4785. hite.Size = Vector3.new(1, 1, 1)
  4786. hite.Transparency = 1
  4787. hite.TopSurface = 0
  4788. hite.BottomSurface = 0
  4789. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  4790. 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)
  4791. 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)
  4792. 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)
  4793. 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)
  4794. MagniDamage(hite, 9, 10,25, 0, "Normal")
  4795. for i = 0, 14 do
  4796. local rsiz = math.random(5,20)
  4797. 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)
  4798. end
  4799. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  4800. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  4801. game:GetService("Debris"):AddItem(hite, 5)
  4802. distlook = distlook + 10
  4803. end
  4804. end))
  4805. for i = 0,1,0.1 do
  4806. swait()
  4807. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  4808. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  4809. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  4810. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  4811. 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)
  4812. 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)
  4813. end
  4814. attack = false
  4815. end
  4816.  
  4817. function attacktwo()
  4818. attack = true
  4819. hum.WalkSpeed = 2
  4820. local keptcolor = MAINRUINCOLOR
  4821. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  4822. 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)
  4823. 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)
  4824. for i = 0, 14 do
  4825. end
  4826. for i = 0,1,0.1 do
  4827. swait()
  4828. 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)
  4829. 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)
  4830. 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)
  4831. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  4832. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  4833. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  4834. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  4835. end
  4836. for i = 0, 1 do
  4837. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  4838. for i = 0,1,0.6 do
  4839. swait()
  4840. 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)
  4841. 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)
  4842. 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)
  4843. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  4844. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  4845. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  4846. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  4847. end
  4848. for i = 0,1,0.6 do
  4849. swait()
  4850. 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)
  4851. 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)
  4852. 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)
  4853. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  4854. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  4855. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  4856. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  4857. end
  4858. for i = 0,1,0.6 do
  4859. swait()
  4860. 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)
  4861. 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)
  4862. 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)
  4863. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  4864. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  4865. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  4866. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  4867. end
  4868. for i = 0,1,0.6 do
  4869. swait()
  4870. 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)
  4871. 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)
  4872. 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)
  4873. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  4874. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  4875. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  4876. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  4877. end
  4878. local rot = 0
  4879. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  4880. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  4881. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  4882. CreateMesh(dis,"Sphere",10,1,10)
  4883. local at1 = Instance.new("Attachment",dis)
  4884. at1.Position = vt(-5,0,0)
  4885. local at2 = Instance.new("Attachment",dis)
  4886. at2.Position = vt(5,0,0)
  4887. local trl = Instance.new('Trail',wed)
  4888. trl.Attachment0 = at1
  4889. trl.Attachment1 = at2
  4890. trl.Texture = "rbxassetid://1049219073"
  4891. trl.LightEmission = 1
  4892. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4893. trl.Color = ColorSequence.new(dis.Color)
  4894. trl.Lifetime = 0.6
  4895. local a = Instance.new("Part",workspace)
  4896. a.Name = "Direction"
  4897. a.Anchored = true
  4898. a.BrickColor = bc("Bright red")
  4899. a.Material = "Neon"
  4900. a.Transparency = 1
  4901. a.CanCollide = false
  4902. local ray = Ray.new(
  4903. dis.CFrame.p, -- origin
  4904. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  4905. )
  4906. local ignore = dis
  4907. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4908. a.BottomSurface = 10
  4909. a.TopSurface = 10
  4910. local distance = (dis.CFrame.p - position).magnitude
  4911. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4912. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  4913. dis.CFrame = a.CFrame
  4914. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4915. a:Destroy()
  4916. local bv = Instance.new("BodyVelocity")
  4917. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4918. bv.velocity = dis.CFrame.lookVector*250
  4919. bv.Parent = dis
  4920. game:GetService("Debris"):AddItem(dis, 5)
  4921. local hitted = false
  4922. coroutine.resume(coroutine.create(function()
  4923. dis.Touched:connect(function(hit)
  4924. if hitted == false and hit.Parent ~= char then
  4925. hitted = true
  4926. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  4927. MagniDamage(dis, 30, 33,56, 0, "Normal")
  4928. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  4929. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  4930. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  4931. coroutine.resume(coroutine.create(function()
  4932. for i = 0, 9 do
  4933. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  4934. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4935. local at1 = Instance.new("Attachment",disr)
  4936. at1.Position = vt(-5,0,0)
  4937. local at2 = Instance.new("Attachment",disr)
  4938. at2.Position = vt(5,0,0)
  4939. local trl = Instance.new('Trail',disr)
  4940. trl.Attachment0 = at1
  4941. trl.FaceCamera = true
  4942. trl.Attachment1 = at2
  4943. trl.Texture = "rbxassetid://2342682798"
  4944. trl.LightEmission = 1
  4945. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4946. trl.Color = ColorSequence.new(keptcolor.Color)
  4947. trl.Lifetime = 0.5
  4948. local bv = Instance.new("BodyVelocity")
  4949. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4950. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  4951. bv.Parent = disr
  4952. local val = 0
  4953. coroutine.resume(coroutine.create(function()
  4954. swait(30)
  4955. for i = 0, 9 do
  4956. swait()
  4957. val = val + 0.1
  4958. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  4959. end
  4960. game:GetService("Debris"):AddItem(disr, 3)
  4961. end))
  4962. end
  4963. local eff = Instance.new("ParticleEmitter",dis)
  4964. eff.Texture = "rbxassetid://2273224484"
  4965. eff.LightEmission = 1
  4966. eff.Color = ColorSequence.new(keptcolor.Color)
  4967. eff.Rate = 50
  4968. eff.Lifetime = NumberRange.new(0.5,2)
  4969. 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)})
  4970. 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)})
  4971. eff.Speed = NumberRange.new(20,250)
  4972. eff.Drag = 5
  4973. eff.Rotation = NumberRange.new(-500,500)
  4974. eff.VelocitySpread = 9000
  4975. eff.RotSpeed = NumberRange.new(-50,50)
  4976. wait(0.25)
  4977. eff.Enabled = false
  4978. end))
  4979. for i = 0, 9 do
  4980. end
  4981. for i = 0, 19 do
  4982. end
  4983. coroutine.resume(coroutine.create(function()
  4984. for i = 0, 19 do
  4985. swait()
  4986. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  4987. end
  4988. hum.CameraOffset = vt(0,0,0)
  4989. end))
  4990. dis.Anchored = true
  4991. dis.Transparency = 1
  4992. wait(8)
  4993. dis:Destroy()
  4994. end
  4995. end)
  4996. end))
  4997. rot = rot - 15
  4998. end
  4999. for i = 0,2,0.1 do
  5000. swait()
  5001. 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)
  5002. 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)
  5003. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5004. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5005. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5006. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5007. end
  5008. attack = false
  5009. hum.WalkSpeed = storehumanoidWS
  5010. end
  5011.  
  5012. function attackthree()
  5013. attack = true
  5014. local keptcolor = MAINRUINCOLOR
  5015. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5016. for i = 0,2,0.1 do
  5017. swait()
  5018. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5019. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5020. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5021. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5022. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5023. 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)
  5024. 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)
  5025. end
  5026. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5027. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5028. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5029. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5030. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5031. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5032. for i = 0, 24 do
  5033. end
  5034. for i = 0,4,0.1 do
  5035. swait()
  5036. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5037. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5038. CreateMesh(dis,"Sphere",1,1,1)
  5039. dis.Anchored = true
  5040. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5041. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5042. coroutine.resume(coroutine.create(function()
  5043. swait(30)
  5044. dis.Transparency = 1
  5045. coroutine.resume(coroutine.create(function()
  5046. for i = 0, 19 do
  5047. swait()
  5048. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5049. end
  5050. hum.CameraOffset = vt(0,0,0)
  5051. end))
  5052. coroutine.resume(coroutine.create(function()
  5053. local eff = Instance.new("ParticleEmitter",dis)
  5054. eff.Texture = "rbxassetid://2273224484"
  5055. eff.LightEmission = 1
  5056. eff.Color = ColorSequence.new(dis.Color)
  5057. eff.Rate = 500000
  5058. eff.Lifetime = NumberRange.new(0.5,2)
  5059. 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)})
  5060. 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)})
  5061. eff.Speed = NumberRange.new(50,450)
  5062. eff.Drag = 5
  5063. eff.Rotation = NumberRange.new(-500,500)
  5064. eff.VelocitySpread = 9000
  5065. eff.RotSpeed = NumberRange.new(-50,50)
  5066. wait(0.125)
  5067. eff.Enabled = false
  5068. end))
  5069. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5070. for i = 0, 2 do
  5071. --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)
  5072. end
  5073. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5074. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5075. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5076. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5077. end))
  5078. game:GetService("Debris"):AddItem(dis, 5)
  5079. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5080. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5081. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5082. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5083. 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)
  5084. 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)
  5085. end
  5086. attack = false
  5087. end
  5088. ----------------------------------- Abilities
  5089.  
  5090. function ExtinctiveHeartbreak()
  5091. local targetted = nil
  5092. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5093. targetted = mouse.Target.Parent
  5094. end
  5095. if targetted ~= nil then
  5096. attack = true
  5097. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5098. for i = 0, 9 do
  5099. --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)
  5100. end
  5101. for i = 0, 24 do
  5102. --
  5103. end
  5104. --sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5105. local originalpos = root.CFrame
  5106. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5107. for i = 0, 9 do
  5108. --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)
  5109. end
  5110. for i = 0, 24 do
  5111. end
  5112. hum.WalkSpeed = 0
  5113. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5114. local radm = math.random(1,3)
  5115. if radm == 1 then
  5116. --bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5117. elseif radm == 2 then
  5118. --bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5119. elseif radm == 3 then
  5120. --bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5121. end
  5122. for i = 0,2,0.1 do
  5123. swait()
  5124. 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)
  5125. 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)
  5126. 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)
  5127. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5128. 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)
  5129. 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)
  5130. end
  5131. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  5132. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  5133. for i = 0,2,0.1 do
  5134. swait()
  5135. coroutine.resume(coroutine.create(function()
  5136. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5137. for i,v in pairs(targetted:GetChildren()) do
  5138. if v:IsA("Part") or v:IsA("MeshPart") then
  5139. v.Velocity = vt(0,0,0)
  5140. end
  5141. end
  5142. end))
  5143. 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)
  5144. 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)
  5145. 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)
  5146. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5147. 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)
  5148. 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)
  5149. end
  5150. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  5151. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  5152. for i = 0, 1 do
  5153. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  5154. end
  5155. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  5156. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5157. for i = 0,4,0.1 do
  5158. swait()
  5159. coroutine.resume(coroutine.create(function()
  5160. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5161. 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)))
  5162. local at1 = Instance.new("Attachment",dis)
  5163. at1.Position = vt(-25000,0,0)
  5164. local at2 = Instance.new("Attachment",dis)
  5165. at2.Position = vt(25000,0,0)
  5166. local trl = Instance.new('Trail',dis)
  5167. trl.Attachment0 = at1
  5168. trl.FaceCamera = true
  5169. trl.Attachment1 = at2
  5170. trl.Texture = "rbxassetid://1049219073"
  5171. trl.LightEmission = 1
  5172. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5173. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5174. trl.Lifetime = 5
  5175. local bv = Instance.new("BodyVelocity")
  5176. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5177. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5178. bv.Parent = dis
  5179. game:GetService("Debris"):AddItem(dis, 5)
  5180. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5181. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5182. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5183. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5184. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5185. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5186. 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)
  5187. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5188. for i = 0, 2 do
  5189. --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"))
  5190. end
  5191. 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)
  5192. for i,v in pairs(targetted:GetChildren()) do
  5193. if v:IsA("Part") or v:IsA("MeshPart") then
  5194. v.Velocity = vt(0,0,0)
  5195. end
  5196. end
  5197. end))
  5198. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5199. 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)
  5200. 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)
  5201. 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)
  5202. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5203. 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)
  5204. 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)
  5205. end
  5206. hum.CameraOffset = vt(0,0,0)
  5207. for i = 0, 49 do
  5208. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5209. 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)))
  5210. local at1 = Instance.new("Attachment",dis)
  5211. at1.Position = vt(-50000,0,0)
  5212. local at2 = Instance.new("Attachment",dis)
  5213. at2.Position = vt(50000,0,0)
  5214. local trl = Instance.new('Trail',dis)
  5215. trl.Attachment0 = at1
  5216. trl.FaceCamera = true
  5217. trl.Attachment1 = at2
  5218. trl.Texture = "rbxassetid://1049219073"
  5219. trl.LightEmission = 1
  5220. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5221. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5222. trl.Lifetime = 5
  5223. local bv = Instance.new("BodyVelocity")
  5224. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5225. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5226. bv.Parent = dis
  5227. game:GetService("Debris"):AddItem(dis, 5)
  5228. end
  5229. for i = 0, 49 do
  5230. 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)
  5231. --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"))
  5232. end
  5233. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5234. for i = 0, 1 do
  5235. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5236. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5237. end
  5238. for i = 0, 4 do
  5239. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5240. end
  5241. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5242. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5243. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5244. dmg(targetted)
  5245. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5246. for i = 0, 9 do
  5247. --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)
  5248. end
  5249. for i = 0, 24 do
  5250. end
  5251. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5252. root.CFrame = originalpos
  5253. for i = 0, 9 do
  5254. --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)
  5255. end
  5256. for i = 0, 24 do
  5257. end
  5258. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5259. attack = false
  5260. hum.WalkSpeed = storehumanoidWS
  5261. end
  5262. end
  5263.  
  5264. function CorruptionEvent()
  5265. attack = true
  5266. hum.WalkSpeed = 0
  5267. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5268. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5269. local keptcolor = MAINRUINCOLOR
  5270. for i = 0,4,0.1 do
  5271. swait()
  5272. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5273. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5274. 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)
  5275. 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)
  5276. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5277. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5278. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5279. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5280. end
  5281. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5282. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5283. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5284. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5285. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5286. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5287. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5288. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5289. hum.CameraOffset = vt(0,0,0)
  5290. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5291. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5292. for i = 0, 24 do
  5293. --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"))
  5294. end
  5295. local rrot = 0
  5296. coroutine.resume(coroutine.create(function()
  5297. for i = 0, 4 do
  5298. rrot = rrot + 45
  5299. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5300. xa.Anchored = true
  5301. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5302. xb.Anchored = true
  5303. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5304. xc.Anchored = true
  5305. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5306. xd.Anchored = true
  5307. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5308. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5309. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5310. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5311. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5312. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5313. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5314. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5315. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5316. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5317. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5318. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5319. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5320. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5321. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5322. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5323. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5324. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5325. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5326. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5327. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5328. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5329. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5330. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5331. 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)
  5332. 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)
  5333. 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)
  5334. 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)
  5335. 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))
  5336. 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))
  5337. 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))
  5338. 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))
  5339. game:GetService("Debris"):AddItem(xa, 5)
  5340. game:GetService("Debris"):AddItem(xb, 5)
  5341. game:GetService("Debris"):AddItem(xc, 5)
  5342. game:GetService("Debris"):AddItem(xd, 5)
  5343. coroutine.resume(coroutine.create(function()
  5344. for i = 0, 19 do
  5345. swait()
  5346. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5347. end
  5348. hum.CameraOffset = vt(0,0,0)
  5349. end))
  5350. swait(9)
  5351. end
  5352. end))
  5353. for i = 0,2,0.1 do
  5354. swait()
  5355. 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)
  5356. 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)
  5357. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5358. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5359. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5360. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5361. end
  5362. attack = false
  5363. hum.WalkSpeed = storehumanoidWS
  5364. end
  5365.  
  5366. function EndGROUND()
  5367. attack = true
  5368. hum.WalkSpeed = 0
  5369. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5370. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5371. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5372. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5373. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5374. local keptcolor = MAINRUINCOLOR
  5375. for i = 0,4,0.1 do
  5376. swait()
  5377. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5378. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5379. --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"))
  5380. 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)
  5381. 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)
  5382. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5383. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5384. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5385. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5386. end
  5387. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5388. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5389. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5390. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5391. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5392. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5393. coroutine.resume(coroutine.create(function()
  5394. local shval = 10
  5395. for i = 0, 99 do
  5396. swait()
  5397. shval = shval - 0.1
  5398. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5399. end
  5400. hum.CameraOffset = vt(0,0,0)
  5401. end))
  5402. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5403. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5404. for i = 0, 24 do
  5405. --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"))
  5406. end
  5407. local rrot = 0
  5408. local xam = 1
  5409. coroutine.resume(coroutine.create(function()
  5410. for i = 0, 14 do
  5411. --swait()
  5412. rrot = rrot + 40*xam
  5413. xam = xam + 0.25
  5414. local bonus = xam
  5415. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5416. xa.Anchored = true
  5417. xa.Color = Color3.new(0,0,0)
  5418. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5419. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5420. local xc = 0
  5421. coroutine.resume(coroutine.create(function()
  5422. for i = 0, 99 do
  5423. swait()
  5424. xc = xc + 0.01
  5425. xa.Color = Color3.new(xc,0,0)
  5426. end
  5427. xa.Transparency = 1
  5428. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5429. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5430. for i = 0, 9 do
  5431. --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"))
  5432. end
  5433. 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)
  5434. 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)
  5435. 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))
  5436. game:GetService("Debris"):AddItem(xa, 5)
  5437. coroutine.resume(coroutine.create(function()
  5438. for i = 0, 19 do
  5439. swait()
  5440. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5441. end
  5442. hum.CameraOffset = vt(0,0,0)
  5443. end))
  5444. end))
  5445. end
  5446. end))
  5447. for i = 0,2,0.1 do
  5448. swait()
  5449. 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)
  5450. 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)
  5451. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5452. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5453. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5454. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5455. end
  5456. attack = false
  5457. hum.WalkSpeed = storehumanoidWS
  5458. end
  5459.  
  5460. function HeavenlyDisk()
  5461. attack = true
  5462. hum.WalkSpeed = 2
  5463. local keptcolor = MAINRUINCOLOR
  5464. local radm = math.random(1,3)
  5465. if radm == 1 then
  5466. --bosschatfunc("Don't make this too easy for you.",MAINRUINCOLOR.Color,1)
  5467. elseif radm == 2 then
  5468. --bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5469. elseif radm == 3 then
  5470. --bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5471. end
  5472. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5473. CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
  5474. for i = 0, 14 do
  5475. --
  5476. end
  5477. for i = 0,2,0.1 do
  5478. swait()
  5479. 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)
  5480. 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)
  5481. 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)
  5482. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5483. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5484. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5485. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5486. end
  5487. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5488. for i = 0,1,0.6 do
  5489. swait()
  5490. 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)
  5491. --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"))
  5492. 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)
  5493. 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)
  5494. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5495. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5496. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5497. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5498. end
  5499. for i = 0,1,0.6 do
  5500. swait()
  5501. 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)
  5502. --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"))
  5503. 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)
  5504. 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)
  5505. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  5506. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5507. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5508. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5509. end
  5510. for i = 0,1,0.6 do
  5511. swait()
  5512. 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)
  5513. --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"))
  5514. 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)
  5515. 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)
  5516. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  5517. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5518. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5519. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5520. end
  5521. for i = 0,1,0.6 do
  5522. swait()
  5523. 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)
  5524. --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"))
  5525. 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)
  5526. 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)
  5527. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  5528. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5529. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5530. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5531. end
  5532. local rot = 15
  5533. for i = 0, 2 do
  5534. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  5535. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5536. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5537. CreateMesh(dis,"Sphere",10,1,10)
  5538. local at1 = Instance.new("Attachment",dis)
  5539. at1.Position = vt(-5,0,0)
  5540. local at2 = Instance.new("Attachment",dis)
  5541. at2.Position = vt(5,0,0)
  5542. local trl = Instance.new('Trail',wed)
  5543. trl.Attachment0 = at1
  5544. trl.Attachment1 = at2
  5545. trl.Texture = "rbxassetid://1049219073"
  5546. trl.LightEmission = 1
  5547. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5548. trl.Color = ColorSequence.new(dis.Color)
  5549. trl.Lifetime = 0.6
  5550. local a = Instance.new("Part",workspace)
  5551. a.Name = "Direction"
  5552. a.Anchored = true
  5553. a.BrickColor = bc("Bright red")
  5554. a.Material = "Neon"
  5555. a.Transparency = 1
  5556. a.CanCollide = false
  5557. local ray = Ray.new(
  5558. dis.CFrame.p, -- origin
  5559. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5560. )
  5561. local ignore = dis
  5562. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5563. a.BottomSurface = 10
  5564. a.TopSurface = 10
  5565. local distance = (dis.CFrame.p - position).magnitude
  5566. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5567. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5568. dis.CFrame = a.CFrame
  5569. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5570. a:Destroy()
  5571. local bv = Instance.new("BodyVelocity")
  5572. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5573. bv.velocity = dis.CFrame.lookVector*250
  5574. bv.Parent = dis
  5575. game:GetService("Debris"):AddItem(dis, 5)
  5576. local hitted = false
  5577. coroutine.resume(coroutine.create(function()
  5578. dis.Touched:connect(function(hit)
  5579. if hitted == false and hit.Parent ~= char then
  5580. hitted = true
  5581. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5582. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  5583. --sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5584. --sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5585. --sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  5586. coroutine.resume(coroutine.create(function()
  5587. for i = 0, 9 do
  5588. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5589. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5590. local at1 = Instance.new("Attachment",disr)
  5591. at1.Position = vt(-2,0,0)
  5592. local at2 = Instance.new("Attachment",disr)
  5593. at2.Position = vt(2,0,0)
  5594. local trl = Instance.new('Trail',disr)
  5595. trl.Attachment0 = at1
  5596. trl.FaceCamera = true
  5597. trl.Attachment1 = at2
  5598. trl.Texture = "rbxassetid://2342682798"
  5599. trl.LightEmission = 1
  5600. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5601. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  5602. trl.Lifetime = 0.5
  5603. local bv = Instance.new("BodyVelocity")
  5604. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5605. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5606. bv.Parent = disr
  5607. local val = 0
  5608. coroutine.resume(coroutine.create(function()
  5609. swait(30)
  5610. for i = 0, 9 do
  5611. swait()
  5612. val = val + 0.1
  5613. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5614. end
  5615. game:GetService("Debris"):AddItem(disr, 3)
  5616. end))
  5617. end
  5618. local eff = Instance.new("ParticleEmitter",dis)
  5619. eff.Texture = "rbxassetid://2273224484"
  5620. eff.LightEmission = 1
  5621. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  5622. eff.Rate = 500000
  5623. eff.Lifetime = NumberRange.new(0.5,2)
  5624. 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)})
  5625. 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)})
  5626. eff.Speed = NumberRange.new(20,250)
  5627. eff.Drag = 5
  5628. eff.Rotation = NumberRange.new(-500,500)
  5629. eff.VelocitySpread = 9000
  5630. eff.RotSpeed = NumberRange.new(-50,50)
  5631. wait(0.25)
  5632. eff.Enabled = false
  5633. end))
  5634. for i = 0, 9 do
  5635. --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"))
  5636. end
  5637. for i = 0, 19 do
  5638. --
  5639. end
  5640. coroutine.resume(coroutine.create(function()
  5641. for i = 0, 19 do
  5642. swait()
  5643. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5644. end
  5645. hum.CameraOffset = vt(0,0,0)
  5646. end))
  5647. dis.Anchored = true
  5648. dis.Transparency = 1
  5649. wait(8)
  5650. dis:Destroy()
  5651. end
  5652. end)
  5653. end))
  5654. rot = rot - 15
  5655. end
  5656. for i = 0,2,0.1 do
  5657. swait()
  5658. 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)
  5659. 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)
  5660. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5661. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  5662. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5663. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5664. end
  5665. attack = false
  5666. hum.WalkSpeed = storehumanoidWS
  5667. end
  5668.  
  5669. function RapidBurst()
  5670. attack = true
  5671. hum.WalkSpeed = 0
  5672. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  5673. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  5674. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  5675. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  5676. local keptcolor = MAINRUINCOLOR
  5677. for i = 0,8,0.1 do
  5678. swait()
  5679. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5680. --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())
  5681. 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)
  5682. 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)
  5683. 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)
  5684. 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)
  5685. 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)
  5686. 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)
  5687. 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)
  5688. end
  5689. for i = 0, 99 do
  5690. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5691. 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)))
  5692. local at1 = Instance.new("Attachment",dis)
  5693. at1.Position = vt(-25000,0,0)
  5694. local at2 = Instance.new("Attachment",dis)
  5695. at2.Position = vt(25000,0,0)
  5696. local trl = Instance.new('Trail',dis)
  5697. trl.Attachment0 = at1
  5698. trl.FaceCamera = true
  5699. trl.Attachment1 = at2
  5700. trl.Texture = "rbxassetid://1049219073"
  5701. trl.LightEmission = 1
  5702. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5703. trl.Color = ColorSequence.new(BrickColor.random().Color)
  5704. trl.Lifetime = 5
  5705. local bv = Instance.new("BodyVelocity")
  5706. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5707. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5708. bv.Parent = dis
  5709. game:GetService("Debris"):AddItem(dis, 5)
  5710. end
  5711. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  5712. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  5713. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  5714. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  5715. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  5716. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  5717. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  5718. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  5719. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  5720. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  5721. hum.CameraOffset = vt(0,0,0)
  5722. for i = 0, 24 do
  5723. --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())
  5724. end
  5725. local distam = 0
  5726. coroutine.resume(coroutine.create(function()
  5727. for i = 0, 99 do
  5728. wait()
  5729. distam = distam + 1
  5730. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5731. xa.Anchored = true
  5732. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  5733. game:GetService("Debris"):AddItem(xa, 5)
  5734. for i = 0, 4 do
  5735. --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())
  5736. end
  5737. coroutine.resume(coroutine.create(function()
  5738. local eff = Instance.new("ParticleEmitter",xa)
  5739. eff.Texture = "rbxassetid://2273224484"
  5740. eff.LightEmission = 1
  5741. eff.Color = ColorSequence.new(BrickColor.random().Color)
  5742. eff.Rate = 500000
  5743. eff.Lifetime = NumberRange.new(1,3)
  5744. 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)})
  5745. 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)})
  5746. eff.Speed = NumberRange.new(50,500)
  5747. eff.Drag = 5
  5748. eff.Rotation = NumberRange.new(-500,500)
  5749. eff.VelocitySpread = 9000
  5750. eff.RotSpeed = NumberRange.new(-50,50)
  5751. wait(0.25)
  5752. eff.Enabled = false
  5753. end))
  5754. coroutine.resume(coroutine.create(function()
  5755. for i = 0, 19 do
  5756. swait()
  5757. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  5758. end
  5759. hum.CameraOffset = vt(0,0,0)
  5760. end))
  5761. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  5762. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  5763. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  5764. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  5765. end
  5766. end))
  5767. attack = false
  5768. hum.WalkSpeed = storehumanoidWS
  5769. end
  5770.  
  5771.  
  5772. function FallenOrbs()
  5773. attack = true
  5774. hum.WalkSpeed = 2
  5775. local keptcolor = MAINRUINCOLOR
  5776. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
  5777. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
  5778. local radm = math.random(1,3)
  5779. if radm == 1 then
  5780. bosschatfunc("This won't be easy for you.",MAINRUINCOLOR.Color,1)
  5781. elseif radm == 2 then
  5782. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  5783. elseif radm == 3 then
  5784. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  5785. end
  5786. coroutine.resume(coroutine.create(function()
  5787. for i = 0, 29 do
  5788. swait(2)
  5789. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  5790. dis.Anchored = true
  5791. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  5792. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  5793. CreateMesh(dis,"Sphere",2,2,2)
  5794. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  5795. --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"))
  5796. coroutine.resume(coroutine.create(function()
  5797. wait(0.5)
  5798. dis.Anchored = false
  5799. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  5800. local at1 = Instance.new("Attachment",dis)
  5801. at1.Position = vt(-1,0,0)
  5802. local at2 = Instance.new("Attachment",dis)
  5803. at2.Position = vt(1,0,0)
  5804. local trl = Instance.new('Trail',dis)
  5805. trl.Attachment0 = at1
  5806. trl.FaceCamera = true
  5807. trl.Attachment1 = at2
  5808. trl.Texture = "rbxassetid://1049219073"
  5809. trl.LightEmission = 1
  5810. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5811. trl.Color = ColorSequence.new(dis.Color)
  5812. trl.Lifetime = 0.6
  5813. local a = Instance.new("Part",workspace)
  5814. a.Name = "Direction"
  5815. a.Anchored = true
  5816. a.BrickColor = bc("Bright red")
  5817. a.Material = "Neon"
  5818. a.Transparency = 1
  5819. a.CanCollide = false
  5820. local ray = Ray.new(
  5821. dis.CFrame.p, -- origin
  5822. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5823. )
  5824. local ignore = dis
  5825. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5826. a.BottomSurface = 10
  5827. a.TopSurface = 10
  5828. local distance = (dis.CFrame.p - position).magnitude
  5829. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5830. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5831. dis.CFrame = a.CFrame
  5832. a:Destroy()
  5833. local bv = Instance.new("BodyVelocity")
  5834. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5835. bv.velocity = dis.CFrame.lookVector*500
  5836. bv.Parent = dis
  5837. game:GetService("Debris"):AddItem(dis, 5)
  5838. local hitted = false
  5839. coroutine.resume(coroutine.create(function()
  5840. dis.Touched:connect(function(hit)
  5841. if hitted == false and hit.Parent ~= char then
  5842. hitted = true
  5843. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  5844. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  5845. --sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  5846. --sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  5847. coroutine.resume(coroutine.create(function()
  5848. for i = 0, 4 do
  5849. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5850. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5851. local at1 = Instance.new("Attachment",disr)
  5852. at1.Position = vt(-10,0,0)
  5853. local at2 = Instance.new("Attachment",disr)
  5854. at2.Position = vt(10,0,0)
  5855. local trl = Instance.new('Trail',disr)
  5856. trl.Attachment0 = at1
  5857. trl.FaceCamera = true
  5858. trl.Attachment1 = at2
  5859. trl.Texture = "rbxassetid://2342682798"
  5860. trl.LightEmission = 1
  5861. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5862. trl.Color = ColorSequence.new(disr.Color)
  5863. trl.Lifetime = 0.5
  5864. local bv = Instance.new("BodyVelocity")
  5865. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5866. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  5867. bv.Parent = disr
  5868. local val = 0
  5869. coroutine.resume(coroutine.create(function()
  5870. swait(30)
  5871. for i = 0, 9 do
  5872. swait()
  5873. val = val + 0.1
  5874. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5875. end
  5876. game:GetService("Debris"):AddItem(disr, 3)
  5877. end))
  5878. end
  5879. local eff = Instance.new("ParticleEmitter",dis)
  5880. eff.Texture = "rbxassetid://2273224484"
  5881. eff.LightEmission = 1
  5882. eff.Color = ColorSequence.new(dis.Color)
  5883. eff.Rate = 500000
  5884. eff.Lifetime = NumberRange.new(0.5,2)
  5885. 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)})
  5886. 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)})
  5887. eff.Speed = NumberRange.new(20,250)
  5888. eff.Drag = 5
  5889. eff.Rotation = NumberRange.new(-500,500)
  5890. eff.VelocitySpread = 9000
  5891. eff.RotSpeed = NumberRange.new(-50,50)
  5892. wait(0.5)
  5893. eff.Enabled = false
  5894. end))
  5895. for i = 0, 4 do
  5896. --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"))
  5897. end
  5898. coroutine.resume(coroutine.create(function()
  5899. for i = 0, 19 do
  5900. swait()
  5901. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5902. end
  5903. hum.CameraOffset = vt(0,0,0)
  5904. end))
  5905. dis.Anchored = true
  5906. dis.Transparency = 1
  5907. wait(8)
  5908. dis:Destroy()
  5909. end
  5910. end)
  5911. end))
  5912. end))
  5913. end
  5914. end))
  5915. for i = 0,9,0.1 do
  5916. swait()
  5917. 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)
  5918. 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)
  5919. 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)
  5920. 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)
  5921. 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)
  5922. 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)
  5923. 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)
  5924. end
  5925. attack = false
  5926. hum.WalkSpeed = storehumanoidWS
  5927. end
  5928.  
  5929. function EquinoxOrbs()
  5930. hum.WalkSpeed = 0
  5931. attack = true
  5932. for i = 0,1,0.1 do
  5933. swait()
  5934. 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)
  5935. 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)
  5936. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  5937. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  5938. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  5939. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  5940. end
  5941. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  5942. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5943. for i = 0, 24 do
  5944. --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"))
  5945. end
  5946. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  5947. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  5948. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  5949. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  5950. for i = 0,4,0.1 do
  5951. swait()
  5952. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  5953. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5954. CreateMesh(dis,"Sphere",1,1,1)
  5955. dis.Anchored = true
  5956. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5957. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  5958. CreateMesh(dis2,"Sphere",1,1,1)
  5959. dis2.Anchored = true
  5960. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  5961. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5962. --sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  5963. coroutine.resume(coroutine.create(function()
  5964. swait(60)
  5965. dis.Transparency = 1
  5966. dis2.Transparency = 1
  5967. coroutine.resume(coroutine.create(function()
  5968. for i = 0, 19 do
  5969. swait()
  5970. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5971. end
  5972. hum.CameraOffset = vt(0,0,0)
  5973. end))
  5974. coroutine.resume(coroutine.create(function()
  5975. local eff = Instance.new("ParticleEmitter",dis)
  5976. eff.Texture = "rbxassetid://2273224484"
  5977. eff.LightEmission = 1
  5978. eff.Color = ColorSequence.new(dis.Color)
  5979. eff.Rate = 500000
  5980. eff.Lifetime = NumberRange.new(0.5,2)
  5981. 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)})
  5982. 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)})
  5983. eff.Speed = NumberRange.new(50,450)
  5984. eff.Drag = 5
  5985. eff.Rotation = NumberRange.new(-500,500)
  5986. eff.VelocitySpread = 9000
  5987. eff.RotSpeed = NumberRange.new(-50,50)
  5988. local eff2 = eff:Clone()
  5989. eff2.Parent = dis2
  5990. eff2.LightEmission = 0
  5991. eff2.Color = ColorSequence.new(dis2.Color)
  5992. wait(0.25)
  5993. eff.Enabled = false
  5994. eff2.Enabled = false
  5995. end))
  5996. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  5997. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  5998. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  5999. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6000. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6001. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6002. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6003. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6004. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6005. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6006. end))
  6007. game:GetService("Debris"):AddItem(dis, 5)
  6008. game:GetService("Debris"):AddItem(dis2, 5)
  6009. 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)
  6010. 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)
  6011. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6012. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6013. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6014. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6015. end
  6016. attack = false
  6017. hum.WalkSpeed = storehumanoidWS
  6018. end
  6019. function FallenDEMISE()
  6020. attack = true
  6021. hum.WalkSpeed = 0
  6022. local keptcolor = MAINRUINCOLOR
  6023. --bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6024. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6025. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6026. for i = 0, 15, 0.1 do
  6027. swait()
  6028. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6029. 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)))
  6030. local at1 = Instance.new("Attachment",dis)
  6031. at1.Position = vt(-25000,0,0)
  6032. local at2 = Instance.new("Attachment",dis)
  6033. at2.Position = vt(25000,0,0)
  6034. local trl = Instance.new('Trail',dis)
  6035. trl.Attachment0 = at1
  6036. trl.FaceCamera = true
  6037. trl.Attachment1 = at2
  6038. trl.Texture = "rbxassetid://1049219073"
  6039. trl.LightEmission = 1
  6040. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6041. trl.Color = ColorSequence.new(dis.Color)
  6042. trl.Lifetime = 5
  6043. local bv = Instance.new("BodyVelocity")
  6044. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6045. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6046. bv.Parent = dis
  6047. game:GetService("Debris"):AddItem(dis, 1)
  6048. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6049. --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"))
  6050. --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"))
  6051. 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)
  6052. 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)
  6053. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6054. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6055. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6056. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6057. end
  6058. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6059. for i = 0, 30, 0.1 do
  6060. swait()
  6061. coroutine.resume(coroutine.create(function()
  6062. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6063. if v:FindFirstChild('Head') then
  6064. dmg(v)
  6065. end
  6066. end
  6067. end))
  6068. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6069. 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)))
  6070. local at1 = Instance.new("Attachment",dis)
  6071. at1.Position = vt(-50000,0,0)
  6072. local at2 = Instance.new("Attachment",dis)
  6073. at2.Position = vt(50000,0,0)
  6074. local trl = Instance.new('Trail',dis)
  6075. trl.Attachment0 = at1
  6076. trl.FaceCamera = true
  6077. trl.Attachment1 = at2
  6078. trl.Texture = "rbxassetid://1049219073"
  6079. trl.LightEmission = 1
  6080. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6081. trl.Color = ColorSequence.new(dis.Color)
  6082. trl.Lifetime = 10
  6083. local bv = Instance.new("BodyVelocity")
  6084. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6085. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6086. bv.Parent = dis
  6087. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6088. --sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6089. --sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6090. --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"))
  6091. --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"))
  6092. --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"))
  6093. --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"))
  6094. for i = 0, 2 do
  6095. --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)
  6096. end
  6097. 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)
  6098. 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)
  6099. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6100. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6101. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6102. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6103. end
  6104. attack = false
  6105. hum.WalkSpeed = storehumanoidWS
  6106. end
  6107. -------------------------------------
  6108.  
  6109. Humanoid.Animator.Parent = nil
  6110.  
  6111. -------------------------------------
  6112.  
  6113. local attacktype = 1
  6114. mouse.Button1Down:connect(function()
  6115. if attack == false and attacktype == 1 then
  6116. attacktype = 2
  6117. attackone()
  6118. elseif attack == false and attacktype == 2 then
  6119. attacktype = 3
  6120. attacktwo()
  6121. elseif attack == false and attacktype == 3 then
  6122. attacktype = 1
  6123. attackthree()
  6124. elseif attack == false and attacktype == 4 then
  6125. attacktype = 1
  6126. --attackfour()
  6127. end
  6128. end)
  6129. mouse.KeyDown:connect(function(k)
  6130. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  6131. --normalmog() ---Disabled due to crashing... only in VSB
  6132. ModeOfGlitch = 1
  6133. storehumanoidWS = 16
  6134. hum.WalkSpeed = 16
  6135. rainbowmode = false
  6136. chaosmode = false
  6137. newTheme("rbxassetid://614032233",48.6,1,1.25)
  6138. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  6139. MAINRUINCOLOR = BrickColor.new("Really red")
  6140. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  6141. end
  6142. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  6143. ModeOfGlitch = 2
  6144. storehumanoidWS = 16
  6145. hum.WalkSpeed = 16
  6146. rainbowmode = false
  6147. chaosmode = false
  6148. RecolorTextAndRename("ぷりty",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  6149. newTheme("rbxassetid://1539245059",0,1,1.25)
  6150. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  6151. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6152. end
  6153. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  6154. ModeOfGlitch = 3
  6155. storehumanoidWS = 16
  6156. hum.WalkSpeed = 16
  6157. rainbowmode = false
  6158. chaosmode = false
  6159. RecolorTextAndRename("こっるpちおn",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  6160. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  6161. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6162. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6163. end
  6164. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  6165. ModeOfGlitch = 4
  6166. storehumanoidWS = 16
  6167. hum.WalkSpeed = 16
  6168. rainbowmode = false
  6169. chaosmode = true
  6170. RecolorTextAndRename("ちゃおs",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  6171. newTheme("rbxassetid://1369263130",0,1.01,1.25)
  6172. MAINRUINCOLOR = BrickColor.new("Black")
  6173. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6174. end
  6175. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  6176. ModeOfGlitch = 5
  6177. storehumanoidWS = 16
  6178. hum.WalkSpeed = 16
  6179. rainbowmode = false
  6180. chaosmode = false
  6181. RecolorTextAndRename("ぢゔぃにty",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  6182. newTheme("rbxassetid://661079869",0,1.02,1.25)
  6183. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  6184. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6185. end
  6186. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  6187. ModeOfGlitch = 6
  6188. storehumanoidWS = 100
  6189. hum.WalkSpeed = 100
  6190. rainbowmode = false
  6191. chaosmode = false
  6192. RecolorTextAndRename("えくいのx",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  6193. newTheme("rbxassetid://1347011178",0,1.01,1.25)
  6194. MAINRUINCOLOR = BrickColor.new("White")
  6195. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6196. end
  6197. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  6198. ModeOfGlitch = 8
  6199. storehumanoidWS = 140
  6200. hum.WalkSpeed = 140
  6201. rainbowmode = false
  6202. chaosmode = false
  6203. RecolorTextAndRename("でsちny",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  6204. newTheme("rbxassetid://1495032271",0,1.01,1.25)
  6205. MAINRUINCOLOR = BrickColor.new("Alder")
  6206. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6207. end
  6208. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  6209. ModeOfGlitch = 9
  6210. storehumanoidWS = 150
  6211. hum.WalkSpeed = 150
  6212. rainbowmode = false
  6213. chaosmode = false
  6214. RecolorTextAndRename("いんふぇcてd",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  6215. newTheme("rbxassetid://708334127",0,1.01,1.25)
  6216. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  6217. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6218. end
  6219. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  6220. ModeOfGlitch = 8889
  6221. storehumanoidWS = 180
  6222. hum.WalkSpeed = 180
  6223. rainbowmode = false
  6224. chaosmode = false
  6225. RecolorTextAndRename("かぁみty",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  6226. newTheme("rbxassetid://1359036559",0,1.01,1.25)
  6227. MAINRUINCOLOR = BrickColor.new("Lilac")
  6228. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6229. end
  6230. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  6231. ModeOfGlitch = 55469696922
  6232. storehumanoidWS = 275
  6233. hum.WalkSpeed = 275
  6234. rainbowmode = false
  6235. chaosmode = false
  6236. RecolorTextAndRename("なの",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  6237. newTheme("rbxassetid://582020393",0,1.005,1.25)
  6238. MAINRUINCOLOR = BrickColor.new("Hot pink")
  6239. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6240. end
  6241. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  6242. ModeOfGlitch = 4367677813
  6243. storehumanoidWS = 225
  6244. hum.WalkSpeed = 225
  6245. rainbowmode = false
  6246. chaosmode = false
  6247. RecolorTextAndRename("bりgthねっs",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  6248. newTheme("rbxassetid://363284685",0,1.01,1.25)
  6249. MAINRUINCOLOR = BrickColor.new("Baby blue")
  6250. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6251. end
  6252. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  6253. ModeOfGlitch = 9999999921111
  6254. storehumanoidWS = 300
  6255. hum.WalkSpeed = 300
  6256. rainbowmode = false
  6257. chaosmode = false
  6258. RecolorTextAndRename("おめが",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  6259. newTheme("rbxassetid://643309199",0,1.01,1.25)
  6260. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  6261. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6262. end
  6263. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  6264. ModeOfGlitch = 999999999556
  6265. storehumanoidWS = 500
  6266. hum.WalkSpeed = 500
  6267. rainbowmode = false
  6268. chaosmode = false
  6269. RecolorTextAndRename("cらぜd",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  6270. newTheme("rbxassetid://719008519",0,1.02,1.25)
  6271. MAINRUINCOLOR = BrickColor.new("Navy blue")
  6272. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6273. end
  6274. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  6275. ModeOfGlitch = 1264532489
  6276. storehumanoidWS = 250
  6277. hum.WalkSpeed = 250
  6278. rainbowmode = false
  6279. chaosmode = false
  6280. RecolorTextAndRename("ふぁっぇn",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  6281. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  6282. MAINRUINCOLOR = BrickColor.new("Pastel green")
  6283. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6284. end
  6285. if k == "l" and mutedtog == false then
  6286. mutedtog = true
  6287. kan.Volume = 0
  6288. elseif k == "l" and mutedtog == true then
  6289. mutedtog = false
  6290. kan.Volume = 1.25
  6291. end
  6292. if k == "p" and toggleTag == false then
  6293. toggleTag = true
  6294. modet.TextTransparency = 0
  6295. modet.TextStrokeTransparency = 0
  6296. elseif k == "p" and toggleTag == true then
  6297. toggleTag = false
  6298. modet.TextTransparency = 1
  6299. modet.TextStrokeTransparency = 1
  6300. end
  6301. if k == "z" and attack == false and ModeOfGlitch == 1 then
  6302. ExtinctiveHeartbreak()
  6303. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  6304. HeavenlyDisk()
  6305. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  6306. CorruptionEvent()
  6307. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  6308. RapidBurst()
  6309. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  6310. --DivineLights()
  6311. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  6312. EquinoxOrbs()
  6313. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  6314. FallenOrbs()
  6315. end
  6316. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  6317. FallenDEMISE()
  6318. end
  6319. if k == "x" and attack == false and ModeOfGlitch == 1 then
  6320. EndGROUND()
  6321. end
  6322. end)
  6323.  
  6324. --[[coroutine.resume(coroutine.create(function()
  6325. while true do
  6326. swait(2)
  6327. if chaosmode == true then
  6328. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  6329. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  6330. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  6331. RecolorTextAndRename("ちゃおs",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  6332. for i, v in pairs(mw1:GetChildren()) do
  6333. if v:IsA("Part") then
  6334. v.Transparency = 0.75
  6335. v.BrickColor = BrickColor.random()
  6336. v.Material = "Neon"
  6337. end
  6338. end
  6339. for i, v in pairs(m2:GetChildren()) do
  6340. if v:IsA("Part") then
  6341. v.BrickColor = BrickColor.random()
  6342. v.Material = "Neon"
  6343. end
  6344. end
  6345. end
  6346. end
  6347. end))]]--
  6348. Humanoid.Name = "STARGLITCHER"
  6349. Humanoid.MaxHealth = math.huge
  6350. Humanoid.Health = math.huge
  6351. Instance.new("ForceField",char).Visible = false
  6352.  
  6353. local bguis = Instance.new("BillboardGui",tors)
  6354. bguis.Size = UDim2.new(25, 0, 25, 0)
  6355. local imgca = Instance.new("ImageLabel",bguis)
  6356. imgca.BackgroundTransparency = 1
  6357. imgca.ImageTransparency = 1
  6358. imgca.Size = UDim2.new(1,0,1,0)
  6359. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  6360. imgca.ImageColor3 = Color3.new(0,0,0)
  6361.  
  6362. idleanim=.4
  6363. while true do
  6364. if mutedtog == false then
  6365. kan.Volume = currentVol
  6366. elseif mutedtog == true then
  6367. kan.Volume = 0
  6368. end
  6369. kan.PlaybackSpeed = currentPitch
  6370. kan.Pitch = currentPitch
  6371. kan.SoundId = currentThemePlaying
  6372. kan.Looped = true
  6373. kan.Parent = char
  6374. kan:Resume()
  6375. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  6376. imgca.ImageTransparency = 1
  6377. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  6378. imgca.ImageColor3 = MAINRUINCOLOR.Color
  6379. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  6380. end
  6381. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  6382. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  6383. coroutine.resume(coroutine.create(function()
  6384. if chaosmode == true then
  6385. for i, v in pairs(mw1:GetChildren()) do
  6386. if v:IsA("Part") then
  6387. v.Transparency = 0
  6388. v.BrickColor = BrickColor.random()
  6389. v.Material = "Neon"
  6390. end
  6391. end
  6392. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  6393. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  6394. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  6395. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  6396. end
  6397. end))
  6398. if chaosmode == false then
  6399. modet.Position = UDim2.new(0,0,0,0)
  6400. modet.Rotation = -5 * math.cos(sine / 32)
  6401. techc.Rotation = techc.Rotation + 1
  6402. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  6403. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  6404. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  6405. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  6406. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  6407. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  6408. else
  6409. techc.Rotation = techc.Rotation + 1
  6410. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  6411. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  6412. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  6413. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  6414. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  6415. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  6416. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  6417. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  6418. end
  6419. CameraManager()
  6420. swait()
  6421. 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)
  6422. 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)
  6423. 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)
  6424. 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)
  6425. 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)
  6426. 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)
  6427. 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)
  6428. 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)
  6429. 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)
  6430. 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)
  6431. 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)
  6432. 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)
  6433. sine = sine + change
  6434. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6435. local velderp=RootPart.Velocity.y
  6436. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6437. if equipped==true or equipped==false then
  6438. if attack==false then
  6439. idle=idle+1
  6440. else
  6441. idle=0
  6442. end
  6443. if idle>=500 then
  6444. if attack==false then
  6445. --Sheath()
  6446. end
  6447. end
  6448. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6449. Anim="Jump"
  6450. if attack==false then
  6451. 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)
  6452. 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)
  6453. 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)
  6454. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6455. 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)
  6456. 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)
  6457. end
  6458. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6459. Anim="Fall"
  6460. if attack==false then
  6461. 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)
  6462. 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)
  6463. 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)
  6464. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  6465. 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)
  6466. 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)
  6467. end
  6468. elseif torvel<1 and hitfloor~=nil then
  6469. Anim="Idle"
  6470. if attack==false then
  6471. if ModeOfGlitch == 1 then
  6472. local snap = math.random(1,10)
  6473. if snap == 1 then
  6474. 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)
  6475. end
  6476. 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)
  6477. 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)
  6478. 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)
  6479. 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)
  6480. 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)
  6481. 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)
  6482. elseif ModeOfGlitch == 2 then
  6483. 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)
  6484. 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)
  6485. 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)
  6486. 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)
  6487. 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)
  6488. 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)
  6489. elseif ModeOfGlitch == 3 then
  6490. local snap = math.random(1,32)
  6491. if snap == 1 then
  6492. 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)
  6493. end
  6494. 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)
  6495. 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)
  6496. 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)
  6497. 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)
  6498. 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)
  6499. 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)
  6500. elseif ModeOfGlitch == 4 then
  6501. local snap = math.random(1,5)
  6502. if snap == 1 then
  6503. 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)
  6504. 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)
  6505. 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)
  6506. end
  6507. 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)
  6508. 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)
  6509. 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)
  6510. 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)
  6511. 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)
  6512. 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)
  6513. elseif ModeOfGlitch == 5 then
  6514. 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)
  6515. 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)
  6516. 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)
  6517. 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)
  6518. 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)
  6519. 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)
  6520. elseif ModeOfGlitch == 6 then
  6521. 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)
  6522. 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)
  6523. 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)
  6524. 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)
  6525. 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)
  6526. 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)
  6527. elseif ModeOfGlitch == 8 then
  6528. 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)
  6529. 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)
  6530. 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)
  6531. 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)
  6532. 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)
  6533. 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)
  6534. elseif ModeOfGlitch == 9 then
  6535. 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)
  6536. 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)
  6537. 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)
  6538. 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)
  6539. 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)
  6540. 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)
  6541. elseif ModeOfGlitch == 8889 then
  6542. 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)
  6543. 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)
  6544. 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)
  6545. 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)
  6546. 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)
  6547. 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)
  6548. elseif ModeOfGlitch == 1264532489 then
  6549. 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)
  6550. 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)
  6551. 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)
  6552. 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)
  6553. 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)
  6554. 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)
  6555. elseif ModeOfGlitch == 9999999921111 then
  6556. 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)
  6557. 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)
  6558. 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)
  6559. 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)
  6560. 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)
  6561. 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)
  6562. elseif ModeOfGlitch == 4367677813 then
  6563. 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)
  6564. 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)
  6565. 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)
  6566. 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)
  6567. 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)
  6568. 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)
  6569. elseif ModeOfGlitch == 55469696922 then
  6570. 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)
  6571. 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)
  6572. 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)
  6573. 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)
  6574. 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)
  6575. 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)
  6576. elseif ModeOfGlitch == 999999999556 then
  6577. 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)
  6578. 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)
  6579. 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)
  6580. 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)
  6581. 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)
  6582. 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)
  6583. end
  6584. end
  6585. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  6586. Anim="Walk"
  6587. if attack==false then
  6588. 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)
  6589. 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)
  6590. 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)
  6591. 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)
  6592. 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)
  6593. 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)
  6594. end
  6595. elseif torvel>=22 and hitfloor~=nil then
  6596. Anim="Run"
  6597. if attack==false then
  6598. 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
  6599. 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)
  6600. 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)
  6601. 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)
  6602. 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)
  6603. 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)
  6604. 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)
  6605. if ModeOfGlitch == 9 then
  6606. --
  6607. end
  6608. 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
  6609. 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)
  6610. 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)
  6611. 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)
  6612. 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)
  6613. 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)
  6614. 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)
  6615. end
  6616. end
  6617. end
  6618. end
  6619. end
Advertisement
Add Comment
Please, Sign In to add comment