Advertisement
Otsakuseed

E test

May 15th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 335.04 KB | None | 0 0
  1. --TODO: add comments or something idk
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player = owner
  4. local Mouse,mouse,UserInputService,ContextActionService
  5. do
  6. script.Parent = Player.Character
  7. local CAS = {Actions={}}
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10. Event.Parent = Player.Character
  11. local fakeEvent = function()
  12. local t = {_fakeEvent=true}
  13. t.Connect = function(self,f)self.Function=f end
  14. t.connect = t.Connect
  15. return t
  16. end
  17. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  18. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  19. function CAS:BindAction(name,fun,touch,...)
  20. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  21. end
  22. function CAS:UnbindAction(name)
  23. CAS.Actions[name] = nil
  24. end
  25. local function te(self,ev,...)
  26. local t = m[ev]
  27. if t and t._fakeEvent and t.Function then
  28. t.Function(...)
  29. end
  30. end
  31. m.TrigEvent = te
  32. UIS.TrigEvent = te
  33. Event.OnServerEvent:Connect(function(plr,io)
  34. if plr~=Player then return end
  35. if io.isMouse then
  36. m.Target = io.Target
  37. m.Hit = io.Hit
  38. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  39. if io.UserInputState == Enum.UserInputState.Begin then
  40. m:TrigEvent("Button1Down")
  41. else
  42. m:TrigEvent("Button1Up")
  43. end
  44. else
  45. for n,t in pairs(CAS.Actions) do
  46. for _,k in pairs(t.Keys) do
  47. if k==io.KeyCode then
  48. t.Function(t.Name,io.UserInputState,io)
  49. end
  50. end
  51. end
  52. if io.UserInputState == Enum.UserInputState.Begin then
  53. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  54. UIS:TrigEvent("InputBegan",io,false)
  55. else
  56. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent("InputEnded",io,false)
  58. end
  59. end
  60. end)
  61. NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63.  
  64. local Char = Player.Character
  65. local Event = Char:WaitForChild("UserInput_Event")
  66.  
  67. local UIS = game:GetService("UserInputService")
  68.  
  69. local input = function(io,a)
  70. if a then return end
  71. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  72. Event:FireServer(io)
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local Changed = false
  77. local Mouse = Player:GetMouse()
  78. local h,t = Mouse.Hit,Mouse.Target
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  82. h,t=Mouse.Hit,Mouse.Target
  83. end
  84. end
  85. ]==],Player.Character)
  86. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  87. end
  88.  
  89.  
  90. wait(0.5)
  91.  
  92. warn([[SG AWAKEN Loaded.
  93. The super switcher.
  94. Velnorum is one of the first wielders.
  95.  
  96. Created, Reworked by NoobyGames12 and converted by Helkern
  97. ]])
  98.  
  99.  
  100. ------------- ORIGINAL WIELDER OC: Velnorum
  101. print([[Icons:
  102. ! = New
  103. ? = Spoilers
  104. * = Exclusivity
  105. C = Changes
  106.  
  107. ]])
  108. warn([[V 4.1 Update Log:
  109. !C? - Mostly about 7-9 main modes added.
  110. ! - Non-canon [N] modes are added from few modes:
  111. > Mayhem: NANO
  112. > Purity: BRIGHTNESS
  113. > Chaos: CRAZED
  114. > Divinity: FALLEN
  115. > Destiny: OMEGA
  116. ! - Added back CALAMITY and INFESTATION.
  117. C - Two main click attacks changed.
  118. !C - Moves are added back, with severe change and difference.
  119. C - Some modes got renamed because fat filter
  120. C - Toned down the effects to be compatible with fe without strong lag.]])
  121. --- its obs smooth af do not touch
  122. ---- Sources and functions might be taken from others
  123. if game.PlaceId == 843468296 then
  124. error("This script has been banned. You cannot use it here. Please use Place 2.")
  125. end
  126. plr = owner
  127. char = plr.Character
  128. hum = char.Humanoid
  129. local cam = game.Workspace.CurrentCamera
  130. Camera = cam
  131. local CamInterrupt = false
  132. local TwoD = false
  133. local TargetInfo = {nil, nil}
  134. cam.CameraType = "Custom"
  135. t = char.Torso
  136. h = char.Head
  137. ra = char["Right Arm"]
  138. la = char["Left Arm"]
  139. rl = char["Right Leg"]
  140. ll = char["Left Leg"]
  141. tors = char.Torso
  142. lleg = char["Left Leg"]
  143. root = char.HumanoidRootPart
  144. hed = char.Head
  145. rleg = char["Right Leg"]
  146. rarm = char["Right Arm"]
  147. larm = char["Left Arm"]
  148. radian = math.rad
  149. random = math.random
  150. Vec3 = Vector3.new
  151. Inst = Instance.new
  152. cFrame = CFrame.new
  153. Euler = CFrame.fromEulerAnglesXYZ
  154. vt = Vector3.new
  155. bc = BrickColor.new
  156. br = BrickColor.random
  157. it = Instance.new
  158. cf = CFrame.new
  159.  
  160. local Booleans = {
  161. CamFollow = true,
  162. GyroUse = true
  163. }
  164.  
  165. function lerp(object, newCFrame, alpha)
  166. return object:lerp(newCFrame, alpha)
  167. end
  168.  
  169. local Directer = Inst("BodyGyro", root)
  170. Directer.MaxTorque = Vec3(0, 0, 0)
  171. Directer.P = 600000
  172. local CPart = Inst("Part")
  173. CPart.Anchored = true
  174. CPart.CanCollide = false
  175. CPart.Locked = true
  176. CPart.Transparency = 1
  177.  
  178. local rainbowmode = false
  179. local chaosmode = false
  180.  
  181. local kan = Instance.new("Sound",char)
  182. kan.Volume = 1.25
  183. kan.TimePosition = 0
  184. kan.PlaybackSpeed = 1
  185. kan.Pitch = 1
  186. kan.SoundId = "rbxassetid://614032233"
  187. kan.Name = "wrecked"
  188. kan.Looped = true
  189. kan:Play()
  190.  
  191. local currentThemePlaying = kan.SoundId
  192. local currentPitch = kan.Pitch
  193. local currentVol = kan.Volume
  194. function newTheme(ID,timepos,pitch,vol)
  195. local kanz = kan
  196. --kanz:Stop()
  197. kanz.Volume = vol
  198. --kanz.TimePosition = timepos
  199. kanz.PlaybackSpeed = pitch
  200. kanz.Pitch = pitch
  201. kanz.SoundId = ID
  202. kanz.Name = "wrecked"
  203. kanz.Looped = true
  204. currentThemePlaying = kanz.SoundId
  205. currentVol = kanz.Volume
  206. currentPitch = kanz.Pitch
  207. --kanz:Play()
  208. --coroutine.resume(coroutine.create(function()
  209. --wait(0.05)
  210. --end))
  211. end
  212.  
  213.  
  214. function newThemeCust(ID,timepos,pitch,vol)
  215. local kanz = kan
  216. kanz:Stop()
  217. kanz.Volume = vol
  218. kanz.TimePosition = timepos
  219. kanz.PlaybackSpeed = pitch
  220. kanz.Pitch = pitch
  221. kanz.SoundId = ID
  222. kanz.Name = "wrecked"
  223. kanz.Looped = true
  224. currentThemePlaying = kanz.SoundId
  225. currentVol = kanz.Volume
  226. currentPitch = kanz.Pitch
  227. kanz:Play()
  228. coroutine.resume(coroutine.create(function()
  229. wait(0.05)
  230. end))
  231. end
  232.  
  233. local mutedtog = false
  234.  
  235. function CameraEnshaking(Length,Intensity)
  236. coroutine.resume(coroutine.create(function()
  237. local intensity = 1*Intensity
  238. local rotM = 0.01*Intensity
  239. for i = 0, Length, 0.1 do
  240. swait()
  241. intensity = intensity - 0.05*Intensity/Length
  242. rotM = rotM - 0.0005*Intensity/Length
  243. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  244. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  245. end
  246. Humanoid.CameraOffset = Vec3(0, 0, 0)
  247. end))
  248. end
  249. CamShake=function(Part,Distan,Power,Times)
  250. local de=Part.Position
  251. for i,v in pairs(workspace:children()) do
  252. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  253. for _,c in pairs(v:children()) do
  254. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  255. local Noob=v.Humanoid
  256. if Noob~=nil then
  257. coroutine.resume(coroutine.create(function()
  258. FV = Instance.new("BoolValue", Noob)
  259. FV.Name = "CameraShake"
  260. for ShakeNum=1,Times do
  261. swait()
  262. local ef=Power
  263. if ef>=1 then
  264. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  265. else
  266. ef=Power*10
  267. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  268. end
  269. end
  270. Humanoid.CameraOffset = Vector3.new(0,0,0)
  271. FV:Destroy()
  272. end))
  273. CameraShake(Times, Power, Noob)
  274. end
  275. end
  276. end
  277. end
  278. end
  279. end
  280.  
  281. local toggleTag = true
  282. local bilguit = Instance.new("BillboardGui", hed)
  283. bilguit.Adornee = nil
  284. bilguit.Name = "ModeName"
  285. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  286. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  287. local modet = Instance.new("TextLabel", bilguit)
  288. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  289. modet.FontSize = "Size8"
  290. modet.TextScaled = true
  291. modet.TextTransparency = 0
  292. modet.BackgroundTransparency = 1
  293. modet.TextTransparency = 0
  294. modet.TextStrokeTransparency = 0
  295. modet.Font = "Antique"
  296. modet.TextStrokeColor3 = Color3.new(1,0,0)
  297. modet.TextColor3 = Color3.new(0.25,0,0)
  298. modet.Text = "MAYHEM"
  299.  
  300.  
  301. function chatfunc(text,color,typet,font,timeex)
  302. local chat = coroutine.wrap(function()
  303. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  304. Character:FindFirstChild("TalkingBillBoard"):destroy()
  305. end
  306. local naeeym2 = Instance.new("BillboardGui",Character)
  307. naeeym2.Size = UDim2.new(0,100,0,40)
  308. naeeym2.StudsOffset = Vector3.new(0,3,0)
  309. naeeym2.Adornee = Character.Head
  310. naeeym2.Name = "TalkingBillBoard"
  311. local tecks2 = Instance.new("TextLabel",naeeym2)
  312. tecks2.BackgroundTransparency = 1
  313. tecks2.BorderSizePixel = 0
  314. tecks2.Text = ""
  315. tecks2.Font = font
  316. tecks2.TextSize = 30
  317. tecks2.TextStrokeTransparency = 0
  318. tecks2.TextColor3 = color
  319. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  320. tecks2.Size = UDim2.new(1,0,0.5,0)
  321. local tecks3 = Instance.new("TextLabel",naeeym2)
  322. tecks3.BackgroundTransparency = 1
  323. tecks3.BorderSizePixel = 0
  324. tecks3.Text = ""
  325. tecks3.Font = font
  326. tecks3.TextSize = 30
  327. tecks3.TextStrokeTransparency = 0
  328. if typet == "Inverted" then
  329. tecks3.TextColor3 = Color3.new(0,0,0)
  330. tecks3.TextStrokeColor3 = color
  331. elseif typet == "Normal" then
  332. tecks3.TextColor3 = color
  333. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  334. end
  335. tecks3.Size = UDim2.new(1,0,0.5,0)
  336. coroutine.resume(coroutine.create(function()
  337. while true do
  338. swait(1)
  339. if chaosmode == true then
  340. tecks2.TextColor3 = BrickColor.random().Color
  341. tecks3.TextStrokeColor3 = BrickColor.random().Color
  342. end
  343. end
  344. end))
  345. modet.TextTransparency = modet.TextTransparency + 1
  346. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  347. for i = 0, 74*timeex do
  348. swait()
  349. modet.TextTransparency = 1
  350. modet.TextStrokeTransparency = 1
  351. tecks2.Text = text
  352. tecks3.Text = text
  353. end
  354. local randomrot = math.random(1,2)
  355. if randomrot == 1 then
  356. for i = 1, 50 do
  357. swait()
  358. tecks2.Text = text
  359. tecks3.Text = text
  360. modet.TextTransparency = modet.TextTransparency - .02
  361. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  362. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  363. tecks2.TextTransparency = tecks2.TextTransparency + .04
  364. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  365. tecks3.TextTransparency = tecks2.TextTransparency + .04
  366. end
  367. elseif randomrot == 2 then
  368. for i = 1, 50 do
  369. swait()
  370. tecks2.Text = text
  371. tecks3.Text = text
  372. modet.TextTransparency = modet.TextTransparency - .02
  373. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  374. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  375. tecks2.TextTransparency = tecks2.TextTransparency + .04
  376. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  377. tecks3.TextTransparency = tecks2.TextTransparency + .04
  378. end
  379. end
  380. modet.TextTransparency = 0
  381. modet.TextStrokeTransparency = 0
  382. if toggleTag == false then
  383. modet.TextTransparency = 1
  384. modet.TextStrokeTransparency = 1
  385. end
  386. naeeym2:Destroy()
  387. end)
  388. chat()
  389. end
  390.  
  391. function bosschatfunc(text,color,watval)
  392. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  393. coroutine.resume(coroutine.create(function()
  394. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  395. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  396. end
  397. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  398. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  399. scrg.Name = "Dialog"
  400. local txtlb = Instance.new("TextLabel",scrg)
  401. txtlb.Text = ""
  402. txtlb.Font = "Bodoni"
  403. txtlb.TextColor3 = Color3.new(0,0,0)
  404. txtlb.TextStrokeTransparency = 0
  405. txtlb.BackgroundTransparency = 0.75
  406. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  407. txtlb.TextStrokeColor3 = color
  408. txtlb.TextScaled = true
  409. txtlb.Size = UDim2.new(1,0,0.25,0)
  410. txtlb.TextXAlignment = "Left"
  411. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  412. local txtlb2 = Instance.new("TextLabel",scrg)
  413. txtlb2.Text = "?:"
  414. txtlb2.Font = "Arcade"
  415. txtlb2.TextColor3 = Color3.new(0,0,0)
  416. txtlb2.TextStrokeTransparency = 0
  417. txtlb2.BackgroundTransparency = 1
  418. txtlb2.TextStrokeColor3 = color
  419. txtlb2.TextSize = 40
  420. txtlb2.Size = UDim2.new(1,0,0.25,0)
  421. txtlb2.TextXAlignment = "Left"
  422. txtlb2.Position = UDim2.new(0,0,1,0)
  423. local fvalen = 0.55
  424. local fval = -0.49
  425. coroutine.resume(coroutine.create(function()
  426. while true do
  427. swait()
  428. if chaosmode == true then
  429. txtlb.Rotation = math.random(-1,1)
  430. txtlb2.Rotation = math.random(-1,1)
  431. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  432. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  433. txtlb.TextStrokeColor3 = BrickColor.random().Color
  434. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  435. end
  436. end
  437. end))
  438. coroutine.resume(coroutine.create(function()
  439. while true do
  440. swait()
  441. if scrg.Parent ~= nil then
  442. fvalen = fvalen - 0.0001
  443. elseif scrg.Parent == nil then
  444. break
  445. end
  446. end
  447. end))
  448. local flol = 1.75
  449. local flil = 1.6
  450. coroutine.resume(coroutine.create(function()
  451. for i = 0, 9 do
  452. swait()
  453. fval = fval + 0.05
  454. flol = flol - 0.1
  455. flil = flil - 0.1
  456. txtlb.Text = ""
  457. txtlb.Position = UDim2.new(0,0,flol,0)
  458. txtlb2.Position = UDim2.new(0,0,flil,0)
  459. end
  460. txtlb.Text = text
  461. wait(watval)
  462. local valinc = 0
  463. for i = 0, 99 do
  464. swait()
  465. valinc = valinc + 0.0001
  466. flol = flol + valinc
  467. flil = flil + valinc
  468. txtlb.Rotation = txtlb.Rotation + valinc*20
  469. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  470. txtlb.Position = UDim2.new(0,0,flol,0)
  471. txtlb2.Position = UDim2.new(0,0,flil,0)
  472. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  473. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  474. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  475. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  476. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  477. end
  478. scrg:Destroy()
  479. end))
  480. end))
  481. end
  482. end
  483.  
  484.  
  485. local Create = LoadLibrary("RbxUtility").Create
  486.  
  487. CFuncs = {
  488. ["Part"] = {
  489. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  490. local Part = Create("Part"){
  491. Parent = Parent,
  492. Reflectance = Reflectance,
  493. Transparency = Transparency,
  494. CanCollide = false,
  495. Locked = true,
  496. BrickColor = BrickColor.new(tostring(BColor)),
  497. Name = Name,
  498. Size = Size,
  499. Material = Material,
  500. }
  501. RemoveOutlines(Part)
  502. return Part
  503. end;
  504. };
  505.  
  506. ["Mesh"] = {
  507. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  508. local Msh = Create(Mesh){
  509. Parent = Part,
  510. Offset = OffSet,
  511. Scale = Scale,
  512. }
  513. if Mesh == "SpecialMesh" then
  514. Msh.MeshType = MeshType
  515. Msh.MeshId = MeshId
  516. end
  517. return Msh
  518. end;
  519. };
  520.  
  521. ["Mesh"] = {
  522. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  523. local Msh = Create(Mesh){
  524. Parent = Part,
  525. Offset = OffSet,
  526. Scale = Scale,
  527. }
  528. if Mesh == "SpecialMesh" then
  529. Msh.MeshType = MeshType
  530. Msh.MeshId = MeshId
  531. end
  532. return Msh
  533. end;
  534. };
  535.  
  536. ["Weld"] = {
  537. Create = function(Parent, Part0, Part1, C0, C1)
  538. local Weld = Create("Weld"){
  539. Parent = Parent,
  540. Part0 = Part0,
  541. Part1 = Part1,
  542. C0 = C0,
  543. C1 = C1,
  544. }
  545. return Weld
  546. end;
  547. };
  548.  
  549. ["Sound"] = {
  550. Create = function(id, par, vol, pit)
  551. coroutine.resume(coroutine.create(function()
  552. local S = Create("Sound"){
  553. Volume = vol,
  554. Name = "EffectSoundo",
  555. Pitch = pit or 1,
  556. SoundId = id,
  557. Parent = par or workspace,
  558. }
  559. wait()
  560. S:play()
  561. game:GetService("Debris"):AddItem(S, 10)
  562. end))
  563. end;
  564. };
  565.  
  566. ["TimeSound"] = {
  567. Create = function(id, par, vol, pit, timepos)
  568. coroutine.resume(coroutine.create(function()
  569. local S = Create("Sound"){
  570. Volume = vol,
  571. Name = "EffectSoundo",
  572. Pitch = pit or 1,
  573. SoundId = id,
  574. TimePosition = timepos,
  575. Parent = par or workspace,
  576. }
  577. wait()
  578. S:play()
  579. game:GetService("Debris"):AddItem(S, 10)
  580. end))
  581. end;
  582. };
  583. ["EchoSound"] = {
  584. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  585. coroutine.resume(coroutine.create(function()
  586. local Sas = Create("Sound"){
  587. Volume = vol,
  588. Name = "EffectSoundo",
  589. Pitch = pit or 1,
  590. SoundId = id,
  591. TimePosition = timepos,
  592. Parent = par or workspace,
  593. }
  594. local E = Create("EchoSoundEffect"){
  595. Delay = echodelay,
  596. Name = "Echo",
  597. Feedback = fedb,
  598. DryLevel = dryl,
  599. Parent = Sas,
  600. }
  601. wait()
  602. Sas:play()
  603. game:GetService("Debris"):AddItem(Sas, delays)
  604. end))
  605. end;
  606. };
  607.  
  608. ["LongSound"] = {
  609. Create = function(id, par, vol, pit)
  610. coroutine.resume(coroutine.create(function()
  611. local S = Create("Sound"){
  612. Volume = vol,
  613. Pitch = pit or 1,
  614. SoundId = id,
  615. Parent = par or workspace,
  616. }
  617. wait()
  618. S:play()
  619. game:GetService("Debris"):AddItem(S, 60)
  620. end))
  621. end;
  622. };
  623.  
  624. ["ParticleEmitter"] = {
  625. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  626. local fp = Create("ParticleEmitter"){
  627. Parent = Parent,
  628. Color = ColorSequence.new(Color1, Color2),
  629. LightEmission = LightEmission,
  630. Size = Size,
  631. Texture = Texture,
  632. Transparency = Transparency,
  633. ZOffset = ZOffset,
  634. Acceleration = Accel,
  635. Drag = Drag,
  636. LockedToPart = LockedToPart,
  637. VelocityInheritance = VelocityInheritance,
  638. EmissionDirection = EmissionDirection,
  639. Enabled = Enabled,
  640. Lifetime = LifeTime,
  641. Rate = Rate,
  642. Rotation = Rotation,
  643. RotSpeed = RotSpeed,
  644. Speed = Speed,
  645. VelocitySpread = VelocitySpread,
  646. }
  647. return fp
  648. end;
  649. };
  650.  
  651. CreateTemplate = {
  652.  
  653. };
  654. }
  655.  
  656.  
  657.  
  658. New = function(Object, Parent, Name, Data)
  659. local Object = Instance.new(Object)
  660. for Index, Value in pairs(Data or {}) do
  661. Object[Index] = Value
  662. end
  663. Object.Parent = Parent
  664. Object.Name = Name
  665. return Object
  666. end
  667. local halocolor = BrickColor.new("Pastel light blue")
  668. local halocolor2 = BrickColor.new("Cool yellow")
  669. local starcolor = BrickColor.new("Bright yellow")
  670. local lunacolor = BrickColor.new("Navy blue")
  671. local lunacolor2 = BrickColor.new("Bright blue")
  672. local wepcolor = BrickColor.new("Really black")
  673. local maincolor = BrickColor.new("Really black")
  674. local m = Instance.new("Model",char)
  675. local m2 = Instance.new("Model",char)
  676. local m3 = Instance.new("Model",char)
  677. local mw1 = Instance.new("Model",char)
  678. local mw2 = Instance.new("Model",char)
  679.  
  680.  
  681. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  682. local gui = it(GuiType)
  683. gui.Parent = parent
  684. gui.Text = text
  685. gui.BackgroundTransparency = backtrans
  686. gui.BackgroundColor3 = backcol
  687. gui.SizeConstraint = "RelativeXY"
  688. gui.TextXAlignment = "Center"
  689. gui.TextYAlignment = "Center"
  690. gui.Position = pos
  691. gui.Size = size
  692. gui.Font = "SourceSans"
  693. gui.FontSize = "Size14"
  694. gui.TextWrapped = false
  695. gui.TextStrokeTransparency = 0
  696. gui.TextColor = BrickColor.new("White")
  697. return gui
  698. end
  699. --------------------------- GUI STUFF
  700. local basgui = it("GuiMain")
  701. basgui.Parent = plr.PlayerGui
  702. basgui.Name = "VISgui"
  703. local fullscreenz = it("Frame")
  704. fullscreenz.Parent = basgui
  705. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  706. fullscreenz.BackgroundTransparency = 1
  707. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  708. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  709. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  710. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  711. imgl2.BackgroundTransparency = 1
  712. imgl2.BorderSizePixel = 0
  713. imgl2.ImageTransparency = 0.5
  714. imgl2.ImageColor3 = Color3.new(1,0,0)
  715. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  716. imgl2.Size = UDim2.new(0,1000,0,1000)
  717. imgl2.Image = "rbxassetid://2325939897"
  718. local techc = imgl2:Clone()
  719. techc.Parent = fullscreenz
  720. techc.ImageTransparency = 0
  721. techc.Size = UDim2.new(0,900,0,900)
  722. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  723. techc.ImageColor3 = Color3.new(1,0,0)
  724. techc.Image = "rbxassetid://2273224484"
  725. local circl = imgl2:Clone()
  726. circl.Parent = fullscreenz
  727. circl.ImageTransparency = 0
  728. circl.Size = UDim2.new(0,550,0,550)
  729. circl.Position = UDim2.new(0.75,25,0.55,25)
  730. circl.ImageColor3 = Color3.new(0,0,0)
  731. circl.Image = "rbxassetid://2312119891"
  732. local circl2 = imgl2:Clone()
  733. circl2.Parent = fullscreenz
  734. circl2.ImageTransparency = 0
  735. circl2.Size = UDim2.new(0,700,0,700)
  736. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  737. circl2.ImageColor3 = Color3.new(1,0,0)
  738. circl2.Image = "rbxassetid://2312119891"
  739. local imgl2b = imgl2:Clone()
  740. imgl2b.Parent = fullscreenz
  741. imgl2b.ImageTransparency = 0
  742. imgl2b.Size = UDim2.new(0,800,0,800)
  743. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  744. imgl2b.ImageColor3 = Color3.new(0,0,0)
  745. local ned = Instance.new("TextLabel",fullscreenz)
  746. ned.ZIndex = 2
  747. ned.Font = "Arcade"
  748. ned.BackgroundTransparency = 1
  749. ned.BorderSizePixel = 0.65
  750. ned.Size = UDim2.new(0.3,0,0.2,0)
  751. ned.Position = UDim2.new(0.7,0,0.8,0)
  752. ned.TextColor3 = BrickColor.new("Really red").Color
  753. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  754. ned.TextScaled = true
  755. ned.TextStrokeTransparency = 0
  756. ned.Text = "MAYHEM"
  757. ned.TextSize = 24
  758. ned.Rotation = 1
  759. ned.TextXAlignment = "Right"
  760. ned.TextYAlignment = "Bottom"
  761.  
  762. 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. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  820. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  821. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  822. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  823.  
  824. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  825. CreateMesh(handle,"Brick",0,0,0)
  826. local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  827. local valuaring = 10
  828. for i = 0, 49 do
  829. valuaring = valuaring + 10
  830. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  831. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  832. CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  833. end
  834.  
  835. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  836. CreateMesh(handle,"Brick",0,0,0)
  837. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  838. local valuaring = 10
  839. for i = 0, 49 do
  840. valuaring = valuaring + 10
  841. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  842. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  843. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  844. end
  845.  
  846.  
  847. local handle = CreateParta(m,1,1,"Neon",maincolor)
  848. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  849. local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  850.  
  851. --- Left wing.
  852.  
  853. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  854. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  855. local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  856.  
  857. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  858. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  859. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  860.  
  861. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  862. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  863. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  864.  
  865. -- Right wing.
  866.  
  867. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  868. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  869. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  870.  
  871. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  872. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  873. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  874. A0 = Instance.new('Attachment',wed)
  875. A0.Position = vt(0,0.25,0.25)
  876. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  877. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  878. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  879. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  880. CreateMesh(wed,"Wedge",0.05,0.5,3)
  881. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  882. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  883. CreateMesh(wed,"Wedge",0.05,3,0.5)
  884. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  885. A1 = Instance.new('Attachment',wed)
  886. A1.Position = vt(0,2,0.25)
  887.  
  888. tr1 = Instance.new('Trail',wed)
  889. tr1.Attachment0 = A1
  890. tr1.Attachment1 = A0
  891. tr1.Texture = "rbxassetid://2108945559"
  892. tr1.LightEmission = 1
  893. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  894. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  895. tr1.Lifetime = 0.6
  896.  
  897. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  898. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  899. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  900.  
  901. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  902. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  903. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  904. A0 = Instance.new('Attachment',wed)
  905. A0.Position = vt(0,0.25,0.25)
  906. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  907. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  908. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  909. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  910. CreateMesh(wed,"Wedge",0.05,0.5,3)
  911. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  912. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  913. CreateMesh(wed,"Wedge",0.05,3,0.5)
  914. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  915. A1 = Instance.new('Attachment',wed)
  916. A1.Position = vt(0,2,0.25)
  917.  
  918. tr2 = Instance.new('Trail',wed)
  919. tr2.Attachment0 = A1
  920. tr2.Attachment1 = A0
  921. tr2.Texture = "rbxassetid://2108945559"
  922. tr2.LightEmission = 1
  923. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  924. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  925. tr2.Lifetime = 0.6
  926.  
  927. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  928. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  929. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  930.  
  931. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  932. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  933. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  934. A0 = Instance.new('Attachment',wed)
  935. A0.Position = vt(0,0.25,0.25)
  936. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  937. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  938. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  939. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  940. CreateMesh(wed,"Wedge",0.05,0.5,3)
  941. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  942. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  943. CreateMesh(wed,"Wedge",0.05,3,0.5)
  944. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  945. A1 = Instance.new('Attachment',wed)
  946. A1.Position = vt(0,2,0.25)
  947.  
  948. tr3 = Instance.new('Trail',wed)
  949. tr3.Attachment0 = A1
  950. tr3.Attachment1 = A0
  951. tr3.Texture = "rbxassetid://2108945559"
  952. tr3.LightEmission = 1
  953. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  954. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  955. tr3.Lifetime = 0.6
  956.  
  957.  
  958. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  959. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  960. local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  961.  
  962. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  963. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  964. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  965. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  966. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  967. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  968. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  969. CreateMesh(wed,"Wedge",0.05,0.5,3)
  970. CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  971. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  972. CreateMesh(wed,"Wedge",0.05,3,0.5)
  973. CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  974.  
  975. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  976. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  977. local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  978.  
  979. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  980. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  981. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  982. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  983. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  984. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  985. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  986. CreateMesh(wed,"Wedge",0.05,0.5,3)
  987. CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  988. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  989. CreateMesh(wed,"Wedge",0.05,3,0.5)
  990. CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  991.  
  992. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  993. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  994. local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  995.  
  996. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  997. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  998. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  999. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1000. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1001. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1002. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1003. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1004. CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1005. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1006. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1007. CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1008.  
  1009. ---- HERES THE RING
  1010.  
  1011.  
  1012. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1013. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1014. CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1015. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1016. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1017. CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1018. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1019. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1020. CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1021.  
  1022.  
  1023. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1024. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1025. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1026.  
  1027. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1028. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1029. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1030.  
  1031.  
  1032.  
  1033. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1034. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1035. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1036.  
  1037. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1038. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1039. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1040.  
  1041. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1042. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1043. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1044.  
  1045. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1046. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1047. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1048. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1049. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1050. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1051.  
  1052. --- second ring
  1053.  
  1054. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1055. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1056. CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1057. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1058. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1059. CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1060. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1061. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1062. CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1063.  
  1064. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1065. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1066. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1067.  
  1068. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1069. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1070. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1071.  
  1072.  
  1073.  
  1074. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1075. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1076. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1077.  
  1078. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1079. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1080. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1081.  
  1082. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1083. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1084. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1085.  
  1086. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1087. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1088. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1089. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1090. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1091. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  1092.  
  1093.  
  1094.  
  1095. for i, v in pairs(m:GetChildren()) do
  1096. if v:IsA("Part") then
  1097. v.BrickColor = BrickColor.new("Really black")
  1098. v.Material = "Glass"
  1099. end
  1100. end
  1101. for i, v in pairs(m2:GetChildren()) do
  1102. if v:IsA("Part") then
  1103. v.BrickColor = BrickColor.new("Crimson")
  1104. v.Material = "Granite"
  1105. end
  1106. end
  1107. for i, v in pairs(m3:GetChildren()) do
  1108. if v:IsA("Part") then
  1109. v.BrickColor = BrickColor.new("Really red")
  1110. v.Material = "Neon"
  1111. end
  1112. end
  1113. for i, v in pairs(mw2:GetChildren()) do
  1114. if v:IsA("Part") then
  1115. v.BrickColor = BrickColor.new("Really red")
  1116. v.Material = "Neon"
  1117. end
  1118. end
  1119. for i, v in pairs(mw1:GetChildren()) do
  1120. if v:IsA("Part") then
  1121. v.Transparency = 1
  1122. v.BrickColor = BrickColor.new("Really red")
  1123. v.Material = "Neon"
  1124. end
  1125. end
  1126. for i, v in pairs(extrawingmod1:GetChildren()) do
  1127. if v:IsA("Part") then
  1128. v.Transparency = 1
  1129. v.BrickColor = BrickColor.new("White")
  1130. v.Material = "Neon"
  1131. end
  1132. end
  1133. for i, v in pairs(extrawingmod2:GetChildren()) do
  1134. if v:IsA("Part") then
  1135. v.Transparency = 1
  1136. v.BrickColor = BrickColor.new("White")
  1137. v.Material = "Neon"
  1138. end
  1139. end
  1140. local MAINRUINCOLOR = BrickColor.new("Really red")
  1141. ------
  1142.  
  1143.  
  1144. function RemoveOutlines(part)
  1145. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1146. end
  1147. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1148. local Part = Create("Part")({
  1149. Parent = Parent,
  1150. Reflectance = Reflectance,
  1151. Transparency = Transparency,
  1152. CanCollide = false,
  1153. Locked = true,
  1154. BrickColor = BrickColor.new(tostring(BColor)),
  1155. Name = Name,
  1156. Size = Size,
  1157. Material = Material
  1158. })
  1159. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1160. RemoveOutlines(Part)
  1161. return Part
  1162. end
  1163. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1164. local Msh = Create(Mesh)({
  1165. Parent = Part,
  1166. Offset = OffSet,
  1167. Scale = Scale
  1168. })
  1169. if Mesh == "SpecialMesh" then
  1170. Msh.MeshType = MeshType
  1171. Msh.MeshId = MeshId
  1172. end
  1173. return Msh
  1174. end
  1175. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1176. local Weld = Create("Weld")({
  1177. Parent = Parent,
  1178. Part0 = Part0,
  1179. Part1 = Part1,
  1180. C0 = C0,
  1181. C1 = C1
  1182. })
  1183. return Weld
  1184. end
  1185.  
  1186. Character=Player.Character
  1187. PlayerGui=Player.PlayerGui
  1188. Backpack=Player.Backpack
  1189. Torso=Character.Torso
  1190. Head=Character.Head
  1191. Humanoid=Character.Humanoid
  1192. m=Instance.new('Model',Character)
  1193. LeftArm=Character["Left Arm"]
  1194. LeftLeg=Character["Left Leg"]
  1195. RightArm=Character["Right Arm"]
  1196. RightLeg=Character["Right Leg"]
  1197. LS=Torso["Left Shoulder"]
  1198. LH=Torso["Left Hip"]
  1199. RS=Torso["Right Shoulder"]
  1200. RH=Torso["Right Hip"]
  1201. Face = Head.face
  1202. Neck=Torso.Neck
  1203. it=Instance.new
  1204. attacktype=1
  1205. vt=Vector3.new
  1206. cf=CFrame.new
  1207. euler=CFrame.fromEulerAnglesXYZ
  1208. angles=CFrame.Angles
  1209. cloaked=false
  1210. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1211. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1212. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1213. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1214. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1215. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1216. RootPart=Character.HumanoidRootPart
  1217. RootJoint=RootPart.RootJoint
  1218. RootCF=euler(-1.57,0,3.14)
  1219. attack = false
  1220. attackdebounce = false
  1221. deb=false
  1222. equipped=true
  1223. hand=false
  1224. combo=0
  1225. mana=0
  1226. trispeed=.2
  1227. attackmode='none'
  1228. local idle=0
  1229. local Anim="Idle"
  1230. local Effects={}
  1231. local gun=false
  1232. local shoot=false
  1233. local sine = 0
  1234. local change = 1
  1235.  
  1236. function RecolorTextAndRename(name,col1,col2,font)
  1237. modet.TextStrokeColor3 = col2
  1238. modet.TextColor3 = col1
  1239. modet.Font = font
  1240. modet.Text = name
  1241. techc.ImageColor3 = col2
  1242. circl.ImageColor3 = col2
  1243. circl2.ImageColor3 = col1
  1244. imgl2.ImageColor3 = col1
  1245. imgl2b.ImageColor3 = col2
  1246. ned.Text = name
  1247. ned.TextColor3 = col1
  1248. ned.TextStrokeColor3 = col2
  1249. end
  1250. --save shoulders
  1251. RSH, LSH=nil, nil
  1252. --welds
  1253. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1254. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1255. LH=Torso["Left Hip"]
  1256. RH=Torso["Right Hip"]
  1257. TorsoColor=Torso.BrickColor
  1258. function NoOutline(Part)
  1259. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1260. end
  1261. ch=Character
  1262. RSH=ch.Torso["Right Shoulder"]
  1263. LSH=ch.Torso["Left Shoulder"]
  1264. --
  1265. RSH.Parent=nil
  1266. LSH.Parent=nil
  1267. --
  1268. RW.Name="Right Shoulder"
  1269. RW.Part0=ch.Torso
  1270. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1271. RW.C1=cf(0, 0.5, 0)
  1272. RW.Part1=ch["Right Arm"]
  1273. RW.Parent=ch.Torso
  1274. --
  1275. LW.Name="Left Shoulder"
  1276. LW.Part0=ch.Torso
  1277. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1278. LW.C1=cf(0, 0.5, 0)
  1279. LW.Part1=ch["Left Arm"]
  1280. LW.Parent=ch.Torso
  1281.  
  1282. local Stats=Instance.new("BoolValue")
  1283. Stats.Name="Stats"
  1284. Stats.Parent=Character
  1285. local Atk=Instance.new("NumberValue")
  1286. Atk.Name="Damage"
  1287. Atk.Parent=Stats
  1288. Atk.Value=1
  1289. local Def=Instance.new("NumberValue")
  1290. Def.Name="Defense"
  1291. Def.Parent=Stats
  1292. Def.Value=1
  1293. local Speed=Instance.new("NumberValue")
  1294. Speed.Name="Speed"
  1295. Speed.Parent=Stats
  1296. Speed.Value=1
  1297. local Mvmt=Instance.new("NumberValue")
  1298. Mvmt.Name="Movement"
  1299. Mvmt.Parent=Stats
  1300. Mvmt.Value=1
  1301.  
  1302. local donum=0
  1303.  
  1304.  
  1305. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1306. local fp=it("Part")
  1307. fp.formFactor=formfactor
  1308. fp.Parent=parent
  1309. fp.Reflectance=reflectance
  1310. fp.Transparency=transparency
  1311. fp.CanCollide=false
  1312. fp.Locked=true
  1313. fp.BrickColor=brickcolor
  1314. fp.Name=name
  1315. fp.Size=size
  1316. fp.Position=Torso.Position
  1317. NoOutline(fp)
  1318. fp.Material="SmoothPlastic"
  1319. fp:BreakJoints()
  1320. return fp
  1321. end
  1322.  
  1323. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1324. local mesh=it(Mesh)
  1325. mesh.Parent=part
  1326. if Mesh=="SpecialMesh" then
  1327. mesh.MeshType=meshtype
  1328. if meshid~="nil" then
  1329. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1330. end
  1331. end
  1332. mesh.Offset=offset
  1333. mesh.Scale=scale
  1334. return mesh
  1335. end
  1336.  
  1337. function weld(parent,part0,part1,c0)
  1338. local weld=it("Weld")
  1339. weld.Parent=parent
  1340. weld.Part0=part0
  1341. weld.Part1=part1
  1342. weld.C0=c0
  1343. return weld
  1344. end
  1345.  
  1346. local Color1=Torso.BrickColor
  1347.  
  1348. local bodvel=Instance.new("BodyVelocity")
  1349. local bg=Instance.new("BodyGyro")
  1350.  
  1351. --------- SazEreno's Artificial HB --------------
  1352. ArtificialHB = Instance.new("BindableEvent", script)
  1353. ArtificialHB.Name = "ArtificialHB"
  1354.  
  1355. script:WaitForChild("ArtificialHB")
  1356. Frame_Speed = 1 / 60
  1357. frame = Frame_Speed
  1358. tf = 0
  1359. allowframeloss = false
  1360. tossremainder = false
  1361. lastframe = tick()
  1362. script.ArtificialHB:Fire()
  1363.  
  1364. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1365. tf = tf + s
  1366. if tf >= frame then
  1367. if allowframeloss then
  1368. script.ArtificialHB:Fire()
  1369. lastframe = tick()
  1370. else
  1371. for i = 1, math.floor(tf / frame) do
  1372. script.ArtificialHB:Fire()
  1373. end
  1374. lastframe = tick()
  1375. end
  1376. if tossremainder then
  1377. tf = 0
  1378. else
  1379. tf = tf - frame * math.floor(tf / frame)
  1380. end
  1381. end
  1382. end)
  1383.  
  1384. ------------------
  1385. function swait(num)
  1386. function swait(num)
  1387. if num==0 or num==nil then
  1388. game:service'RunService'.Stepped:wait(0)
  1389. else
  1390. for i=0,num do
  1391. game:service'RunService'.Stepped:wait(0)
  1392. end
  1393. end
  1394. end
  1395. end
  1396.  
  1397. -------- RAINBOW LEAVE IT TO ME
  1398. local r = 255
  1399. local g = 0
  1400. local b = 0
  1401. coroutine.resume(coroutine.create(function()
  1402. while wait() do
  1403. for i = 0, 254/5 do
  1404. swait()
  1405. g = g + 5
  1406. end
  1407. for i = 0, 254/5 do
  1408. swait()
  1409. r = r - 5
  1410. end
  1411. for i = 0, 254/5 do
  1412. swait()
  1413. b = b + 5
  1414. end
  1415. for i = 0, 254/5 do
  1416. swait()
  1417. g = g - 5
  1418. end
  1419. for i = 0, 254/5 do
  1420. swait()
  1421. r = r + 5
  1422. end
  1423. for i = 0, 254/5 do
  1424. swait()
  1425. b = b - 5
  1426. end
  1427. end
  1428. end))
  1429.  
  1430.  
  1431. so = function(id,par,vol,pit)
  1432. coroutine.resume(coroutine.create(function()
  1433. local sou = Instance.new("Sound",par or workspace)
  1434. sou.Volume=vol
  1435. sou.Pitch=pit or 1
  1436. sou.SoundId=id
  1437. swait()
  1438. sou:play()
  1439. game:GetService("Debris"):AddItem(sou,6)
  1440. end))
  1441. end
  1442.  
  1443. function clerp(a,b,t)
  1444. local qa = {QuaternionFromCFrame(a)}
  1445. local qb = {QuaternionFromCFrame(b)}
  1446. local ax, ay, az = a.x, a.y, a.z
  1447. local bx, by, bz = b.x, b.y, b.z
  1448. local _t = 1-t
  1449. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1450. end
  1451.  
  1452. function QuaternionFromCFrame(cf)
  1453. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1454. local trace = m00 + m11 + m22
  1455. if trace > 0 then
  1456. local s = math.sqrt(1 + trace)
  1457. local recip = 0.5/s
  1458. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1459. else
  1460. local i = 0
  1461. if m11 > m00 then
  1462. i = 1
  1463. end
  1464. if m22 > (i == 0 and m00 or m11) then
  1465. i = 2
  1466. end
  1467. if i == 0 then
  1468. local s = math.sqrt(m00-m11-m22+1)
  1469. local recip = 0.5/s
  1470. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1471. elseif i == 1 then
  1472. local s = math.sqrt(m11-m22-m00+1)
  1473. local recip = 0.5/s
  1474. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1475. elseif i == 2 then
  1476. local s = math.sqrt(m22-m00-m11+1)
  1477. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1478. end
  1479. end
  1480. end
  1481.  
  1482. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1483. local xs, ys, zs = x + x, y + y, z + z
  1484. local wx, wy, wz = w*xs, w*ys, w*zs
  1485. local xx = x*xs
  1486. local xy = x*ys
  1487. local xz = x*zs
  1488. local yy = y*ys
  1489. local yz = y*zs
  1490. local zz = z*zs
  1491. 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))
  1492. end
  1493.  
  1494. function QuaternionSlerp(a, b, t)
  1495. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1496. local startInterp, finishInterp;
  1497. if cosTheta >= 0.0001 then
  1498. if (1 - cosTheta) > 0.0001 then
  1499. local theta = math.acos(cosTheta)
  1500. local invSinTheta = 1/math.sin(theta)
  1501. startInterp = math.sin((1-t)*theta)*invSinTheta
  1502. finishInterp = math.sin(t*theta)*invSinTheta
  1503. else
  1504. startInterp = 1-t
  1505. finishInterp = t
  1506. end
  1507. else
  1508. if (1+cosTheta) > 0.0001 then
  1509. local theta = math.acos(-cosTheta)
  1510. local invSinTheta = 1/math.sin(theta)
  1511. startInterp = math.sin((t-1)*theta)*invSinTheta
  1512. finishInterp = math.sin(t*theta)*invSinTheta
  1513. else
  1514. startInterp = t-1
  1515. finishInterp = t
  1516. end
  1517. end
  1518. 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
  1519. end
  1520.  
  1521. local function CFrameFromTopBack(at, top, back)
  1522. local right = top:Cross(back)
  1523. return CFrame.new(at.x, at.y, at.z,
  1524. right.x, top.x, back.x,
  1525. right.y, top.y, back.y,
  1526. right.z, top.z, back.z)
  1527. end
  1528.  
  1529. function Triangle(a, b, c)
  1530. local edg1 = (c-a):Dot((b-a).unit)
  1531. local edg2 = (a-b):Dot((c-b).unit)
  1532. local edg3 = (b-c):Dot((a-c).unit)
  1533. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1534. a, b, c = a, b, c
  1535. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1536. a, b, c = b, c, a
  1537. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1538. a, b, c = c, a, b
  1539. else
  1540. assert(false, "unreachable")
  1541. end
  1542.  
  1543. local len1 = (c-a):Dot((b-a).unit)
  1544. local len2 = (b-a).magnitude - len1
  1545. local width = (a + (b-a).unit*len1 - c).magnitude
  1546.  
  1547. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1548.  
  1549. local list = {}
  1550.  
  1551. if len1 > 0.01 then
  1552. local w1 = Instance.new('WedgePart', m)
  1553. game:GetService("Debris"):AddItem(w1,5)
  1554. w1.Material = "SmoothPlastic"
  1555. w1.FormFactor = 'Custom'
  1556. w1.BrickColor = BrickColor.new("Really red")
  1557. w1.Transparency = 0
  1558. w1.Reflectance = 0
  1559. w1.Material = "SmoothPlastic"
  1560. w1.CanCollide = false
  1561. local l1 = Instance.new("PointLight",w1)
  1562. l1.Color = Color3.new(170,0,0)
  1563. NoOutline(w1)
  1564. local sz = Vector3.new(0.2, width, len1)
  1565. w1.Size = sz
  1566. local sp = Instance.new("SpecialMesh",w1)
  1567. sp.MeshType = "Wedge"
  1568. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1569. w1:BreakJoints()
  1570. w1.Anchored = true
  1571. w1.Parent = workspace
  1572. w1.Transparency = 0.7
  1573. table.insert(Effects,{w1,"Disappear",.01})
  1574. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1575. table.insert(list,w1)
  1576. end
  1577.  
  1578. if len2 > 0.01 then
  1579. local w2 = Instance.new('WedgePart', m)
  1580. game:GetService("Debris"):AddItem(w2,5)
  1581. w2.Material = "SmoothPlastic"
  1582. w2.FormFactor = 'Custom'
  1583. w2.BrickColor = BrickColor.new("Really red")
  1584. w2.Transparency = 0
  1585. w2.Reflectance = 0
  1586. w2.Material = "SmoothPlastic"
  1587. w2.CanCollide = false
  1588. local l2 = Instance.new("PointLight",w2)
  1589. l2.Color = Color3.new(170,0,0)
  1590. NoOutline(w2)
  1591. local sz = Vector3.new(0.2, width, len2)
  1592. w2.Size = sz
  1593. local sp = Instance.new("SpecialMesh",w2)
  1594. sp.MeshType = "Wedge"
  1595. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1596. w2:BreakJoints()
  1597. w2.Anchored = true
  1598. w2.Parent = workspace
  1599. w2.Transparency = 0.7
  1600. table.insert(Effects,{w2,"Disappear",.01})
  1601. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1602. table.insert(list,w2)
  1603. end
  1604. return unpack(list)
  1605. end
  1606.  
  1607.  
  1608. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1609. if hit.Parent == nil then
  1610. return
  1611. end
  1612. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1613. for _, v in pairs(hit.Parent:children()) do
  1614. if v:IsA("Humanoid") then
  1615. h = v
  1616. end
  1617. end
  1618. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1619. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1620. return
  1621. end
  1622. local c = Create("ObjectValue")({
  1623. Name = "creator",
  1624. Value = game:GetService("Players").LocalPlayer,
  1625. Parent = h
  1626. })
  1627. game:GetService("Debris"):AddItem(c, 0.5)
  1628. if HitSound ~= nil and HitPitch ~= nil then
  1629. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1630. end
  1631. local Damage = math.random(minim, maxim)
  1632. local blocked = false
  1633. local block = hit.Parent:findFirstChild("Block")
  1634. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1635. blocked = true
  1636. block.Value = block.Value - 1
  1637. print(block.Value)
  1638. end
  1639. if blocked == false then
  1640. HitHealth = h.Health
  1641. h.MaxHealth = 100
  1642. h.Health = h.Health - Damage
  1643. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1644. print("gained kill")
  1645. dmg(h.Parent)
  1646. end
  1647. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1648. else
  1649. h.Health = h.Health - Damage / 2
  1650. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1651. end
  1652. if Type == "Knockdown" then
  1653. local hum = hit.Parent.Humanoid
  1654. hum.PlatformStand = true
  1655. coroutine.resume(coroutine.create(function(HHumanoid)
  1656. swait(1)
  1657. HHumanoid.PlatformStand = false
  1658. end), hum)
  1659. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1660. local bodvol = Create("BodyVelocity")({
  1661. velocity = angle * knockback,
  1662. P = 5000,
  1663. maxForce = Vector3.new(8000, 8000, 8000),
  1664. Parent = hit
  1665. })
  1666. local rl = Create("BodyAngularVelocity")({
  1667. P = 3000,
  1668. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1669. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1670. Parent = hit
  1671. })
  1672. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1673. game:GetService("Debris"):AddItem(rl, 0.5)
  1674. elseif Type == "Normal" then
  1675. local vp = Create("BodyVelocity")({
  1676. P = 500,
  1677. maxForce = Vector3.new(math.huge, 0, math.huge),
  1678. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1679. })
  1680. if knockback > 0 then
  1681. vp.Parent = hit.Parent.Head
  1682. end
  1683. game:GetService("Debris"):AddItem(vp, 0.5)
  1684. elseif Type == "Up" then
  1685. local bodyVelocity = Create("BodyVelocity")({
  1686. velocity = Vector3.new(0, 20, 0),
  1687. P = 5000,
  1688. maxForce = Vector3.new(8000, 8000, 8000),
  1689. Parent = hit
  1690. })
  1691. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1692. local bodyVelocity = Create("BodyVelocity")({
  1693. velocity = Vector3.new(0, 20, 0),
  1694. P = 5000,
  1695. maxForce = Vector3.new(8000, 8000, 8000),
  1696. Parent = hit
  1697. })
  1698. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1699. elseif Type == "Leech" then
  1700. local hum = hit.Parent.Humanoid
  1701. if hum ~= nil then
  1702. for i = 0, 2 do
  1703. 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)
  1704. end
  1705. Humanoid.Health = Humanoid.Health + 10
  1706. end
  1707. elseif Type == "UpKnock" then
  1708. local hum = hit.Parent.Humanoid
  1709. hum.PlatformStand = true
  1710. if hum ~= nil then
  1711. hitr = true
  1712. end
  1713. coroutine.resume(coroutine.create(function(HHumanoid)
  1714. swait(5)
  1715. HHumanoid.PlatformStand = false
  1716. hitr = false
  1717. end), hum)
  1718. local bodyVelocity = Create("BodyVelocity")({
  1719. velocity = Vector3.new(0, 20, 0),
  1720. P = 5000,
  1721. maxForce = Vector3.new(8000, 8000, 8000),
  1722. Parent = hit
  1723. })
  1724. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1725. local bodyVelocity = Create("BodyVelocity")({
  1726. velocity = Vector3.new(0, 20, 0),
  1727. P = 5000,
  1728. maxForce = Vector3.new(8000, 8000, 8000),
  1729. Parent = hit
  1730. })
  1731. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1732. elseif Type == "Snare" then
  1733. local bp = Create("BodyPosition")({
  1734. P = 2000,
  1735. D = 100,
  1736. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1737. position = hit.Parent.Torso.Position,
  1738. Parent = hit.Parent.Torso
  1739. })
  1740. game:GetService("Debris"):AddItem(bp, 1)
  1741. elseif Type == "Slashnare" then
  1742. 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)
  1743. for i = 1, math.random(4, 5) do
  1744. 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)
  1745. end
  1746. local bp = Create("BodyPosition")({
  1747. P = 2000,
  1748. D = 100,
  1749. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1750. position = hit.Parent.Torso.Position,
  1751. Parent = hit.Parent.Torso
  1752. })
  1753. game:GetService("Debris"):AddItem(bp, 1)
  1754. elseif Type == "Spike" then
  1755. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1756. local bp = Create("BodyPosition")({
  1757. P = 2000,
  1758. D = 100,
  1759. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1760. position = hit.Parent.Torso.Position,
  1761. Parent = hit.Parent.Torso
  1762. })
  1763. game:GetService("Debris"):AddItem(bp, 1)
  1764. elseif Type == "Freeze" then
  1765. local BodPos = Create("BodyPosition")({
  1766. P = 50000,
  1767. D = 1000,
  1768. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1769. position = hit.Parent.Torso.Position,
  1770. Parent = hit.Parent.Torso
  1771. })
  1772. local BodGy = Create("BodyGyro")({
  1773. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1774. P = 20000,
  1775. Parent = hit.Parent.Torso,
  1776. cframe = hit.Parent.Torso.CFrame
  1777. })
  1778. hit.Parent.Torso.Anchored = true
  1779. coroutine.resume(coroutine.create(function(Part)
  1780. swait(1.5)
  1781. Part.Anchored = false
  1782. end), hit.Parent.Torso)
  1783. game:GetService("Debris"):AddItem(BodPos, 3)
  1784. game:GetService("Debris"):AddItem(BodGy, 3)
  1785. end
  1786. local debounce = Create("BoolValue")({
  1787. Name = "DebounceHit",
  1788. Parent = hit.Parent,
  1789. Value = true
  1790. })
  1791. game:GetService("Debris"):AddItem(debounce, Delay)
  1792. c = Instance.new("ObjectValue")
  1793. c.Name = "creator"
  1794. c.Value = Player
  1795. c.Parent = h
  1796. game:GetService("Debris"):AddItem(c, 0.5)
  1797. end
  1798. end
  1799. function ShowDamage(Pos, Text, Time, Color)
  1800. local Rate = 0.03333333333333333
  1801. local Pos = Pos or Vector3.new(0, 0, 0)
  1802. local Text = Text or ""
  1803. local Time = Time or 2
  1804. local Color = Color or Color3.new(1, 0, 1)
  1805. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1806. EffectPart.Anchored = true
  1807. local BillboardGui = Create("BillboardGui")({
  1808. Size = UDim2.new(3, 0, 3, 0),
  1809. Adornee = EffectPart,
  1810. Parent = EffectPart
  1811. })
  1812. local TextLabel = Create("TextLabel")({
  1813. BackgroundTransparency = 1,
  1814. Size = UDim2.new(1, 0, 1, 0),
  1815. Text = Text,
  1816. TextColor3 = Color,
  1817. TextScaled = true,
  1818. Font = Enum.Font.ArialBold,
  1819. Parent = BillboardGui
  1820. })
  1821. game.Debris:AddItem(EffectPart, Time + 0.1)
  1822. EffectPart.Parent = game:GetService("Workspace")
  1823. delay(0, function()
  1824. local Frames = Time / Rate
  1825. for Frame = 1, Frames do
  1826. wait(Rate)
  1827. local Percent = Frame / Frames
  1828. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1829. TextLabel.TextTransparency = Percent
  1830. end
  1831. if EffectPart and EffectPart.Parent then
  1832. EffectPart:Destroy()
  1833. end
  1834. end)
  1835. end
  1836. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1837. for _, c in pairs(workspace:children()) do
  1838. local hum = c:findFirstChildOfClass("Humanoid")
  1839. if hum ~= nil then
  1840. local head = c:findFirstChild("Head")
  1841. if head ~= nil then
  1842. local targ = head.Position - Part.Position
  1843. local mag = targ.magnitude
  1844. if magni >= mag and c.Name ~= Player.Name then
  1845. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1846. end
  1847. end
  1848. end
  1849. end
  1850. end
  1851.  
  1852. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1853. for _, c in pairs(workspace:children()) do
  1854. local hum = c:findFirstChild("Humanoid")
  1855. if hum ~= nil then
  1856. local head = c:findFirstChild("Torso")
  1857. if head ~= nil then
  1858. local targ = head.Position - Part.Position
  1859. local mag = targ.magnitude
  1860. if magni >= mag and c.Name ~= Player.Name then
  1861. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1862. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1863. end
  1864. end
  1865. end
  1866. end
  1867. end
  1868.  
  1869. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1870. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1871. end
  1872.  
  1873. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1874. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1875. prt.Anchored=true
  1876. prt.CFrame=cframe
  1877. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1878. --http://www.roblox.com/asset/?id=4770560
  1879. game:GetService("Debris"):AddItem(prt,2)
  1880. CF=prt.CFrame
  1881. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1882. for i=0,1,0.2 do
  1883. wait()
  1884. Part.CFrame=CF*cf(0,0,-0.4)
  1885. end
  1886. for i=0,1,delay do
  1887. wait()
  1888. --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)
  1889. Mesh.Scale=Mesh.Scale
  1890. end
  1891. for i=0,1,0.1 do
  1892. wait()
  1893. Part.Transparency=i
  1894. end
  1895. Part.Parent=nil
  1896. end),prt,msh,CF)
  1897. end
  1898.  
  1899. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1900. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1901. prt.Anchored=true
  1902. prt.Material = "Neon"
  1903. prt.CFrame=cframe
  1904. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1905. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1906. game:GetService("Debris"):AddItem(prt,5)
  1907. coroutine.resume(coroutine.create(function(Part,Mesh)
  1908. for i=0,1,delay do
  1909. swait()
  1910. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1911. Part.Transparency=i
  1912. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1913. end
  1914. Part.Parent=nil
  1915. end),prt,msh)
  1916. end
  1917.  
  1918. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1919. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1920. prt.Anchored=true
  1921. prt.Material = "Neon"
  1922. prt.CFrame=cframe
  1923. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1924. game:GetService("Debris"):AddItem(prt,5)
  1925. coroutine.resume(coroutine.create(function(Part,Mesh)
  1926. local rtype = rottype
  1927. for i=0,1,delay do
  1928. swait()
  1929. if rtype == 1 then
  1930. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1931. elseif rtype == 2 then
  1932. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1933. end
  1934. Part.Transparency=i
  1935. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1936. end
  1937. Part.Parent=nil
  1938. end),prt,msh)
  1939. end
  1940.  
  1941. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1942. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1943. prt.Anchored=true
  1944. prt.CFrame=cframe
  1945. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1946. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1947. game:GetService("Debris"):AddItem(prt,5)
  1948. coroutine.resume(coroutine.create(function(Part,Mesh)
  1949. for i=0,1,delay do
  1950. wait()
  1951. Part.Transparency=i
  1952. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1953. end
  1954. Part.Parent=nil
  1955. end),prt,msh)
  1956. end
  1957.  
  1958. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1959. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1960. prt.Anchored=true
  1961. prt.Material = "Neon"
  1962. prt.CFrame=cframe
  1963. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1964. game:GetService("Debris"):AddItem(prt,5)
  1965. coroutine.resume(coroutine.create(function(Part,Mesh)
  1966. local rtype = rottype
  1967. for i=0,1,delay do
  1968. swait()
  1969. if rtype == 1 then
  1970. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1971. elseif rtype == 2 then
  1972. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1973. end
  1974. Part.Transparency=i
  1975. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1976. end
  1977. Part.Parent=nil
  1978. end),prt,msh)
  1979. end
  1980.  
  1981. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1982. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1983. prt.Anchored=true
  1984. prt.Material = "Neon"
  1985. prt.CFrame=cframe
  1986. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1987. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1988. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1989. game:GetService("Debris"):AddItem(prt,5)
  1990. coroutine.resume(coroutine.create(function(Part,Mesh)
  1991. local rtype = rottype
  1992. for i=0,1,delay do
  1993. swait()
  1994. if rtype == 1 then
  1995. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1996. elseif rtype == 2 then
  1997. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1998. end
  1999. dec.Transparency=i
  2000. dec2.Transparency=i
  2001. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2002. end
  2003. Part.Parent=nil
  2004. end),prt,msh)
  2005. end
  2006.  
  2007. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2008. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2009. prt.Anchored=true
  2010. prt.Material = "Neon"
  2011. prt.CFrame=cframe
  2012. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2013. game:GetService("Debris"):AddItem(prt,5)
  2014. coroutine.resume(coroutine.create(function(Part,Mesh)
  2015. local rtype = rottype
  2016. for i=0,1,delay do
  2017. swait()
  2018. if rtype == 1 then
  2019. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2020. elseif rtype == 2 then
  2021. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2022. end
  2023. prt.Transparency=i
  2024. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2025. end
  2026. Part.Parent=nil
  2027. end),prt,msh)
  2028. end
  2029.  
  2030. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2031. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2032. prt.Anchored=true
  2033. prt.Material = "Neon"
  2034. prt.CFrame=cframe
  2035. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2036. game:GetService("Debris"):AddItem(prt,5)
  2037. coroutine.resume(coroutine.create(function(Part,Mesh)
  2038. local rtype = rottype
  2039. for i=0,1,delay do
  2040. swait()
  2041. if rtype == 1 then
  2042. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2043. elseif rtype == 2 then
  2044. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2045. end
  2046. prt.Transparency=i
  2047. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2048. end
  2049. Part.Parent=nil
  2050. end),prt,msh)
  2051. end
  2052.  
  2053. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2054. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2055. prt.Anchored=true
  2056. prt.Material = "Neon"
  2057. prt.CFrame=cframe
  2058. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2059. game:GetService("Debris"):AddItem(prt,5)
  2060. coroutine.resume(coroutine.create(function(Part,Mesh)
  2061. local rtype = rottype
  2062. for i=0,1,delay do
  2063. swait()
  2064. if rtype == 1 then
  2065. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2066. elseif rtype == 2 then
  2067. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2068. end
  2069. prt.Transparency=i
  2070. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2071. end
  2072. Part.Parent=nil
  2073. end),prt,msh)
  2074. end
  2075.  
  2076. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2077. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2078. prt.Anchored=true
  2079. prt.Material = "Neon"
  2080. prt.CFrame=cframe
  2081. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2082. game:GetService("Debris"):AddItem(prt,5)
  2083. coroutine.resume(coroutine.create(function(Part,Mesh)
  2084. local rtype = rottype
  2085. for i=0,1,delay do
  2086. swait()
  2087. if rtype == 1 then
  2088. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2089. elseif rtype == 2 then
  2090. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2091. end
  2092. prt.Transparency=i
  2093. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2094. end
  2095. Part.Parent=nil
  2096. end),prt,msh)
  2097. end
  2098.  
  2099. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2100. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2101. prt.Anchored=false
  2102. prt.CFrame=cframe
  2103. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2104. local wld=weld(prt,prt,Parent,cframe)
  2105. game:GetService("Debris"):AddItem(prt,5)
  2106. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2107. for i=0,1,delay do
  2108. wait()
  2109. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2110. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2111. Part.Transparency=i
  2112. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2113. end
  2114. Part.Parent=nil
  2115. end),prt,msh,wld)
  2116. end
  2117.  
  2118. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2119. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2120. prt.Anchored=false
  2121. prt.CFrame=cframe
  2122. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2123. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2124. game:GetService("Debris"):AddItem(prt,5)
  2125. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2126. for i=0,1,delay do
  2127. wait()
  2128. Weld.C0=euler(i*20,0,0)
  2129. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2130. Part.Transparency=i
  2131. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2132. end
  2133. Part.Parent=nil
  2134. end),prt,msh,wld)
  2135. end
  2136.  
  2137. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2138. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2139. prt.Anchored=true
  2140. prt.CFrame=cframe
  2141. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2142. game:GetService("Debris"):AddItem(prt,2)
  2143. coroutine.resume(coroutine.create(function(Part,Mesh)
  2144. for i=0,1,delay do
  2145. wait()
  2146. Part.CFrame=Part.CFrame
  2147. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2148. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2149. prt2.Anchored=true
  2150. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2151. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2152. game:GetService("Debris"):AddItem(prt2,2)
  2153. coroutine.resume(coroutine.create(function(Part,Mesh)
  2154. for i=0,1,0.1 do
  2155. wait()
  2156. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2157. end
  2158. Part.Parent=nil
  2159. end),prt2,msh2)
  2160. end
  2161. for i=0,1,delay*2 do
  2162. wait()
  2163. Part.CFrame=Part.CFrame
  2164. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2165. end
  2166. Part.Parent=nil
  2167. end),prt,msh)
  2168. end
  2169.  
  2170. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2171. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2172. prt.Anchored=true
  2173. prt.CFrame=cframe
  2174. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2175. game:GetService("Debris"):AddItem(prt,2)
  2176. coroutine.resume(coroutine.create(function(Part,Mesh)
  2177. for i=0,1,delay do
  2178. wait()
  2179. Part.CFrame=Part.CFrame
  2180. Part.Transparency=i
  2181. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2182. end
  2183. Part.Parent=nil
  2184. end),prt,msh)
  2185. end
  2186.  
  2187. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2188. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2189. prt.Anchored=true
  2190. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2191. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2192. game:GetService("Debris"):AddItem(prt,2)
  2193. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2194. CF=Part.CFrame
  2195. Numbb=0
  2196. randnumb=math.random()/10
  2197. rand1=math.random()/10
  2198. for i=0,1,rand1 do
  2199. wait()
  2200. CF=CF*cf(0,math.random()/2,0)
  2201. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2202. Part.CFrame=CF*euler(Numbb,0,0)
  2203. Part.Transparency=i
  2204. Numbb=Numbb+randnumb
  2205. end
  2206. Part.Parent=nil
  2207. end),prt,CF,Numbb,randnumb)
  2208. end
  2209.  
  2210. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2211. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2212. prt.Anchored=true
  2213. prt.CFrame=cframe
  2214. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2215. game:GetService("Debris"):AddItem(prt,5)
  2216. coroutine.resume(coroutine.create(function(Part,Mesh)
  2217. for i=0,1,delay do
  2218. wait()
  2219. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2220. Part.Transparency=i
  2221. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2222. end
  2223. Part.Parent=nil
  2224. end),prt,msh)
  2225. end
  2226.  
  2227. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2228. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2229. prt.Anchored=true
  2230. prt.CFrame=cframe
  2231. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2232. game:GetService("Debris"):AddItem(prt,2)
  2233. coroutine.resume(coroutine.create(function(Part,Mesh)
  2234. for i=0,1,delay do
  2235. wait()
  2236. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2237. Part.Transparency=i
  2238. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2239. end
  2240. Part.Parent=nil
  2241. end),prt,msh)
  2242. end
  2243.  
  2244. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2245. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2246. prt.Anchored=true
  2247. prt.CFrame=cframe*cf(x,y,z)
  2248. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2249. game:GetService("Debris"):AddItem(prt,5)
  2250. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2251. local num=math.random()
  2252. local num2=math.random(-3,2)+math.random()
  2253. local numm=0
  2254. for i=0,1,delay*2 do
  2255. swait()
  2256. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2257. Part.Transparency=i
  2258. numm=numm+0.01
  2259. end
  2260. Part.Parent=nil
  2261. Mesh.Parent=nil
  2262. end),prt,msh,x,y,z)
  2263. end
  2264.  
  2265. function dmgstart(dmg,what)
  2266. hitcon = what.Touched:connect(function(hit)
  2267. local hum = hit.Parent:FindFirstChild("Humanoid")
  2268. if hum and not hum:IsDescendantOf(Character) then
  2269. hum:TakeDamage(dmg)
  2270. end
  2271. end)
  2272. end
  2273.  
  2274. function dmgstop()
  2275. hitcon:disconnect()
  2276. end
  2277.  
  2278. function Cloak()
  2279. Face.Parent=nil
  2280. cloaked=true
  2281. for _,v in pairs(Torso.Parent:children()) do
  2282. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2283. coroutine.resume(coroutine.create(function()
  2284. for i=0,1,0.2 do
  2285. wait()
  2286. v.Transparency=i
  2287. end
  2288. v.Transparency=1
  2289. end))
  2290. end
  2291. if v.className=="Hat" then
  2292. hatp=v.Handle
  2293. coroutine.resume(coroutine.create(function(derp)
  2294. for i=0,1,0.2 do
  2295. wait()
  2296. derp.Transparency=i
  2297. end
  2298. derp.Transparency=1
  2299. end),hatp)
  2300. end
  2301. end
  2302. for _,v in pairs(m:children()) do
  2303. if v.className=="Part" then
  2304. coroutine.resume(coroutine.create(function()
  2305. for i=0,1,0.2 do
  2306. wait()
  2307. v.Transparency=i
  2308. end
  2309. v.Transparency=1
  2310. end))
  2311. end
  2312. end
  2313. end
  2314.  
  2315. function UnCloak()
  2316. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2317. Face.Parent=Head
  2318. cloaked=false
  2319. for _,v in pairs(Torso.Parent:children()) do
  2320. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2321. coroutine.resume(coroutine.create(function()
  2322. for i=0,1,0.1 do
  2323. wait()
  2324. v.Transparency=v.Transparency-0.1
  2325. end
  2326. v.Transparency=0
  2327. end))
  2328. end
  2329. if v.className=="Hat" then
  2330. hatp=v.Handle
  2331. coroutine.resume(coroutine.create(function(derp)
  2332. for i=0,1,0.1 do
  2333. wait()
  2334. derp.Transparency=derp.Transparency-0.1
  2335. end
  2336. derp.Transparency=0
  2337. end),hatp)
  2338. end
  2339. end
  2340. for _,v in pairs(m:children()) do
  2341. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2342. coroutine.resume(coroutine.create(function()
  2343. for i=0,1,0.1 do
  2344. wait()
  2345. v.Transparency=v.Transparency-0.1
  2346. end
  2347. v.Transparency=0
  2348. end))
  2349. v.Transparency=0
  2350. end
  2351. end
  2352. end
  2353.  
  2354. local origcolor = BrickColor.new("Pastel light blue")
  2355. ---- This section of explosions.
  2356.  
  2357. ----
  2358.  
  2359.  
  2360. function ring(type,pos,scale,value)
  2361. local type = type
  2362. local rng = Instance.new("Part", char)
  2363. rng.Anchored = true
  2364. rng.BrickColor = origcolor
  2365. rng.CanCollide = false
  2366. rng.FormFactor = 3
  2367. rng.Name = "Ring"
  2368. rng.Size = Vector3.new(1, 1, 1)
  2369. rng.Transparency = 0
  2370. rng.TopSurface = 0
  2371. rng.BottomSurface = 0
  2372. rng.CFrame = pos
  2373. local rngm = Instance.new("SpecialMesh", rng)
  2374. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2375. rngm.Scale = scale
  2376. local scaler2 = 1
  2377. if type == "Add" then
  2378. scaler2 = 1*value
  2379. elseif type == "Divide" then
  2380. scaler2 = 1/value
  2381. end
  2382. coroutine.resume(coroutine.create(function()
  2383. for i = 0,10,0.1 do
  2384. swait()
  2385. if type == "Add" then
  2386. scaler2 = scaler2 - 0.01*value
  2387. elseif type == "Divide" then
  2388. scaler2 = scaler2 - 0.01/value
  2389. end
  2390. rng.Transparency = rng.Transparency + 0.01
  2391. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2392. end
  2393. rng:Destroy()
  2394. end))
  2395. end
  2396.  
  2397.  
  2398. function wave(type,pos,scale,value)
  2399. local type = type
  2400. local rng = Instance.new("Part", char)
  2401. rng.Anchored = true
  2402. rng.BrickColor = origcolor
  2403. rng.CanCollide = false
  2404. rng.FormFactor = 3
  2405. rng.Name = "Ring"
  2406. rng.Size = Vector3.new(1, 1, 1)
  2407. rng.Transparency = 0
  2408. rng.TopSurface = 0
  2409. rng.BottomSurface = 0
  2410. rng.CFrame = pos
  2411. local rngm = Instance.new("SpecialMesh", rng)
  2412. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2413. rngm.Scale = scale
  2414. local scaler2 = 1
  2415. if type == "Add" then
  2416. scaler2 = 1*value
  2417. elseif type == "Divide" then
  2418. scaler2 = 1/value
  2419. end
  2420. coroutine.resume(coroutine.create(function()
  2421. for i = 0,10,0.1 do
  2422. swait()
  2423. if type == "Add" then
  2424. scaler2 = scaler2 - 0.01*value
  2425. elseif type == "Divide" then
  2426. scaler2 = scaler2 - 0.01/value
  2427. end
  2428. rng.Transparency = rng.Transparency + 0.01
  2429. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2430. end
  2431. rng:Destroy()
  2432. end))
  2433. end
  2434.  
  2435. function wind(type,pos,scale,value,speed)
  2436. local type = type
  2437. local rng = Instance.new("Part", char)
  2438. rng.Anchored = true
  2439. rng.BrickColor = origcolor
  2440. rng.CanCollide = false
  2441. rng.FormFactor = 3
  2442. rng.Name = "Ring"
  2443. rng.Size = Vector3.new(1, 1, 1)
  2444. rng.Transparency = 0
  2445. rng.TopSurface = 0
  2446. rng.BottomSurface = 0
  2447. rng.CFrame = pos
  2448. local rngm = Instance.new("SpecialMesh", rng)
  2449. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2450. rngm.Scale = scale
  2451. local scaler2 = 1
  2452. if type == "Add" then
  2453. scaler2 = 1*value
  2454. elseif type == "Divide" then
  2455. scaler2 = 1/value
  2456. end
  2457. coroutine.resume(coroutine.create(function()
  2458. for i = 0,10,0.1 do
  2459. swait()
  2460. if type == "Add" then
  2461. scaler2 = scaler2 - 0.01*value
  2462. elseif type == "Divide" then
  2463. scaler2 = scaler2 - 0.01/value
  2464. end
  2465. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2466. rng.Transparency = rng.Transparency + 0.01
  2467. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2468. end
  2469. rng:Destroy()
  2470. end))
  2471. end
  2472.  
  2473. function groundwind(type,pos,scale,value,speed)
  2474. local type = type
  2475. local rng = Instance.new("Part", char)
  2476. rng.Anchored = true
  2477. rng.BrickColor = origcolor
  2478. rng.CanCollide = false
  2479. rng.FormFactor = 3
  2480. rng.Name = "Ring"
  2481. rng.Size = Vector3.new(1, 1, 1)
  2482. rng.Transparency = 0
  2483. rng.TopSurface = 0
  2484. rng.BottomSurface = 0
  2485. rng.CFrame = pos
  2486. local rngm = Instance.new("SpecialMesh", rng)
  2487. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2488. rngm.Scale = scale
  2489. local scaler2 = 1
  2490. if type == "Add" then
  2491. scaler2 = 1*value
  2492. elseif type == "Divide" then
  2493. scaler2 = 1/value
  2494. end
  2495. coroutine.resume(coroutine.create(function()
  2496. for i = 0,10,0.1 do
  2497. swait()
  2498. if type == "Add" then
  2499. scaler2 = scaler2 - 0.01*value
  2500. elseif type == "Divide" then
  2501. scaler2 = scaler2 - 0.01/value
  2502. end
  2503. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2504. rng.Transparency = rng.Transparency + 0.01
  2505. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2506. end
  2507. rng:Destroy()
  2508. end))
  2509. end
  2510.  
  2511. function CameraManager()
  2512. if TwoD and not CamInterrupt then
  2513. if Humanoid.Health > 0 then
  2514. Camera.CameraSubject = Humanoid
  2515. Camera.CameraType = "Scriptable"
  2516. Humanoid.AutoRotate = false
  2517. if Booleans.GyroUse then
  2518. Directer.MaxTorque = Vec3(0, huge, 0)
  2519. else
  2520. Directer.MaxTorque = Vec3(0, 0, 0)
  2521. end
  2522. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2523. if Booleans.CamFollow then
  2524. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2525. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2526. else
  2527. CPart.Position = RootPart.Position
  2528. end
  2529. else
  2530. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2531. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2532. end
  2533. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2534. else
  2535. Camera.CameraSubject = Humanoid
  2536. Camera.CameraType = "Custom"
  2537. Controller.Disabled = false
  2538. end
  2539. end
  2540. end
  2541.  
  2542. function ring(type,pos,scale,value)
  2543. local type = type
  2544. local rng = Instance.new("Part", char)
  2545. rng.Anchored = true
  2546. rng.BrickColor = origcolor
  2547. rng.CanCollide = false
  2548. rng.FormFactor = 3
  2549. rng.Name = "Ring"
  2550. rng.Size = Vector3.new(1, 1, 1)
  2551. rng.Transparency = 0
  2552. rng.TopSurface = 0
  2553. rng.BottomSurface = 0
  2554. rng.CFrame = pos
  2555. local rngm = Instance.new("SpecialMesh", rng)
  2556. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2557. rngm.Scale = scale
  2558. local scaler2 = 1
  2559. if type == "Add" then
  2560. scaler2 = 1*value
  2561. elseif type == "Divide" then
  2562. scaler2 = 1/value
  2563. end
  2564. coroutine.resume(coroutine.create(function()
  2565. for i = 0,10,0.1 do
  2566. swait()
  2567. if type == "Add" then
  2568. scaler2 = scaler2 - 0.01*value
  2569. elseif type == "Divide" then
  2570. scaler2 = scaler2 - 0.01/value
  2571. end
  2572. rng.Transparency = rng.Transparency + 0.01
  2573. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2574. end
  2575. rng:Destroy()
  2576. end))
  2577. end
  2578.  
  2579.  
  2580. function wave(type,pos,scale,value)
  2581. local type = type
  2582. local rng = Instance.new("Part", char)
  2583. rng.Anchored = true
  2584. rng.BrickColor = origcolor
  2585. rng.CanCollide = false
  2586. rng.FormFactor = 3
  2587. rng.Name = "Ring"
  2588. rng.Size = Vector3.new(1, 1, 1)
  2589. rng.Transparency = 0
  2590. rng.TopSurface = 0
  2591. rng.BottomSurface = 0
  2592. rng.CFrame = pos
  2593. local rngm = Instance.new("SpecialMesh", rng)
  2594. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2595. rngm.Scale = scale
  2596. local scaler2 = 1
  2597. if type == "Add" then
  2598. scaler2 = 1*value
  2599. elseif type == "Divide" then
  2600. scaler2 = 1/value
  2601. end
  2602. coroutine.resume(coroutine.create(function()
  2603. for i = 0,10,0.1 do
  2604. swait()
  2605. if type == "Add" then
  2606. scaler2 = scaler2 - 0.01*value
  2607. elseif type == "Divide" then
  2608. scaler2 = scaler2 - 0.01/value
  2609. end
  2610. rng.Transparency = rng.Transparency + 0.01
  2611. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2612. end
  2613. rng:Destroy()
  2614. end))
  2615. end
  2616.  
  2617. function sphere(bonuspeed,type,pos,scale,value,color)
  2618. local type = type
  2619. local rng = Instance.new("Part", char)
  2620. rng.Anchored = true
  2621. if ModeOfGlitch ~= 9 then
  2622. rng.BrickColor = color
  2623. elseif ModeOfGlitch == 9 then
  2624. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2625. end
  2626. rng.CanCollide = false
  2627. rng.FormFactor = 3
  2628. rng.Name = "Ring"
  2629. rng.Material = "Neon"
  2630. rng.Size = Vector3.new(1, 1, 1)
  2631. rng.Transparency = 0
  2632. rng.TopSurface = 0
  2633. rng.BottomSurface = 0
  2634. rng.CFrame = pos
  2635. local rngm = Instance.new("SpecialMesh", rng)
  2636. rngm.MeshType = "Sphere"
  2637. rngm.Scale = scale
  2638. if rainbowmode == true then
  2639. rng.Color = Color3.new(r/255,g/255,b/255)
  2640. end
  2641. if ModeOfGlitch == 9 then
  2642. coroutine.resume(coroutine.create(function()
  2643. while true do
  2644. swait()
  2645. if rng.Parent ~= nil then
  2646. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2647. else
  2648. break
  2649. end
  2650. end
  2651. end))
  2652. end
  2653. local scaler2 = 1
  2654. if type == "Add" then
  2655. scaler2 = 1*value
  2656. elseif type == "Divide" then
  2657. scaler2 = 1/value
  2658. end
  2659. coroutine.resume(coroutine.create(function()
  2660. for i = 0,10/bonuspeed,0.1 do
  2661. swait()
  2662. if rainbowmode == true then
  2663. rng.Color = Color3.new(r/255,g/255,b/255)
  2664. end
  2665. if type == "Add" then
  2666. scaler2 = scaler2 - 0.01*value/bonuspeed
  2667. elseif type == "Divide" then
  2668. scaler2 = scaler2 - 0.01/value*bonuspeed
  2669. end
  2670. if chaosmode == true then
  2671. rng.BrickColor = BrickColor.random()
  2672. end
  2673. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2674. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2675. end
  2676. rng:Destroy()
  2677. end))
  2678. end
  2679.  
  2680. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2681. local type = type
  2682. local rng = Instance.new("Part", char)
  2683. rng.Anchored = true
  2684. if ModeOfGlitch ~= 9 then
  2685. rng.BrickColor = color
  2686. elseif ModeOfGlitch == 9 then
  2687. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2688. end
  2689. rng.CanCollide = false
  2690. rng.FormFactor = 3
  2691. rng.Name = "Ring"
  2692. rng.Material = "Neon"
  2693. rng.Size = Vector3.new(1, 1, 1)
  2694. rng.Transparency = 0
  2695. rng.TopSurface = 0
  2696. rng.BottomSurface = 0
  2697. rng.CFrame = pos
  2698. local rngm = Instance.new("SpecialMesh", rng)
  2699. rngm.MeshType = "Sphere"
  2700. rngm.Scale = scale
  2701. local scaler2 = 1
  2702. local scaler2b = 1
  2703. local scaler2c = 1
  2704. if type == "Add" then
  2705. scaler2 = 1*value
  2706. scaler2b = 1*value2
  2707. scaler2c = 1*value3
  2708. elseif type == "Divide" then
  2709. scaler2 = 1/value
  2710. scaler2b = 1/value2
  2711. scaler2c = 1/value3
  2712. end
  2713. if ModeOfGlitch == 9 then
  2714. coroutine.resume(coroutine.create(function()
  2715. while true do
  2716. swait()
  2717. if rng.Parent ~= nil then
  2718. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2719. else
  2720. break
  2721. end
  2722. end
  2723. end))
  2724. end
  2725. coroutine.resume(coroutine.create(function()
  2726. for i = 0,10/bonuspeed,0.1 do
  2727. swait()
  2728. if type == "Add" then
  2729. scaler2 = scaler2 - 0.01*value/bonuspeed
  2730. scaler2b = scaler2b - 0.01*value/bonuspeed
  2731. scaler2c = scaler2c - 0.01*value/bonuspeed
  2732. elseif type == "Divide" then
  2733. scaler2 = scaler2 - 0.01/value*bonuspeed
  2734. scaler2b = scaler2b - 0.01/value*bonuspeed
  2735. scaler2c = scaler2c - 0.01/value*bonuspeed
  2736. end
  2737. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2738. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2739. end
  2740. rng:Destroy()
  2741. end))
  2742. end
  2743.  
  2744. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2745. local type = type
  2746. local rotenable = rotatingop
  2747. local rng = Instance.new("Part", char)
  2748. rng.Anchored = true
  2749. rng.BrickColor = color
  2750. rng.CanCollide = false
  2751. rng.FormFactor = 3
  2752. rng.Name = "Ring"
  2753. rng.Material = "Neon"
  2754. rng.Size = Vector3.new(1, 1, 1)
  2755. rng.Transparency = 0
  2756. if typeoftrans == "In" then
  2757. rng.Transparency = 1
  2758. end
  2759. rng.TopSurface = 0
  2760. rng.BottomSurface = 0
  2761. rng.CFrame = pos
  2762. local rngm = Instance.new("SpecialMesh", rng)
  2763. rngm.MeshType = "FileMesh"
  2764. if typeofshape == "Normal" then
  2765. rngm.MeshId = "rbxassetid://662586858"
  2766. elseif typeofshape == "Round" then
  2767. rngm.MeshId = "rbxassetid://662585058"
  2768. end
  2769. rngm.Scale = scale
  2770. local scaler2 = 1/10
  2771. if type == "Add" then
  2772. scaler2 = 1*value/10
  2773. elseif type == "Divide" then
  2774. scaler2 = 1/value/10
  2775. end
  2776. local randomrot = math.random(1,2)
  2777. coroutine.resume(coroutine.create(function()
  2778. for i = 0,10/bonuspeed,0.1 do
  2779. swait()
  2780. if type == "Add" then
  2781. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2782. elseif type == "Divide" then
  2783. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2784. end
  2785. if rotenable == true then
  2786. if randomrot == 1 then
  2787. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2788. elseif randomrot == 2 then
  2789. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2790. end
  2791. end
  2792. if typeoftrans == "Out" then
  2793. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2794. elseif typeoftrans == "In" then
  2795. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2796. end
  2797. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2798. end
  2799. rng:Destroy()
  2800. end))
  2801. end
  2802.  
  2803. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2804. local type = type
  2805. local rng = Instance.new("Part", char)
  2806. rng.Anchored = true
  2807. rng.BrickColor = color
  2808. rng.CanCollide = false
  2809. rng.FormFactor = 3
  2810. rng.Name = "Ring"
  2811. rng.Material = "Neon"
  2812. rng.Size = Vector3.new(1, 1, 1)
  2813. rng.Transparency = 0
  2814. rng.TopSurface = 0
  2815. rng.BottomSurface = 0
  2816. rng.CFrame = pos
  2817. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2818. local rngm = Instance.new("SpecialMesh", rng)
  2819. rngm.MeshType = "Brick"
  2820. rngm.Scale = vt(x1,y1,z1)
  2821. if rainbowmode == true then
  2822. rng.Color = Color3.new(r/255,g/255,b/255)
  2823. end
  2824. local scaler2 = 1
  2825. local speeder = FastSpeed/10
  2826. if type == "Add" then
  2827. scaler2 = 1*value
  2828. elseif type == "Divide" then
  2829. scaler2 = 1/value
  2830. end
  2831. coroutine.resume(coroutine.create(function()
  2832. for i = 0,10/bonuspeed,0.1 do
  2833. swait()
  2834. if rainbowmode == true then
  2835. rng.Color = Color3.new(r/255,g/255,b/255)
  2836. end
  2837. if type == "Add" then
  2838. scaler2 = scaler2 - 0.01*value/bonuspeed
  2839. elseif type == "Divide" then
  2840. scaler2 = scaler2 - 0.01/value*bonuspeed
  2841. end
  2842. if chaosmode == true then
  2843. rng.BrickColor = BrickColor.random()
  2844. end
  2845. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2846. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2847. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2848. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2849. end
  2850. rng:Destroy()
  2851. end))
  2852. end
  2853.  
  2854. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2855. local type = type
  2856. local rng = Instance.new("Part", char)
  2857. rng.Anchored = true
  2858. rng.BrickColor = color
  2859. rng.CanCollide = false
  2860. rng.FormFactor = 3
  2861. rng.Name = "Ring"
  2862. rng.Material = "Neon"
  2863. rng.Size = Vector3.new(1, 1, 1)
  2864. rng.Transparency = 0
  2865. rng.TopSurface = 0
  2866. rng.BottomSurface = 0
  2867. rng.CFrame = pos
  2868. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2869. local rngm = Instance.new("SpecialMesh", rng)
  2870. rngm.MeshType = "Brick"
  2871. rngm.Scale = vt(x1,y1,z1)
  2872. if rainbowmode == true then
  2873. rng.Color = Color3.new(r/255,g/255,b/255)
  2874. end
  2875. local scaler2 = 1
  2876. local speeder = FastSpeed/10
  2877. if type == "Add" then
  2878. scaler2 = 1*value
  2879. elseif type == "Divide" then
  2880. scaler2 = 1/value
  2881. end
  2882. coroutine.resume(coroutine.create(function()
  2883. for i = 0,10/bonuspeed,0.1 do
  2884. swait()
  2885. if rainbowmode == true then
  2886. rng.Color = Color3.new(r/255,g/255,b/255)
  2887. end
  2888. if type == "Add" then
  2889. scaler2 = scaler2 - 0.01*value/bonuspeed
  2890. elseif type == "Divide" then
  2891. scaler2 = scaler2 - 0.01/value*bonuspeed
  2892. end
  2893. if chaosmode == true then
  2894. rng.BrickColor = BrickColor.random()
  2895. end
  2896. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2897. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2898. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2899. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2900. end
  2901. rng:Destroy()
  2902. end))
  2903. end
  2904.  
  2905. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2906. local type = type
  2907. local rng = Instance.new("Part", char)
  2908. rng.Anchored = true
  2909. rng.BrickColor = color
  2910. rng.CanCollide = false
  2911. rng.FormFactor = 3
  2912. rng.Name = "Ring"
  2913. rng.Material = "Neon"
  2914. rng.Size = Vector3.new(1, 1, 1)
  2915. rng.Transparency = 0
  2916. rng.TopSurface = 0
  2917. rng.BottomSurface = 0
  2918. rng.CFrame = pos
  2919. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2920. local rngm = Instance.new("SpecialMesh", rng)
  2921. rngm.MeshType = "Brick"
  2922. rngm.Scale = vt(x1,y1,z1)
  2923. if rainbowmode == true then
  2924. rng.Color = Color3.new(r/255,g/255,b/255)
  2925. end
  2926. local scaler2 = 0
  2927. local speeder = FastSpeed/10
  2928. if type == "Add" then
  2929. scaler2 = 1*value
  2930. elseif type == "Divide" then
  2931. scaler2 = 1/value
  2932. end
  2933. coroutine.resume(coroutine.create(function()
  2934. for i = 0,10/bonuspeed,0.1 do
  2935. swait()
  2936. if rainbowmode == true then
  2937. rng.Color = Color3.new(r/255,g/255,b/255)
  2938. end
  2939. if type == "Add" then
  2940. scaler2 = scaler2 - 0.01*value/bonuspeed
  2941. elseif type == "Divide" then
  2942. scaler2 = scaler2 - 0.01/value*bonuspeed
  2943. end
  2944. if chaosmode == true then
  2945. rng.BrickColor = BrickColor.random()
  2946. end
  2947. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2948. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2949. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2950. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2951. end
  2952. rng:Destroy()
  2953. end))
  2954. end
  2955.  
  2956. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  2957. local type = type
  2958. local rng = Instance.new("Part", char)
  2959. rng.Anchored = true
  2960. rng.BrickColor = color
  2961. rng.Color = color3
  2962. rng.CanCollide = false
  2963. rng.FormFactor = 3
  2964. rng.Name = "Ring"
  2965. rng.Material = "Neon"
  2966. rng.Size = Vector3.new(1, 1, 1)
  2967. rng.Transparency = 0
  2968. rng.TopSurface = 0
  2969. rng.BottomSurface = 0
  2970. rng.CFrame = pos
  2971. local rngm = Instance.new("SpecialMesh", rng)
  2972. rngm.MeshType = "Brick"
  2973. rngm.Scale = scale
  2974. local scaler2 = 1
  2975. local scaler2b = 1
  2976. local scaler2c = 1
  2977. if type == "Add" then
  2978. scaler2 = 1*value
  2979. scaler2b = 1*value2
  2980. scaler2c = 1*value3
  2981. elseif type == "Divide" then
  2982. scaler2 = 1/value
  2983. scaler2b = 1/value2
  2984. scaler2c = 1/value3
  2985. end
  2986. coroutine.resume(coroutine.create(function()
  2987. for i = 0,10/bonuspeed,0.1 do
  2988. swait()
  2989. if type == "Add" then
  2990. scaler2 = scaler2 - 0.01*value/bonuspeed
  2991. scaler2b = scaler2b - 0.01*value/bonuspeed
  2992. scaler2c = scaler2c - 0.01*value/bonuspeed
  2993. elseif type == "Divide" then
  2994. scaler2 = scaler2 - 0.01/value*bonuspeed
  2995. scaler2b = scaler2b - 0.01/value*bonuspeed
  2996. scaler2c = scaler2c - 0.01/value*bonuspeed
  2997. end
  2998. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2999. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3000. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3001. end
  3002. rng:Destroy()
  3003. end))
  3004. end
  3005.  
  3006. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3007. local type = type
  3008. local rng = Instance.new("Part", char)
  3009. rng.Anchored = true
  3010. if ModeOfGlitch ~= 9 then
  3011. rng.BrickColor = color
  3012. elseif ModeOfGlitch == 9 then
  3013. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3014. end
  3015. rng.CanCollide = false
  3016. rng.FormFactor = 3
  3017. rng.Name = "Ring"
  3018. rng.Material = "Neon"
  3019. rng.Size = Vector3.new(1, 1, 1)
  3020. rng.Transparency = 0
  3021. rng.TopSurface = 0
  3022. rng.BottomSurface = 0
  3023. rng.CFrame = pos
  3024. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3025. local rngm = Instance.new("SpecialMesh", rng)
  3026. rngm.MeshType = "Sphere"
  3027. rngm.Scale = vt(x1,y1,z1)
  3028. if rainbowmode == true then
  3029. rng.Color = Color3.new(r/255,g/255,b/255)
  3030. end
  3031. if ModeOfGlitch == 9 then
  3032. coroutine.resume(coroutine.create(function()
  3033. while true do
  3034. swait()
  3035. if rng.Parent ~= nil then
  3036. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3037. else
  3038. break
  3039. end
  3040. end
  3041. end))
  3042. end
  3043. local scaler2 = 1
  3044. local speeder = FastSpeed
  3045. if type == "Add" then
  3046. scaler2 = 1*value
  3047. elseif type == "Divide" then
  3048. scaler2 = 1/value
  3049. end
  3050. coroutine.resume(coroutine.create(function()
  3051. for i = 0,10/bonuspeed,0.1 do
  3052. swait()
  3053. if rainbowmode == true then
  3054. rng.Color = Color3.new(r/255,g/255,b/255)
  3055. end
  3056. if type == "Add" then
  3057. scaler2 = scaler2 - 0.01*value/bonuspeed
  3058. elseif type == "Divide" then
  3059. scaler2 = scaler2 - 0.01/value*bonuspeed
  3060. end
  3061. if chaosmode == true then
  3062. rng.BrickColor = BrickColor.random()
  3063. end
  3064. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3065. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3066. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3067. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3068. end
  3069. rng:Destroy()
  3070. end))
  3071. end
  3072.  
  3073.  
  3074. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3075. local type = type
  3076. local rng = Instance.new("Part", char)
  3077. rng.Anchored = true
  3078. if ModeOfGlitch ~= 9 then
  3079. rng.BrickColor = color
  3080. elseif ModeOfGlitch == 9 then
  3081. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3082. end
  3083. rng.CanCollide = false
  3084. rng.FormFactor = 3
  3085. rng.Name = "Ring"
  3086. rng.Material = "Neon"
  3087. rng.Size = Vector3.new(1, 1, 1)
  3088. rng.Transparency = 1
  3089. rng.TopSurface = 0
  3090. rng.BottomSurface = 0
  3091. rng.CFrame = pos
  3092. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3093. local rngm = Instance.new("SpecialMesh", rng)
  3094. rngm.MeshType = "Sphere"
  3095. rngm.Scale = vt(x1,y1,z1)
  3096. if rainbowmode == true then
  3097. rng.Color = Color3.new(r/255,g/255,b/255)
  3098. end
  3099. if ModeOfGlitch == 9 then
  3100. coroutine.resume(coroutine.create(function()
  3101. while true do
  3102. swait()
  3103. if rng.Parent ~= nil then
  3104. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3105. else
  3106. break
  3107. end
  3108. end
  3109. end))
  3110. end
  3111. local scaler2 = 1
  3112. local speeder = FastSpeed
  3113. if type == "Add" then
  3114. scaler2 = 1*value
  3115. elseif type == "Divide" then
  3116. scaler2 = 1/value
  3117. end
  3118. coroutine.resume(coroutine.create(function()
  3119. for i = 0,10/bonuspeed,0.1 do
  3120. swait()
  3121. if rainbowmode == true then
  3122. rng.Color = Color3.new(r/255,g/255,b/255)
  3123. end
  3124. if type == "Add" then
  3125. scaler2 = scaler2 - 0.01*value/bonuspeed
  3126. elseif type == "Divide" then
  3127. scaler2 = scaler2 - 0.01/value*bonuspeed
  3128. end
  3129. if chaosmode == true then
  3130. rng.BrickColor = BrickColor.random()
  3131. end
  3132. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3133. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3134. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3135. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3136. end
  3137. rng:Destroy()
  3138. end))
  3139. end
  3140.  
  3141. function dmg(dude)
  3142. if dude.Name ~= Character then
  3143. local keptcolor = MAINRUINCOLOR
  3144. local bgf = Instance.new("BodyGyro",dude.Head)
  3145. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3146. --[[local val = Instance.new("BoolValue",dude)
  3147. val.Name = "IsHit"]]--
  3148. local ds = coroutine.wrap(function()
  3149. dude:WaitForChild("Head"):BreakJoints()
  3150. for i, v in pairs(dude:GetChildren()) do
  3151. if v:IsA("Part") or v:IsA("MeshPart") then
  3152. v.Name = "DEMINISHED"
  3153. end
  3154. end
  3155. wait(0.5)
  3156. targetted = nil
  3157. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3158. coroutine.resume(coroutine.create(function()
  3159. for i, v in pairs(dude:GetChildren()) do
  3160. if v:IsA("Accessory") then
  3161. v:Destroy()
  3162. end
  3163. if v:IsA("Humanoid") then
  3164. v:Destroy()
  3165. end
  3166. if v:IsA("CharacterMesh") then
  3167. v:Destroy()
  3168. end
  3169. if v:IsA("Model") then
  3170. v:Destroy()
  3171. end
  3172. if v:IsA("Part") or v:IsA("MeshPart") then
  3173. for x, o in pairs(v:GetChildren()) do
  3174. if o:IsA("Decal") then
  3175. o:Destroy()
  3176. end
  3177. end
  3178. coroutine.resume(coroutine.create(function()
  3179. v.Material = "Neon"
  3180. v.CanCollide = false
  3181. v.Anchored = false
  3182. local bld = Instance.new("ParticleEmitter",v)
  3183. bld.LightEmission = 0.75
  3184. bld.Texture = "rbxassetid://363275192" ---284205403
  3185. bld.Color = ColorSequence.new(keptcolor.Color)
  3186. bld.Rate = 500
  3187. bld.Lifetime = NumberRange.new(1)
  3188. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3189. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3190. bld.Speed = NumberRange.new(2,5)
  3191. bld.VelocitySpread = 50000
  3192. bld.Rotation = NumberRange.new(-500,500)
  3193. bld.RotSpeed = NumberRange.new(-500,500)
  3194. local sbs = Instance.new("BodyPosition", v)
  3195. sbs.P = 3000
  3196. sbs.D = 1000
  3197. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3198. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3199. v.Color = keptcolor.Color
  3200. coroutine.resume(coroutine.create(function()
  3201. for i = 0, 49 do
  3202. swait(1)
  3203. v:BreakJoints()
  3204. v.Transparency = v.Transparency + 0.02
  3205. end
  3206. v:BreakJoints()
  3207. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3208. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3209. bld.Speed = NumberRange.new(10,25)
  3210. bld.Drag = 5
  3211. bld.Acceleration = vt(0,2,0)
  3212. wait(0.5)
  3213. bld.Enabled = false
  3214. wait(8)
  3215. v:Destroy()
  3216. dude:Destroy()
  3217. end))
  3218. end))
  3219. end
  3220. end
  3221. end))
  3222. end)
  3223. ds()
  3224. end
  3225. end
  3226.  
  3227.  
  3228. function FindNearestHead(Position, Distance, SinglePlayer)
  3229. if SinglePlayer then
  3230. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3231. end
  3232. local List = {}
  3233. for i, v in pairs(workspace:GetChildren()) do
  3234. if v:IsA("Model") then
  3235. if v:findFirstChild("Head") then
  3236. if v ~= Character then
  3237. if (v.Head.Position - Position).magnitude <= Distance then
  3238. table.insert(List, v)
  3239. end
  3240. end
  3241. end
  3242. end
  3243. end
  3244. return List
  3245. end
  3246.  
  3247. function FaceMouse()
  3248. Cam = workspace.CurrentCamera
  3249. return {
  3250. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3251. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3252. }
  3253. end
  3254.  
  3255. function FaceMouse2()
  3256. Cam = workspace.CurrentCamera
  3257. return {
  3258. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3259. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3260. }
  3261. end
  3262.  
  3263. local ModeOfGlitch = 1
  3264. -- Functions are ready.
  3265. local storehumanoidWS = 16
  3266.  
  3267. function CorruptBlink()
  3268. for i = 0, 14 do
  3269. 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)
  3270. end
  3271. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3272. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3273. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3274. CameraEnshaking(2,10)
  3275. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3276. if v:FindFirstChild('Head') then
  3277. dmg(v)
  3278. end
  3279. end
  3280. for i = 0, 14 do
  3281. 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)
  3282. end
  3283. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3284. end
  3285. function PureBomb()
  3286. attack = true
  3287. hum.WalkSpeed = 0
  3288. local orb = Instance.new("Part", char)
  3289. orb.Anchored = true
  3290. orb.BrickColor = BrickColor.new("Toothpaste")
  3291. orb.CanCollide = false
  3292. orb.FormFactor = 3
  3293. orb.Name = "Ring"
  3294. orb.Material = "Neon"
  3295. orb.Size = Vector3.new(1, 1, 1)
  3296. orb.Transparency = 0
  3297. orb.TopSurface = 0
  3298. orb.BottomSurface = 0
  3299. local orbm = Instance.new("SpecialMesh", orb)
  3300. orbm.MeshType = "Sphere"
  3301. orbm.Name = "SizeMesh"
  3302. orbm.Scale = vt(0,0,0)
  3303. local scaled = 0.1
  3304. local posid = 0
  3305. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3306. for i = 0, 5, 0.1 do
  3307. swait()
  3308. scaled = scaled - 0.001
  3309. posid = posid - scaled
  3310. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3311. local scaled = 0.1
  3312. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3313. 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)
  3314. 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)
  3315. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3316. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3317. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3318. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3319. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3320. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3321. end
  3322. for i = 0, 2, 0.1 do
  3323. swait()
  3324. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3325. 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)
  3326. 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)
  3327. 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)
  3328. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3329. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3330. 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)
  3331. end
  3332. coroutine.resume(coroutine.create(function()
  3333. orb.Anchored = false
  3334. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3335. local a = Instance.new("Part",workspace)
  3336. a.Name = "Direction"
  3337. a.Anchored = true
  3338. a.BrickColor = bc("Bright red")
  3339. a.Material = "Neon"
  3340. a.Transparency = 1
  3341. a.CanCollide = false
  3342. local ray = Ray.new(
  3343. orb.CFrame.p, -- origin
  3344. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3345. )
  3346. local ignore = orb
  3347. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3348. a.BottomSurface = 10
  3349. a.TopSurface = 10
  3350. local distance = (orb.CFrame.p - position).magnitude
  3351. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3352. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3353. orb.CFrame = a.CFrame
  3354. a:Destroy()
  3355. local bv = Instance.new("BodyVelocity")
  3356. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3357. bv.velocity = orb.CFrame.lookVector*125
  3358. bv.Parent = orb
  3359. local hitted = false
  3360. game:GetService("Debris"):AddItem(orb, 15)
  3361. wait()
  3362. local hit =orb.Touched:connect(function(hit)
  3363. if hitted == false then
  3364. hitted = true
  3365. CameraEnshaking(10,2.5)
  3366. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3367. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3368. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3369. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3370. for i = 0, 49 do
  3371. 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)
  3372. end
  3373. for i = 0, 9 do
  3374. 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)
  3375. 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)
  3376. end
  3377. orb.Anchored = true
  3378. orb.Transparency = 1
  3379. wait(8)
  3380. orb:Destroy()
  3381. end
  3382. end)
  3383. end))
  3384. for i = 0, 1, 0.1 do
  3385. swait()
  3386. 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)
  3387. 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)
  3388. 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)
  3389. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3390. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3391. 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)
  3392. end
  3393. hum.WalkSpeed = storehumanoidWS
  3394. attack = false
  3395. end
  3396.  
  3397. function BanishingOrb()
  3398. attack = true
  3399. hum.WalkSpeed = 0
  3400. local orb = Instance.new("Part", char)
  3401. orb.Anchored = true
  3402. orb.BrickColor = BrickColor.new("Black")
  3403. orb.CanCollide = false
  3404. orb.FormFactor = 3
  3405. orb.Name = "Ring"
  3406. orb.Material = "Neon"
  3407. orb.Size = Vector3.new(1, 1, 1)
  3408. orb.Transparency = 0
  3409. orb.TopSurface = 0
  3410. orb.BottomSurface = 0
  3411. local orbm = Instance.new("SpecialMesh", orb)
  3412. orbm.MeshType = "Sphere"
  3413. orbm.Name = "SizeMesh"
  3414. orbm.Scale = vt(0,0,0)
  3415. local scaled = 0.1
  3416. local posid = 0
  3417. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3418. for i = 0, 5, 0.1 do
  3419. swait()
  3420. scaled = scaled - 0.001
  3421. posid = posid - scaled
  3422. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3423. local scaled = 0.1
  3424. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3425. 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)
  3426. 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)
  3427. 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)
  3428. 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)
  3429. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3430. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3431. 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)
  3432. end
  3433. for i = 0, 2, 0.1 do
  3434. swait()
  3435. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3436. 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)
  3437. 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)
  3438. 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)
  3439. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3440. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3441. 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)
  3442. end
  3443. coroutine.resume(coroutine.create(function()
  3444. orb.Anchored = false
  3445. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3446. local a = Instance.new("Part",workspace)
  3447. a.Name = "Direction"
  3448. a.Anchored = true
  3449. a.BrickColor = bc("Bright red")
  3450. a.Material = "Neon"
  3451. a.Transparency = 1
  3452. a.CanCollide = false
  3453. local ray = Ray.new(
  3454. orb.CFrame.p, -- origin
  3455. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3456. )
  3457. local ignore = orb
  3458. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3459. a.BottomSurface = 10
  3460. a.TopSurface = 10
  3461. local distance = (orb.CFrame.p - position).magnitude
  3462. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3463. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3464. orb.CFrame = a.CFrame
  3465. a:Destroy()
  3466. local bv = Instance.new("BodyVelocity")
  3467. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3468. bv.velocity = orb.CFrame.lookVector*0
  3469. bv.Parent = orb
  3470. local hitted = false
  3471. local rate = 0
  3472. coroutine.resume(coroutine.create(function()
  3473. for i = 0, 24 do
  3474. wait(0.1)
  3475. rate = rate + 0.25
  3476. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3477. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3478. if v:FindFirstChild('Head') then
  3479. dmg(v)
  3480. end
  3481. end
  3482. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3483. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3484. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3485. end
  3486. orb.Anchored = true
  3487. orb.Transparency = 1
  3488. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3489. if v:FindFirstChild('Head') then
  3490. dmg(v)
  3491. end
  3492. end
  3493. local eff = Instance.new("ParticleEmitter",orb)
  3494. eff.Texture = "rbxassetid://296874871"
  3495. eff.LightEmission = 0.95
  3496. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3497. eff.Rate = 1000000000
  3498. eff.Lifetime = NumberRange.new(3)
  3499. 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)})
  3500. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3501. eff.Speed = NumberRange.new(30)
  3502. eff.Acceleration = vt(0,-15,0)
  3503. eff.Rotation = NumberRange.new(-500,500)
  3504. eff.VelocitySpread = 100000
  3505. eff.RotSpeed = NumberRange.new(-500,500)
  3506. coroutine.resume(coroutine.create(function()
  3507. wait(0.6)
  3508. eff.Enabled = false
  3509. end))
  3510. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3511. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3512. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3513. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3514. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3515. game:GetService("Debris"):AddItem(orb, 15)
  3516. end))
  3517. end))
  3518. for i = 0, 1, 0.1 do
  3519. swait()
  3520. 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)
  3521. 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)
  3522. 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)
  3523. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3524. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3525. 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)
  3526. end
  3527. hum.WalkSpeed = storehumanoidWS
  3528. attack = false
  3529. end
  3530.  
  3531.  
  3532. function ChaosGroundStrike()
  3533. attack = true
  3534. for i = 0, 2, 0.1 do
  3535. swait()
  3536. 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)
  3537. 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)
  3538. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3539. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3540. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3541. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3542. end
  3543. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3544. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3545. CameraEnshaking(4,12)
  3546. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3547. if v:FindFirstChild('Head') then
  3548. dmg(v)
  3549. end
  3550. end
  3551. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3552. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3553. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3554. for i = 0, 2, 0.1 do
  3555. swait()
  3556. 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)
  3557. 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)
  3558. 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)
  3559. 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)
  3560. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3561. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3562. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3563. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3564. end
  3565. attack = false
  3566. end
  3567.  
  3568.  
  3569.  
  3570. function Starfall()
  3571. attack = true
  3572. hum.WalkSpeed = 0
  3573. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3574. for i = 0, 5, 0.1 do
  3575. swait()
  3576. 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)
  3577. 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)
  3578. 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)
  3579. 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)
  3580. 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)
  3581. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3582. 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)
  3583. 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)
  3584. end
  3585. local Overed = false
  3586. CameraEnshaking(2,20)
  3587. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3588. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3589. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3590. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3591. local orb = Instance.new("Part", char)
  3592. orb.Anchored = true
  3593. orb.BrickColor = BrickColor.new("Toothpaste")
  3594. orb.CanCollide = false
  3595. orb.FormFactor = 3
  3596. orb.Name = "Remenant"
  3597. orb.Material = "Neon"
  3598. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3599. orb.Size = Vector3.new(1, 1, 1)
  3600. orb.Transparency = 1
  3601. orb.TopSurface = 0
  3602. orb.BottomSurface = 0
  3603. hum.WalkSpeed = storehumanoidWS
  3604. coroutine.resume(coroutine.create(function()
  3605. for i = 0, 9 do
  3606. swait(10)
  3607. local lb = Instance.new("Part")
  3608. lb.Color = MAINRUINCOLOR.Color
  3609. lb.CanCollide = false
  3610. lb.Material = "Neon"
  3611. lb.Anchored = true
  3612. lb.TopSurface = 0
  3613. lb.BottomSurface = 0
  3614. lb.Transparency = 0
  3615. lb.Size = vt(1,1,1)
  3616. 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)))
  3617. lb.Anchored = false
  3618. lb.Parent = char
  3619. local thingery = Instance.new("SpecialMesh",lb)
  3620. thingery.MeshType = "Sphere"
  3621. thingery.Scale = vt(20,20,20)
  3622. game:GetService("Debris"):AddItem(lb, 10)
  3623. local bv = Instance.new("BodyVelocity")
  3624. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3625. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3626. bv.Parent = lb
  3627. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3628. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3629. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3630. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3631. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3632. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3633. local hitted = false
  3634. coroutine.resume(coroutine.create(function()
  3635. while true do
  3636. swait(1)
  3637. if lb.Parent ~= nil and hitted == false then
  3638. 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)
  3639. elseif lb.Parent == nil then
  3640. break
  3641. end
  3642. end
  3643. end))
  3644.  
  3645. game:GetService("Debris"):AddItem(a, 0.1)
  3646.  
  3647. coroutine.resume(coroutine.create(function()
  3648. swait(1)
  3649. lb.Touched:connect(function(hit)
  3650. if hitted == false then
  3651. hitted = true
  3652. lb.Transparency = 1
  3653. lb.Anchored = true
  3654. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3655. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3656. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3657. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3658. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3659. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3660. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3661. CameraEnshaking(1,5)
  3662. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3663. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3664. for i = 0, 9 do
  3665. 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)
  3666. end
  3667. for i = 0, 49 do
  3668. swait()
  3669. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3670. 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)
  3671. end
  3672. end
  3673. end)
  3674. end))
  3675. end
  3676. Overed = true
  3677. orb:Destroy()
  3678. end))
  3679.  
  3680. attack = false
  3681. end
  3682.  
  3683. function StarfallEX()
  3684. attack = true
  3685. hum.WalkSpeed = 0
  3686. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3687. for i = 0, 10, 0.1 do
  3688. swait()
  3689. 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)
  3690. 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)
  3691. 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)
  3692. 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)
  3693. 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)
  3694. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3695. 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)
  3696. 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)
  3697. end
  3698. local Overed = false
  3699. CameraEnshaking(2,20)
  3700. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3701. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3702. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3703. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3704. local orb = Instance.new("Part", char)
  3705. orb.Anchored = true
  3706. orb.BrickColor = BrickColor.new("Toothpaste")
  3707. orb.CanCollide = false
  3708. orb.FormFactor = 3
  3709. orb.Name = "Remenant"
  3710. orb.Material = "Neon"
  3711. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3712. orb.Size = Vector3.new(1, 1, 1)
  3713. orb.Transparency = 1
  3714. orb.TopSurface = 0
  3715. orb.BottomSurface = 0
  3716. hum.WalkSpeed = storehumanoidWS
  3717. coroutine.resume(coroutine.create(function()
  3718. for i = 0, 4 do
  3719. swait(15)
  3720. local lb = Instance.new("Part")
  3721. lb.Color = MAINRUINCOLOR.Color
  3722. lb.CanCollide = false
  3723. lb.Material = "Neon"
  3724. lb.Anchored = true
  3725. lb.TopSurface = 0
  3726. lb.BottomSurface = 0
  3727. lb.Transparency = 0
  3728. lb.Size = vt(1,1,1)
  3729. 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)))
  3730. lb.Anchored = false
  3731. lb.Parent = char
  3732. local thingery = Instance.new("SpecialMesh",lb)
  3733. thingery.MeshType = "Sphere"
  3734. thingery.Scale = vt(50,50,50)
  3735. game:GetService("Debris"):AddItem(lb, 10)
  3736. local bv = Instance.new("BodyVelocity")
  3737. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3738. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3739. bv.Parent = lb
  3740. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3741. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3742. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3743. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3744. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3745. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3746. local hitted = false
  3747. coroutine.resume(coroutine.create(function()
  3748. while true do
  3749. swait(1)
  3750. if lb.Parent ~= nil and hitted == false then
  3751. 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)
  3752. elseif lb.Parent == nil then
  3753. break
  3754. end
  3755. end
  3756. end))
  3757.  
  3758. game:GetService("Debris"):AddItem(a, 0.1)
  3759.  
  3760. coroutine.resume(coroutine.create(function()
  3761. swait(1)
  3762. lb.Touched:connect(function(hit)
  3763. if hitted == false then
  3764. hitted = true
  3765. lb.Transparency = 1
  3766. lb.Anchored = true
  3767. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3768. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3769. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3770. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3771. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3772. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3773. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3774. CameraEnshaking(1,5)
  3775. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3776. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3777. for i = 0, 9 do
  3778. 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)
  3779. end
  3780. for i = 0, 99 do
  3781. swait()
  3782. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3783. 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)
  3784. end
  3785. end
  3786. end)
  3787. end))
  3788. end
  3789. Overed = true
  3790. orb:Destroy()
  3791. end))
  3792.  
  3793. attack = false
  3794. end
  3795.  
  3796. function DivineBlast()
  3797. attack = true
  3798. hum.WalkSpeed = 0
  3799. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3800. elocacenter.Anchored = true
  3801. elocacenter.CFrame = sorb.CFrame
  3802. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3803. eloca1.Anchored = true
  3804. eloca1.CFrame = elocacenter.CFrame
  3805. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3806. eloca2.Anchored = true
  3807. eloca2.CFrame = elocacenter.CFrame
  3808. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3809. eloca3.Anchored = true
  3810. eloca3.CFrame = elocacenter.CFrame
  3811. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3812. eloca4.Anchored = true
  3813. eloca4.CFrame = elocacenter.CFrame
  3814. local lookavec = 0
  3815. local speeds = 0
  3816. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3817. for i = 0, 3, 0.1 do
  3818. swait()
  3819. ---
  3820. lookavec = lookavec + 0.1
  3821. speeds = speeds + 10
  3822. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3823. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3824. 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)
  3825.  
  3826. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3827. 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)
  3828.  
  3829. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3830. 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)
  3831.  
  3832. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3833. 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)
  3834. ---
  3835. root.CFrame = FaceMouse()[1]
  3836. 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)
  3837. 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)
  3838. 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)
  3839. 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)
  3840. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3841. 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)
  3842. end
  3843. for i = 0, 3, 0.1 do
  3844. swait()
  3845. ---
  3846. speeds = speeds + 10
  3847. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3848. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3849. 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)
  3850.  
  3851. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3852. 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)
  3853.  
  3854. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3855. 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)
  3856.  
  3857. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3858. 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)
  3859. ---
  3860. root.CFrame = FaceMouse()[1]
  3861. 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)
  3862. 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)
  3863. 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)
  3864. 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)
  3865. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3866. 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)
  3867. end
  3868. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  3869. for i = 0, 3, 0.1 do
  3870. swait()
  3871. ---
  3872. speeds = speeds + 10
  3873. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3874. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3875. 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)
  3876.  
  3877. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3878. 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)
  3879.  
  3880. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3881. 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)
  3882.  
  3883. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3884. 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)
  3885. ---
  3886. root.CFrame = FaceMouse()[1]
  3887. 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)
  3888. 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)
  3889. 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)
  3890. 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)
  3891. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  3892. 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)
  3893. end
  3894. coroutine.resume(coroutine.create(function()
  3895. local a = Instance.new("Part",Character)
  3896. a.Name = "Direction"
  3897. a.Anchored = true
  3898. a.BrickColor = bc("White")
  3899. a.Material = "Neon"
  3900. a.Transparency = 0
  3901. a.Shape = "Cylinder"
  3902. a.CanCollide = false
  3903. local a2 = Instance.new("Part",Character)
  3904. a2.Name = "Direction"
  3905. a2.Anchored = true
  3906. a2.BrickColor = bc("Bright yellow")
  3907. a2.Material = "Neon"
  3908. a2.Transparency = 0
  3909. a2.Shape = "Cylinder"
  3910. a2.CanCollide = false
  3911. local b = Instance.new("Part",Character)
  3912. b.Name = "HitDirect"
  3913. b.Anchored = true
  3914. b.BrickColor = bc("Cool yellow")
  3915. b.Material = "Neon"
  3916. b.Transparency = 1
  3917. b.CanCollide = false
  3918. local ray = Ray.new(
  3919. elocacenter.CFrame.p, -- origin
  3920. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  3921. )
  3922. local ignore = Character
  3923. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3924. a.BottomSurface = 10
  3925. a.TopSurface = 10
  3926. a2.BottomSurface = 10
  3927. a2.TopSurface = 10
  3928. local distance = (elocacenter.CFrame.p - position).magnitude
  3929. a.Size = Vector3.new(distance, 1, 1)
  3930. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3931. a2.Size = Vector3.new(distance, 1, 1)
  3932. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3933. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3934. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3935. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  3936. game:GetService("Debris"):AddItem(a, 10)
  3937. game:GetService("Debris"):AddItem(a2, 10)
  3938. game:GetService("Debris"):AddItem(b, 10)
  3939. local msh = Instance.new("SpecialMesh",a)
  3940. msh.MeshType = "Cylinder"
  3941. msh.Scale = vt(1,2,2)
  3942. local msh2 = Instance.new("SpecialMesh",a2)
  3943. msh2.MeshType = "Cylinder"
  3944. msh2.Scale = vt(1,2.5,2.5)
  3945. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  3946. coroutine.resume(coroutine.create(function()
  3947. for i = 0,10,0.1 do
  3948. swait()
  3949. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  3950. a.Transparency = a.Transparency + 0.025
  3951. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  3952. a2.Transparency = a2.Transparency + 0.05
  3953. end
  3954. a:Destroy()
  3955. a2:Destroy()
  3956. end))
  3957. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  3958. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  3959. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  3960. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  3961. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  3962. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  3963. MagniDamage(b, 25, 40,65, 0, "Normal")
  3964. for i = 0, 49 do
  3965. 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)
  3966. 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)
  3967. end
  3968. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  3969. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  3970. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3971. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3972. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3973. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  3974. end))
  3975. game:GetService("Debris"):AddItem(elocacenter, 5)
  3976. hum.WalkSpeed = storehumanoidWS
  3977. attack = false
  3978. end
  3979.  
  3980. function StarDivision()
  3981. attack = true
  3982. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  3983. for i = 0, 2, 0.1 do
  3984. swait()
  3985. 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)
  3986. 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)
  3987. 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)
  3988. 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)
  3989. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  3990. 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)
  3991. end
  3992. local orb = Instance.new("Part", char)
  3993. orb.BrickColor = MAINRUINCOLOR
  3994. orb.CanCollide = false
  3995. orb.FormFactor = 3
  3996. orb.Name = "Ring"
  3997. orb.Material = "Neon"
  3998. orb.Size = Vector3.new(1, 1, 1)
  3999. orb.Transparency = 0
  4000. orb.TopSurface = 0
  4001. orb.BottomSurface = 0
  4002. local orbm = Instance.new("SpecialMesh", orb)
  4003. orbm.MeshType = "Sphere"
  4004. orbm.Name = "SizeMesh"
  4005. orbm.Scale = vt(2,2,2)
  4006. local a = Instance.new("Part",workspace)
  4007. a.Name = "Direction"
  4008. a.Anchored = true
  4009. a.BrickColor = bc("Bright red")
  4010. a.Material = "Neon"
  4011. a.Transparency = 1
  4012. a.CanCollide = false
  4013. local ray = Ray.new(
  4014. sorb.CFrame.p, -- origin
  4015. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4016. )
  4017. local ignore = sorb
  4018. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4019. a.BottomSurface = 10
  4020. a.TopSurface = 10
  4021. local distance = (sorb.CFrame.p - position).magnitude
  4022. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4023. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4024. orb.CFrame = a.CFrame
  4025. a:Destroy()
  4026. local bv = Instance.new("BodyVelocity")
  4027. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4028. bv.velocity = orb.CFrame.lookVector*100
  4029. bv.Parent = orb
  4030. local hitted = false
  4031. game:GetService("Debris"):AddItem(orb, 10)
  4032. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4033. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4034. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4035. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4036. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4037. coroutine.resume(coroutine.create(function()
  4038. while true do
  4039. swait(1)
  4040. if orb.Parent ~= nil and hitted == false then
  4041. 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)
  4042. elseif orb.Parent == nil then
  4043. break
  4044. end
  4045. end
  4046. end))
  4047. coroutine.resume(coroutine.create(function()
  4048. swait(1)
  4049. orb.Touched:connect(function(hit)
  4050. if hitted == false then
  4051. hitted = true
  4052. game:GetService("Debris"):AddItem(orb, 5)
  4053. orb.Transparency = 1
  4054. orb.Anchored = true
  4055. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4056. elocacenter.Anchored = true
  4057. elocacenter.CFrame = orb.CFrame
  4058. elocacenter.Orientation = vt(0,0,0)
  4059. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4060. eloca1.Anchored = true
  4061. eloca1.CFrame = elocacenter.CFrame
  4062. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4063. eloca2.Anchored = true
  4064. eloca2.CFrame = elocacenter.CFrame
  4065. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4066. eloca3.Anchored = true
  4067. eloca3.CFrame = elocacenter.CFrame
  4068. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4069. eloca4.Anchored = true
  4070. eloca4.CFrame = elocacenter.CFrame
  4071. local lookavec = 0
  4072. local speeds = 0
  4073. CameraEnshaking(1,1)
  4074. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4075. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4076. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4077. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4078. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4079. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4080. for i = 0, 99 do
  4081. swait()
  4082. lookavec = lookavec + 1
  4083. speeds = speeds + 0.1
  4084. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4085. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4086. 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)
  4087.  
  4088. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4089. 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)
  4090.  
  4091. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4092. 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)
  4093.  
  4094. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4095. 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)
  4096. end
  4097.  
  4098. for i = 0, 149 do
  4099. swait()
  4100. speeds = speeds + 0.1
  4101. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4102. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4103. 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)
  4104.  
  4105. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4106. 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)
  4107.  
  4108. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4109. 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)
  4110.  
  4111. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4112. 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)
  4113. end
  4114. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4115. if v:FindFirstChild('Head') then
  4116. dmg(v)
  4117. end
  4118. end
  4119. CameraEnshaking(7,30)
  4120. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4121. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4122. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4123. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4124. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4125. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4126. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4127. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4128. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4129. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4130. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4131. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4132. for i = 0, 24 do
  4133. 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)
  4134. 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)
  4135. 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)
  4136. 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)
  4137. end
  4138. coroutine.resume(coroutine.create(function()
  4139. for i = 0, 499 do
  4140. swait(1)
  4141. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4142. 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)
  4143. end
  4144. elocacenter:Destroy()
  4145. eloca1:Destroy()
  4146. eloca2:Destroy()
  4147. eloca3:Destroy()
  4148. eloca4:Destroy()
  4149. end))
  4150. end
  4151. end)
  4152. end))
  4153. attack = false
  4154. end
  4155.  
  4156.  
  4157. function THE_TRUE_POWER_OF_VIOLENCE()
  4158. attack = true
  4159. hum.WalkSpeed = 0
  4160. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
  4161. for i = 0, 10, 0.1 do
  4162. swait()
  4163. 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)
  4164. 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)
  4165. 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)
  4166. 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)
  4167. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4168. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4169. 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)
  4170. end
  4171. local orb = Instance.new("Part", char)
  4172. orb.BrickColor = MAINRUINCOLOR
  4173. orb.CanCollide = false
  4174. orb.FormFactor = 3
  4175. orb.Name = "Ring"
  4176. orb.Material = "Neon"
  4177. orb.Size = Vector3.new(1, 1, 1)
  4178. orb.Transparency = 0
  4179. orb.TopSurface = 0
  4180. orb.BottomSurface = 0
  4181. orb.CFrame = sorb.CFrame
  4182. local orbm = Instance.new("SpecialMesh", orb)
  4183. orbm.MeshType = "Sphere"
  4184. orbm.Name = "SizeMesh"
  4185. orbm.Scale = vt(0,0,0)
  4186. local sbs = Instance.new("BodyPosition", orb)
  4187. sbs.P = 3000
  4188. sbs.D = 1000
  4189. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4190. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4191. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4192. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4193. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4194. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4195. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4196. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4197. for i = 0, 10, 0.1 do
  4198. swait()
  4199. 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)
  4200. 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)
  4201. 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)
  4202. 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)
  4203. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4204. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4205. 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)
  4206. end
  4207. orb.Anchored = true
  4208. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4209. elocacenter.Anchored = true
  4210. elocacenter.CFrame = orb.CFrame
  4211. elocacenter.Orientation = vt(0,0,0)
  4212. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4213. eloca1.Anchored = true
  4214. eloca1.CFrame = elocacenter.CFrame
  4215. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4216. eloca2.Anchored = true
  4217. eloca2.CFrame = elocacenter.CFrame
  4218. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4219. eloca3.Anchored = true
  4220. eloca3.CFrame = elocacenter.CFrame
  4221. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4222. eloca4.Anchored = true
  4223. eloca4.CFrame = elocacenter.CFrame
  4224. local lookavec = 0
  4225. local speeds = 0
  4226. CameraEnshaking(1,1)
  4227. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4228. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4229. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4230. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4231. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4232. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4233. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4234. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4235. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4236. for i = 0, 99 do
  4237. swait()
  4238. lookavec = lookavec + 2.5
  4239. speeds = speeds + 0.25
  4240. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4241. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4242. 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)
  4243.  
  4244. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4245. 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)
  4246.  
  4247. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4248. 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)
  4249.  
  4250. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4251. 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)
  4252. end
  4253.  
  4254. for i = 0, 149 do
  4255. swait()
  4256. speeds = speeds + 0.25
  4257. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4258. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4259. 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)
  4260.  
  4261. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4262. 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)
  4263.  
  4264. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4265. 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)
  4266.  
  4267. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4268. 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)
  4269. end
  4270. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4271. for i = 0, 99 do
  4272. swait()
  4273. lookavec = lookavec - 2.5
  4274. speeds = speeds + 0.25
  4275. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4276. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4277. 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)
  4278.  
  4279. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4280. 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)
  4281.  
  4282. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4283. 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)
  4284.  
  4285. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4286. 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)
  4287. end
  4288. local scaled = 0.1*75
  4289. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4290. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4291. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4292. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4293. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4294. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4295. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4296. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4297. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4298. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4299. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4300. for i = 0, 10, 0.1 do
  4301. swait()
  4302. scaled = scaled - 0.001*75
  4303. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4304. 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)
  4305. 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)
  4306. 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)
  4307. 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)
  4308. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4309. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4310. 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)
  4311. end
  4312. for x = 0, 4 do
  4313. for i = 0, 9 do
  4314. 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)
  4315. end
  4316. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4317. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4318. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4319. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4320. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4321. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4322. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4323. for i = 0, 5, 0.1 do
  4324. swait()
  4325. 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)
  4326. 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)
  4327. 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)
  4328. 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)
  4329. 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)
  4330. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4331. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4332. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4333. end
  4334. end
  4335. local speedearn = 0
  4336. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4337. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4338. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4339. for i = 0, 30, 0.1 do
  4340. swait()
  4341. scaled = scaled - 0.001*75/10
  4342. speedearn = speedearn + 0.5
  4343. for i = 0, 4 do
  4344. 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)
  4345. end
  4346. 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)
  4347. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4348. 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)
  4349. 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)
  4350. 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)
  4351. 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)
  4352. 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)
  4353. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4354. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4355. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4356. end
  4357. orb.Transparency = 1
  4358. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4359. if v:FindFirstChild('Head') then
  4360. dmg(v)
  4361. end
  4362. end
  4363. CameraEnshaking(7,30)
  4364. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4365. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4366. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4367. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4368. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4369. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4370. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4371. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4372. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4373. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4374. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4375. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4376. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4377. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4378. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4379. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4380. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4381. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4382. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4383. for i = 0, 99 do
  4384. 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)
  4385. 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)
  4386. end
  4387. for i = 0, 24 do
  4388. 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)
  4389. 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)
  4390. 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)
  4391. 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)
  4392. 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)
  4393. end
  4394. game:GetService("Debris"):AddItem(orb, 10)
  4395. hum.WalkSpeed = storehumanoidWS
  4396. attack = false
  4397. end
  4398.  
  4399.  
  4400. function ViolentRing()
  4401. attack = true
  4402. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4403. for i = 0, 2, 0.1 do
  4404. swait()
  4405. local snap = math.random(1,10)
  4406. if snap == 1 then
  4407. 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)
  4408. end
  4409. 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)
  4410. 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)
  4411. 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)
  4412. 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)
  4413. 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)
  4414. 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)
  4415. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4416. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4417. 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)
  4418. RootPart.CFrame = FaceMouse()[1]
  4419. end
  4420. local orb = Instance.new("Part", char)
  4421. orb.BrickColor = MAINRUINCOLOR
  4422. orb.CanCollide = false
  4423. orb.FormFactor = 3
  4424. orb.Name = "Ring"
  4425. orb.Material = "Neon"
  4426. orb.Size = Vector3.new(1, 1, 1)
  4427. orb.Transparency = 0
  4428. orb.TopSurface = 0
  4429. orb.BottomSurface = 0
  4430. local orbm = Instance.new("SpecialMesh", orb)
  4431. orbm.MeshType = "Sphere"
  4432. orbm.Name = "SizeMesh"
  4433. orbm.Scale = vt(2,2,2)
  4434. orb.CFrame = mouse.Hit
  4435. local bv = Instance.new("BodyVelocity")
  4436. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4437. bv.velocity = orb.CFrame.lookVector*100
  4438. bv.Parent = orb
  4439. local hitted = false
  4440. coroutine.resume(coroutine.create(function()
  4441. game:GetService("Debris"):AddItem(orb, 5)
  4442. orb.Transparency = 1
  4443. orb.Anchored = true
  4444. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4445. elocacenter.Anchored = true
  4446. elocacenter.CFrame = orb.CFrame
  4447. elocacenter.Orientation = vt(0,0,0)
  4448. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4449. eloca1.Anchored = true
  4450. eloca1.CFrame = elocacenter.CFrame
  4451. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4452. eloca2.Anchored = true
  4453. eloca2.CFrame = elocacenter.CFrame
  4454. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4455. eloca3.Anchored = true
  4456. eloca3.CFrame = elocacenter.CFrame
  4457. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4458. eloca4.Anchored = true
  4459. eloca4.CFrame = elocacenter.CFrame
  4460. local lookavec = 0
  4461. local speeds = 0
  4462. CameraEnshaking(1,1)
  4463. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4464. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4465. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4466. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4467. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4468. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4469. for i = 0, 24 do
  4470. swait()
  4471. lookavec = lookavec + 3.5
  4472. speeds = speeds + 1
  4473. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4474. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4475. 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)
  4476.  
  4477. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4478. 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)
  4479.  
  4480. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4481. 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)
  4482.  
  4483. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4484. 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)
  4485. end
  4486.  
  4487. local risen = 0
  4488. for i = 0, 49 do
  4489. swait()
  4490. risen = risen + 0.05
  4491. speeds = speeds + 0.1
  4492. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4493. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4494. 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)
  4495.  
  4496. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4497. 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)
  4498.  
  4499. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4500. 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)
  4501.  
  4502. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4503. 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)
  4504. end
  4505. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4506. if v:FindFirstChild('Head') then
  4507. dmg(v)
  4508. end
  4509. end
  4510. CameraEnshaking(4,10)
  4511. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4512. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4513. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4514. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4515. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4516. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4517. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4518. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4519. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4520. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4521. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4522. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4523. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4524. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4525. for i = 0, 24 do
  4526. 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)
  4527. 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)
  4528. 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)
  4529. 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)
  4530. end
  4531. coroutine.resume(coroutine.create(function()
  4532. wait(10)
  4533. elocacenter:Destroy()
  4534. eloca1:Destroy()
  4535. eloca2:Destroy()
  4536. eloca3:Destroy()
  4537. eloca4:Destroy()
  4538. end))
  4539. end))
  4540. attack = false
  4541. end
  4542.  
  4543. function UniversalCollapse()
  4544. attack = true
  4545. local speedearn = 0
  4546. hum.WalkSpeed = 0
  4547. local sbs = Instance.new("BodyPosition", root)
  4548. sbs.P = 3000
  4549. sbs.D = 1000
  4550. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4551. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4552. CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
  4553. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4554. for i = 0, 110, 0.1 do
  4555. swait()
  4556. speedearn = speedearn + 0.1
  4557. 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)
  4558. 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)
  4559. 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)
  4560. 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)
  4561. 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)
  4562. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4563. 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)
  4564. 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)
  4565. 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)
  4566. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4567. 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)
  4568. 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)
  4569. end
  4570. CameraEnshaking(5,50)
  4571. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4572. for i = 0, 2 do
  4573. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4574. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4575. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4576. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4577. end
  4578. for i = 0, 49 do
  4579. 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)
  4580. 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)
  4581. 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)
  4582. 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)
  4583. end
  4584. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4585. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4586. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4587. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4588. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4589. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4590. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4591. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4592. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4593. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4594. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4595. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4596. for i = 0, 99 do
  4597. 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)
  4598. 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)
  4599. end
  4600. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4601. if v:FindFirstChild('Head') then
  4602. dmg(v)
  4603. end
  4604. end
  4605. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4606. sbs:Destroy()
  4607. hum.WalkSpeed = storehumanoidWS
  4608. attack = false
  4609. end
  4610.  
  4611.  
  4612. function ChaosEND()
  4613. attack = true
  4614. local speedearn = 0
  4615. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
  4616. for i = 0, 15, 0.1 do
  4617. swait()
  4618. speedearn = speedearn + 0.25
  4619. 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)
  4620. 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)
  4621. 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)
  4622. 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)
  4623. 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)
  4624. 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)
  4625. 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)
  4626. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4627. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4628. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4629. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4630. end
  4631. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4632. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4633. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  4634. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  4635. CameraEnshaking(5,25)
  4636. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4637. if v:FindFirstChild('Head') then
  4638. dmg(v)
  4639. end
  4640. end
  4641. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4642. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4643. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4644. for i = 0, 3, 0.1 do
  4645. swait()
  4646. 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)
  4647. 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)
  4648. 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)
  4649. 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)
  4650. 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)
  4651. 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)
  4652. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4653. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4654. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4655. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4656. end
  4657. attack = false
  4658. end
  4659.  
  4660. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4661. local orb = Instance.new("Part", char)
  4662. orb.Anchored = true
  4663. orb.BrickColor = color
  4664. orb.CanCollide = false
  4665. orb.FormFactor = 3
  4666. orb.Name = "Ring"
  4667. orb.Material = "Neon"
  4668. orb.Size = Vector3.new(1, 1, 1)
  4669. orb.Transparency = 0
  4670. orb.TopSurface = 0
  4671. orb.BottomSurface = 0
  4672. local orbm = Instance.new("SpecialMesh", orb)
  4673. orbm.MeshType = "Sphere"
  4674. orb.CFrame = positted
  4675. orbm.Name = "SizeMesh"
  4676. orbm.Scale = vt(1,1,1)
  4677. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4678. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4679. --[[for i = 0, 2 do
  4680. 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)
  4681. end]]--
  4682. coroutine.resume(coroutine.create(function()
  4683. wait(timer)
  4684. CameraEnshaking(3,ShakePower)
  4685. orb.Transparency = 1
  4686. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4687. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4688. --[[for i = 0, 4 do
  4689. 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)
  4690. end]]--
  4691. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4692. wait(3)
  4693. orb:Destroy()
  4694. end))
  4695. end
  4696.  
  4697. function orb_spawn(positted,timer)
  4698. local randomcol = math.random(1,2)
  4699. local orb = Instance.new("Part", char)
  4700. orb.Anchored = true
  4701. if randomcol == 1 then
  4702. orb.BrickColor = BrickColor.new("White")
  4703. elseif randomcol == 2 then
  4704. orb.BrickColor = BrickColor.new("Really black")
  4705. end
  4706. orb.CanCollide = false
  4707. orb.FormFactor = 3
  4708. orb.Name = "Ring"
  4709. orb.Material = "Neon"
  4710. orb.Size = Vector3.new(1, 1, 1)
  4711. orb.Transparency = 0
  4712. orb.TopSurface = 0
  4713. orb.BottomSurface = 0
  4714. local orbm = Instance.new("SpecialMesh", orb)
  4715. orbm.MeshType = "Sphere"
  4716. orb.CFrame = positted
  4717. orbm.Name = "SizeMesh"
  4718. orbm.Scale = vt(1,1,1)
  4719. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4720. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4721. for i = 0, 2 do
  4722. 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)
  4723. end
  4724. coroutine.resume(coroutine.create(function()
  4725. wait(timer)
  4726. CameraEnshaking(3,2)
  4727. orb.Transparency = 1
  4728. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4729. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4730. for i = 0, 4 do
  4731. 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)
  4732. end
  4733. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4734. wait(3)
  4735. orb:Destroy()
  4736. end))
  4737. end
  4738.  
  4739. function scattercorrupt()
  4740. attack = true
  4741. local rot = 0
  4742. local randomrotations = math.random(1,2)
  4743. local lookv = 2.5
  4744. local power = 5
  4745. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4746. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4747. for i = 0, 9 do
  4748. 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)
  4749. end
  4750. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4751. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4752. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4753. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4754. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4755. local hite = Instance.new("Part", char)
  4756. hite.Anchored = true
  4757. hite.CanCollide = false
  4758. hite.FormFactor = 3
  4759. hite.Name = "Ring"
  4760. hite.Material = "Neon"
  4761. hite.Size = Vector3.new(1, 1, 1)
  4762. hite.Transparency = 1
  4763. hite.TopSurface = 0
  4764. hite.BottomSurface = 0
  4765. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4766. local rem = Instance.new("Part", char)
  4767. rem.Anchored = true
  4768. rem.CanCollide = false
  4769. rem.FormFactor = 3
  4770. rem.Name = "Ring"
  4771. rem.Material = "Neon"
  4772. rem.Size = Vector3.new(1, 1, 1)
  4773. rem.Transparency = 1
  4774. rem.TopSurface = 0
  4775. rem.BottomSurface = 0
  4776. rem.CFrame = hite.CFrame
  4777. local rem2 = rem:Clone()
  4778. rem2.Parent = char
  4779. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4780. local rem3 = rem:Clone()
  4781. rem3.Parent = char
  4782. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4783. local rem4 = rem:Clone()
  4784. rem4.Parent = char
  4785. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4786. hite:Destroy()
  4787. coroutine.resume(coroutine.create(function()
  4788. for i = 0, 24 do
  4789. swait(1)
  4790. if randomrotations == 1 then
  4791. rot = rot + 1
  4792. elseif randomrotations == 2 then
  4793. rot = rot - 1
  4794. end
  4795. power = power + 0.5
  4796. lookv = lookv + 7.5
  4797. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4798. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4799. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4800. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4801. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4802. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4803. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4804. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4805. end
  4806. end))
  4807. attack = false
  4808. end
  4809. function yinyangi()
  4810. attack = true
  4811. for i = 0, 2, 0.1 do
  4812. swait()
  4813. 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)
  4814. 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)
  4815. 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)
  4816. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4817. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4818. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4819. end
  4820. local bv = Instance.new("BodyVelocity")
  4821. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4822. bv.velocity = root.CFrame.lookVector*175
  4823. bv.Parent = root
  4824. for Rotations = 0, 9 do
  4825. for i = 0, 1, 0.5 do
  4826. swait()
  4827. bv.velocity = root.CFrame.lookVector*175
  4828. 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)
  4829. 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)
  4830. 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)
  4831. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4832. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4833. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4834. end
  4835. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4836. for i = 0, 1, 0.5 do
  4837. swait()
  4838. bv.velocity = root.CFrame.lookVector*175
  4839. 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)
  4840. 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)
  4841. 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)
  4842. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4843. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4844. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4845. end
  4846. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4847. for i = 0, 1, 0.5 do
  4848. swait()
  4849. bv.velocity = root.CFrame.lookVector*175
  4850. 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)
  4851. 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)
  4852. 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)
  4853. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4854. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4855. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4856. end
  4857. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4858. for i = 0, 1, 0.5 do
  4859. swait()
  4860. bv.velocity = root.CFrame.lookVector*175
  4861. 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)
  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(0),math.rad(20)),.5)
  4863. 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)
  4864. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4865. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4866. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4867. end
  4868. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4869. end
  4870. bv:Destroy()
  4871. attack = false
  4872. end
  4873.  
  4874. function createBGCircle(size,parent,color)
  4875. local bgui = Instance.new("BillboardGui",parent)
  4876. bgui.Size = UDim2.new(size, 0, size, 0)
  4877. local imgc = Instance.new("ImageLabel",bgui)
  4878. imgc.BackgroundTransparency = 1
  4879. imgc.ImageTransparency = 0
  4880. imgc.Size = UDim2.new(1,0,1,0)
  4881. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  4882. imgc.ImageColor3 = color
  4883. return bgui,imgc
  4884. end
  4885.  
  4886. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  4887. local bgui,imgc = createBGCircle(size,guipar,color)
  4888. bgui.AlwaysOnTop = true
  4889. imgc.Image = "rbxassetid://" ..img
  4890. local rrot = math.random(1,2)
  4891. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  4892. coroutine.resume(coroutine.create(function()
  4893. for i = 0, 24*delay do
  4894. swait()
  4895. if rotationenabled == true then
  4896. if rrot == 1 then
  4897. imgc.Rotation = imgc.Rotation + rotsp
  4898. elseif rrot == 2 then
  4899. imgc.Rotation = imgc.Rotation - rotsp
  4900. end
  4901. end
  4902. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  4903. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  4904. end
  4905. bgui:Destroy()
  4906. end))
  4907. end
  4908. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  4909. for i, v in pairs(mw2:GetChildren()) do
  4910. if v:IsA("Part") then
  4911. v.BrickColor = one
  4912. v.Material = "Neon"
  4913. end
  4914. end
  4915. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  4916. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  4917. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  4918. tr1.Color = ColorSequence.new(one.Color)
  4919. tr2.Color = ColorSequence.new(one.Color)
  4920. tr3.Color = ColorSequence.new(one.Color)
  4921. for i, v in pairs(mw1:GetChildren()) do
  4922. if v:IsA("Part") then
  4923. if secondaryenabled == false then
  4924. v.Transparency = 1
  4925. elseif secondaryenabled == true then
  4926. v.Transparency = 0
  4927. end
  4928. v.BrickColor = two
  4929. v.Material = "Neon"
  4930. end
  4931. end
  4932. if secondaryenabled == false then
  4933. tl1.Enabled = false
  4934. tl2.Enabled = false
  4935. tl3.Enabled = false
  4936. elseif secondaryenabled == true then
  4937. tl1.Enabled = true
  4938. tl2.Enabled = true
  4939. tl3.Enabled = true
  4940. end
  4941. tl1.Color = ColorSequence.new(two.Color)
  4942. tl2.Color = ColorSequence.new(two.Color)
  4943. tl3.Color = ColorSequence.new(two.Color)
  4944. for i, v in pairs(m:GetChildren()) do
  4945. if v:IsA("Part") then
  4946. v.BrickColor = three
  4947. v.Material = "Ice"
  4948. end
  4949. end
  4950. for i, v in pairs(m2:GetChildren()) do
  4951. if v:IsA("Part") then
  4952. v.BrickColor = four
  4953. v.Material = "Ice"
  4954. end
  4955. end
  4956. for i, v in pairs(m3:GetChildren()) do
  4957. if v:IsA("Part") then
  4958. v.BrickColor = five
  4959. v.Material = "Neon"
  4960. end
  4961. end
  4962. for i, v in pairs(extrawingmod1:GetChildren()) do
  4963. if v:IsA("Part") then
  4964. v.Transparency = exonetran
  4965. v.BrickColor = exone
  4966. v.Material = "Neon"
  4967. end
  4968. end
  4969. for i, v in pairs(extrawingmod2:GetChildren()) do
  4970. if v:IsA("Part") then
  4971. v.Transparency = extwotran
  4972. v.BrickColor = extwo
  4973. v.Material = "Neon"
  4974. end
  4975. end
  4976. end
  4977.  
  4978.  
  4979. function normalmog()
  4980. attack = true
  4981. hum.WalkSpeed = 0
  4982. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  4983. for i = 0,6,0.1 do
  4984. swait()
  4985. 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)
  4986. 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)
  4987. 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)
  4988. 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)
  4989. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  4990. 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)
  4991. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  4992. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  4993. end
  4994. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  4995. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  4996. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  4997. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  4998. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  4999. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5000. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5001. rainbowmode = false
  5002. chaosmode = false
  5003. ModeOfGlitch = 1
  5004. storehumanoidWS = 16
  5005. newTheme("rbxassetid://614032233",48.6,1,1.25)
  5006. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5007. CameraEnshaking(5,2.5)
  5008. MAINRUINCOLOR = BrickColor.new("Really red")
  5009. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5010. for i = 0, 49 do
  5011. 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)
  5012. end
  5013. for i = 0, 24 do
  5014. 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)
  5015. 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"))
  5016. end
  5017. for i = 0,3,0.1 do
  5018. 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)
  5019. end
  5020. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5021. for i = 0,2,0.1 do
  5022. swait()
  5023. 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)
  5024. 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)
  5025. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5026. 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)
  5027. 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)
  5028. 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)
  5029. end
  5030. hum.WalkSpeed = storehumanoidWS
  5031. attack = false
  5032. end
  5033.  
  5034. function attackone()
  5035. attack = true
  5036. local keptcolor = MAINRUINCOLOR
  5037. for i = 0,1,0.1 do
  5038. swait()
  5039. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5040. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5041. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5042. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5043. 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)
  5044. 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)
  5045. end
  5046. local distlook = 5
  5047. coroutine.resume(coroutine.create(function()
  5048. for i = 0, 4 do
  5049. swait(2)
  5050. CameraEnshaking(2,3)
  5051. local hite = Instance.new("Part", char)
  5052. hite.Anchored = true
  5053. hite.CanCollide = false
  5054. hite.FormFactor = 3
  5055. hite.Name = "Ring"
  5056. hite.Material = "Neon"
  5057. hite.Size = Vector3.new(1, 1, 1)
  5058. hite.Transparency = 1
  5059. hite.TopSurface = 0
  5060. hite.BottomSurface = 0
  5061. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5062. 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)
  5063. 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)
  5064. 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)
  5065. 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)
  5066. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5067. for i = 0, 14 do
  5068. local rsiz = math.random(5,20)
  5069. 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)
  5070. end
  5071. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5072. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5073. game:GetService("Debris"):AddItem(hite, 5)
  5074. distlook = distlook + 10
  5075. end
  5076. end))
  5077. for i = 0,1,0.1 do
  5078. swait()
  5079. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5080. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5081. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5082. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5083. 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)
  5084. 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)
  5085. end
  5086. attack = false
  5087. end
  5088.  
  5089. function attacktwo()
  5090. attack = true
  5091. hum.WalkSpeed = 2
  5092. local keptcolor = MAINRUINCOLOR
  5093. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5094. 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)
  5095. 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)
  5096. for i = 0, 14 do
  5097. end
  5098. for i = 0,1,0.1 do
  5099. swait()
  5100. 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)
  5101. 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)
  5102. 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)
  5103. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5104. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5105. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5106. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5107. end
  5108. for i = 0, 1 do
  5109. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5110. for i = 0,1,0.6 do
  5111. swait()
  5112. 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)
  5113. 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)
  5114. 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)
  5115. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5116. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5117. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5118. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5119. end
  5120. for i = 0,1,0.6 do
  5121. swait()
  5122. 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)
  5123. 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)
  5124. 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)
  5125. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5126. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5127. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5128. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5129. end
  5130. for i = 0,1,0.6 do
  5131. swait()
  5132. 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)
  5133. 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)
  5134. 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)
  5135. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5136. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5137. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5138. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5139. end
  5140. for i = 0,1,0.6 do
  5141. swait()
  5142. 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)
  5143. 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)
  5144. 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)
  5145. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5146. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5147. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5148. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5149. end
  5150. local rot = 0
  5151. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5152. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5153. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5154. CreateMesh(dis,"Sphere",10,1,10)
  5155. local at1 = Instance.new("Attachment",dis)
  5156. at1.Position = vt(-5,0,0)
  5157. local at2 = Instance.new("Attachment",dis)
  5158. at2.Position = vt(5,0,0)
  5159. local trl = Instance.new('Trail',wed)
  5160. trl.Attachment0 = at1
  5161. trl.Attachment1 = at2
  5162. trl.Texture = "rbxassetid://1049219073"
  5163. trl.LightEmission = 1
  5164. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5165. trl.Color = ColorSequence.new(dis.Color)
  5166. trl.Lifetime = 0.6
  5167. local a = Instance.new("Part",workspace)
  5168. a.Name = "Direction"
  5169. a.Anchored = true
  5170. a.BrickColor = bc("Bright red")
  5171. a.Material = "Neon"
  5172. a.Transparency = 1
  5173. a.CanCollide = false
  5174. local ray = Ray.new(
  5175. dis.CFrame.p, -- origin
  5176. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5177. )
  5178. local ignore = dis
  5179. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5180. a.BottomSurface = 10
  5181. a.TopSurface = 10
  5182. local distance = (dis.CFrame.p - position).magnitude
  5183. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5184. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5185. dis.CFrame = a.CFrame
  5186. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5187. a:Destroy()
  5188. local bv = Instance.new("BodyVelocity")
  5189. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5190. bv.velocity = dis.CFrame.lookVector*250
  5191. bv.Parent = dis
  5192. game:GetService("Debris"):AddItem(dis, 5)
  5193. local hitted = false
  5194. coroutine.resume(coroutine.create(function()
  5195. dis.Touched:connect(function(hit)
  5196. if hitted == false and hit.Parent ~= char then
  5197. hitted = true
  5198. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5199. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5200. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5201. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5202. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5203. coroutine.resume(coroutine.create(function()
  5204. for i = 0, 9 do
  5205. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5206. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5207. local at1 = Instance.new("Attachment",disr)
  5208. at1.Position = vt(-5,0,0)
  5209. local at2 = Instance.new("Attachment",disr)
  5210. at2.Position = vt(5,0,0)
  5211. local trl = Instance.new('Trail',disr)
  5212. trl.Attachment0 = at1
  5213. trl.FaceCamera = true
  5214. trl.Attachment1 = at2
  5215. trl.Texture = "rbxassetid://2342682798"
  5216. trl.LightEmission = 1
  5217. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5218. trl.Color = ColorSequence.new(keptcolor.Color)
  5219. trl.Lifetime = 0.5
  5220. local bv = Instance.new("BodyVelocity")
  5221. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5222. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5223. bv.Parent = disr
  5224. local val = 0
  5225. coroutine.resume(coroutine.create(function()
  5226. swait(30)
  5227. for i = 0, 9 do
  5228. swait()
  5229. val = val + 0.1
  5230. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5231. end
  5232. game:GetService("Debris"):AddItem(disr, 3)
  5233. end))
  5234. end
  5235. local eff = Instance.new("ParticleEmitter",dis)
  5236. eff.Texture = "rbxassetid://2273224484"
  5237. eff.LightEmission = 1
  5238. eff.Color = ColorSequence.new(keptcolor.Color)
  5239. eff.Rate = 50
  5240. eff.Lifetime = NumberRange.new(0.5,2)
  5241. 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)})
  5242. 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)})
  5243. eff.Speed = NumberRange.new(20,250)
  5244. eff.Drag = 5
  5245. eff.Rotation = NumberRange.new(-500,500)
  5246. eff.VelocitySpread = 9000
  5247. eff.RotSpeed = NumberRange.new(-50,50)
  5248. wait(0.25)
  5249. eff.Enabled = false
  5250. end))
  5251. for i = 0, 9 do
  5252. end
  5253. for i = 0, 19 do
  5254. end
  5255. coroutine.resume(coroutine.create(function()
  5256. for i = 0, 19 do
  5257. swait()
  5258. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5259. end
  5260. hum.CameraOffset = vt(0,0,0)
  5261. end))
  5262. dis.Anchored = true
  5263. dis.Transparency = 1
  5264. wait(8)
  5265. dis:Destroy()
  5266. end
  5267. end)
  5268. end))
  5269. rot = rot - 15
  5270. end
  5271. for i = 0,2,0.1 do
  5272. swait()
  5273. 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)
  5274. 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)
  5275. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5276. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5277. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5278. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5279. end
  5280. attack = false
  5281. hum.WalkSpeed = storehumanoidWS
  5282. end
  5283.  
  5284. function attackthree()
  5285. attack = true
  5286. local keptcolor = MAINRUINCOLOR
  5287. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5288. for i = 0,2,0.1 do
  5289. swait()
  5290. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5291. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5292. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5293. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5294. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5295. 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)
  5296. 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)
  5297. end
  5298. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5299. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5300. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5301. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5302. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5303. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5304. for i = 0, 24 do
  5305. end
  5306. for i = 0,4,0.1 do
  5307. swait()
  5308. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5309. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5310. CreateMesh(dis,"Sphere",1,1,1)
  5311. dis.Anchored = true
  5312. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5313. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5314. coroutine.resume(coroutine.create(function()
  5315. swait(30)
  5316. dis.Transparency = 1
  5317. coroutine.resume(coroutine.create(function()
  5318. for i = 0, 19 do
  5319. swait()
  5320. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5321. end
  5322. hum.CameraOffset = vt(0,0,0)
  5323. end))
  5324. coroutine.resume(coroutine.create(function()
  5325. local eff = Instance.new("ParticleEmitter",dis)
  5326. eff.Texture = "rbxassetid://2273224484"
  5327. eff.LightEmission = 1
  5328. eff.Color = ColorSequence.new(dis.Color)
  5329. eff.Rate = 500000
  5330. eff.Lifetime = NumberRange.new(0.5,2)
  5331. 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)})
  5332. 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)})
  5333. eff.Speed = NumberRange.new(50,450)
  5334. eff.Drag = 5
  5335. eff.Rotation = NumberRange.new(-500,500)
  5336. eff.VelocitySpread = 9000
  5337. eff.RotSpeed = NumberRange.new(-50,50)
  5338. wait(0.125)
  5339. eff.Enabled = false
  5340. end))
  5341. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5342. for i = 0, 2 do
  5343. --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)
  5344. end
  5345. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5346. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5347. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5348. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5349. end))
  5350. game:GetService("Debris"):AddItem(dis, 5)
  5351. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5352. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5353. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5354. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5355. 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)
  5356. 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)
  5357. end
  5358. attack = false
  5359. end
  5360. ----------------------------------- Abilities
  5361.  
  5362. function ExtinctiveHeartbreak()
  5363. local targetted = nil
  5364. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5365. targetted = mouse.Target.Parent
  5366. end
  5367. if targetted ~= nil then
  5368. attack = true
  5369. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5370. for i = 0, 9 do
  5371. --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)
  5372. end
  5373. for i = 0, 24 do
  5374. --
  5375. end
  5376. --sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5377. local originalpos = root.CFrame
  5378. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5379. for i = 0, 9 do
  5380. --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)
  5381. end
  5382. for i = 0, 24 do
  5383. end
  5384. hum.WalkSpeed = 0
  5385. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5386. local radm = math.random(1,3)
  5387. if radm == 1 then
  5388. --bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5389. elseif radm == 2 then
  5390. --bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5391. elseif radm == 3 then
  5392. --bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5393. end
  5394. for i = 0,2,0.1 do
  5395. swait()
  5396. 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)
  5397. 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)
  5398. 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)
  5399. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5400. 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)
  5401. 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)
  5402. end
  5403. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  5404. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  5405. for i = 0,2,0.1 do
  5406. swait()
  5407. coroutine.resume(coroutine.create(function()
  5408. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5409. for i,v in pairs(targetted:GetChildren()) do
  5410. if v:IsA("Part") or v:IsA("MeshPart") then
  5411. v.Velocity = vt(0,0,0)
  5412. end
  5413. end
  5414. end))
  5415. 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)
  5416. 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)
  5417. 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)
  5418. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5419. 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)
  5420. 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)
  5421. end
  5422. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  5423. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  5424. for i = 0, 1 do
  5425. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  5426. end
  5427. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  5428. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5429. for i = 0,4,0.1 do
  5430. swait()
  5431. coroutine.resume(coroutine.create(function()
  5432. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5433. 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)))
  5434. local at1 = Instance.new("Attachment",dis)
  5435. at1.Position = vt(-25000,0,0)
  5436. local at2 = Instance.new("Attachment",dis)
  5437. at2.Position = vt(25000,0,0)
  5438. local trl = Instance.new('Trail',dis)
  5439. trl.Attachment0 = at1
  5440. trl.FaceCamera = true
  5441. trl.Attachment1 = at2
  5442. trl.Texture = "rbxassetid://1049219073"
  5443. trl.LightEmission = 1
  5444. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5445. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5446. trl.Lifetime = 5
  5447. local bv = Instance.new("BodyVelocity")
  5448. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5449. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5450. bv.Parent = dis
  5451. game:GetService("Debris"):AddItem(dis, 5)
  5452. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5453. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5454. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5455. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5456. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5457. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5458. 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)
  5459. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5460. for i = 0, 2 do
  5461. --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"))
  5462. end
  5463. 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)
  5464. for i,v in pairs(targetted:GetChildren()) do
  5465. if v:IsA("Part") or v:IsA("MeshPart") then
  5466. v.Velocity = vt(0,0,0)
  5467. end
  5468. end
  5469. end))
  5470. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5471. 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)
  5472. 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)
  5473. 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)
  5474. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5475. 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)
  5476. 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)
  5477. end
  5478. hum.CameraOffset = vt(0,0,0)
  5479. for i = 0, 49 do
  5480. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5481. 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)))
  5482. local at1 = Instance.new("Attachment",dis)
  5483. at1.Position = vt(-50000,0,0)
  5484. local at2 = Instance.new("Attachment",dis)
  5485. at2.Position = vt(50000,0,0)
  5486. local trl = Instance.new('Trail',dis)
  5487. trl.Attachment0 = at1
  5488. trl.FaceCamera = true
  5489. trl.Attachment1 = at2
  5490. trl.Texture = "rbxassetid://1049219073"
  5491. trl.LightEmission = 1
  5492. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5493. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5494. trl.Lifetime = 5
  5495. local bv = Instance.new("BodyVelocity")
  5496. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5497. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5498. bv.Parent = dis
  5499. game:GetService("Debris"):AddItem(dis, 5)
  5500. end
  5501. for i = 0, 49 do
  5502. 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)
  5503. --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"))
  5504. end
  5505. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5506. for i = 0, 1 do
  5507. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5508. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5509. end
  5510. for i = 0, 4 do
  5511. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5512. end
  5513. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5514. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5515. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5516. dmg(targetted)
  5517. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5518. for i = 0, 9 do
  5519. --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)
  5520. end
  5521. for i = 0, 24 do
  5522. end
  5523. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5524. root.CFrame = originalpos
  5525. for i = 0, 9 do
  5526. --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)
  5527. end
  5528. for i = 0, 24 do
  5529. end
  5530. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5531. attack = false
  5532. hum.WalkSpeed = storehumanoidWS
  5533. end
  5534. end
  5535.  
  5536. function CorruptionEvent()
  5537. attack = true
  5538. hum.WalkSpeed = 0
  5539. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5540. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5541. local keptcolor = MAINRUINCOLOR
  5542. for i = 0,4,0.1 do
  5543. swait()
  5544. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5545. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5546. 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)
  5547. 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)
  5548. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5549. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5550. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5551. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5552. end
  5553. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5554. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5555. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5556. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5557. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5558. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5559. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5560. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5561. hum.CameraOffset = vt(0,0,0)
  5562. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5563. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5564. for i = 0, 24 do
  5565. --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"))
  5566. end
  5567. local rrot = 0
  5568. coroutine.resume(coroutine.create(function()
  5569. for i = 0, 4 do
  5570. rrot = rrot + 45
  5571. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5572. xa.Anchored = true
  5573. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5574. xb.Anchored = true
  5575. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5576. xc.Anchored = true
  5577. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5578. xd.Anchored = true
  5579. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5580. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5581. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5582. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5583. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5584. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5585. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5586. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5587. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5588. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5589. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5590. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5591. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5592. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5593. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5594. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5595. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5596. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5597. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5598. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5599. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5600. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5601. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5602. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5603. 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)
  5604. 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)
  5605. 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)
  5606. 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)
  5607. 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))
  5608. 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))
  5609. 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))
  5610. 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))
  5611. game:GetService("Debris"):AddItem(xa, 5)
  5612. game:GetService("Debris"):AddItem(xb, 5)
  5613. game:GetService("Debris"):AddItem(xc, 5)
  5614. game:GetService("Debris"):AddItem(xd, 5)
  5615. coroutine.resume(coroutine.create(function()
  5616. for i = 0, 19 do
  5617. swait()
  5618. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5619. end
  5620. hum.CameraOffset = vt(0,0,0)
  5621. end))
  5622. swait(9)
  5623. end
  5624. end))
  5625. for i = 0,2,0.1 do
  5626. swait()
  5627. 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)
  5628. 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)
  5629. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5630. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5631. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5632. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5633. end
  5634. attack = false
  5635. hum.WalkSpeed = storehumanoidWS
  5636. end
  5637.  
  5638. function EndGROUND()
  5639. attack = true
  5640. hum.WalkSpeed = 0
  5641. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5642. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5643. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5644. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5645. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5646. local keptcolor = MAINRUINCOLOR
  5647. for i = 0,4,0.1 do
  5648. swait()
  5649. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5650. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5651. --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"))
  5652. 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)
  5653. 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)
  5654. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5655. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5656. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5657. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5658. end
  5659. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5660. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5661. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5662. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5663. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5664. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5665. coroutine.resume(coroutine.create(function()
  5666. local shval = 10
  5667. for i = 0, 99 do
  5668. swait()
  5669. shval = shval - 0.1
  5670. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5671. end
  5672. hum.CameraOffset = vt(0,0,0)
  5673. end))
  5674. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5675. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5676. for i = 0, 24 do
  5677. --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"))
  5678. end
  5679. local rrot = 0
  5680. local xam = 1
  5681. coroutine.resume(coroutine.create(function()
  5682. for i = 0, 14 do
  5683. --swait()
  5684. rrot = rrot + 40*xam
  5685. xam = xam + 0.25
  5686. local bonus = xam
  5687. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5688. xa.Anchored = true
  5689. xa.Color = Color3.new(0,0,0)
  5690. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5691. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5692. local xc = 0
  5693. coroutine.resume(coroutine.create(function()
  5694. for i = 0, 99 do
  5695. swait()
  5696. xc = xc + 0.01
  5697. xa.Color = Color3.new(xc,0,0)
  5698. end
  5699. xa.Transparency = 1
  5700. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5701. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5702. for i = 0, 9 do
  5703. --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"))
  5704. end
  5705. 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)
  5706. 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)
  5707. 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))
  5708. game:GetService("Debris"):AddItem(xa, 5)
  5709. coroutine.resume(coroutine.create(function()
  5710. for i = 0, 19 do
  5711. swait()
  5712. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5713. end
  5714. hum.CameraOffset = vt(0,0,0)
  5715. end))
  5716. end))
  5717. end
  5718. end))
  5719. for i = 0,2,0.1 do
  5720. swait()
  5721. 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)
  5722. 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)
  5723. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5724. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5725. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5726. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5727. end
  5728. attack = false
  5729. hum.WalkSpeed = storehumanoidWS
  5730. end
  5731.  
  5732. function BeamOfDeath()
  5733. attack = true
  5734. hum.WalkSpeed = 0
  5735. CFuncs["Sound"].Create("rbxassetid://1368598393", rarm, 8, 1)
  5736. for i = 0, 5, 0.1 do
  5737. swait()
  5738. block(8,"Add",rarm.CFrame*CFrame.new(0,-2,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.01,0.01,BrickColor.new("Really red"),Color3.new(1,0,0))
  5739. 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),math.rad(0),math.rad(-10)),.1)
  5740. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6)),.1)
  5741. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(60)),.1)
  5742. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(-5),math.rad(-60)),.1)
  5743. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(1),math.rad(60)),.1)
  5744. LW.C0=clerp(LW.C0,cf(-0.95,0.65,-0.65)*angles(math.rad(90),math.rad(25),math.rad(73)),.1)
  5745. end
  5746. CFuncs["Sound"].Create("rbxassetid://335657174", rarm, 8, 1)
  5747. for i = 0, 14 do
  5748. slash(math.random(10,40)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-2,0)*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(25,150)/250,BrickColor.new("Really red"))
  5749. end
  5750. block(3,"Add",rarm.CFrame*CFrame.new(0,-2,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.05,0.05,0.05,BrickColor.new("Really red"),Color3.new(1,0,0))
  5751. block(3,"Add",rarm.CFrame*CFrame.new(0,-2,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.1,0.15,0.1,BrickColor.new("Really red"),Color3.new(1,0,0))
  5752. local keptcolor = MAINRUINCOLOR
  5753. local orb = Instance.new("Part", char)
  5754. orb.BrickColor = keptcolor
  5755. orb.CanCollide = false
  5756. orb.FormFactor = 3
  5757. orb.Name = "Ring"
  5758. orb.Material = "Neon"
  5759. orb.Size = Vector3.new(1, 1, 1)
  5760. orb.Transparency = 1
  5761. orb.TopSurface = 0
  5762. orb.BottomSurface = 0
  5763. local orbm = Instance.new("SpecialMesh", orb)
  5764. orbm.MeshType = "Sphere"
  5765. orbm.Name = "SizeMesh"
  5766. orbm.Scale = vt(22.5,10000,22.5)
  5767. orb.CFrame = mouse.Hit
  5768. orb.Anchored = true
  5769. orb.Orientation = vt(0,0,0)
  5770. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  5771. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 2.5, 1)
  5772. local bgui,imgc = createBGCircle(300,orb,MAINRUINCOLOR.Color)
  5773. bgui.AlwaysOnTop = true
  5774. imgc.ImageTransparency = 1
  5775. imgc.Image = "rbxassetid://2325939897"
  5776. local over = false
  5777. coroutine.resume(coroutine.create(function()
  5778. while true do
  5779. swait()
  5780. imgc.Rotation = imgc.Rotation + 5
  5781. if over == true then
  5782. break
  5783. end
  5784. end
  5785. end))
  5786. coroutine.resume(coroutine.create(function()
  5787. coroutine.resume(coroutine.create(function()
  5788. for i = 0, 399 do
  5789. swait()
  5790. bgui.Size = bgui.Size - UDim2.new(0.5,0,0.5,0)
  5791. imgc.ImageTransparency = imgc.ImageTransparency - 0.0025
  5792. orbm.Scale = orbm.Scale - vt(0.05,0,0.05)
  5793. --orb.Transparency = orb.Transparency - 0.0025
  5794. end
  5795. end))
  5796. wait(9)
  5797. CameraEnshaking(15,5)
  5798. for i = 0, 99 do
  5799. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5800. dis.CFrame = orb.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)))
  5801. local at1 = Instance.new("Attachment",dis)
  5802. at1.Position = vt(-25000,0,0)
  5803. local at2 = Instance.new("Attachment",dis)
  5804. at2.Position = vt(25000,0,0)
  5805. local trl = Instance.new('Trail',dis)
  5806. trl.Attachment0 = at1
  5807. trl.FaceCamera = true
  5808. trl.Attachment1 = at2
  5809. trl.Texture = "rbxassetid://1049219073"
  5810. trl.LightEmission = 1
  5811. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5812. trl.Color = ColorSequence.new(keptcolor.Color)
  5813. trl.Lifetime = 5
  5814. local bv = Instance.new("BodyVelocity")
  5815. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5816. bv.velocity = dis.CFrame.lookVector*math.random(1500,7500)
  5817. bv.Parent = dis
  5818. game:GetService("Debris"):AddItem(dis, 15)
  5819. end
  5820. CFuncs["Sound"].Create("rbxassetid://763718160", char, 6, 1.1)
  5821. CFuncs["Sound"].Create("rbxassetid://782353443", char, 6, 1)
  5822. CFuncs["LongSound"].Create("rbxassetid://763717897", char, 5, 0.5)
  5823. CFuncs["LongSound"].Create("rbxassetid://763717897", char, 4, 0.75)
  5824. CFuncs["Sound"].Create("rbxassetid://1664711478", char, 6, 1)
  5825. coroutine.resume(coroutine.create(function()
  5826. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  5827. if hfr ~= nil then
  5828. for i = 0, 49 do
  5829. local deb = Instance.new("Part", char)
  5830. deb.Anchored = true
  5831. deb.CanCollide = false
  5832. deb.FormFactor = 3
  5833. deb.Name = "Ring"
  5834. deb.Material = hitfloor.Material
  5835. deb.Color = hitfloor.Color
  5836. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  5837. deb.Transparency = 0
  5838. deb.TopSurface = 0
  5839. deb.BottomSurface = 0
  5840. deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5841. local deb2 = Instance.new("Part", char)
  5842. deb2.CanCollide = false
  5843. deb2.FormFactor = 3
  5844. deb2.Name = "Ring"
  5845. deb2.Material = hitfloor.Material
  5846. deb2.Color = hitfloor.Color
  5847. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  5848. deb2.Transparency = 0
  5849. deb2.TopSurface = 0
  5850. deb2.BottomSurface = 0
  5851. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  5852. deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5853. local eff = Instance.new("ParticleEmitter",deb)
  5854. eff.Texture = "rbxassetid://363275192"
  5855. eff.LightEmission = 0.95
  5856. eff.Color = ColorSequence.new(keptcolor.Color)
  5857. eff.Rate = 100
  5858. eff.Lifetime = NumberRange.new(1)
  5859. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  5860. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  5861. eff.Speed = NumberRange.new(0,5)
  5862. eff.Rotation = NumberRange.new(-500,500)
  5863. eff.VelocitySpread = 9000
  5864. eff.RotSpeed = NumberRange.new(-10,10)
  5865. local at1 = Instance.new('Attachment',deb2)
  5866. at1.Position = vt(0,15,0)
  5867. local at2 = Instance.new('Attachment',deb2)
  5868. at2.Position = vt(0,-15,0)
  5869. local tl = Instance.new('Trail',deb2)
  5870. tl.Attachment0 = at1
  5871. tl.Attachment1 = at2
  5872. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5873. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  5874. tl.Lifetime = 1
  5875. game:GetService("Debris"):AddItem(deb,30)
  5876. game:GetService("Debris"):AddItem(deb2,30)
  5877. coroutine.resume(coroutine.create(function()
  5878. wait(15)
  5879. eff.Enabled = false
  5880. for i = 0, 49 do
  5881. swait()
  5882. deb.Transparency = deb.Transparency + 0.02
  5883. end
  5884. wait(1)
  5885. deb:Destroy()
  5886. end))
  5887. end
  5888. end
  5889. end))
  5890. for i = 0, 49, 0.1 do
  5891. swait(1.5)
  5892. bgui.Size = bgui.Size + UDim2.new(45,0,45,0)
  5893. imgc.ImageTransparency = imgc.ImageTransparency + 0.01
  5894. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  5895. if v:FindFirstChild('Head') then
  5896. dmg(v)
  5897. end
  5898. end
  5899. for i = 0, 2 do
  5900. slash(math.random(40,80)/10,5,true,"Round","Add","Out",orb.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,2500)/250,BrickColor.new("White"))
  5901. end
  5902. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor)
  5903. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor)
  5904. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor)
  5905. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  5906. end
  5907. over = true
  5908. orb:Destroy()
  5909. end))
  5910. hum.WalkSpeed = storehumanoidWS
  5911. attack = false
  5912. end
  5913.  
  5914. function Beams()
  5915. attack = true
  5916. hum.WalkSpeed = 7
  5917. local keptcolor = MAINRUINCOLOR
  5918. coroutine.resume(coroutine.create(function()
  5919. for i = 0, 24 do
  5920. swait(5)
  5921. local orb = Instance.new("Part", char)
  5922. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  5923. orb.BrickColor = keptcolor
  5924. orb.CanCollide = false
  5925. orb.FormFactor = 3
  5926. orb.Name = "Ring"
  5927. orb.Material = "Neon"
  5928. orb.Size = Vector3.new(1, 1, 1)
  5929. orb.Transparency = 0
  5930. orb.TopSurface = 0
  5931. orb.BottomSurface = 0
  5932. orb.Anchored = true
  5933. local orbm = Instance.new("SpecialMesh", orb)
  5934. orbm.MeshType = "Sphere"
  5935. orbm.Name = "SizeMesh"
  5936. orbm.Scale = vt(1.25,1.25,1.25)
  5937. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  5938. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  5939. coroutine.resume(coroutine.create(function()
  5940. local eff = Instance.new("ParticleEmitter",orb)
  5941. eff.Texture = "rbxassetid://2273224484"
  5942. eff.LightEmission = 1
  5943. eff.Color = ColorSequence.new(keptcolor.Color)
  5944. eff.Rate = 1500
  5945. eff.Lifetime = NumberRange.new(0.5,1)
  5946. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,4,0),NumberSequenceKeypoint.new(0.2,1,0),NumberSequenceKeypoint.new(1,0,0)})
  5947. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.2,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5948. eff.Speed = NumberRange.new(10,30)
  5949. eff.Drag = 5
  5950. eff.Rotation = NumberRange.new(-500,500)
  5951. eff.VelocitySpread = 9000
  5952. eff.RotSpeed = NumberRange.new(-500,500)
  5953. wait(0.25)
  5954. eff.Enabled = false
  5955. end))
  5956. coroutine.resume(coroutine.create(function()
  5957. wait(0.5)
  5958. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  5959. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  5960. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  5961. orb.Transparency = 1
  5962. local a = Instance.new("Part",char)
  5963. a.Name = "Direction"
  5964. a.Anchored = true
  5965. a.BrickColor = keptcolor
  5966. a.Material = "Neon"
  5967. a.Transparency = 0.25
  5968. a.Shape = "Cylinder"
  5969. local ht = Instance.new("Part",char)
  5970. ht.Name = "DirectionHit"
  5971. ht.Anchored = true
  5972. ht.BrickColor = keptcolor
  5973. ht.CanCollide = false
  5974. ht.Transparency = 1
  5975. ht.Size = vt(0.1,0.1,0.1)
  5976. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.2)
  5977. a.CanCollide = false
  5978. local ray = Ray.new(
  5979. orb.CFrame.p, -- origin
  5980. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  5981. )
  5982. local ignore = char
  5983. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5984. a.BottomSurface = 10
  5985. a.TopSurface = 10
  5986. local distance = (orb.CFrame.p - position).magnitude
  5987. a.Size = Vector3.new(distance,1,1)
  5988. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  5989. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5990. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  5991. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  5992. MagniDamage(ht, 9, 10,15, 0, "Normal")
  5993. CameraEnshaking(2,1)
  5994. coroutine.resume(coroutine.create(function()
  5995. for i = 0, 9 do
  5996. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5997. disr.CFrame = ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5998. local at1 = Instance.new("Attachment",disr)
  5999. at1.Position = vt(-2,0,0)
  6000. local at2 = Instance.new("Attachment",disr)
  6001. at2.Position = vt(2,0,0)
  6002. local trl = Instance.new('Trail',disr)
  6003. trl.Attachment0 = at1
  6004. trl.FaceCamera = true
  6005. trl.Attachment1 = at2
  6006. trl.Texture = "rbxassetid://2325530138"
  6007. trl.LightEmission = 1
  6008. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6009. trl.Color = ColorSequence.new(keptcolor.Color)
  6010. trl.Lifetime = 0.5
  6011. local bv = Instance.new("BodyVelocity")
  6012. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6013. bv.velocity = disr.CFrame.lookVector*math.random(25,100)
  6014. bv.Parent = disr
  6015. local val = 0
  6016. coroutine.resume(coroutine.create(function()
  6017. swait(30)
  6018. for i = 0, 9 do
  6019. swait()
  6020. val = val + 0.1
  6021. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6022. end
  6023. game:GetService("Debris"):AddItem(disr, 3)
  6024. end))
  6025. end
  6026. local eff = Instance.new("ParticleEmitter",ht)
  6027. eff.Texture = "rbxassetid://2273224484"
  6028. eff.LightEmission = 1
  6029. eff.Color = ColorSequence.new(keptcolor.Color)
  6030. eff.Rate = 5000
  6031. eff.Lifetime = NumberRange.new(0.5,1.5)
  6032. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6033. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  6034. eff.Speed = NumberRange.new(5,100)
  6035. eff.Drag = 5
  6036. eff.Rotation = NumberRange.new(-500,500)
  6037. eff.VelocitySpread = 9000
  6038. eff.RotSpeed = NumberRange.new(-50,50)
  6039. wait(0.25)
  6040. eff.Enabled = false
  6041. end))
  6042. for i = 0, 4 do
  6043. slash(math.random(10,60)/10,5,true,"Round","Add","Out",ht.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"))
  6044. sphere2(8,"Add",orb.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.005,0.125,-0.005,keptcolor)
  6045. sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.01,0.5,-0.01,keptcolor)
  6046. local rsiz = math.random(10,30)
  6047. sphereMK(math.random(2,4),0.25,"Add",ht.CFrame*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)
  6048. end
  6049. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  6050. local msh = Instance.new("SpecialMesh",a)
  6051. msh.MeshType = "Cylinder"
  6052. msh.Scale = vt(1,1,1)
  6053. for i = 0, 49 do
  6054. swait()
  6055. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  6056. a.Transparency = a.Transparency + 0.02
  6057. end
  6058. wait(1)
  6059. orb:Destroy()
  6060. a:Destroy()
  6061. ht:Destroy()
  6062. end))
  6063. game:GetService("Debris"):AddItem(orb, 10)
  6064. end
  6065. end))
  6066. for i = 0,12,0.1 do
  6067. swait()
  6068. sphere2(7,"Add",sorb.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,0.075,-0.01,keptcolor)
  6069. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  6070. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  6071. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  6072. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  6073. 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(-20),math.rad(0)),.3)
  6074. 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(0)),.3)
  6075. end
  6076. hum.WalkSpeed = storehumanoidWS
  6077. attack = false
  6078. end
  6079.  
  6080. function HeavenlyDisk()
  6081. attack = true
  6082. hum.WalkSpeed = 2
  6083. local keptcolor = MAINRUINCOLOR
  6084. local radm = math.random(1,3)
  6085. if radm == 1 then
  6086. --bosschatfunc("Don't make this too easy for you.",MAINRUINCOLOR.Color,1)
  6087. elseif radm == 2 then
  6088. --bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  6089. elseif radm == 3 then
  6090. --bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6091. end
  6092. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6093. CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
  6094. for i = 0, 14 do
  6095. --
  6096. end
  6097. for i = 0,2,0.1 do
  6098. swait()
  6099. 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)
  6100. 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)
  6101. 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)
  6102. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6103. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6104. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6105. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6106. end
  6107. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6108. for i = 0,1,0.6 do
  6109. swait()
  6110. 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)
  6111. --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"))
  6112. 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)
  6113. 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)
  6114. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6115. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6116. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6117. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6118. end
  6119. for i = 0,1,0.6 do
  6120. swait()
  6121. 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)
  6122. --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"))
  6123. 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)
  6124. 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)
  6125. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6126. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6127. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6128. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6129. end
  6130. for i = 0,1,0.6 do
  6131. swait()
  6132. 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)
  6133. --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"))
  6134. 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)
  6135. 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)
  6136. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6137. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6138. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6139. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6140. end
  6141. for i = 0,1,0.6 do
  6142. swait()
  6143. 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)
  6144. --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"))
  6145. 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)
  6146. 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)
  6147. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6148. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6149. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6150. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6151. end
  6152. local rot = 15
  6153. for i = 0, 2 do
  6154. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6155. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6156. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6157. CreateMesh(dis,"Sphere",10,1,10)
  6158. local at1 = Instance.new("Attachment",dis)
  6159. at1.Position = vt(-5,0,0)
  6160. local at2 = Instance.new("Attachment",dis)
  6161. at2.Position = vt(5,0,0)
  6162. local trl = Instance.new('Trail',wed)
  6163. trl.Attachment0 = at1
  6164. trl.Attachment1 = at2
  6165. trl.Texture = "rbxassetid://1049219073"
  6166. trl.LightEmission = 1
  6167. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6168. trl.Color = ColorSequence.new(dis.Color)
  6169. trl.Lifetime = 0.6
  6170. local a = Instance.new("Part",workspace)
  6171. a.Name = "Direction"
  6172. a.Anchored = true
  6173. a.BrickColor = bc("Bright red")
  6174. a.Material = "Neon"
  6175. a.Transparency = 1
  6176. a.CanCollide = false
  6177. local ray = Ray.new(
  6178. dis.CFrame.p, -- origin
  6179. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6180. )
  6181. local ignore = dis
  6182. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6183. a.BottomSurface = 10
  6184. a.TopSurface = 10
  6185. local distance = (dis.CFrame.p - position).magnitude
  6186. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6187. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6188. dis.CFrame = a.CFrame
  6189. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6190. a:Destroy()
  6191. local bv = Instance.new("BodyVelocity")
  6192. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6193. bv.velocity = dis.CFrame.lookVector*250
  6194. bv.Parent = dis
  6195. game:GetService("Debris"):AddItem(dis, 5)
  6196. local hitted = false
  6197. coroutine.resume(coroutine.create(function()
  6198. dis.Touched:connect(function(hit)
  6199. if hitted == false and hit.Parent ~= char then
  6200. hitted = true
  6201. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6202. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6203. --sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6204. --sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6205. --sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6206. coroutine.resume(coroutine.create(function()
  6207. for i = 0, 9 do
  6208. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6209. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6210. local at1 = Instance.new("Attachment",disr)
  6211. at1.Position = vt(-2,0,0)
  6212. local at2 = Instance.new("Attachment",disr)
  6213. at2.Position = vt(2,0,0)
  6214. local trl = Instance.new('Trail',disr)
  6215. trl.Attachment0 = at1
  6216. trl.FaceCamera = true
  6217. trl.Attachment1 = at2
  6218. trl.Texture = "rbxassetid://2342682798"
  6219. trl.LightEmission = 1
  6220. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6221. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6222. trl.Lifetime = 0.5
  6223. local bv = Instance.new("BodyVelocity")
  6224. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6225. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6226. bv.Parent = disr
  6227. local val = 0
  6228. coroutine.resume(coroutine.create(function()
  6229. swait(30)
  6230. for i = 0, 9 do
  6231. swait()
  6232. val = val + 0.1
  6233. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6234. end
  6235. game:GetService("Debris"):AddItem(disr, 3)
  6236. end))
  6237. end
  6238. local eff = Instance.new("ParticleEmitter",dis)
  6239. eff.Texture = "rbxassetid://2273224484"
  6240. eff.LightEmission = 1
  6241. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6242. eff.Rate = 500000
  6243. eff.Lifetime = NumberRange.new(0.5,2)
  6244. 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)})
  6245. 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)})
  6246. eff.Speed = NumberRange.new(20,250)
  6247. eff.Drag = 5
  6248. eff.Rotation = NumberRange.new(-500,500)
  6249. eff.VelocitySpread = 9000
  6250. eff.RotSpeed = NumberRange.new(-50,50)
  6251. wait(0.25)
  6252. eff.Enabled = false
  6253. end))
  6254. for i = 0, 9 do
  6255. --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"))
  6256. end
  6257. for i = 0, 19 do
  6258. --
  6259. end
  6260. coroutine.resume(coroutine.create(function()
  6261. for i = 0, 19 do
  6262. swait()
  6263. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6264. end
  6265. hum.CameraOffset = vt(0,0,0)
  6266. end))
  6267. dis.Anchored = true
  6268. dis.Transparency = 1
  6269. wait(8)
  6270. dis:Destroy()
  6271. end
  6272. end)
  6273. end))
  6274. rot = rot - 15
  6275. end
  6276. for i = 0,2,0.1 do
  6277. swait()
  6278. 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)
  6279. 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)
  6280. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6281. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6282. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6283. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6284. end
  6285. attack = false
  6286. hum.WalkSpeed = storehumanoidWS
  6287. end
  6288.  
  6289. function RapidBurst()
  6290. attack = true
  6291. hum.WalkSpeed = 0
  6292. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6293. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6294. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6295. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6296. local keptcolor = MAINRUINCOLOR
  6297. for i = 0,8,0.1 do
  6298. swait()
  6299. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6300. --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())
  6301. 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)
  6302. 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)
  6303. 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)
  6304. 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)
  6305. 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)
  6306. 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)
  6307. 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)
  6308. end
  6309. for i = 0, 99 do
  6310. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6311. 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)))
  6312. local at1 = Instance.new("Attachment",dis)
  6313. at1.Position = vt(-25000,0,0)
  6314. local at2 = Instance.new("Attachment",dis)
  6315. at2.Position = vt(25000,0,0)
  6316. local trl = Instance.new('Trail',dis)
  6317. trl.Attachment0 = at1
  6318. trl.FaceCamera = true
  6319. trl.Attachment1 = at2
  6320. trl.Texture = "rbxassetid://1049219073"
  6321. trl.LightEmission = 1
  6322. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6323. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6324. trl.Lifetime = 5
  6325. local bv = Instance.new("BodyVelocity")
  6326. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6327. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6328. bv.Parent = dis
  6329. game:GetService("Debris"):AddItem(dis, 5)
  6330. end
  6331. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6332. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6333. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6334. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6335. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6336. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6337. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6338. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6339. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6340. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6341. hum.CameraOffset = vt(0,0,0)
  6342. for i = 0, 24 do
  6343. --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())
  6344. end
  6345. local distam = 0
  6346. coroutine.resume(coroutine.create(function()
  6347. for i = 0, 99 do
  6348. wait()
  6349. distam = distam + 1
  6350. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6351. xa.Anchored = true
  6352. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6353. game:GetService("Debris"):AddItem(xa, 5)
  6354. for i = 0, 4 do
  6355. --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())
  6356. end
  6357. coroutine.resume(coroutine.create(function()
  6358. local eff = Instance.new("ParticleEmitter",xa)
  6359. eff.Texture = "rbxassetid://2273224484"
  6360. eff.LightEmission = 1
  6361. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6362. eff.Rate = 500000
  6363. eff.Lifetime = NumberRange.new(1,3)
  6364. 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)})
  6365. 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)})
  6366. eff.Speed = NumberRange.new(50,500)
  6367. eff.Drag = 5
  6368. eff.Rotation = NumberRange.new(-500,500)
  6369. eff.VelocitySpread = 9000
  6370. eff.RotSpeed = NumberRange.new(-50,50)
  6371. wait(0.25)
  6372. eff.Enabled = false
  6373. end))
  6374. coroutine.resume(coroutine.create(function()
  6375. for i = 0, 19 do
  6376. swait()
  6377. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6378. end
  6379. hum.CameraOffset = vt(0,0,0)
  6380. end))
  6381. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6382. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6383. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6384. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6385. end
  6386. end))
  6387. attack = false
  6388. hum.WalkSpeed = storehumanoidWS
  6389. end
  6390.  
  6391.  
  6392. function FallenOrbs()
  6393. attack = true
  6394. hum.WalkSpeed = 2
  6395. local keptcolor = MAINRUINCOLOR
  6396. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
  6397. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
  6398. local radm = math.random(1,3)
  6399. if radm == 1 then
  6400. bosschatfunc("This won't be easy for you.",MAINRUINCOLOR.Color,1)
  6401. elseif radm == 2 then
  6402. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6403. elseif radm == 3 then
  6404. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6405. end
  6406. coroutine.resume(coroutine.create(function()
  6407. for i = 0, 29 do
  6408. swait(2)
  6409. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6410. dis.Anchored = true
  6411. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6412. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6413. CreateMesh(dis,"Sphere",2,2,2)
  6414. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6415. --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"))
  6416. coroutine.resume(coroutine.create(function()
  6417. wait(0.5)
  6418. dis.Anchored = false
  6419. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  6420. local at1 = Instance.new("Attachment",dis)
  6421. at1.Position = vt(-1,0,0)
  6422. local at2 = Instance.new("Attachment",dis)
  6423. at2.Position = vt(1,0,0)
  6424. local trl = Instance.new('Trail',dis)
  6425. trl.Attachment0 = at1
  6426. trl.FaceCamera = true
  6427. trl.Attachment1 = at2
  6428. trl.Texture = "rbxassetid://1049219073"
  6429. trl.LightEmission = 1
  6430. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6431. trl.Color = ColorSequence.new(dis.Color)
  6432. trl.Lifetime = 0.6
  6433. local a = Instance.new("Part",workspace)
  6434. a.Name = "Direction"
  6435. a.Anchored = true
  6436. a.BrickColor = bc("Bright red")
  6437. a.Material = "Neon"
  6438. a.Transparency = 1
  6439. a.CanCollide = false
  6440. local ray = Ray.new(
  6441. dis.CFrame.p, -- origin
  6442. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6443. )
  6444. local ignore = dis
  6445. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6446. a.BottomSurface = 10
  6447. a.TopSurface = 10
  6448. local distance = (dis.CFrame.p - position).magnitude
  6449. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6450. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6451. dis.CFrame = a.CFrame
  6452. a:Destroy()
  6453. local bv = Instance.new("BodyVelocity")
  6454. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6455. bv.velocity = dis.CFrame.lookVector*500
  6456. bv.Parent = dis
  6457. game:GetService("Debris"):AddItem(dis, 5)
  6458. local hitted = false
  6459. coroutine.resume(coroutine.create(function()
  6460. dis.Touched:connect(function(hit)
  6461. if hitted == false and hit.Parent ~= char then
  6462. hitted = true
  6463. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  6464. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6465. --sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6466. --sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6467. coroutine.resume(coroutine.create(function()
  6468. for i = 0, 4 do
  6469. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6470. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6471. local at1 = Instance.new("Attachment",disr)
  6472. at1.Position = vt(-10,0,0)
  6473. local at2 = Instance.new("Attachment",disr)
  6474. at2.Position = vt(10,0,0)
  6475. local trl = Instance.new('Trail',disr)
  6476. trl.Attachment0 = at1
  6477. trl.FaceCamera = true
  6478. trl.Attachment1 = at2
  6479. trl.Texture = "rbxassetid://2342682798"
  6480. trl.LightEmission = 1
  6481. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6482. trl.Color = ColorSequence.new(disr.Color)
  6483. trl.Lifetime = 0.5
  6484. local bv = Instance.new("BodyVelocity")
  6485. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6486. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6487. bv.Parent = disr
  6488. local val = 0
  6489. coroutine.resume(coroutine.create(function()
  6490. swait(30)
  6491. for i = 0, 9 do
  6492. swait()
  6493. val = val + 0.1
  6494. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6495. end
  6496. game:GetService("Debris"):AddItem(disr, 3)
  6497. end))
  6498. end
  6499. local eff = Instance.new("ParticleEmitter",dis)
  6500. eff.Texture = "rbxassetid://2273224484"
  6501. eff.LightEmission = 1
  6502. eff.Color = ColorSequence.new(dis.Color)
  6503. eff.Rate = 500000
  6504. eff.Lifetime = NumberRange.new(0.5,2)
  6505. 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)})
  6506. 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)})
  6507. eff.Speed = NumberRange.new(20,250)
  6508. eff.Drag = 5
  6509. eff.Rotation = NumberRange.new(-500,500)
  6510. eff.VelocitySpread = 9000
  6511. eff.RotSpeed = NumberRange.new(-50,50)
  6512. wait(0.5)
  6513. eff.Enabled = false
  6514. end))
  6515. for i = 0, 4 do
  6516. --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"))
  6517. end
  6518. coroutine.resume(coroutine.create(function()
  6519. for i = 0, 19 do
  6520. swait()
  6521. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6522. end
  6523. hum.CameraOffset = vt(0,0,0)
  6524. end))
  6525. dis.Anchored = true
  6526. dis.Transparency = 1
  6527. wait(8)
  6528. dis:Destroy()
  6529. end
  6530. end)
  6531. end))
  6532. end))
  6533. end
  6534. end))
  6535. for i = 0,9,0.1 do
  6536. swait()
  6537. 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)
  6538. 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)
  6539. 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)
  6540. 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)
  6541. 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)
  6542. 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)
  6543. 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)
  6544. end
  6545. attack = false
  6546. hum.WalkSpeed = storehumanoidWS
  6547. end
  6548.  
  6549. function EquinoxOrbs()
  6550. hum.WalkSpeed = 0
  6551. attack = true
  6552. for i = 0,1,0.1 do
  6553. swait()
  6554. 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)
  6555. 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)
  6556. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6557. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6558. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6559. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6560. end
  6561. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6562. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6563. for i = 0, 24 do
  6564. --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"))
  6565. end
  6566. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6567. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6568. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6569. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6570. for i = 0,4,0.1 do
  6571. swait()
  6572. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6573. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6574. CreateMesh(dis,"Sphere",1,1,1)
  6575. dis.Anchored = true
  6576. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6577. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6578. CreateMesh(dis2,"Sphere",1,1,1)
  6579. dis2.Anchored = true
  6580. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6581. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6582. --sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6583. coroutine.resume(coroutine.create(function()
  6584. swait(60)
  6585. dis.Transparency = 1
  6586. dis2.Transparency = 1
  6587. coroutine.resume(coroutine.create(function()
  6588. for i = 0, 19 do
  6589. swait()
  6590. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6591. end
  6592. hum.CameraOffset = vt(0,0,0)
  6593. end))
  6594. coroutine.resume(coroutine.create(function()
  6595. local eff = Instance.new("ParticleEmitter",dis)
  6596. eff.Texture = "rbxassetid://2273224484"
  6597. eff.LightEmission = 1
  6598. eff.Color = ColorSequence.new(dis.Color)
  6599. eff.Rate = 500000
  6600. eff.Lifetime = NumberRange.new(0.5,2)
  6601. 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)})
  6602. 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)})
  6603. eff.Speed = NumberRange.new(50,450)
  6604. eff.Drag = 5
  6605. eff.Rotation = NumberRange.new(-500,500)
  6606. eff.VelocitySpread = 9000
  6607. eff.RotSpeed = NumberRange.new(-50,50)
  6608. local eff2 = eff:Clone()
  6609. eff2.Parent = dis2
  6610. eff2.LightEmission = 0
  6611. eff2.Color = ColorSequence.new(dis2.Color)
  6612. wait(0.25)
  6613. eff.Enabled = false
  6614. eff2.Enabled = false
  6615. end))
  6616. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6617. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6618. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6619. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6620. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6621. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6622. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6623. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6624. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6625. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6626. end))
  6627. game:GetService("Debris"):AddItem(dis, 5)
  6628. game:GetService("Debris"):AddItem(dis2, 5)
  6629. 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)
  6630. 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)
  6631. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6632. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6633. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6634. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6635. end
  6636. attack = false
  6637. hum.WalkSpeed = storehumanoidWS
  6638. end
  6639. function FallenDEMISE()
  6640. attack = true
  6641. hum.WalkSpeed = 0
  6642. local keptcolor = MAINRUINCOLOR
  6643. --bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6644. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6645. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6646. for i = 0, 15, 0.1 do
  6647. swait()
  6648. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6649. 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)))
  6650. local at1 = Instance.new("Attachment",dis)
  6651. at1.Position = vt(-25000,0,0)
  6652. local at2 = Instance.new("Attachment",dis)
  6653. at2.Position = vt(25000,0,0)
  6654. local trl = Instance.new('Trail',dis)
  6655. trl.Attachment0 = at1
  6656. trl.FaceCamera = true
  6657. trl.Attachment1 = at2
  6658. trl.Texture = "rbxassetid://1049219073"
  6659. trl.LightEmission = 1
  6660. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6661. trl.Color = ColorSequence.new(dis.Color)
  6662. trl.Lifetime = 5
  6663. local bv = Instance.new("BodyVelocity")
  6664. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6665. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6666. bv.Parent = dis
  6667. game:GetService("Debris"):AddItem(dis, 1)
  6668. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6669. --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"))
  6670. --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"))
  6671. 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)
  6672. 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)
  6673. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6674. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6675. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6676. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6677. end
  6678. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6679. for i = 0, 30, 0.1 do
  6680. swait()
  6681. coroutine.resume(coroutine.create(function()
  6682. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6683. if v:FindFirstChild('Head') then
  6684. dmg(v)
  6685. end
  6686. end
  6687. end))
  6688. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6689. 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)))
  6690. local at1 = Instance.new("Attachment",dis)
  6691. at1.Position = vt(-50000,0,0)
  6692. local at2 = Instance.new("Attachment",dis)
  6693. at2.Position = vt(50000,0,0)
  6694. local trl = Instance.new('Trail',dis)
  6695. trl.Attachment0 = at1
  6696. trl.FaceCamera = true
  6697. trl.Attachment1 = at2
  6698. trl.Texture = "rbxassetid://1049219073"
  6699. trl.LightEmission = 1
  6700. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6701. trl.Color = ColorSequence.new(dis.Color)
  6702. trl.Lifetime = 10
  6703. local bv = Instance.new("BodyVelocity")
  6704. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6705. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6706. bv.Parent = dis
  6707. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6708. --sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6709. --sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6710. --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"))
  6711. --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"))
  6712. --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"))
  6713. --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"))
  6714. for i = 0, 2 do
  6715. --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)
  6716. end
  6717. 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)
  6718. 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)
  6719. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6720. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6721. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6722. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6723. end
  6724. attack = false
  6725. hum.WalkSpeed = storehumanoidWS
  6726. end
  6727. -------------------------------------
  6728.  
  6729. Humanoid.Animator.Parent = nil
  6730.  
  6731. -------------------------------------
  6732.  
  6733. local attacktype = 1
  6734. mouse.Button1Down:connect(function()
  6735. if attack == false and attacktype == 1 then
  6736. attacktype = 2
  6737. attackone()
  6738. elseif attack == false and attacktype == 2 then
  6739. attacktype = 3
  6740. attacktwo()
  6741. elseif attack == false and attacktype == 3 then
  6742. attacktype = 1
  6743. attackthree()
  6744. elseif attack == false and attacktype == 4 then
  6745. attacktype = 1
  6746. --attackfour()
  6747. end
  6748. end)
  6749. mouse.KeyDown:connect(function(k)
  6750. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  6751. --normalmog() ---Disabled due to crashing... only in VSB
  6752. ModeOfGlitch = 1
  6753. storehumanoidWS = 16
  6754. hum.WalkSpeed = 16
  6755. rainbowmode = false
  6756. chaosmode = false
  6757. newTheme("rbxassetid://614032233",48.6,1,1.25)
  6758. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  6759. MAINRUINCOLOR = BrickColor.new("Really red")
  6760. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  6761. end
  6762. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  6763. ModeOfGlitch = 2
  6764. storehumanoidWS = 16
  6765. hum.WalkSpeed = 16
  6766. rainbowmode = false
  6767. chaosmode = false
  6768. RecolorTextAndRename("PURITY",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  6769. newTheme("rbxassetid://1539245059",0,1,1.25)
  6770. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  6771. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6772. end
  6773. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  6774. ModeOfGlitch = 3
  6775. storehumanoidWS = 16
  6776. hum.WalkSpeed = 16
  6777. rainbowmode = false
  6778. chaosmode = false
  6779. RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  6780. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  6781. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6782. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6783. end
  6784. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  6785. ModeOfGlitch = 4
  6786. storehumanoidWS = 16
  6787. hum.WalkSpeed = 16
  6788. rainbowmode = false
  6789. chaosmode = true
  6790. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  6791. newTheme("rbxassetid://1369263130",0,1.01,1.25)
  6792. MAINRUINCOLOR = BrickColor.new("Black")
  6793. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6794. end
  6795. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  6796. ModeOfGlitch = 5
  6797. storehumanoidWS = 16
  6798. hum.WalkSpeed = 16
  6799. rainbowmode = false
  6800. chaosmode = false
  6801. RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  6802. newTheme("rbxassetid://661079869",0,1.02,1.25)
  6803. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  6804. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6805. end
  6806. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  6807. ModeOfGlitch = 6
  6808. storehumanoidWS = 100
  6809. hum.WalkSpeed = 100
  6810. rainbowmode = false
  6811. chaosmode = false
  6812. RecolorTextAndRename("EQUINOX",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  6813. newTheme("rbxassetid://1347011178",0,1.01,1.25)
  6814. MAINRUINCOLOR = BrickColor.new("White")
  6815. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6816. end
  6817. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  6818. ModeOfGlitch = 8
  6819. storehumanoidWS = 140
  6820. hum.WalkSpeed = 140
  6821. rainbowmode = true
  6822. chaosmode = false
  6823. RecolorTextAndRename("DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  6824. newTheme("rbxassetid://1495032271",0,1.01,1.25)
  6825. MAINRUINCOLOR = BrickColor.new("Alder")
  6826. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6827. end
  6828. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  6829. ModeOfGlitch = 9
  6830. storehumanoidWS = 150
  6831. hum.WalkSpeed = 150
  6832. rainbowmode = false
  6833. chaosmode = false
  6834. RecolorTextAndRename("INFESTATION",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  6835. newTheme("rbxassetid://2573921783",0,1.01,1.25)
  6836. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  6837. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6838. end
  6839. if k == "m" and attack == false and ModeOfGlitch == 9 and ModeOfGlitch ~= 1055 then
  6840. ModeOfGlitch = 1055
  6841. storehumanoidWS = 50
  6842. hum.WalkSpeed = 50
  6843. rainbowmode = false
  6844. chaosmode = false
  6845. RecolorTextAndRename("Pandora",BrickColor.new("White").Color,BrickColor.new("Lavender").Color,"Code")
  6846. newTheme("rbxassetid://1382488262",0,1,1.25)
  6847. MAINRUINCOLOR = BrickColor.new("Lavender")
  6848. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false,false)
  6849. end
  6850. if k == "n" and attack == false and ModeOfGlitch == 1055 and ModeOfGlitch ~= 77 then
  6851. ModeOfGlitch = 77
  6852. storehumanoidWS = 50
  6853. hum.WalkSpeed = 50
  6854. rainbowmode = false
  6855. chaosmode = false
  6856. RecolorTextAndRename("Superior",BrickColor.new("Really red").Color,BrickColor.new("Crimson").Color,"Code")
  6857. newTheme("rbxassetid://1873219898",0,1,1.25)
  6858. MAINRUINCOLOR = BrickColor.new("Crimson")
  6859. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false,false)
  6860. end
  6861. if k == "m" and attack == false and ModeOfGlitch == 8889 and ModeOfGlitch ~= 123451 then
  6862. attack = true
  6863. hum.WalkSpeed = 0
  6864. --7.725
  6865. newThemeCust("rbxassetid://507231798",0,1.01,1.5)
  6866. bosschatfunc("I have been waiting for so long.",MAINRUINCOLOR.Color,10)
  6867. coroutine.resume(coroutine.create(function()
  6868. local locat = Instance.new("Part", char)
  6869. locat.CanCollide = false
  6870. locat.FormFactor = 3
  6871. locat.Name = "Ring"
  6872. locat.Material = "Neon"
  6873. locat.Size = Vector3.new(1, 1, 1)
  6874. locat.Transparency = 1
  6875. locat.TopSurface = 0
  6876. locat.BottomSurface = 0
  6877. locat.Anchored = true
  6878. locat.CFrame = root.CFrame*CFrame.new(0,-3,0)
  6879. local poste = 0
  6880. local rotation = 0
  6881. local upperpos = 0
  6882. local rate = 0
  6883. local x = locat
  6884. for i = 0, 38.5, 0.1 do
  6885. swait()
  6886. local rsiz = math.random(150,450)
  6887. local rsiz2 = math.random(10,45)
  6888. sphere2(math.random(1,2),"Add",x.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))*CFrame.new(math.random(-200,200),math.random(-200,200),math.random(-200,200)),vt(1,1,1),-0.01,math.random(50,250)/10,-0.01,BrickColor.new("Royal purple"))
  6889. sphereMK(1,4,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz2/2,rsiz2/2,rsiz2/2,0,MAINRUINCOLOR,-200)
  6890. end
  6891. end))
  6892. for i = 0, 47, 0.1 do
  6893. swait()
  6894. 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)
  6895. 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)
  6896. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),0.925 + 0.15 * math.cos(sine / 32))*angles(math.rad(20 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6897. 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)
  6898. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),-0.3)*angles(math.rad(145 + 3 * math.cos(sine / 79)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 6 * math.cos(sine / 73))),.1)
  6899. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),-0.3)*angles(math.rad(150 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(27 - 6 * math.cos(sine / 33))),.1)
  6900. end
  6901. bosschatfunc("This won't be more easier now.",MAINRUINCOLOR.Color,10)
  6902. for i = 0, 3, 0.1 do
  6903. swait()
  6904. sphere2(8,"Add",sorb2.CFrame*CFrame.new(0,0,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,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  6905. sphere2(8,"Add",sorb.CFrame*CFrame.new(0,0,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,BrickColor.new("Really blue"),BrickColor.new("Really blue").Color)
  6906. 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)
  6907. 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)
  6908. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),0.925 + 0.15 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6909. 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)
  6910. RW.C0=clerp(RW.C0,cf(1.2,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(50 + 7 * math.cos(sine / 79)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-43 + 10 * math.cos(sine / 73))),.1)
  6911. LW.C0=clerp(LW.C0,cf(-1.2,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(65 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(47 - 6 * math.cos(sine / 33))),.1)
  6912. end
  6913. for i = 0, 3, 0.1 do
  6914. swait()
  6915. sphere2(8,"Add",sorb2.CFrame*CFrame.new(0,0,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,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  6916. sphere2(8,"Add",sorb.CFrame*CFrame.new(0,0,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,BrickColor.new("Really blue"),BrickColor.new("Really blue").Color)
  6917. 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))),.2)
  6918. 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))),.2)
  6919. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1.2 + 0.15 * math.cos(sine / 32))*angles(math.rad(-15.5 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.2)
  6920. 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))),.2)
  6921. RW.C0=clerp(RW.C0,cf(1,0.6 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(155 + 7 * math.cos(sine / 79)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-43 + 10 * math.cos(sine / 73))),.2)
  6922. LW.C0=clerp(LW.C0,cf(-1,0.6 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(160 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(57 - 6 * math.cos(sine / 33))),.2)
  6923. end
  6924. coroutine.resume(coroutine.create(function()
  6925. local locat = Instance.new("Part", char)
  6926. locat.CanCollide = false
  6927. locat.FormFactor = 3
  6928. locat.Name = "Ring"
  6929. locat.Material = "Neon"
  6930. locat.Size = Vector3.new(1, 1, 1)
  6931. locat.Transparency = 1
  6932. locat.TopSurface = 0
  6933. locat.BottomSurface = 0
  6934. locat.Anchored = true
  6935. locat.CFrame = root.CFrame*CFrame.new(0,-3,0)
  6936. local poste = 0
  6937. local rotation = 0
  6938. local upperpos = 0
  6939. local rate = 0
  6940. local x = locat
  6941. local rsiz = math.random(150,450)
  6942. local rsiz2 = math.random(10,45)
  6943. for i = 0, 99 do
  6944. 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(250,2500)/250,BrickColor.new("White"))
  6945. end
  6946. for i = 0, 49 do
  6947. rsiz = math.random(150,450)
  6948. sphere2(math.random(1,4),"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(25,500)/25,-0.05,BrickColor.new("Royal purple"))
  6949. end
  6950. end))
  6951. for i = 0, 55 do
  6952. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6953. 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)))
  6954. local at1 = Instance.new("Attachment",dis)
  6955. at1.Position = vt(-25000,0,0)
  6956. local at2 = Instance.new("Attachment",dis)
  6957. at2.Position = vt(25000,0,0)
  6958. local trl = Instance.new('Trail',dis)
  6959. trl.Attachment0 = at1
  6960. trl.FaceCamera = true
  6961. trl.Attachment1 = at2
  6962. trl.Texture = "rbxassetid://1049219073"
  6963. trl.LightEmission = 1
  6964. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6965. trl.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6966. trl.Lifetime = 5
  6967. local bv = Instance.new("BodyVelocity")
  6968. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6969. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6970. bv.Parent = dis
  6971. game:GetService("Debris"):AddItem(dis, 10)
  6972. end
  6973. ModeOfGlitch = 123451
  6974. storehumanoidWS = 200
  6975. hum.WalkSpeed = 200
  6976. rainbowmode = false
  6977. unstablemode = false
  6978. chaosmode = false
  6979. CRAZED = false
  6980. RecolorTextAndRename("CATASTROPHE",BrickColor.new("Royal purple").Color,BrickColor.new("Really blue").Color,"Bodoni")
  6981. bosschatfunc("Evenly with your rejection.",MAINRUINCOLOR.Color,1)
  6982. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6983. CFuncs["Sound"].Create("rbxassetid://419447292", char, 4, 1)
  6984. sphere2(2,"Add",root.CFrame*CFrame.new(0,0,0),vt(3,3,3),1.8*2,1.8*2,1.8*2,MAINRUINCOLOR)
  6985. sphere2(4,"Add",root.CFrame*CFrame.new(0,0,0),vt(3,3,3),1.8*2,1.8*2,1.8*2,MAINRUINCOLOR)
  6986. sphere2(6,"Add",root.CFrame*CFrame.new(0,0,0),vt(1.5,0.5,1.5),20,0,20,BrickColor.new("Lilac"))
  6987. sphere2(4,"Add",root.CFrame*CFrame.new(0,0,0),vt(1.5,0.5,1.5),20,0,20,BrickColor.new("Really blue"))
  6988. sphere2(2,"Add",root.CFrame*CFrame.new(0,0,0),vt(1.5,0.5,1.5),20,0,20,MAINRUINCOLOR)
  6989. sphere2(6,"Add",root.CFrame*CFrame.Angles(0,0,0),vt(1,10000,1),1.8*2,7,1.8*2,BrickColor.new("Really blue"))
  6990. sphere2(5,"Add",root.CFrame*CFrame.Angles(0,0,0),vt(1,10000,1),1.6*2,7,1.6*2,BrickColor.new("Royal purple"))
  6991. sphere2(4,"Add",root.CFrame*CFrame.Angles(0,0,0),vt(1,10000,1),1.2*2,7,1.2*2,BrickColor.new("Really blue"))
  6992. sphere2(3,"Add",root.CFrame*CFrame.Angles(0,0,0),vt(1,10000,1),1*2,7,1*2,BrickColor.new("Royal purple"))
  6993. coroutine.resume(coroutine.create(function()
  6994. for i = 0, 5, 0.1 do
  6995. swait()
  6996. shakes(2.1,0.2)
  6997. end
  6998. end))
  6999. local effx = Instance.new("ParticleEmitter",root)
  7000. effx.Texture = "rbxassetid://144580273" -- 144580273 74564879
  7001. effx.LightEmission = 1
  7002. effx.Color = ColorSequence.new(BrickColor.new("Royal purple").Color)
  7003. effx.Rate = 500000
  7004. effx.Lifetime = NumberRange.new(0.25,0.75)
  7005. effx.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,200,0)})
  7006. effx.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0.5,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  7007. effx.Speed = NumberRange.new(0,10)
  7008. effx.Drag = 5
  7009. effx.Rotation = NumberRange.new(-500,500)
  7010. effx.VelocitySpread = 9000
  7011. effx.RotSpeed = NumberRange.new(-50,50)
  7012. local effx2 = Instance.new("ParticleEmitter",root)
  7013. effx2.Texture = "rbxassetid://2273224484"
  7014. effx2.LightEmission = 1
  7015. effx2.Color = ColorSequence.new(BrickColor.new("Royal purple").Color)
  7016. effx2.Rate = 500000
  7017. effx2.Lifetime = NumberRange.new(1,2)
  7018. effx2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,200,0),NumberSequenceKeypoint.new(0.1,50,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  7019. effx2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  7020. effx2.Speed = NumberRange.new(50,1200)
  7021. effx2.Drag = 5
  7022. effx2.Rotation = NumberRange.new(-500,500)
  7023. effx2.VelocitySpread = 9000
  7024. effx2.RotSpeed = NumberRange.new(-50,50)
  7025. local effx3 = effx2:Clone()
  7026. effx3.Parent = root
  7027. effx3.Color = ColorSequence.new(BrickColor.new("Really blue").Color)
  7028. symbolizeBlink(root,0,144580273,BrickColor.new("Royal purple").Color,40,0,0,0,root,true,-5,2)
  7029. symbolizeBlink(root,0,144580273,BrickColor.new("Really blue").Color,50,0,0,0,root,true,-5,1)
  7030. coroutine.resume(coroutine.create(function()
  7031. wait(0.3)
  7032. effx.Enabled = false
  7033. effx2.Enabled = false
  7034. effx3.Enabled = false
  7035. end))
  7036. for i = 0, 1 do
  7037. CFuncs["Sound"].Create("rbxassetid://763717897", char, 5, 1.25)
  7038. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5,0.75)
  7039. CFuncs["Sound"].Create("rbxassetid://1664711478", char, 2.5,1)
  7040. CFuncs["Sound"].Create("rbxassetid://763718160", char, 5, 0.75)
  7041. end
  7042. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,0,BrickColor.new("Navy blue"),0,BrickColor.new("Dark indigo"),true,true)
  7043. for i = 0, 3, 0.1 do
  7044. swait()
  7045. 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))),.3)
  7046. 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))),.3)
  7047. 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(35.5 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.3)
  7048. 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))),.3)
  7049. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-35 + 7 * math.cos(sine / 79)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 10 * math.cos(sine / 73))),.3)
  7050. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-22 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-27 - 6 * math.cos(sine / 33))),.3)
  7051. end
  7052. attack = false
  7053. end
  7054. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  7055. ModeOfGlitch = 8889
  7056. storehumanoidWS = 180
  7057. hum.WalkSpeed = 180
  7058. rainbowmode = false
  7059. chaosmode = false
  7060. RecolorTextAndRename("CALAMITY",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  7061. newTheme("rbxassetid://1359036559",0,1.01,1.25)
  7062. MAINRUINCOLOR = BrickColor.new("Lilac")
  7063. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7064. end
  7065. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  7066. ModeOfGlitch = 55469696922
  7067. storehumanoidWS = 275
  7068. hum.WalkSpeed = 275
  7069. rainbowmode = false
  7070. chaosmode = false
  7071. RecolorTextAndRename("NANO",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  7072. newTheme("rbxassetid://582020393",0,1.005,1.25)
  7073. MAINRUINCOLOR = BrickColor.new("Hot pink")
  7074. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7075. end
  7076. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  7077. ModeOfGlitch = 4367677813
  7078. storehumanoidWS = 225
  7079. hum.WalkSpeed = 225
  7080. rainbowmode = false
  7081. chaosmode = false
  7082. RecolorTextAndRename("BRIGHTNESS",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  7083. newTheme("rbxassetid://363284685",0,1.01,1.25)
  7084. MAINRUINCOLOR = BrickColor.new("Baby blue")
  7085. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7086. end
  7087. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  7088. ModeOfGlitch = 9999999921111
  7089. storehumanoidWS = 300
  7090. hum.WalkSpeed = 300
  7091. rainbowmode = false
  7092. chaosmode = false
  7093. RecolorTextAndRename("OMEGA",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  7094. newTheme("rbxassetid://643309199",0,1.01,1.25)
  7095. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  7096. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7097. end
  7098. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  7099. ModeOfGlitch = 999999999556
  7100. storehumanoidWS = 500
  7101. hum.WalkSpeed = 500
  7102. rainbowmode = false
  7103. chaosmode = false
  7104. RecolorTextAndRename("CRAZED",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  7105. newTheme("rbxassetid://719008519",0,1.02,1.25)
  7106. MAINRUINCOLOR = BrickColor.new("Navy blue")
  7107. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7108. end
  7109. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  7110. ModeOfGlitch = 1264532489
  7111. storehumanoidWS = 250
  7112. hum.WalkSpeed = 250
  7113. rainbowmode = false
  7114. chaosmode = false
  7115. RecolorTextAndRename("FALLEN",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  7116. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  7117. MAINRUINCOLOR = BrickColor.new("Pastel green")
  7118. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7119. end
  7120. if k == "l" and mutedtog == false then
  7121. mutedtog = true
  7122. kan.Volume = 0
  7123. elseif k == "l" and mutedtog == true then
  7124. mutedtog = false
  7125. kan.Volume = 1.25
  7126. end
  7127. if k == "p" and toggleTag == false then
  7128. toggleTag = true
  7129. modet.TextTransparency = 0
  7130. modet.TextStrokeTransparency = 0
  7131. elseif k == "p" and toggleTag == true then
  7132. toggleTag = false
  7133. modet.TextTransparency = 1
  7134. modet.TextStrokeTransparency = 1
  7135. end
  7136. if k == "z" and attack == false and ModeOfGlitch == 1 then
  7137. ExtinctiveHeartbreak()
  7138. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  7139. HeavenlyDisk()
  7140. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  7141. CorruptionEvent()
  7142. elseif k == "x" and attack == false and ModeOfGlitch == 9 then
  7143. Beams()
  7144. elseif k == "z" and attack == false and ModeOfGlitch == 8 then
  7145. BeamOfDeath()
  7146. elseif k == "x" and attack == false and ModeOfGlitch == 77 then
  7147. Desolateness()
  7148. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  7149. RapidBurst()
  7150. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  7151. --DivineLights()
  7152. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  7153. EquinoxOrbs()
  7154. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  7155. FallenOrbs()
  7156. end
  7157. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  7158. FallenDEMISE()
  7159. end
  7160. if k == "x" and attack == false and ModeOfGlitch == 1 then
  7161. EndGROUND()
  7162. end
  7163. end)
  7164.  
  7165. --[[coroutine.resume(coroutine.create(function()
  7166. while true do
  7167. swait(2)
  7168. if chaosmode == true then
  7169. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7170. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7171. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7172. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  7173. for i, v in pairs(mw1:GetChildren()) do
  7174. if v:IsA("Part") then
  7175. v.Transparency = 0.75
  7176. v.BrickColor = BrickColor.random()
  7177. v.Material = "Neon"
  7178. end
  7179. end
  7180. for i, v in pairs(m2:GetChildren()) do
  7181. if v:IsA("Part") then
  7182. v.BrickColor = BrickColor.random()
  7183. v.Material = "Neon"
  7184. end
  7185. end
  7186. end
  7187. end
  7188. end))]]--
  7189. Humanoid.Name = "STARGLITCHER"
  7190. Humanoid.MaxHealth = math.huge
  7191. Humanoid.Health = math.huge
  7192. Instance.new("ForceField",char).Visible = false
  7193.  
  7194. local bguis = Instance.new("BillboardGui",tors)
  7195. bguis.Size = UDim2.new(25, 0, 25, 0)
  7196. local imgca = Instance.new("ImageLabel",bguis)
  7197. imgca.BackgroundTransparency = 1
  7198. imgca.ImageTransparency = 1
  7199. imgca.Size = UDim2.new(1,0,1,0)
  7200. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  7201. imgca.ImageColor3 = Color3.new(0,0,0)
  7202.  
  7203. idleanim=.4
  7204. while true do
  7205. if mutedtog == false then
  7206. kan.Volume = currentVol
  7207. elseif mutedtog == true then
  7208. kan.Volume = 0
  7209. end
  7210. kan.PlaybackSpeed = currentPitch
  7211. kan.Pitch = currentPitch
  7212. kan.SoundId = currentThemePlaying
  7213. kan.Looped = true
  7214. kan.Parent = char
  7215. kan:Resume()
  7216. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  7217. imgca.ImageTransparency = 1
  7218. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  7219. imgca.ImageColor3 = MAINRUINCOLOR.Color
  7220. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  7221. end
  7222. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  7223. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  7224. coroutine.resume(coroutine.create(function()
  7225. if chaosmode == true then
  7226. for i, v in pairs(mw1:GetChildren()) do
  7227. if v:IsA("Part") then
  7228. v.Transparency = 0
  7229. v.BrickColor = BrickColor.random()
  7230. v.Material = "Neon"
  7231. end
  7232. end
  7233. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7234. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7235. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7236. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  7237. end
  7238. end))
  7239. if chaosmode == false then
  7240. modet.Position = UDim2.new(0,0,0,0)
  7241. modet.Rotation = -5 * math.cos(sine / 32)
  7242. techc.Rotation = techc.Rotation + 1
  7243. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  7244. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  7245. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  7246. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  7247. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  7248. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  7249. else
  7250. techc.Rotation = techc.Rotation + 1
  7251. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  7252. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  7253. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  7254. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  7255. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  7256. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  7257. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  7258. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  7259. end
  7260. CameraManager()
  7261. swait()
  7262. 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)
  7263. 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)
  7264. 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)
  7265. lwing3weld.C1=clerp(lwing3weld.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)
  7266. 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)
  7267. 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)
  7268. 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)
  7269. 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)
  7270. 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)
  7271. rwing3weld.C1=clerp(rwing3weld.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)
  7272. 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)
  7273. 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)
  7274. sine = sine + change
  7275. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  7276. local velderp=RootPart.Velocity.y
  7277. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  7278. if equipped==true or equipped==false then
  7279. if attack==false then
  7280. idle=idle+1
  7281. else
  7282. idle=0
  7283. end
  7284. if idle>=500 then
  7285. if attack==false then
  7286. --Sheath()
  7287. end
  7288. end
  7289. if RootPart.Velocity.y > 1 and hitfloor==nil then
  7290. Anim="Jump"
  7291. if attack==false then
  7292. 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)
  7293. 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)
  7294. 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)
  7295. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  7296. 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)
  7297. 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)
  7298. end
  7299. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  7300. Anim="Fall"
  7301. if attack==false then
  7302. 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)
  7303. 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)
  7304. 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)
  7305. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  7306. 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)
  7307. 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)
  7308. end
  7309. elseif torvel<1 and hitfloor~=nil then
  7310. Anim="Idle"
  7311. if attack==false then
  7312. if ModeOfGlitch == 1 then
  7313. local snap = math.random(1,10)
  7314. if snap == 1 then
  7315. 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)
  7316. end
  7317. 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)
  7318. 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)
  7319. 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)
  7320. 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)
  7321. 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)
  7322. 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)
  7323. elseif ModeOfGlitch == 2 then
  7324. 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)
  7325. 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)
  7326. 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)
  7327. 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)
  7328. 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)
  7329. 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)
  7330. elseif ModeOfGlitch == 3 then
  7331. local snap = math.random(1,32)
  7332. if snap == 1 then
  7333. 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)
  7334. end
  7335. 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)
  7336. 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)
  7337. 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)
  7338. 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)
  7339. 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)
  7340. 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)
  7341. elseif ModeOfGlitch == 4 then
  7342. local snap = math.random(1,5)
  7343. if snap == 1 then
  7344. 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)
  7345. 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)
  7346. 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)
  7347. end
  7348. 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)
  7349. 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)
  7350. 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)
  7351. 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)
  7352. 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)
  7353. 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)
  7354. elseif ModeOfGlitch == 123451 then
  7355. 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 - 9 * math.cos(sine / 51))),.1)
  7356. 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 + 7 * math.cos(sine / 44))),.1)
  7357. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1.5 + 0.25 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(13)),.1)
  7358. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(24 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-13 + 2 * math.cos(sine / 53))),.1)
  7359. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(68 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  7360. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(82 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  7361. elseif ModeOfGlitch == 5 then
  7362. 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)
  7363. 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)
  7364. 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)
  7365. 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)
  7366. 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)
  7367. 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)
  7368. elseif ModeOfGlitch == 1055 or ModeOfGlitch == 77 then
  7369. 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(-20 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.2)
  7370. 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(3 + 2 * math.cos(sine / 32))),.2)
  7371. 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(30)),.2)
  7372. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(-10 + 2 * math.cos(sine / 58)),math.rad(-30)),.2)
  7373. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.2)
  7374. LW.C0=clerp(LW.C0,cf(-1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(67 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.2)
  7375. elseif ModeOfGlitch == 6 then
  7376. 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)
  7377. 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)
  7378. 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)
  7379. 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)
  7380. 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)
  7381. 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)
  7382. elseif ModeOfGlitch == 8 then
  7383. 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)
  7384. 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)
  7385. 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)
  7386. 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)
  7387. 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)
  7388. 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)
  7389. elseif ModeOfGlitch == 9 then
  7390. 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)
  7391. 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)
  7392. 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)
  7393. 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)
  7394. 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)
  7395. 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)
  7396. elseif ModeOfGlitch == 8889 then
  7397. 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)
  7398. 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)
  7399. 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)
  7400. 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)
  7401. 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)
  7402. 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)
  7403. elseif ModeOfGlitch == 1264532489 then
  7404. 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)
  7405. 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)
  7406. 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)
  7407. 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)
  7408. 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)
  7409. 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)
  7410. elseif ModeOfGlitch == 9999999921111 then
  7411. 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)
  7412. 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)
  7413. 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)
  7414. 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)
  7415. 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)
  7416. 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)
  7417. elseif ModeOfGlitch == 4367677813 then
  7418. 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)
  7419. 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)
  7420. 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)
  7421. 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)
  7422. 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)
  7423. 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)
  7424. 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 - 9 * math.cos(sine / 51))),.1)
  7425. 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 + 7 * math.cos(sine / 44))),.1)
  7426. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1.5 + 0.25 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(13)),.1)
  7427. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(24 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-13 + 2 * math.cos(sine / 53))),.1)
  7428. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(68 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  7429. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(82 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  7430. elseif ModeOfGlitch == 55469696922 then
  7431. 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)
  7432. 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)
  7433. 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)
  7434. 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)
  7435. 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)
  7436. 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)
  7437. elseif ModeOfGlitch == 999999999556 then
  7438. 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)
  7439. 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)
  7440. 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)
  7441. 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)
  7442. 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)
  7443. 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)
  7444. end
  7445. end
  7446. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  7447. Anim="Walk"
  7448. if attack==false then
  7449. 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)
  7450. 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)
  7451. 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)
  7452. 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)
  7453. 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)
  7454. 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)
  7455. end
  7456. elseif torvel>=22 and hitfloor~=nil then
  7457. Anim="Run"
  7458. if attack==false then
  7459. 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
  7460. 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)
  7461. 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)
  7462. 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)
  7463. 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)
  7464. 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)
  7465. 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)
  7466. if ModeOfGlitch == 9 then
  7467. --
  7468. end
  7469. elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1055 or ModeOfGlitch == 123451 or ModeOfGlitch == 77 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  7470. 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)
  7471. 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)
  7472. 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)
  7473. 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)
  7474. 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)
  7475. 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)
  7476. end
  7477. end
  7478. end
  7479. end
  7480. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement