Advertisement
ZaGodlyNoob

Hyperion Glitcher V1.5.7

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