Advertisement
ZaGodlyNoob

Hyperion Glitcher V2.0.7

Oct 29th, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 329.78 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: K, Z, X, C, V, B, M
  109. > Divine Hyperion: Z
  110. > Murder Hyperion: Z
  111. > Destiny Hyperion: N/A MOVES
  112. > Calamity Hyperion: Z, X, C, V
  113. > Infestation Hyperion: Z
  114. > Omega Hyperion: Z, X
  115. > Evil Hyperion: Z, X, C, V
  116. ]])
  117. warn([[Update Log:
  118. N - ???
  119. Extra modes:
  120. > Stress Hyperion: N for Electroswing Hyperion
  121. > Frost Hyperion: N for Brightness Hyperion
  122. > True Hyperion: N for Insane Hyperion
  123. > Divine Hyperion: N for Fallen Hyperion
  124. > Destiny Hyperion: N for Omega Hyperion
  125. Note:
  126. Lots of hard work on this. I won't be making this again if this gets deleted.
  127. P.S Don't leak.]])
  128. --- its obs smooth af do not touch
  129. ---- Sources and functions might be taken from others
  130. plr = owner
  131. char = plr.Character
  132. hum = char.Humanoid
  133. local cam = game.Workspace.CurrentCamera
  134. Camera = cam
  135. local CamInterrupt = false
  136. local TwoD = false
  137. local TargetInfo = {nil, nil}
  138. cam.CameraType = "Custom"
  139. t = char.Torso
  140. h = char.Head
  141. ra = char["Right Arm"]
  142. la = char["Left Arm"]
  143. rl = char["Right Leg"]
  144. ll = char["Left Leg"]
  145. tors = char.Torso
  146. lleg = char["Left Leg"]
  147. root = char.HumanoidRootPart
  148. hed = char.Head
  149. rleg = char["Right Leg"]
  150. rarm = char["Right Arm"]
  151. larm = char["Left Arm"]
  152. radian = math.rad
  153. random = math.random
  154. Vec3 = Vector3.new
  155. Inst = Instance.new
  156. cFrame = CFrame.new
  157. Euler = CFrame.fromEulerAnglesXYZ
  158. vt = Vector3.new
  159. bc = BrickColor.new
  160. br = BrickColor.random
  161. it = Instance.new
  162. cf = CFrame.new
  163.  
  164. local Booleans = {
  165. CamFollow = true,
  166. GyroUse = true
  167. }
  168.  
  169. function lerp(object, newCFrame, alpha)
  170. return object:lerp(newCFrame, alpha)
  171. end
  172.  
  173. local Directer = Inst("BodyGyro", root)
  174. Directer.MaxTorque = Vec3(0, 0, 0)
  175. Directer.P = 600000
  176. local CPart = Inst("Part")
  177. CPart.Anchored = true
  178. CPart.CanCollide = false
  179. CPart.Locked = true
  180. CPart.Transparency = 1
  181.  
  182. local rainbowmode = false
  183. local chaosmode = false
  184.  
  185. local kan = Instance.new("Sound",char)
  186. kan.Volume = 1.25
  187. kan.TimePosition = 0
  188. kan.PlaybackSpeed = 1
  189. kan.Pitch = 1
  190. kan.SoundId = "rbxassetid://147088444"
  191. kan.Name = "wrecked"
  192. kan.Looped = true
  193. kan:Play()
  194.  
  195. local currentThemePlaying = kan.SoundId
  196. local currentPitch = kan.Pitch
  197. local currentVol = kan.Volume
  198. function newTheme(ID,timepos,pitch,vol)
  199. local kanz = kan
  200. --kanz:Stop()
  201. kanz.Volume = vol
  202. --kanz.TimePosition = timepos
  203. kanz.PlaybackSpeed = pitch
  204. kanz.Pitch = pitch
  205. kanz.SoundId = ID
  206. kanz.Name = "wrecked"
  207. kanz.Looped = true
  208. currentThemePlaying = kanz.SoundId
  209. currentVol = kanz.Volume
  210. currentPitch = kanz.Pitch
  211. --kanz:Play()
  212. --coroutine.resume(coroutine.create(function()
  213. --wait(0.05)
  214. --end))
  215. end
  216.  
  217.  
  218. function newThemeCust(ID,timepos,pitch,vol)
  219. local kanz = kan
  220. kanz:Stop()
  221. kanz.Volume = vol
  222. kanz.TimePosition = timepos
  223. kanz.PlaybackSpeed = pitch
  224. kanz.Pitch = pitch
  225. kanz.SoundId = ID
  226. kanz.Name = "wrecked"
  227. kanz.Looped = true
  228. currentThemePlaying = kanz.SoundId
  229. currentVol = kanz.Volume
  230. currentPitch = kanz.Pitch
  231. kanz:Play()
  232. coroutine.resume(coroutine.create(function()
  233. wait(0.05)
  234. end))
  235. end
  236.  
  237. local mutedtog = false
  238.  
  239. function CameraEnshaking(Length,Intensity)
  240. coroutine.resume(coroutine.create(function()
  241. local intensity = 1*Intensity
  242. local rotM = 0.01*Intensity
  243. for i = 0, Length, 0.1 do
  244. swait()
  245. intensity = intensity - 0.05*Intensity/Length
  246. rotM = rotM - 0.0005*Intensity/Length
  247. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  248. 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)
  249. end
  250. Humanoid.CameraOffset = Vec3(0, 0, 0)
  251. end))
  252. end
  253. CamShake=function(Part,Distan,Power,Times)
  254. local de=Part.Position
  255. for i,v in pairs(workspace:children()) do
  256. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  257. for _,c in pairs(v:children()) do
  258. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  259. local Noob=v.Humanoid
  260. if Noob~=nil then
  261. coroutine.resume(coroutine.create(function()
  262. FV = Instance.new("BoolValue", Noob)
  263. FV.Name = "CameraShake"
  264. for ShakeNum=1,Times do
  265. swait()
  266. local ef=Power
  267. if ef>=1 then
  268. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  269. else
  270. ef=Power*10
  271. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  272. end
  273. end
  274. Humanoid.CameraOffset = Vector3.new(0,0,0)
  275. FV:Destroy()
  276. end))
  277. CameraShake(Times, Power, Noob)
  278. end
  279. end
  280. end
  281. end
  282. end
  283. end
  284.  
  285. local toggleTag = true
  286. local bilguit = Instance.new("BillboardGui", hed)
  287. bilguit.Adornee = nil
  288. bilguit.Name = "ModeName"
  289. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  290. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  291. local modet = Instance.new("TextLabel", bilguit)
  292. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  293. modet.FontSize = "Size8"
  294. modet.TextScaled = true
  295. modet.TextTransparency = 0
  296. modet.BackgroundTransparency = 1
  297. modet.TextTransparency = 0
  298. modet.TextStrokeTransparency = 0
  299. modet.Font = "Antique"
  300. modet.TextStrokeColor3 = Color3.new(1,0,0)
  301. modet.TextColor3 = Color3.new(0.25,0,0)
  302. modet.Text = "STRESS HYPERION"
  303.  
  304.  
  305. function chatfunc(text,color,typet,font,timeex)
  306. local chat = coroutine.wrap(function()
  307. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  308. Character:FindFirstChild("TalkingBillBoard"):destroy()
  309. end
  310. local naeeym2 = Instance.new("BillboardGui",Character)
  311. naeeym2.Size = UDim2.new(0,100,0,40)
  312. naeeym2.StudsOffset = Vector3.new(0,3,0)
  313. naeeym2.Adornee = Character.Head
  314. naeeym2.Name = "TalkingBillBoard"
  315. local tecks2 = Instance.new("TextLabel",naeeym2)
  316. tecks2.BackgroundTransparency = 1
  317. tecks2.BorderSizePixel = 0
  318. tecks2.Text = ""
  319. tecks2.Font = font
  320. tecks2.TextSize = 30
  321. tecks2.TextStrokeTransparency = 0
  322. tecks2.TextColor3 = color
  323. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  324. tecks2.Size = UDim2.new(1,0,0.5,0)
  325. local tecks3 = Instance.new("TextLabel",naeeym2)
  326. tecks3.BackgroundTransparency = 1
  327. tecks3.BorderSizePixel = 0
  328. tecks3.Text = ""
  329. tecks3.Font = font
  330. tecks3.TextSize = 30
  331. tecks3.TextStrokeTransparency = 0
  332. if typet == "Inverted" then
  333. tecks3.TextColor3 = Color3.new(0,0,0)
  334. tecks3.TextStrokeColor3 = color
  335. elseif typet == "Normal" then
  336. tecks3.TextColor3 = color
  337. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  338. end
  339. tecks3.Size = UDim2.new(1,0,0.5,0)
  340. coroutine.resume(coroutine.create(function()
  341. while true do
  342. swait(1)
  343. if chaosmode == true then
  344. tecks2.TextColor3 = BrickColor.random().Color
  345. tecks3.TextStrokeColor3 = BrickColor.random().Color
  346. end
  347. end
  348. end))
  349. modet.TextTransparency = modet.TextTransparency + 1
  350. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  351. for i = 0, 74*timeex do
  352. swait()
  353. modet.TextTransparency = 1
  354. modet.TextStrokeTransparency = 1
  355. tecks2.Text = text
  356. tecks3.Text = text
  357. end
  358. local randomrot = math.random(1,2)
  359. if randomrot == 1 then
  360. for i = 1, 50 do
  361. swait()
  362. tecks2.Text = text
  363. tecks3.Text = text
  364. modet.TextTransparency = modet.TextTransparency - .02
  365. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  366. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  367. tecks2.TextTransparency = tecks2.TextTransparency + .04
  368. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  369. tecks3.TextTransparency = tecks2.TextTransparency + .04
  370. end
  371. elseif randomrot == 2 then
  372. for i = 1, 50 do
  373. swait()
  374. tecks2.Text = text
  375. tecks3.Text = text
  376. modet.TextTransparency = modet.TextTransparency - .02
  377. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  378. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  379. tecks2.TextTransparency = tecks2.TextTransparency + .04
  380. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  381. tecks3.TextTransparency = tecks2.TextTransparency + .04
  382. end
  383. end
  384. modet.TextTransparency = 0
  385. modet.TextStrokeTransparency = 0
  386. if toggleTag == false then
  387. modet.TextTransparency = 1
  388. modet.TextStrokeTransparency = 1
  389. end
  390. naeeym2:Destroy()
  391. end)
  392. chat()
  393. end
  394.  
  395. function bosschatfunc(text,color,watval)
  396. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  397. coroutine.resume(coroutine.create(function()
  398. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  399. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  400. end
  401. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  402. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  403. scrg.Name = "Dialog"
  404. local txtlb = Instance.new("TextLabel",scrg)
  405. txtlb.Text = ""
  406. txtlb.Font = "Bodoni"
  407. txtlb.TextColor3 = Color3.new(0,0,0)
  408. txtlb.TextStrokeTransparency = 0
  409. txtlb.BackgroundTransparency = 0.75
  410. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  411. txtlb.TextStrokeColor3 = color
  412. txtlb.TextScaled = true
  413. txtlb.Size = UDim2.new(1,0,0.25,0)
  414. txtlb.TextXAlignment = "Left"
  415. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  416. local txtlb2 = Instance.new("TextLabel",scrg)
  417. txtlb2.Text = "???:"
  418. txtlb2.Font = "Arcade"
  419. txtlb2.TextColor3 = Color3.new(0,0,0)
  420. txtlb2.TextStrokeTransparency = 0
  421. txtlb2.BackgroundTransparency = 1
  422. txtlb2.TextStrokeColor3 = color
  423. txtlb2.TextSize = 40
  424. txtlb2.Size = UDim2.new(1,0,0.25,0)
  425. txtlb2.TextXAlignment = "Left"
  426. txtlb2.Position = UDim2.new(0,0,1,0)
  427. local fvalen = 0.55
  428. local fval = -0.49
  429. coroutine.resume(coroutine.create(function()
  430. while true do
  431. swait()
  432. if chaosmode == true then
  433. txtlb.Rotation = math.random(-1,1)
  434. txtlb2.Rotation = math.random(-1,1)
  435. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  436. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  437. txtlb.TextStrokeColor3 = BrickColor.random().Color
  438. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  439. end
  440. end
  441. end))
  442. coroutine.resume(coroutine.create(function()
  443. while true do
  444. swait()
  445. if scrg.Parent ~= nil then
  446. fvalen = fvalen - 0.0001
  447. elseif scrg.Parent == nil then
  448. break
  449. end
  450. end
  451. end))
  452. local flol = 1.75
  453. local flil = 1.6
  454. coroutine.resume(coroutine.create(function()
  455. for i = 0, 9 do
  456. swait()
  457. fval = fval + 0.05
  458. flol = flol - 0.1
  459. flil = flil - 0.1
  460. txtlb.Text = ""
  461. txtlb.Position = UDim2.new(0,0,flol,0)
  462. txtlb2.Position = UDim2.new(0,0,flil,0)
  463. end
  464. txtlb.Text = text
  465. wait(watval)
  466. local valinc = 0
  467. for i = 0, 99 do
  468. swait()
  469. valinc = valinc + 0.0001
  470. flol = flol + valinc
  471. flil = flil + valinc
  472. txtlb.Rotation = txtlb.Rotation + valinc*20
  473. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  474. txtlb.Position = UDim2.new(0,0,flol,0)
  475. txtlb2.Position = UDim2.new(0,0,flil,0)
  476. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  477. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  478. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  479. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  480. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  481. end
  482. scrg:Destroy()
  483. end))
  484. end))
  485. end
  486. end
  487.  
  488.  
  489. local Create = LoadLibrary("RbxUtility").Create
  490.  
  491. CFuncs = {
  492. ["Part"] = {
  493. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  494. local Part = Create("Part"){
  495. Parent = Parent,
  496. Reflectance = Reflectance,
  497. Transparency = Transparency,
  498. CanCollide = false,
  499. Locked = true,
  500. BrickColor = BrickColor.new(tostring(BColor)),
  501. Name = Name,
  502. Size = Size,
  503. Material = Material,
  504. }
  505. RemoveOutlines(Part)
  506. return Part
  507. end;
  508. };
  509.  
  510. ["Mesh"] = {
  511. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  512. local Msh = Create(Mesh){
  513. Parent = Part,
  514. Offset = OffSet,
  515. Scale = Scale,
  516. }
  517. if Mesh == "SpecialMesh" then
  518. Msh.MeshType = MeshType
  519. Msh.MeshId = MeshId
  520. end
  521. return Msh
  522. end;
  523. };
  524.  
  525. ["Mesh"] = {
  526. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  527. local Msh = Create(Mesh){
  528. Parent = Part,
  529. Offset = OffSet,
  530. Scale = Scale,
  531. }
  532. if Mesh == "SpecialMesh" then
  533. Msh.MeshType = MeshType
  534. Msh.MeshId = MeshId
  535. end
  536. return Msh
  537. end;
  538. };
  539.  
  540. ["Weld"] = {
  541. Create = function(Parent, Part0, Part1, C0, C1)
  542. local Weld = Create("Weld"){
  543. Parent = Parent,
  544. Part0 = Part0,
  545. Part1 = Part1,
  546. C0 = C0,
  547. C1 = C1,
  548. }
  549. return Weld
  550. end;
  551. };
  552.  
  553. ["Sound"] = {
  554. Create = function(id, par, vol, pit)
  555. coroutine.resume(coroutine.create(function()
  556. local S = Create("Sound"){
  557. Volume = vol,
  558. Name = "EffectSoundo",
  559. Pitch = pit or 1,
  560. SoundId = id,
  561. Parent = par or workspace,
  562. }
  563. wait()
  564. S:play()
  565. game:GetService("Debris"):AddItem(S, 10)
  566. end))
  567. end;
  568. };
  569.  
  570. ["TimeSound"] = {
  571. Create = function(id, par, vol, pit, timepos)
  572. coroutine.resume(coroutine.create(function()
  573. local S = Create("Sound"){
  574. Volume = vol,
  575. Name = "EffectSoundo",
  576. Pitch = pit or 1,
  577. SoundId = id,
  578. TimePosition = timepos,
  579. Parent = par or workspace,
  580. }
  581. wait()
  582. S:play()
  583. game:GetService("Debris"):AddItem(S, 10)
  584. end))
  585. end;
  586. };
  587. ["EchoSound"] = {
  588. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  589. coroutine.resume(coroutine.create(function()
  590. local Sas = Create("Sound"){
  591. Volume = vol,
  592. Name = "EffectSoundo",
  593. Pitch = pit or 1,
  594. SoundId = id,
  595. TimePosition = timepos,
  596. Parent = par or workspace,
  597. }
  598. local E = Create("EchoSoundEffect"){
  599. Delay = echodelay,
  600. Name = "Echo",
  601. Feedback = fedb,
  602. DryLevel = dryl,
  603. Parent = Sas,
  604. }
  605. wait()
  606. Sas:play()
  607. game:GetService("Debris"):AddItem(Sas, delays)
  608. end))
  609. end;
  610. };
  611.  
  612. ["LongSound"] = {
  613. Create = function(id, par, vol, pit)
  614. coroutine.resume(coroutine.create(function()
  615. local S = Create("Sound"){
  616. Volume = vol,
  617. Pitch = pit or 1,
  618. SoundId = id,
  619. Parent = par or workspace,
  620. }
  621. wait()
  622. S:play()
  623. game:GetService("Debris"):AddItem(S, 60)
  624. end))
  625. end;
  626. };
  627.  
  628. ["ParticleEmitter"] = {
  629. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  630. local fp = Create("ParticleEmitter"){
  631. Parent = Parent,
  632. Color = ColorSequence.new(Color1, Color2),
  633. LightEmission = LightEmission,
  634. Size = Size,
  635. Texture = Texture,
  636. Transparency = Transparency,
  637. ZOffset = ZOffset,
  638. Acceleration = Accel,
  639. Drag = Drag,
  640. LockedToPart = LockedToPart,
  641. VelocityInheritance = VelocityInheritance,
  642. EmissionDirection = EmissionDirection,
  643. Enabled = Enabled,
  644. Lifetime = LifeTime,
  645. Rate = Rate,
  646. Rotation = Rotation,
  647. RotSpeed = RotSpeed,
  648. Speed = Speed,
  649. VelocitySpread = VelocitySpread,
  650. }
  651. return fp
  652. end;
  653. };
  654.  
  655. CreateTemplate = {
  656.  
  657. };
  658. }
  659.  
  660.  
  661.  
  662. New = function(Object, Parent, Name, Data)
  663. local Object = Instance.new(Object)
  664. for Index, Value in pairs(Data or {}) do
  665. Object[Index] = Value
  666. end
  667. Object.Parent = Parent
  668. Object.Name = Name
  669. return Object
  670. end
  671. local halocolor = BrickColor.new("Pastel light blue")
  672. local halocolor2 = BrickColor.new("Cool yellow")
  673. local starcolor = BrickColor.new("Bright yellow")
  674. local lunacolor = BrickColor.new("Navy blue")
  675. local lunacolor2 = BrickColor.new("Bright blue")
  676. local wepcolor = BrickColor.new("Really black")
  677. local maincolor = BrickColor.new("Really black")
  678. local m = Instance.new("Model",char)
  679. local m2 = Instance.new("Model",char)
  680. local m3 = Instance.new("Model",char)
  681. local mw1 = Instance.new("Model",char)
  682. local mw2 = Instance.new("Model",char)
  683.  
  684.  
  685. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  686. local gui = it(GuiType)
  687. gui.Parent = parent
  688. gui.Text = text
  689. gui.BackgroundTransparency = backtrans
  690. gui.BackgroundColor3 = backcol
  691. gui.SizeConstraint = "RelativeXY"
  692. gui.TextXAlignment = "Center"
  693. gui.TextYAlignment = "Center"
  694. gui.Position = pos
  695. gui.Size = size
  696. gui.Font = "SourceSans"
  697. gui.FontSize = "Size14"
  698. gui.TextWrapped = false
  699. gui.TextStrokeTransparency = 0
  700. gui.TextColor = BrickColor.new("White")
  701. return gui
  702. end
  703. --------------------------- GUI STUFF
  704. local basgui = it("GuiMain")
  705. basgui.Parent = plr.PlayerGui
  706. basgui.Name = "VISgui"
  707. local fullscreenz = it("Frame")
  708. fullscreenz.Parent = basgui
  709. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  710. fullscreenz.BackgroundTransparency = 1
  711. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  712. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  713. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  714. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  715. imgl2.BackgroundTransparency = 1
  716. imgl2.BorderSizePixel = 0
  717. imgl2.ImageTransparency = 0.5
  718. imgl2.ImageColor3 = Color3.new(1,0,0)
  719. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  720. imgl2.Size = UDim2.new(0,1000,0,1000)
  721. imgl2.Image = "rbxassetid://2325939897"
  722. local techc = imgl2:Clone()
  723. techc.Parent = fullscreenz
  724. techc.ImageTransparency = 0
  725. techc.Size = UDim2.new(0,900,0,900)
  726. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  727. techc.ImageColor3 = Color3.new(1,0,0)
  728. techc.Image = "rbxassetid://2273224484"
  729. local circl = imgl2:Clone()
  730. circl.Parent = fullscreenz
  731. circl.ImageTransparency = 0
  732. circl.Size = UDim2.new(0,550,0,550)
  733. circl.Position = UDim2.new(0.75,25,0.55,25)
  734. circl.ImageColor3 = Color3.new(0,0,0)
  735. circl.Image = "rbxassetid://2312119891"
  736. local circl2 = imgl2:Clone()
  737. circl2.Parent = fullscreenz
  738. circl2.ImageTransparency = 0
  739. circl2.Size = UDim2.new(0,700,0,700)
  740. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  741. circl2.ImageColor3 = Color3.new(1,0,0)
  742. circl2.Image = "rbxassetid://2312119891"
  743. local imgl2b = imgl2:Clone()
  744. imgl2b.Parent = fullscreenz
  745. imgl2b.ImageTransparency = 0
  746. imgl2b.Size = UDim2.new(0,800,0,800)
  747. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  748. imgl2b.ImageColor3 = Color3.new(0,0,0)
  749. local ned = Instance.new("TextLabel",fullscreenz)
  750. ned.ZIndex = 2
  751. ned.Font = "Arcade"
  752. ned.BackgroundTransparency = 1
  753. ned.BorderSizePixel = 0.65
  754. ned.Size = UDim2.new(0.3,0,0.2,0)
  755. ned.Position = UDim2.new(0.7,0,0.8,0)
  756. ned.TextColor3 = BrickColor.new("Really red").Color
  757. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  758. ned.TextScaled = true
  759. ned.TextStrokeTransparency = 0
  760. ned.Text = "STRESS HYPERION"
  761. ned.TextSize = 24
  762. ned.Rotation = 1
  763. ned.TextXAlignment = "Right"
  764. ned.TextYAlignment = "Bottom"
  765.  
  766. local extrawingmod1 = Instance.new("Model",char)
  767. local extrawingmod2 = Instance.new("Model",char)
  768.  
  769. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  770. local p = Instance.new("Part")
  771. p.TopSurface = 0
  772. p.BottomSurface = 0
  773. p.Parent = parent
  774. p.Size = Vector3.new(0.1,0.1,0.1)
  775. p.Transparency = transparency
  776. p.Reflectance = reflectance
  777. p.CanCollide = false
  778. p.Locked = true
  779. p.BrickColor = brickcolor
  780. p.Material = material
  781. return p
  782. end
  783.  
  784. function CreateMesh(parent,meshtype,x1,y1,z1)
  785. local mesh = Instance.new("SpecialMesh",parent)
  786. mesh.MeshType = meshtype
  787. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  788. return mesh
  789. end
  790.  
  791. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  792. local mesh = Instance.new("SpecialMesh",parent)
  793. mesh.MeshType = "FileMesh"
  794. mesh.MeshId = meshid
  795. mesh.Scale = Vector3.new(x1,y1,z1)
  796. return mesh
  797. end
  798.  
  799.  
  800. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  801. local mesh = Instance.new("SpecialMesh",parent)
  802. mesh.MeshType = "FileMesh"
  803. mesh.MeshId = meshid
  804. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  805. mesh.Scale = Vector3.new(x1,y1,z1)
  806. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  807. return mesh
  808. end
  809.  
  810. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  811. local weld = Instance.new("Weld")
  812. weld.Parent = parent
  813. weld.Part0 = part0
  814. weld.Part1 = part1
  815. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  816. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  817. return weld
  818. end
  819.  
  820.  
  821. --------------
  822. --------------
  823. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  824. 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))
  825. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  826. 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))
  827.  
  828. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  829. CreateMesh(handle,"Brick",0,0,0)
  830. 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))
  831. local valuaring = 10
  832. for i = 0, 49 do
  833. valuaring = valuaring + 10
  834. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  835. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  836. 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))
  837. end
  838.  
  839. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  840. CreateMesh(handle,"Brick",0,0,0)
  841. 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))
  842. local valuaring = 10
  843. for i = 0, 49 do
  844. valuaring = valuaring + 10
  845. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  846. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  847. 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))
  848. end
  849.  
  850.  
  851. local handle = CreateParta(m,1,1,"Neon",maincolor)
  852. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  853. 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))
  854.  
  855. --- Left wing.
  856.  
  857. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  858. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  859. 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))
  860.  
  861. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  862. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  863. 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))
  864. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  865. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  866. 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))
  867. A0 = Instance.new('Attachment',wed)
  868. A0.Position = vt(0,0.25,0.25)
  869. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  870. CreateMesh(wed,"Wedge",0.05,0.5,3)
  871. 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))
  872. A1 = Instance.new('Attachment',wed)
  873. A1.Position = vt(0,-0.25,-2)
  874. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  875. CreateMesh(wed,"Wedge",0.05,3,0.5)
  876. 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))
  877.  
  878. tl1 = Instance.new('Trail',wed)
  879. tl1.Attachment0 = A1
  880. tl1.Attachment1 = A0
  881. tl1.Texture = "rbxassetid://2108945559"
  882. tl1.LightEmission = 1
  883. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  884. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  885. tl1.Lifetime = 0.6
  886.  
  887.  
  888. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  889. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  890. 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))
  891.  
  892. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  894. 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))
  895. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  896. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  897. 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))
  898. A0 = Instance.new('Attachment',wed)
  899. A0.Position = vt(0,0.25,0.25)
  900. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  901. CreateMesh(wed,"Wedge",0.05,0.5,3)
  902. 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))
  903. A1 = Instance.new('Attachment',wed)
  904. A1.Position = vt(0,-0.25,-2)
  905. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  906. CreateMesh(wed,"Wedge",0.05,3,0.5)
  907. 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))
  908.  
  909. tl2 = Instance.new('Trail',wed)
  910. tl2.Attachment0 = A1
  911. tl2.Attachment1 = A0
  912. tl2.Texture = "rbxassetid://2108945559"
  913. tl2.LightEmission = 1
  914. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  915. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  916. tl2.Lifetime = 0.6
  917.  
  918. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  919. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  920. 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))
  921.  
  922. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  923. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  924. 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))
  925. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  926. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  927. 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))
  928. A0 = Instance.new('Attachment',wed)
  929. A0.Position = vt(0,0.25,0.25)
  930. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  931. CreateMesh(wed,"Wedge",0.05,0.5,3)
  932. 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))
  933. A1 = Instance.new('Attachment',wed)
  934. A1.Position = vt(0,-0.25,-2)
  935. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  936. CreateMesh(wed,"Wedge",0.05,3,0.5)
  937. 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))
  938.  
  939. tl3 = Instance.new('Trail',wed)
  940. tl3.Attachment0 = A1
  941. tl3.Attachment1 = A0
  942. tl3.Texture = "rbxassetid://2108945559"
  943. tl3.LightEmission = 1
  944. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  945. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  946. tl3.Lifetime = 0.6
  947.  
  948. tl1.Enabled = false
  949. tl2.Enabled = false
  950. tl3.Enabled = false
  951. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  952. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  953. 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))
  954.  
  955. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  956. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  957. 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))
  958. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  959. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  960. 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))
  961. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  962. CreateMesh(wed,"Wedge",0.05,0.5,3)
  963. 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))
  964. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  965. CreateMesh(wed,"Wedge",0.05,3,0.5)
  966. 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))
  967.  
  968. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  969. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  970. 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))
  971.  
  972. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  973. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  974. 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))
  975. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  976. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  977. 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))
  978. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  979. CreateMesh(wed,"Wedge",0.05,0.5,3)
  980. 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))
  981. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  982. CreateMesh(wed,"Wedge",0.05,3,0.5)
  983. 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))
  984.  
  985. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  986. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  987. 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))
  988.  
  989. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  990. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  991. 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))
  992. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  993. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  994. 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))
  995. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  996. CreateMesh(wed,"Wedge",0.05,0.5,3)
  997. 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))
  998. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  999. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1000. 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))
  1001.  
  1002. -- Right wing.
  1003.  
  1004. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1005. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1006. 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))
  1007.  
  1008. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1009. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1010. 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))
  1011. A0 = Instance.new('Attachment',wed)
  1012. A0.Position = vt(0,0.25,0.25)
  1013. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1014. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1015. 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))
  1016. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1017. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1018. 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))
  1019. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1020. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1021. 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))
  1022. A1 = Instance.new('Attachment',wed)
  1023. A1.Position = vt(0,2,0.25)
  1024.  
  1025. tr1 = Instance.new('Trail',wed)
  1026. tr1.Attachment0 = A1
  1027. tr1.Attachment1 = A0
  1028. tr1.Texture = "rbxassetid://2108945559"
  1029. tr1.LightEmission = 1
  1030. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1031. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1032. tr1.Lifetime = 0.6
  1033.  
  1034. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1035. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1036. 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))
  1037.  
  1038. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1039. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1040. 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))
  1041. A0 = Instance.new('Attachment',wed)
  1042. A0.Position = vt(0,0.25,0.25)
  1043. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1044. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1045. 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))
  1046. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1047. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1048. 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))
  1049. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1050. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1051. 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))
  1052. A1 = Instance.new('Attachment',wed)
  1053. A1.Position = vt(0,2,0.25)
  1054.  
  1055. tr2 = Instance.new('Trail',wed)
  1056. tr2.Attachment0 = A1
  1057. tr2.Attachment1 = A0
  1058. tr2.Texture = "rbxassetid://2108945559"
  1059. tr2.LightEmission = 1
  1060. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1061. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1062. tr2.Lifetime = 0.6
  1063.  
  1064. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1065. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1066. 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))
  1067.  
  1068. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1069. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1070. 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))
  1071. A0 = Instance.new('Attachment',wed)
  1072. A0.Position = vt(0,0.25,0.25)
  1073. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1074. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1075. 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))
  1076. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1077. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1078. 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))
  1079. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1080. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1081. 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))
  1082. A1 = Instance.new('Attachment',wed)
  1083. A1.Position = vt(0,2,0.25)
  1084.  
  1085. tr3 = Instance.new('Trail',wed)
  1086. tr3.Attachment0 = A1
  1087. tr3.Attachment1 = A0
  1088. tr3.Texture = "rbxassetid://2108945559"
  1089. tr3.LightEmission = 1
  1090. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1091. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1092. tr3.Lifetime = 0.6
  1093.  
  1094.  
  1095. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1096. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1097. 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))
  1098.  
  1099. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1100. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1101. 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))
  1102. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1103. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1104. 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))
  1105. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1106. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1107. 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))
  1108. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1109. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1110. 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))
  1111.  
  1112. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1113. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1114. 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))
  1115.  
  1116. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1117. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1118. 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))
  1119. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1120. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1121. 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))
  1122. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1123. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1124. 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))
  1125. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1126. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1127. 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))
  1128.  
  1129. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1130. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1131. 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))
  1132.  
  1133. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1134. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1135. 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))
  1136. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1137. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1138. 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))
  1139. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1140. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1141. 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))
  1142. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1143. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1144. 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))
  1145.  
  1146. ---- HERES THE RING
  1147.  
  1148.  
  1149. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1150. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1151. 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))
  1152. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1153. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1154. 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))
  1155. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1156. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1157. 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))
  1158.  
  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.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1163.  
  1164. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1165. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1166. 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))
  1167.  
  1168.  
  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.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1173.  
  1174. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1175. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1176. 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))
  1177.  
  1178. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1179. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1180. 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))
  1181.  
  1182. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1183. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1184. 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))
  1185. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1186. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1187. 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))
  1188.  
  1189. --- second ring
  1190.  
  1191. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1192. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1193. 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))
  1194. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1195. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1196. 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))
  1197. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1198. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1199. 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))
  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.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1204.  
  1205. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1206. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1207. 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))
  1208.  
  1209.  
  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.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1214.  
  1215. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1216. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1217. 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))
  1218.  
  1219. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1220. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1221. 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))
  1222.  
  1223. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1224. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1225. 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))
  1226. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1227. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1228. 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))]]--
  1229.  
  1230.  
  1231.  
  1232. for i, v in pairs(m:GetChildren()) do
  1233. if v:IsA("Part") then
  1234. v.BrickColor = BrickColor.new("Really black")
  1235. v.Material = "Glass"
  1236. end
  1237. end
  1238. for i, v in pairs(m2:GetChildren()) do
  1239. if v:IsA("Part") then
  1240. v.BrickColor = BrickColor.new("Crimson")
  1241. v.Material = "Granite"
  1242. end
  1243. end
  1244. for i, v in pairs(m3:GetChildren()) do
  1245. if v:IsA("Part") then
  1246. v.BrickColor = BrickColor.new("Really red")
  1247. v.Material = "Neon"
  1248. end
  1249. end
  1250. for i, v in pairs(mw2:GetChildren()) do
  1251. if v:IsA("Part") then
  1252. v.BrickColor = BrickColor.new("Really red")
  1253. v.Material = "Neon"
  1254. end
  1255. end
  1256. for i, v in pairs(mw1:GetChildren()) do
  1257. if v:IsA("Part") then
  1258. v.Transparency = 1
  1259. v.BrickColor = BrickColor.new("Really red")
  1260. v.Material = "Neon"
  1261. end
  1262. end
  1263. for i, v in pairs(extrawingmod1:GetChildren()) do
  1264. if v:IsA("Part") then
  1265. v.Transparency = 1
  1266. v.BrickColor = BrickColor.new("White")
  1267. v.Material = "Neon"
  1268. end
  1269. end
  1270. for i, v in pairs(extrawingmod2:GetChildren()) do
  1271. if v:IsA("Part") then
  1272. v.Transparency = 1
  1273. v.BrickColor = BrickColor.new("White")
  1274. v.Material = "Neon"
  1275. end
  1276. end
  1277. local MAINRUINCOLOR = BrickColor.new("Really red")
  1278. ------
  1279.  
  1280.  
  1281. function RemoveOutlines(part)
  1282. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1283. end
  1284. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1285. local Part = Create("Part")({
  1286. Parent = Parent,
  1287. Reflectance = Reflectance,
  1288. Transparency = Transparency,
  1289. CanCollide = false,
  1290. Locked = true,
  1291. BrickColor = BrickColor.new(tostring(BColor)),
  1292. Name = Name,
  1293. Size = Size,
  1294. Material = Material
  1295. })
  1296. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1297. RemoveOutlines(Part)
  1298. return Part
  1299. end
  1300. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1301. local Msh = Create(Mesh)({
  1302. Parent = Part,
  1303. Offset = OffSet,
  1304. Scale = Scale
  1305. })
  1306. if Mesh == "SpecialMesh" then
  1307. Msh.MeshType = MeshType
  1308. Msh.MeshId = MeshId
  1309. end
  1310. return Msh
  1311. end
  1312. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1313. local Weld = Create("Weld")({
  1314. Parent = Parent,
  1315. Part0 = Part0,
  1316. Part1 = Part1,
  1317. C0 = C0,
  1318. C1 = C1
  1319. })
  1320. return Weld
  1321. end
  1322.  
  1323. Character=Player.Character
  1324. PlayerGui=Player.PlayerGui
  1325. Backpack=Player.Backpack
  1326. Torso=Character.Torso
  1327. Head=Character.Head
  1328. Humanoid=Character.Humanoid
  1329. m=Instance.new('Model',Character)
  1330. LeftArm=Character["Left Arm"]
  1331. LeftLeg=Character["Left Leg"]
  1332. RightArm=Character["Right Arm"]
  1333. RightLeg=Character["Right Leg"]
  1334. LS=Torso["Left Shoulder"]
  1335. LH=Torso["Left Hip"]
  1336. RS=Torso["Right Shoulder"]
  1337. RH=Torso["Right Hip"]
  1338. Face = Head.face
  1339. Neck=Torso.Neck
  1340. it=Instance.new
  1341. attacktype=1
  1342. vt=Vector3.new
  1343. cf=CFrame.new
  1344. euler=CFrame.fromEulerAnglesXYZ
  1345. angles=CFrame.Angles
  1346. cloaked=false
  1347. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1348. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1349. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1350. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1351. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1352. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1353. RootPart=Character.HumanoidRootPart
  1354. RootJoint=RootPart.RootJoint
  1355. RootCF=euler(-1.57,0,3.14)
  1356. attack = false
  1357. attackdebounce = false
  1358. deb=false
  1359. equipped=true
  1360. hand=false
  1361. combo=0
  1362. mana=0
  1363. trispeed=.2
  1364. attackmode='none'
  1365. local idle=0
  1366. local Anim="Idle"
  1367. local Effects={}
  1368. local gun=false
  1369. local shoot=false
  1370. local sine = 0
  1371. local change = 1
  1372.  
  1373. function RecolorTextAndRename(name,col1,col2,font)
  1374. modet.TextStrokeColor3 = col2
  1375. modet.TextColor3 = col1
  1376. modet.Font = font
  1377. modet.Text = name
  1378. techc.ImageColor3 = col2
  1379. circl.ImageColor3 = col2
  1380. circl2.ImageColor3 = col1
  1381. imgl2.ImageColor3 = col1
  1382. imgl2b.ImageColor3 = col2
  1383. ned.Text = name
  1384. ned.TextColor3 = col1
  1385. ned.TextStrokeColor3 = col2
  1386. end
  1387. --save shoulders
  1388. RSH, LSH=nil, nil
  1389. --welds
  1390. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1391. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1392. LH=Torso["Left Hip"]
  1393. RH=Torso["Right Hip"]
  1394. TorsoColor=Torso.BrickColor
  1395. function NoOutline(Part)
  1396. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1397. end
  1398. ch=Character
  1399. RSH=ch.Torso["Right Shoulder"]
  1400. LSH=ch.Torso["Left Shoulder"]
  1401. --
  1402. RSH.Parent=nil
  1403. LSH.Parent=nil
  1404. --
  1405. RW.Name="Right Shoulder"
  1406. RW.Part0=ch.Torso
  1407. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1408. RW.C1=cf(0, 0.5, 0)
  1409. RW.Part1=ch["Right Arm"]
  1410. RW.Parent=ch.Torso
  1411. --
  1412. LW.Name="Left Shoulder"
  1413. LW.Part0=ch.Torso
  1414. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1415. LW.C1=cf(0, 0.5, 0)
  1416. LW.Part1=ch["Left Arm"]
  1417. LW.Parent=ch.Torso
  1418.  
  1419. local Stats=Instance.new("BoolValue")
  1420. Stats.Name="Stats"
  1421. Stats.Parent=Character
  1422. local Atk=Instance.new("NumberValue")
  1423. Atk.Name="Damage"
  1424. Atk.Parent=Stats
  1425. Atk.Value=1
  1426. local Def=Instance.new("NumberValue")
  1427. Def.Name="Defense"
  1428. Def.Parent=Stats
  1429. Def.Value=1
  1430. local Speed=Instance.new("NumberValue")
  1431. Speed.Name="Speed"
  1432. Speed.Parent=Stats
  1433. Speed.Value=1
  1434. local Mvmt=Instance.new("NumberValue")
  1435. Mvmt.Name="Movement"
  1436. Mvmt.Parent=Stats
  1437. Mvmt.Value=1
  1438.  
  1439. local donum=0
  1440.  
  1441.  
  1442. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1443. local fp=it("Part")
  1444. fp.formFactor=formfactor
  1445. fp.Parent=parent
  1446. fp.Reflectance=reflectance
  1447. fp.Transparency=transparency
  1448. fp.CanCollide=false
  1449. fp.Locked=true
  1450. fp.BrickColor=brickcolor
  1451. fp.Name=name
  1452. fp.Size=size
  1453. fp.Position=Torso.Position
  1454. NoOutline(fp)
  1455. fp.Material="SmoothPlastic"
  1456. fp:BreakJoints()
  1457. return fp
  1458. end
  1459.  
  1460. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1461. local mesh=it(Mesh)
  1462. mesh.Parent=part
  1463. if Mesh=="SpecialMesh" then
  1464. mesh.MeshType=meshtype
  1465. if meshid~="nil" then
  1466. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1467. end
  1468. end
  1469. mesh.Offset=offset
  1470. mesh.Scale=scale
  1471. return mesh
  1472. end
  1473.  
  1474. function weld(parent,part0,part1,c0)
  1475. local weld=it("Weld")
  1476. weld.Parent=parent
  1477. weld.Part0=part0
  1478. weld.Part1=part1
  1479. weld.C0=c0
  1480. return weld
  1481. end
  1482.  
  1483. local Color1=Torso.BrickColor
  1484.  
  1485. local bodvel=Instance.new("BodyVelocity")
  1486. local bg=Instance.new("BodyGyro")
  1487.  
  1488. --------- SazEreno's Artificial HB --------------
  1489. ArtificialHB = Instance.new("BindableEvent", script)
  1490. ArtificialHB.Name = "ArtificialHB"
  1491.  
  1492. script:WaitForChild("ArtificialHB")
  1493. Frame_Speed = 1 / 60
  1494. frame = Frame_Speed
  1495. tf = 0
  1496. allowframeloss = false
  1497. tossremainder = false
  1498. lastframe = tick()
  1499. script.ArtificialHB:Fire()
  1500.  
  1501. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1502. tf = tf + s
  1503. if tf >= frame then
  1504. if allowframeloss then
  1505. script.ArtificialHB:Fire()
  1506. lastframe = tick()
  1507. else
  1508. for i = 1, math.floor(tf / frame) do
  1509. script.ArtificialHB:Fire()
  1510. end
  1511. lastframe = tick()
  1512. end
  1513. if tossremainder then
  1514. tf = 0
  1515. else
  1516. tf = tf - frame * math.floor(tf / frame)
  1517. end
  1518. end
  1519. end)
  1520.  
  1521. ------------------
  1522. function swait(num)
  1523. function swait(num)
  1524. if num==0 or num==nil then
  1525. game:service'RunService'.Stepped:wait(0)
  1526. else
  1527. for i=0,num do
  1528. game:service'RunService'.Stepped:wait(0)
  1529. end
  1530. end
  1531. end
  1532. end
  1533.  
  1534. -------- RAINBOW LEAVE IT TO ME
  1535. local r = 255
  1536. local g = 0
  1537. local b = 0
  1538. coroutine.resume(coroutine.create(function()
  1539. while wait() do
  1540. for i = 0, 254/5 do
  1541. swait()
  1542. g = g + 5
  1543. end
  1544. for i = 0, 254/5 do
  1545. swait()
  1546. r = r - 5
  1547. end
  1548. for i = 0, 254/5 do
  1549. swait()
  1550. b = b + 5
  1551. end
  1552. for i = 0, 254/5 do
  1553. swait()
  1554. g = g - 5
  1555. end
  1556. for i = 0, 254/5 do
  1557. swait()
  1558. r = r + 5
  1559. end
  1560. for i = 0, 254/5 do
  1561. swait()
  1562. b = b - 5
  1563. end
  1564. end
  1565. end))
  1566.  
  1567.  
  1568. so = function(id,par,vol,pit)
  1569. coroutine.resume(coroutine.create(function()
  1570. local sou = Instance.new("Sound",par or workspace)
  1571. sou.Volume=vol
  1572. sou.Pitch=pit or 1
  1573. sou.SoundId=id
  1574. swait()
  1575. sou:play()
  1576. game:GetService("Debris"):AddItem(sou,6)
  1577. end))
  1578. end
  1579.  
  1580. function clerp(a,b,t)
  1581. local qa = {QuaternionFromCFrame(a)}
  1582. local qb = {QuaternionFromCFrame(b)}
  1583. local ax, ay, az = a.x, a.y, a.z
  1584. local bx, by, bz = b.x, b.y, b.z
  1585. local _t = 1-t
  1586. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1587. end
  1588.  
  1589. function QuaternionFromCFrame(cf)
  1590. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1591. local trace = m00 + m11 + m22
  1592. if trace > 0 then
  1593. local s = math.sqrt(1 + trace)
  1594. local recip = 0.5/s
  1595. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1596. else
  1597. local i = 0
  1598. if m11 > m00 then
  1599. i = 1
  1600. end
  1601. if m22 > (i == 0 and m00 or m11) then
  1602. i = 2
  1603. end
  1604. if i == 0 then
  1605. local s = math.sqrt(m00-m11-m22+1)
  1606. local recip = 0.5/s
  1607. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1608. elseif i == 1 then
  1609. local s = math.sqrt(m11-m22-m00+1)
  1610. local recip = 0.5/s
  1611. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1612. elseif i == 2 then
  1613. local s = math.sqrt(m22-m00-m11+1)
  1614. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1615. end
  1616. end
  1617. end
  1618.  
  1619. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1620. local xs, ys, zs = x + x, y + y, z + z
  1621. local wx, wy, wz = w*xs, w*ys, w*zs
  1622. local xx = x*xs
  1623. local xy = x*ys
  1624. local xz = x*zs
  1625. local yy = y*ys
  1626. local yz = y*zs
  1627. local zz = z*zs
  1628. 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))
  1629. end
  1630.  
  1631. function QuaternionSlerp(a, b, t)
  1632. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1633. local startInterp, finishInterp;
  1634. if cosTheta >= 0.0001 then
  1635. if (1 - cosTheta) > 0.0001 then
  1636. local theta = math.acos(cosTheta)
  1637. local invSinTheta = 1/math.sin(theta)
  1638. startInterp = math.sin((1-t)*theta)*invSinTheta
  1639. finishInterp = math.sin(t*theta)*invSinTheta
  1640. else
  1641. startInterp = 1-t
  1642. finishInterp = t
  1643. end
  1644. else
  1645. if (1+cosTheta) > 0.0001 then
  1646. local theta = math.acos(-cosTheta)
  1647. local invSinTheta = 1/math.sin(theta)
  1648. startInterp = math.sin((t-1)*theta)*invSinTheta
  1649. finishInterp = math.sin(t*theta)*invSinTheta
  1650. else
  1651. startInterp = t-1
  1652. finishInterp = t
  1653. end
  1654. end
  1655. 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
  1656. end
  1657.  
  1658. local function CFrameFromTopBack(at, top, back)
  1659. local right = top:Cross(back)
  1660. return CFrame.new(at.x, at.y, at.z,
  1661. right.x, top.x, back.x,
  1662. right.y, top.y, back.y,
  1663. right.z, top.z, back.z)
  1664. end
  1665.  
  1666. function Triangle(a, b, c)
  1667. local edg1 = (c-a):Dot((b-a).unit)
  1668. local edg2 = (a-b):Dot((c-b).unit)
  1669. local edg3 = (b-c):Dot((a-c).unit)
  1670. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1671. a, b, c = a, b, c
  1672. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1673. a, b, c = b, c, a
  1674. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1675. a, b, c = c, a, b
  1676. else
  1677. assert(false, "unreachable")
  1678. end
  1679.  
  1680. local len1 = (c-a):Dot((b-a).unit)
  1681. local len2 = (b-a).magnitude - len1
  1682. local width = (a + (b-a).unit*len1 - c).magnitude
  1683.  
  1684. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1685.  
  1686. local list = {}
  1687.  
  1688. if len1 > 0.01 then
  1689. local w1 = Instance.new('WedgePart', m)
  1690. game:GetService("Debris"):AddItem(w1,5)
  1691. w1.Material = "SmoothPlastic"
  1692. w1.FormFactor = 'Custom'
  1693. w1.BrickColor = BrickColor.new("Really red")
  1694. w1.Transparency = 0
  1695. w1.Reflectance = 0
  1696. w1.Material = "SmoothPlastic"
  1697. w1.CanCollide = false
  1698. local l1 = Instance.new("PointLight",w1)
  1699. l1.Color = Color3.new(170,0,0)
  1700. NoOutline(w1)
  1701. local sz = Vector3.new(0.2, width, len1)
  1702. w1.Size = sz
  1703. local sp = Instance.new("SpecialMesh",w1)
  1704. sp.MeshType = "Wedge"
  1705. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1706. w1:BreakJoints()
  1707. w1.Anchored = true
  1708. w1.Parent = workspace
  1709. w1.Transparency = 0.7
  1710. table.insert(Effects,{w1,"Disappear",.01})
  1711. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1712. table.insert(list,w1)
  1713. end
  1714.  
  1715. if len2 > 0.01 then
  1716. local w2 = Instance.new('WedgePart', m)
  1717. game:GetService("Debris"):AddItem(w2,5)
  1718. w2.Material = "SmoothPlastic"
  1719. w2.FormFactor = 'Custom'
  1720. w2.BrickColor = BrickColor.new("Really red")
  1721. w2.Transparency = 0
  1722. w2.Reflectance = 0
  1723. w2.Material = "SmoothPlastic"
  1724. w2.CanCollide = false
  1725. local l2 = Instance.new("PointLight",w2)
  1726. l2.Color = Color3.new(170,0,0)
  1727. NoOutline(w2)
  1728. local sz = Vector3.new(0.2, width, len2)
  1729. w2.Size = sz
  1730. local sp = Instance.new("SpecialMesh",w2)
  1731. sp.MeshType = "Wedge"
  1732. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1733. w2:BreakJoints()
  1734. w2.Anchored = true
  1735. w2.Parent = workspace
  1736. w2.Transparency = 0.7
  1737. table.insert(Effects,{w2,"Disappear",.01})
  1738. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1739. table.insert(list,w2)
  1740. end
  1741. return unpack(list)
  1742. end
  1743.  
  1744.  
  1745. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1746. if hit.Parent == nil then
  1747. return
  1748. end
  1749. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1750. for _, v in pairs(hit.Parent:children()) do
  1751. if v:IsA("Humanoid") then
  1752. h = v
  1753. end
  1754. end
  1755. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1756. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1757. return
  1758. end
  1759. local c = Create("ObjectValue")({
  1760. Name = "creator",
  1761. Value = game:GetService("Players").LocalPlayer,
  1762. Parent = h
  1763. })
  1764. game:GetService("Debris"):AddItem(c, 0.5)
  1765. if HitSound ~= nil and HitPitch ~= nil then
  1766. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1767. end
  1768. local Damage = math.random(minim, maxim)
  1769. local blocked = false
  1770. local block = hit.Parent:findFirstChild("Block")
  1771. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1772. blocked = true
  1773. block.Value = block.Value - 1
  1774. print(block.Value)
  1775. end
  1776. if blocked == false then
  1777. HitHealth = h.Health
  1778. h.MaxHealth = 100
  1779. h.Health = h.Health - Damage
  1780. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1781. print("gained kill")
  1782. dmg(h.Parent)
  1783. end
  1784. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1785. else
  1786. h.Health = h.Health - Damage / 2
  1787. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1788. end
  1789. if Type == "Knockdown" then
  1790. local hum = hit.Parent.Humanoid
  1791. hum.PlatformStand = true
  1792. coroutine.resume(coroutine.create(function(HHumanoid)
  1793. swait(1)
  1794. HHumanoid.PlatformStand = false
  1795. end), hum)
  1796. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1797. local bodvol = Create("BodyVelocity")({
  1798. velocity = angle * knockback,
  1799. P = 5000,
  1800. maxForce = Vector3.new(8000, 8000, 8000),
  1801. Parent = hit
  1802. })
  1803. local rl = Create("BodyAngularVelocity")({
  1804. P = 3000,
  1805. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1806. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1807. Parent = hit
  1808. })
  1809. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1810. game:GetService("Debris"):AddItem(rl, 0.5)
  1811. elseif Type == "Normal" then
  1812. local vp = Create("BodyVelocity")({
  1813. P = 500,
  1814. maxForce = Vector3.new(math.huge, 0, math.huge),
  1815. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1816. })
  1817. if knockback > 0 then
  1818. vp.Parent = hit.Parent.Head
  1819. end
  1820. game:GetService("Debris"):AddItem(vp, 0.5)
  1821. elseif Type == "Up" then
  1822. local bodyVelocity = Create("BodyVelocity")({
  1823. velocity = Vector3.new(0, 20, 0),
  1824. P = 5000,
  1825. maxForce = Vector3.new(8000, 8000, 8000),
  1826. Parent = hit
  1827. })
  1828. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1829. local bodyVelocity = Create("BodyVelocity")({
  1830. velocity = Vector3.new(0, 20, 0),
  1831. P = 5000,
  1832. maxForce = Vector3.new(8000, 8000, 8000),
  1833. Parent = hit
  1834. })
  1835. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1836. elseif Type == "Leech" then
  1837. local hum = hit.Parent.Humanoid
  1838. if hum ~= nil then
  1839. for i = 0, 2 do
  1840. 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)
  1841. end
  1842. Humanoid.Health = Humanoid.Health + 10
  1843. end
  1844. elseif Type == "UpKnock" then
  1845. local hum = hit.Parent.Humanoid
  1846. hum.PlatformStand = true
  1847. if hum ~= nil then
  1848. hitr = true
  1849. end
  1850. coroutine.resume(coroutine.create(function(HHumanoid)
  1851. swait(5)
  1852. HHumanoid.PlatformStand = false
  1853. hitr = false
  1854. end), hum)
  1855. local bodyVelocity = Create("BodyVelocity")({
  1856. velocity = Vector3.new(0, 20, 0),
  1857. P = 5000,
  1858. maxForce = Vector3.new(8000, 8000, 8000),
  1859. Parent = hit
  1860. })
  1861. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1862. local bodyVelocity = Create("BodyVelocity")({
  1863. velocity = Vector3.new(0, 20, 0),
  1864. P = 5000,
  1865. maxForce = Vector3.new(8000, 8000, 8000),
  1866. Parent = hit
  1867. })
  1868. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1869. elseif Type == "Snare" then
  1870. local bp = Create("BodyPosition")({
  1871. P = 2000,
  1872. D = 100,
  1873. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1874. position = hit.Parent.Torso.Position,
  1875. Parent = hit.Parent.Torso
  1876. })
  1877. game:GetService("Debris"):AddItem(bp, 1)
  1878. elseif Type == "Slashnare" then
  1879. 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)
  1880. for i = 1, math.random(4, 5) do
  1881. 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)
  1882. end
  1883. local bp = Create("BodyPosition")({
  1884. P = 2000,
  1885. D = 100,
  1886. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1887. position = hit.Parent.Torso.Position,
  1888. Parent = hit.Parent.Torso
  1889. })
  1890. game:GetService("Debris"):AddItem(bp, 1)
  1891. elseif Type == "Spike" then
  1892. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1893. local bp = Create("BodyPosition")({
  1894. P = 2000,
  1895. D = 100,
  1896. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1897. position = hit.Parent.Torso.Position,
  1898. Parent = hit.Parent.Torso
  1899. })
  1900. game:GetService("Debris"):AddItem(bp, 1)
  1901. elseif Type == "Freeze" then
  1902. local BodPos = Create("BodyPosition")({
  1903. P = 50000,
  1904. D = 1000,
  1905. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1906. position = hit.Parent.Torso.Position,
  1907. Parent = hit.Parent.Torso
  1908. })
  1909. local BodGy = Create("BodyGyro")({
  1910. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1911. P = 20000,
  1912. Parent = hit.Parent.Torso,
  1913. cframe = hit.Parent.Torso.CFrame
  1914. })
  1915. hit.Parent.Torso.Anchored = true
  1916. coroutine.resume(coroutine.create(function(Part)
  1917. swait(1.5)
  1918. Part.Anchored = false
  1919. end), hit.Parent.Torso)
  1920. game:GetService("Debris"):AddItem(BodPos, 3)
  1921. game:GetService("Debris"):AddItem(BodGy, 3)
  1922. end
  1923. local debounce = Create("BoolValue")({
  1924. Name = "DebounceHit",
  1925. Parent = hit.Parent,
  1926. Value = true
  1927. })
  1928. game:GetService("Debris"):AddItem(debounce, Delay)
  1929. c = Instance.new("ObjectValue")
  1930. c.Name = "creator"
  1931. c.Value = Player
  1932. c.Parent = h
  1933. game:GetService("Debris"):AddItem(c, 0.5)
  1934. end
  1935. end
  1936. function ShowDamage(Pos, Text, Time, Color)
  1937. local Rate = 0.03333333333333333
  1938. local Pos = Pos or Vector3.new(0, 0, 0)
  1939. local Text = Text or ""
  1940. local Time = Time or 2
  1941. local Color = Color or Color3.new(1, 0, 1)
  1942. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1943. EffectPart.Anchored = true
  1944. local BillboardGui = Create("BillboardGui")({
  1945. Size = UDim2.new(3, 0, 3, 0),
  1946. Adornee = EffectPart,
  1947. Parent = EffectPart
  1948. })
  1949. local TextLabel = Create("TextLabel")({
  1950. BackgroundTransparency = 1,
  1951. Size = UDim2.new(1, 0, 1, 0),
  1952. Text = Text,
  1953. TextColor3 = Color,
  1954. TextScaled = true,
  1955. Font = Enum.Font.ArialBold,
  1956. Parent = BillboardGui
  1957. })
  1958. game.Debris:AddItem(EffectPart, Time + 0.1)
  1959. EffectPart.Parent = game:GetService("Workspace")
  1960. delay(0, function()
  1961. local Frames = Time / Rate
  1962. for Frame = 1, Frames do
  1963. wait(Rate)
  1964. local Percent = Frame / Frames
  1965. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1966. TextLabel.TextTransparency = Percent
  1967. end
  1968. if EffectPart and EffectPart.Parent then
  1969. EffectPart:Destroy()
  1970. end
  1971. end)
  1972. end
  1973. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1974. for _, c in pairs(workspace:children()) do
  1975. local hum = c:findFirstChildOfClass("Humanoid")
  1976. if hum ~= nil then
  1977. local head = c:findFirstChild("Head")
  1978. if head ~= nil then
  1979. local targ = head.Position - Part.Position
  1980. local mag = targ.magnitude
  1981. if magni >= mag and c.Name ~= Player.Name then
  1982. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1983. end
  1984. end
  1985. end
  1986. end
  1987. end
  1988.  
  1989. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1990. for _, c in pairs(workspace:children()) do
  1991. local hum = c:findFirstChild("Humanoid")
  1992. if hum ~= nil then
  1993. local head = c:findFirstChild("Torso")
  1994. if head ~= nil then
  1995. local targ = head.Position - Part.Position
  1996. local mag = targ.magnitude
  1997. if magni >= mag and c.Name ~= Player.Name then
  1998. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1999. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2000. end
  2001. end
  2002. end
  2003. end
  2004. end
  2005.  
  2006. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2007. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2008. end
  2009.  
  2010. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2011. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2012. prt.Anchored=true
  2013. prt.CFrame=cframe
  2014. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2015. --http://www.roblox.com/asset/?id=4770560
  2016. game:GetService("Debris"):AddItem(prt,2)
  2017. CF=prt.CFrame
  2018. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2019. for i=0,1,0.2 do
  2020. wait()
  2021. Part.CFrame=CF*cf(0,0,-0.4)
  2022. end
  2023. for i=0,1,delay do
  2024. wait()
  2025. --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)
  2026. Mesh.Scale=Mesh.Scale
  2027. end
  2028. for i=0,1,0.1 do
  2029. wait()
  2030. Part.Transparency=i
  2031. end
  2032. Part.Parent=nil
  2033. end),prt,msh,CF)
  2034. end
  2035.  
  2036. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2037. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2038. prt.Anchored=true
  2039. prt.Material = "Neon"
  2040. prt.CFrame=cframe
  2041. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2042. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2043. game:GetService("Debris"):AddItem(prt,5)
  2044. coroutine.resume(coroutine.create(function(Part,Mesh)
  2045. for i=0,1,delay do
  2046. swait()
  2047. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2048. Part.Transparency=i
  2049. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2050. end
  2051. Part.Parent=nil
  2052. end),prt,msh)
  2053. end
  2054.  
  2055. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2056. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2057. prt.Anchored=true
  2058. prt.Material = "Neon"
  2059. prt.CFrame=cframe
  2060. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2061. game:GetService("Debris"):AddItem(prt,5)
  2062. coroutine.resume(coroutine.create(function(Part,Mesh)
  2063. local rtype = rottype
  2064. for i=0,1,delay do
  2065. swait()
  2066. if rtype == 1 then
  2067. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2068. elseif rtype == 2 then
  2069. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2070. end
  2071. Part.Transparency=i
  2072. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2073. end
  2074. Part.Parent=nil
  2075. end),prt,msh)
  2076. end
  2077.  
  2078. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2079. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2080. prt.Anchored=true
  2081. prt.CFrame=cframe
  2082. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2083. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2084. game:GetService("Debris"):AddItem(prt,5)
  2085. coroutine.resume(coroutine.create(function(Part,Mesh)
  2086. for i=0,1,delay do
  2087. wait()
  2088. Part.Transparency=i
  2089. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2090. end
  2091. Part.Parent=nil
  2092. end),prt,msh)
  2093. end
  2094.  
  2095. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2096. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2097. prt.Anchored=true
  2098. prt.Material = "Neon"
  2099. prt.CFrame=cframe
  2100. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2101. game:GetService("Debris"):AddItem(prt,5)
  2102. coroutine.resume(coroutine.create(function(Part,Mesh)
  2103. local rtype = rottype
  2104. for i=0,1,delay do
  2105. swait()
  2106. if rtype == 1 then
  2107. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2108. elseif rtype == 2 then
  2109. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2110. end
  2111. Part.Transparency=i
  2112. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2113. end
  2114. Part.Parent=nil
  2115. end),prt,msh)
  2116. end
  2117.  
  2118. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2119. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2120. prt.Anchored=true
  2121. prt.Material = "Neon"
  2122. prt.CFrame=cframe
  2123. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2124. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2125. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2126. game:GetService("Debris"):AddItem(prt,5)
  2127. coroutine.resume(coroutine.create(function(Part,Mesh)
  2128. local rtype = rottype
  2129. for i=0,1,delay do
  2130. swait()
  2131. if rtype == 1 then
  2132. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2133. elseif rtype == 2 then
  2134. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2135. end
  2136. dec.Transparency=i
  2137. dec2.Transparency=i
  2138. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2139. end
  2140. Part.Parent=nil
  2141. end),prt,msh)
  2142. end
  2143.  
  2144. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2145. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2146. prt.Anchored=true
  2147. prt.Material = "Neon"
  2148. prt.CFrame=cframe
  2149. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2150. game:GetService("Debris"):AddItem(prt,5)
  2151. coroutine.resume(coroutine.create(function(Part,Mesh)
  2152. local rtype = rottype
  2153. for i=0,1,delay do
  2154. swait()
  2155. if rtype == 1 then
  2156. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2157. elseif rtype == 2 then
  2158. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2159. end
  2160. prt.Transparency=i
  2161. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2162. end
  2163. Part.Parent=nil
  2164. end),prt,msh)
  2165. end
  2166.  
  2167. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2168. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2169. prt.Anchored=true
  2170. prt.Material = "Neon"
  2171. prt.CFrame=cframe
  2172. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2173. game:GetService("Debris"):AddItem(prt,5)
  2174. coroutine.resume(coroutine.create(function(Part,Mesh)
  2175. local rtype = rottype
  2176. for i=0,1,delay do
  2177. swait()
  2178. if rtype == 1 then
  2179. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2180. elseif rtype == 2 then
  2181. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2182. end
  2183. prt.Transparency=i
  2184. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2185. end
  2186. Part.Parent=nil
  2187. end),prt,msh)
  2188. end
  2189.  
  2190. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2191. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2192. prt.Anchored=true
  2193. prt.Material = "Neon"
  2194. prt.CFrame=cframe
  2195. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2196. game:GetService("Debris"):AddItem(prt,5)
  2197. coroutine.resume(coroutine.create(function(Part,Mesh)
  2198. local rtype = rottype
  2199. for i=0,1,delay do
  2200. swait()
  2201. if rtype == 1 then
  2202. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2203. elseif rtype == 2 then
  2204. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2205. end
  2206. prt.Transparency=i
  2207. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2208. end
  2209. Part.Parent=nil
  2210. end),prt,msh)
  2211. end
  2212.  
  2213. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2214. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2215. prt.Anchored=true
  2216. prt.Material = "Neon"
  2217. prt.CFrame=cframe
  2218. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2219. game:GetService("Debris"):AddItem(prt,5)
  2220. coroutine.resume(coroutine.create(function(Part,Mesh)
  2221. local rtype = rottype
  2222. for i=0,1,delay do
  2223. swait()
  2224. if rtype == 1 then
  2225. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2226. elseif rtype == 2 then
  2227. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2228. end
  2229. prt.Transparency=i
  2230. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2231. end
  2232. Part.Parent=nil
  2233. end),prt,msh)
  2234. end
  2235.  
  2236. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2237. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2238. prt.Anchored=false
  2239. prt.CFrame=cframe
  2240. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2241. local wld=weld(prt,prt,Parent,cframe)
  2242. game:GetService("Debris"):AddItem(prt,5)
  2243. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2244. for i=0,1,delay do
  2245. wait()
  2246. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2247. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2248. Part.Transparency=i
  2249. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2250. end
  2251. Part.Parent=nil
  2252. end),prt,msh,wld)
  2253. end
  2254.  
  2255. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2256. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2257. prt.Anchored=false
  2258. prt.CFrame=cframe
  2259. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2260. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2261. game:GetService("Debris"):AddItem(prt,5)
  2262. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2263. for i=0,1,delay do
  2264. wait()
  2265. Weld.C0=euler(i*20,0,0)
  2266. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2267. Part.Transparency=i
  2268. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2269. end
  2270. Part.Parent=nil
  2271. end),prt,msh,wld)
  2272. end
  2273.  
  2274. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2275. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2276. prt.Anchored=true
  2277. prt.CFrame=cframe
  2278. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2279. game:GetService("Debris"):AddItem(prt,2)
  2280. coroutine.resume(coroutine.create(function(Part,Mesh)
  2281. for i=0,1,delay do
  2282. wait()
  2283. Part.CFrame=Part.CFrame
  2284. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2285. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2286. prt2.Anchored=true
  2287. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2288. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2289. game:GetService("Debris"):AddItem(prt2,2)
  2290. coroutine.resume(coroutine.create(function(Part,Mesh)
  2291. for i=0,1,0.1 do
  2292. wait()
  2293. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2294. end
  2295. Part.Parent=nil
  2296. end),prt2,msh2)
  2297. end
  2298. for i=0,1,delay*2 do
  2299. wait()
  2300. Part.CFrame=Part.CFrame
  2301. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2302. end
  2303. Part.Parent=nil
  2304. end),prt,msh)
  2305. end
  2306.  
  2307. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2308. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2309. prt.Anchored=true
  2310. prt.CFrame=cframe
  2311. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2312. game:GetService("Debris"):AddItem(prt,2)
  2313. coroutine.resume(coroutine.create(function(Part,Mesh)
  2314. for i=0,1,delay do
  2315. wait()
  2316. Part.CFrame=Part.CFrame
  2317. Part.Transparency=i
  2318. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2319. end
  2320. Part.Parent=nil
  2321. end),prt,msh)
  2322. end
  2323.  
  2324. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2325. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2326. prt.Anchored=true
  2327. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2328. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2329. game:GetService("Debris"):AddItem(prt,2)
  2330. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2331. CF=Part.CFrame
  2332. Numbb=0
  2333. randnumb=math.random()/10
  2334. rand1=math.random()/10
  2335. for i=0,1,rand1 do
  2336. wait()
  2337. CF=CF*cf(0,math.random()/2,0)
  2338. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2339. Part.CFrame=CF*euler(Numbb,0,0)
  2340. Part.Transparency=i
  2341. Numbb=Numbb+randnumb
  2342. end
  2343. Part.Parent=nil
  2344. end),prt,CF,Numbb,randnumb)
  2345. end
  2346.  
  2347. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2348. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2349. prt.Anchored=true
  2350. prt.CFrame=cframe
  2351. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2352. game:GetService("Debris"):AddItem(prt,5)
  2353. coroutine.resume(coroutine.create(function(Part,Mesh)
  2354. for i=0,1,delay do
  2355. wait()
  2356. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2357. Part.Transparency=i
  2358. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2359. end
  2360. Part.Parent=nil
  2361. end),prt,msh)
  2362. end
  2363.  
  2364. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2365. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2366. prt.Anchored=true
  2367. prt.CFrame=cframe
  2368. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2369. game:GetService("Debris"):AddItem(prt,2)
  2370. coroutine.resume(coroutine.create(function(Part,Mesh)
  2371. for i=0,1,delay do
  2372. wait()
  2373. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2374. Part.Transparency=i
  2375. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2376. end
  2377. Part.Parent=nil
  2378. end),prt,msh)
  2379. end
  2380.  
  2381. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2382. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2383. prt.Anchored=true
  2384. prt.CFrame=cframe*cf(x,y,z)
  2385. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2386. game:GetService("Debris"):AddItem(prt,5)
  2387. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2388. local num=math.random()
  2389. local num2=math.random(-3,2)+math.random()
  2390. local numm=0
  2391. for i=0,1,delay*2 do
  2392. swait()
  2393. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2394. Part.Transparency=i
  2395. numm=numm+0.01
  2396. end
  2397. Part.Parent=nil
  2398. Mesh.Parent=nil
  2399. end),prt,msh,x,y,z)
  2400. end
  2401.  
  2402. function dmgstart(dmg,what)
  2403. hitcon = what.Touched:connect(function(hit)
  2404. local hum = hit.Parent:FindFirstChild("Humanoid")
  2405. if hum and not hum:IsDescendantOf(Character) then
  2406. hum:TakeDamage(dmg)
  2407. end
  2408. end)
  2409. end
  2410.  
  2411. function dmgstop()
  2412. hitcon:disconnect()
  2413. end
  2414.  
  2415. function Cloak()
  2416. Face.Parent=nil
  2417. cloaked=true
  2418. for _,v in pairs(Torso.Parent:children()) do
  2419. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2420. coroutine.resume(coroutine.create(function()
  2421. for i=0,1,0.2 do
  2422. wait()
  2423. v.Transparency=i
  2424. end
  2425. v.Transparency=1
  2426. end))
  2427. end
  2428. if v.className=="Hat" then
  2429. hatp=v.Handle
  2430. coroutine.resume(coroutine.create(function(derp)
  2431. for i=0,1,0.2 do
  2432. wait()
  2433. derp.Transparency=i
  2434. end
  2435. derp.Transparency=1
  2436. end),hatp)
  2437. end
  2438. end
  2439. for _,v in pairs(m:children()) do
  2440. if v.className=="Part" then
  2441. coroutine.resume(coroutine.create(function()
  2442. for i=0,1,0.2 do
  2443. wait()
  2444. v.Transparency=i
  2445. end
  2446. v.Transparency=1
  2447. end))
  2448. end
  2449. end
  2450. end
  2451.  
  2452. function UnCloak()
  2453. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2454. Face.Parent=Head
  2455. cloaked=false
  2456. for _,v in pairs(Torso.Parent:children()) do
  2457. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2458. coroutine.resume(coroutine.create(function()
  2459. for i=0,1,0.1 do
  2460. wait()
  2461. v.Transparency=v.Transparency-0.1
  2462. end
  2463. v.Transparency=0
  2464. end))
  2465. end
  2466. if v.className=="Hat" then
  2467. hatp=v.Handle
  2468. coroutine.resume(coroutine.create(function(derp)
  2469. for i=0,1,0.1 do
  2470. wait()
  2471. derp.Transparency=derp.Transparency-0.1
  2472. end
  2473. derp.Transparency=0
  2474. end),hatp)
  2475. end
  2476. end
  2477. for _,v in pairs(m:children()) do
  2478. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2479. coroutine.resume(coroutine.create(function()
  2480. for i=0,1,0.1 do
  2481. wait()
  2482. v.Transparency=v.Transparency-0.1
  2483. end
  2484. v.Transparency=0
  2485. end))
  2486. v.Transparency=0
  2487. end
  2488. end
  2489. end
  2490.  
  2491. local origcolor = BrickColor.new("Pastel light blue")
  2492. ---- This section of explosions.
  2493.  
  2494. ----
  2495.  
  2496.  
  2497. function ring(type,pos,scale,value)
  2498. local type = type
  2499. local rng = Instance.new("Part", char)
  2500. rng.Anchored = true
  2501. rng.BrickColor = origcolor
  2502. rng.CanCollide = false
  2503. rng.FormFactor = 3
  2504. rng.Name = "Ring"
  2505. rng.Size = Vector3.new(1, 1, 1)
  2506. rng.Transparency = 0
  2507. rng.TopSurface = 0
  2508. rng.BottomSurface = 0
  2509. rng.CFrame = pos
  2510. local rngm = Instance.new("SpecialMesh", rng)
  2511. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2512. rngm.Scale = scale
  2513. local scaler2 = 1
  2514. if type == "Add" then
  2515. scaler2 = 1*value
  2516. elseif type == "Divide" then
  2517. scaler2 = 1/value
  2518. end
  2519. coroutine.resume(coroutine.create(function()
  2520. for i = 0,10,0.1 do
  2521. swait()
  2522. if type == "Add" then
  2523. scaler2 = scaler2 - 0.01*value
  2524. elseif type == "Divide" then
  2525. scaler2 = scaler2 - 0.01/value
  2526. end
  2527. rng.Transparency = rng.Transparency + 0.01
  2528. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2529. end
  2530. rng:Destroy()
  2531. end))
  2532. end
  2533.  
  2534.  
  2535. function wave(type,pos,scale,value)
  2536. local type = type
  2537. local rng = Instance.new("Part", char)
  2538. rng.Anchored = true
  2539. rng.BrickColor = origcolor
  2540. rng.CanCollide = false
  2541. rng.FormFactor = 3
  2542. rng.Name = "Ring"
  2543. rng.Size = Vector3.new(1, 1, 1)
  2544. rng.Transparency = 0
  2545. rng.TopSurface = 0
  2546. rng.BottomSurface = 0
  2547. rng.CFrame = pos
  2548. local rngm = Instance.new("SpecialMesh", rng)
  2549. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2550. rngm.Scale = scale
  2551. local scaler2 = 1
  2552. if type == "Add" then
  2553. scaler2 = 1*value
  2554. elseif type == "Divide" then
  2555. scaler2 = 1/value
  2556. end
  2557. coroutine.resume(coroutine.create(function()
  2558. for i = 0,10,0.1 do
  2559. swait()
  2560. if type == "Add" then
  2561. scaler2 = scaler2 - 0.01*value
  2562. elseif type == "Divide" then
  2563. scaler2 = scaler2 - 0.01/value
  2564. end
  2565. rng.Transparency = rng.Transparency + 0.01
  2566. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2567. end
  2568. rng:Destroy()
  2569. end))
  2570. end
  2571.  
  2572. function wind(type,pos,scale,value,speed)
  2573. local type = type
  2574. local rng = Instance.new("Part", char)
  2575. rng.Anchored = true
  2576. rng.BrickColor = origcolor
  2577. rng.CanCollide = false
  2578. rng.FormFactor = 3
  2579. rng.Name = "Ring"
  2580. rng.Size = Vector3.new(1, 1, 1)
  2581. rng.Transparency = 0
  2582. rng.TopSurface = 0
  2583. rng.BottomSurface = 0
  2584. rng.CFrame = pos
  2585. local rngm = Instance.new("SpecialMesh", rng)
  2586. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2587. rngm.Scale = scale
  2588. local scaler2 = 1
  2589. if type == "Add" then
  2590. scaler2 = 1*value
  2591. elseif type == "Divide" then
  2592. scaler2 = 1/value
  2593. end
  2594. coroutine.resume(coroutine.create(function()
  2595. for i = 0,10,0.1 do
  2596. swait()
  2597. if type == "Add" then
  2598. scaler2 = scaler2 - 0.01*value
  2599. elseif type == "Divide" then
  2600. scaler2 = scaler2 - 0.01/value
  2601. end
  2602. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2603. rng.Transparency = rng.Transparency + 0.01
  2604. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2605. end
  2606. rng:Destroy()
  2607. end))
  2608. end
  2609.  
  2610. function groundwind(type,pos,scale,value,speed)
  2611. local type = type
  2612. local rng = Instance.new("Part", char)
  2613. rng.Anchored = true
  2614. rng.BrickColor = origcolor
  2615. rng.CanCollide = false
  2616. rng.FormFactor = 3
  2617. rng.Name = "Ring"
  2618. rng.Size = Vector3.new(1, 1, 1)
  2619. rng.Transparency = 0
  2620. rng.TopSurface = 0
  2621. rng.BottomSurface = 0
  2622. rng.CFrame = pos
  2623. local rngm = Instance.new("SpecialMesh", rng)
  2624. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2625. rngm.Scale = scale
  2626. local scaler2 = 1
  2627. if type == "Add" then
  2628. scaler2 = 1*value
  2629. elseif type == "Divide" then
  2630. scaler2 = 1/value
  2631. end
  2632. coroutine.resume(coroutine.create(function()
  2633. for i = 0,10,0.1 do
  2634. swait()
  2635. if type == "Add" then
  2636. scaler2 = scaler2 - 0.01*value
  2637. elseif type == "Divide" then
  2638. scaler2 = scaler2 - 0.01/value
  2639. end
  2640. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2641. rng.Transparency = rng.Transparency + 0.01
  2642. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2643. end
  2644. rng:Destroy()
  2645. end))
  2646. end
  2647.  
  2648. function CameraManager()
  2649. if TwoD and not CamInterrupt then
  2650. if Humanoid.Health > 0 then
  2651. Camera.CameraSubject = Humanoid
  2652. Camera.CameraType = "Scriptable"
  2653. Humanoid.AutoRotate = false
  2654. if Booleans.GyroUse then
  2655. Directer.MaxTorque = Vec3(0, huge, 0)
  2656. else
  2657. Directer.MaxTorque = Vec3(0, 0, 0)
  2658. end
  2659. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2660. if Booleans.CamFollow then
  2661. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2662. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2663. else
  2664. CPart.Position = RootPart.Position
  2665. end
  2666. else
  2667. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2668. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2669. end
  2670. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2671. else
  2672. Camera.CameraSubject = Humanoid
  2673. Camera.CameraType = "Custom"
  2674. Controller.Disabled = false
  2675. end
  2676. end
  2677. end
  2678.  
  2679. function ring(type,pos,scale,value)
  2680. local type = type
  2681. local rng = Instance.new("Part", char)
  2682. rng.Anchored = true
  2683. rng.BrickColor = origcolor
  2684. rng.CanCollide = false
  2685. rng.FormFactor = 3
  2686. rng.Name = "Ring"
  2687. rng.Size = Vector3.new(1, 1, 1)
  2688. rng.Transparency = 0
  2689. rng.TopSurface = 0
  2690. rng.BottomSurface = 0
  2691. rng.CFrame = pos
  2692. local rngm = Instance.new("SpecialMesh", rng)
  2693. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2694. rngm.Scale = scale
  2695. local scaler2 = 1
  2696. if type == "Add" then
  2697. scaler2 = 1*value
  2698. elseif type == "Divide" then
  2699. scaler2 = 1/value
  2700. end
  2701. coroutine.resume(coroutine.create(function()
  2702. for i = 0,10,0.1 do
  2703. swait()
  2704. if type == "Add" then
  2705. scaler2 = scaler2 - 0.01*value
  2706. elseif type == "Divide" then
  2707. scaler2 = scaler2 - 0.01/value
  2708. end
  2709. rng.Transparency = rng.Transparency + 0.01
  2710. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2711. end
  2712. rng:Destroy()
  2713. end))
  2714. end
  2715.  
  2716.  
  2717. function wave(type,pos,scale,value)
  2718. local type = type
  2719. local rng = Instance.new("Part", char)
  2720. rng.Anchored = true
  2721. rng.BrickColor = origcolor
  2722. rng.CanCollide = false
  2723. rng.FormFactor = 3
  2724. rng.Name = "Ring"
  2725. rng.Size = Vector3.new(1, 1, 1)
  2726. rng.Transparency = 0
  2727. rng.TopSurface = 0
  2728. rng.BottomSurface = 0
  2729. rng.CFrame = pos
  2730. local rngm = Instance.new("SpecialMesh", rng)
  2731. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2732. rngm.Scale = scale
  2733. local scaler2 = 1
  2734. if type == "Add" then
  2735. scaler2 = 1*value
  2736. elseif type == "Divide" then
  2737. scaler2 = 1/value
  2738. end
  2739. coroutine.resume(coroutine.create(function()
  2740. for i = 0,10,0.1 do
  2741. swait()
  2742. if type == "Add" then
  2743. scaler2 = scaler2 - 0.01*value
  2744. elseif type == "Divide" then
  2745. scaler2 = scaler2 - 0.01/value
  2746. end
  2747. rng.Transparency = rng.Transparency + 0.01
  2748. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2749. end
  2750. rng:Destroy()
  2751. end))
  2752. end
  2753.  
  2754. function sphere(bonuspeed,type,pos,scale,value,color)
  2755. local type = type
  2756. local rng = Instance.new("Part", char)
  2757. rng.Anchored = true
  2758. if ModeOfGlitch ~= 9 then
  2759. rng.BrickColor = color
  2760. elseif ModeOfGlitch == 9 then
  2761. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2762. end
  2763. rng.CanCollide = false
  2764. rng.FormFactor = 3
  2765. rng.Name = "Ring"
  2766. rng.Material = "Neon"
  2767. rng.Size = Vector3.new(1, 1, 1)
  2768. rng.Transparency = 0
  2769. rng.TopSurface = 0
  2770. rng.BottomSurface = 0
  2771. rng.CFrame = pos
  2772. local rngm = Instance.new("SpecialMesh", rng)
  2773. rngm.MeshType = "Sphere"
  2774. rngm.Scale = scale
  2775. if rainbowmode == true then
  2776. rng.Color = Color3.new(r/255,g/255,b/255)
  2777. end
  2778. if ModeOfGlitch == 9 then
  2779. coroutine.resume(coroutine.create(function()
  2780. while true do
  2781. swait()
  2782. if rng.Parent ~= nil then
  2783. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2784. else
  2785. break
  2786. end
  2787. end
  2788. end))
  2789. end
  2790. local scaler2 = 1
  2791. if type == "Add" then
  2792. scaler2 = 1*value
  2793. elseif type == "Divide" then
  2794. scaler2 = 1/value
  2795. end
  2796. coroutine.resume(coroutine.create(function()
  2797. for i = 0,10/bonuspeed,0.1 do
  2798. swait()
  2799. if rainbowmode == true then
  2800. rng.Color = Color3.new(r/255,g/255,b/255)
  2801. end
  2802. if type == "Add" then
  2803. scaler2 = scaler2 - 0.01*value/bonuspeed
  2804. elseif type == "Divide" then
  2805. scaler2 = scaler2 - 0.01/value*bonuspeed
  2806. end
  2807. if chaosmode == true then
  2808. rng.BrickColor = BrickColor.random()
  2809. end
  2810. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2811. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2812. end
  2813. rng:Destroy()
  2814. end))
  2815. end
  2816.  
  2817. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2818. local type = type
  2819. local rng = Instance.new("Part", char)
  2820. rng.Anchored = true
  2821. if ModeOfGlitch ~= 9 then
  2822. rng.BrickColor = color
  2823. elseif ModeOfGlitch == 9 then
  2824. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2825. end
  2826. rng.CanCollide = false
  2827. rng.FormFactor = 3
  2828. rng.Name = "Ring"
  2829. rng.Material = "Neon"
  2830. rng.Size = Vector3.new(1, 1, 1)
  2831. rng.Transparency = 0
  2832. rng.TopSurface = 0
  2833. rng.BottomSurface = 0
  2834. rng.CFrame = pos
  2835. local rngm = Instance.new("SpecialMesh", rng)
  2836. rngm.MeshType = "Sphere"
  2837. rngm.Scale = scale
  2838. local scaler2 = 1
  2839. local scaler2b = 1
  2840. local scaler2c = 1
  2841. if type == "Add" then
  2842. scaler2 = 1*value
  2843. scaler2b = 1*value2
  2844. scaler2c = 1*value3
  2845. elseif type == "Divide" then
  2846. scaler2 = 1/value
  2847. scaler2b = 1/value2
  2848. scaler2c = 1/value3
  2849. end
  2850. if ModeOfGlitch == 9 then
  2851. coroutine.resume(coroutine.create(function()
  2852. while true do
  2853. swait()
  2854. if rng.Parent ~= nil then
  2855. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2856. else
  2857. break
  2858. end
  2859. end
  2860. end))
  2861. end
  2862. coroutine.resume(coroutine.create(function()
  2863. for i = 0,10/bonuspeed,0.1 do
  2864. swait()
  2865. if type == "Add" then
  2866. scaler2 = scaler2 - 0.01*value/bonuspeed
  2867. scaler2b = scaler2b - 0.01*value/bonuspeed
  2868. scaler2c = scaler2c - 0.01*value/bonuspeed
  2869. elseif type == "Divide" then
  2870. scaler2 = scaler2 - 0.01/value*bonuspeed
  2871. scaler2b = scaler2b - 0.01/value*bonuspeed
  2872. scaler2c = scaler2c - 0.01/value*bonuspeed
  2873. end
  2874. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2875. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2876. end
  2877. rng:Destroy()
  2878. end))
  2879. end
  2880.  
  2881. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2882. local type = type
  2883. local rotenable = rotatingop
  2884. local rng = Instance.new("Part", char)
  2885. rng.Anchored = true
  2886. rng.BrickColor = color
  2887. rng.CanCollide = false
  2888. rng.FormFactor = 3
  2889. rng.Name = "Ring"
  2890. rng.Material = "Neon"
  2891. rng.Size = Vector3.new(1, 1, 1)
  2892. rng.Transparency = 0
  2893. if typeoftrans == "In" then
  2894. rng.Transparency = 1
  2895. end
  2896. rng.TopSurface = 0
  2897. rng.BottomSurface = 0
  2898. rng.CFrame = pos
  2899. local rngm = Instance.new("SpecialMesh", rng)
  2900. rngm.MeshType = "FileMesh"
  2901. if typeofshape == "Normal" then
  2902. rngm.MeshId = "rbxassetid://662586858"
  2903. elseif typeofshape == "Round" then
  2904. rngm.MeshId = "rbxassetid://662585058"
  2905. end
  2906. rngm.Scale = scale
  2907. local scaler2 = 1/10
  2908. if type == "Add" then
  2909. scaler2 = 1*value/10
  2910. elseif type == "Divide" then
  2911. scaler2 = 1/value/10
  2912. end
  2913. local randomrot = math.random(1,2)
  2914. coroutine.resume(coroutine.create(function()
  2915. for i = 0,10/bonuspeed,0.1 do
  2916. swait()
  2917. if type == "Add" then
  2918. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2919. elseif type == "Divide" then
  2920. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2921. end
  2922. if rotenable == true then
  2923. if randomrot == 1 then
  2924. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2925. elseif randomrot == 2 then
  2926. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2927. end
  2928. end
  2929. if typeoftrans == "Out" then
  2930. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2931. elseif typeoftrans == "In" then
  2932. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2933. end
  2934. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2935. end
  2936. rng:Destroy()
  2937. end))
  2938. end
  2939.  
  2940. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2941. local type = type
  2942. local rng = Instance.new("Part", char)
  2943. rng.Anchored = true
  2944. rng.BrickColor = color
  2945. rng.CanCollide = false
  2946. rng.FormFactor = 3
  2947. rng.Name = "Ring"
  2948. rng.Material = "Neon"
  2949. rng.Size = Vector3.new(1, 1, 1)
  2950. rng.Transparency = 0
  2951. rng.TopSurface = 0
  2952. rng.BottomSurface = 0
  2953. rng.CFrame = pos
  2954. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2955. local rngm = Instance.new("SpecialMesh", rng)
  2956. rngm.MeshType = "Brick"
  2957. rngm.Scale = vt(x1,y1,z1)
  2958. if rainbowmode == true then
  2959. rng.Color = Color3.new(r/255,g/255,b/255)
  2960. end
  2961. local scaler2 = 1
  2962. local speeder = FastSpeed/10
  2963. if type == "Add" then
  2964. scaler2 = 1*value
  2965. elseif type == "Divide" then
  2966. scaler2 = 1/value
  2967. end
  2968. coroutine.resume(coroutine.create(function()
  2969. for i = 0,10/bonuspeed,0.1 do
  2970. swait()
  2971. if rainbowmode == true then
  2972. rng.Color = Color3.new(r/255,g/255,b/255)
  2973. end
  2974. if type == "Add" then
  2975. scaler2 = scaler2 - 0.01*value/bonuspeed
  2976. elseif type == "Divide" then
  2977. scaler2 = scaler2 - 0.01/value*bonuspeed
  2978. end
  2979. if chaosmode == true then
  2980. rng.BrickColor = BrickColor.random()
  2981. end
  2982. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2983. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2984. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2985. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2986. end
  2987. rng:Destroy()
  2988. end))
  2989. end
  2990.  
  2991. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2992. local type = type
  2993. local rng = Instance.new("Part", char)
  2994. rng.Anchored = true
  2995. rng.BrickColor = color
  2996. rng.CanCollide = false
  2997. rng.FormFactor = 3
  2998. rng.Name = "Ring"
  2999. rng.Material = "Neon"
  3000. rng.Size = Vector3.new(1, 1, 1)
  3001. rng.Transparency = 0
  3002. rng.TopSurface = 0
  3003. rng.BottomSurface = 0
  3004. rng.CFrame = pos
  3005. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3006. local rngm = Instance.new("SpecialMesh", rng)
  3007. rngm.MeshType = "Brick"
  3008. rngm.Scale = vt(x1,y1,z1)
  3009. if rainbowmode == true then
  3010. rng.Color = Color3.new(r/255,g/255,b/255)
  3011. end
  3012. local scaler2 = 1
  3013. local speeder = FastSpeed/10
  3014. if type == "Add" then
  3015. scaler2 = 1*value
  3016. elseif type == "Divide" then
  3017. scaler2 = 1/value
  3018. end
  3019. coroutine.resume(coroutine.create(function()
  3020. for i = 0,10/bonuspeed,0.1 do
  3021. swait()
  3022. if rainbowmode == true then
  3023. rng.Color = Color3.new(r/255,g/255,b/255)
  3024. end
  3025. if type == "Add" then
  3026. scaler2 = scaler2 - 0.01*value/bonuspeed
  3027. elseif type == "Divide" then
  3028. scaler2 = scaler2 - 0.01/value*bonuspeed
  3029. end
  3030. if chaosmode == true then
  3031. rng.BrickColor = BrickColor.random()
  3032. end
  3033. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3034. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3035. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3036. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3037. end
  3038. rng:Destroy()
  3039. end))
  3040. end
  3041.  
  3042. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3043. local type = type
  3044. local rng = Instance.new("Part", char)
  3045. rng.Anchored = true
  3046. rng.BrickColor = color
  3047. rng.CanCollide = false
  3048. rng.FormFactor = 3
  3049. rng.Name = "Ring"
  3050. rng.Material = "Neon"
  3051. rng.Size = Vector3.new(1, 1, 1)
  3052. rng.Transparency = 0
  3053. rng.TopSurface = 0
  3054. rng.BottomSurface = 0
  3055. rng.CFrame = pos
  3056. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3057. local rngm = Instance.new("SpecialMesh", rng)
  3058. rngm.MeshType = "Brick"
  3059. rngm.Scale = vt(x1,y1,z1)
  3060. if rainbowmode == true then
  3061. rng.Color = Color3.new(r/255,g/255,b/255)
  3062. end
  3063. local scaler2 = 0
  3064. local speeder = FastSpeed/10
  3065. if type == "Add" then
  3066. scaler2 = 1*value
  3067. elseif type == "Divide" then
  3068. scaler2 = 1/value
  3069. end
  3070. coroutine.resume(coroutine.create(function()
  3071. for i = 0,10/bonuspeed,0.1 do
  3072. swait()
  3073. if rainbowmode == true then
  3074. rng.Color = Color3.new(r/255,g/255,b/255)
  3075. end
  3076. if type == "Add" then
  3077. scaler2 = scaler2 - 0.01*value/bonuspeed
  3078. elseif type == "Divide" then
  3079. scaler2 = scaler2 - 0.01/value*bonuspeed
  3080. end
  3081. if chaosmode == true then
  3082. rng.BrickColor = BrickColor.random()
  3083. end
  3084. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3085. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3086. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3087. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3088. end
  3089. rng:Destroy()
  3090. end))
  3091. end
  3092.  
  3093. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3094. local type = type
  3095. local rng = Instance.new("Part", char)
  3096. rng.Anchored = true
  3097. rng.BrickColor = color
  3098. rng.Color = color3
  3099. rng.CanCollide = false
  3100. rng.FormFactor = 3
  3101. rng.Name = "Ring"
  3102. rng.Material = "Neon"
  3103. rng.Size = Vector3.new(1, 1, 1)
  3104. rng.Transparency = 0
  3105. rng.TopSurface = 0
  3106. rng.BottomSurface = 0
  3107. rng.CFrame = pos
  3108. local rngm = Instance.new("SpecialMesh", rng)
  3109. rngm.MeshType = "Brick"
  3110. rngm.Scale = scale
  3111. local scaler2 = 1
  3112. local scaler2b = 1
  3113. local scaler2c = 1
  3114. if type == "Add" then
  3115. scaler2 = 1*value
  3116. scaler2b = 1*value2
  3117. scaler2c = 1*value3
  3118. elseif type == "Divide" then
  3119. scaler2 = 1/value
  3120. scaler2b = 1/value2
  3121. scaler2c = 1/value3
  3122. end
  3123. coroutine.resume(coroutine.create(function()
  3124. for i = 0,10/bonuspeed,0.1 do
  3125. swait()
  3126. if type == "Add" then
  3127. scaler2 = scaler2 - 0.01*value/bonuspeed
  3128. scaler2b = scaler2b - 0.01*value/bonuspeed
  3129. scaler2c = scaler2c - 0.01*value/bonuspeed
  3130. elseif type == "Divide" then
  3131. scaler2 = scaler2 - 0.01/value*bonuspeed
  3132. scaler2b = scaler2b - 0.01/value*bonuspeed
  3133. scaler2c = scaler2c - 0.01/value*bonuspeed
  3134. end
  3135. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3136. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3137. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3138. end
  3139. rng:Destroy()
  3140. end))
  3141. end
  3142.  
  3143. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3144. local type = type
  3145. local rng = Instance.new("Part", char)
  3146. rng.Anchored = true
  3147. if ModeOfGlitch ~= 9 then
  3148. rng.BrickColor = color
  3149. elseif ModeOfGlitch == 9 then
  3150. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3151. end
  3152. rng.CanCollide = false
  3153. rng.FormFactor = 3
  3154. rng.Name = "Ring"
  3155. rng.Material = "Neon"
  3156. rng.Size = Vector3.new(1, 1, 1)
  3157. rng.Transparency = 0
  3158. rng.TopSurface = 0
  3159. rng.BottomSurface = 0
  3160. rng.CFrame = pos
  3161. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3162. local rngm = Instance.new("SpecialMesh", rng)
  3163. rngm.MeshType = "Sphere"
  3164. rngm.Scale = vt(x1,y1,z1)
  3165. if rainbowmode == true then
  3166. rng.Color = Color3.new(r/255,g/255,b/255)
  3167. end
  3168. if ModeOfGlitch == 9 then
  3169. coroutine.resume(coroutine.create(function()
  3170. while true do
  3171. swait()
  3172. if rng.Parent ~= nil then
  3173. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3174. else
  3175. break
  3176. end
  3177. end
  3178. end))
  3179. end
  3180. local scaler2 = 1
  3181. local speeder = FastSpeed
  3182. if type == "Add" then
  3183. scaler2 = 1*value
  3184. elseif type == "Divide" then
  3185. scaler2 = 1/value
  3186. end
  3187. coroutine.resume(coroutine.create(function()
  3188. for i = 0,10/bonuspeed,0.1 do
  3189. swait()
  3190. if rainbowmode == true then
  3191. rng.Color = Color3.new(r/255,g/255,b/255)
  3192. end
  3193. if type == "Add" then
  3194. scaler2 = scaler2 - 0.01*value/bonuspeed
  3195. elseif type == "Divide" then
  3196. scaler2 = scaler2 - 0.01/value*bonuspeed
  3197. end
  3198. if chaosmode == true then
  3199. rng.BrickColor = BrickColor.random()
  3200. end
  3201. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3202. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3203. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3204. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3205. end
  3206. rng:Destroy()
  3207. end))
  3208. end
  3209.  
  3210.  
  3211. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3212. local type = type
  3213. local rng = Instance.new("Part", char)
  3214. rng.Anchored = true
  3215. if ModeOfGlitch ~= 9 then
  3216. rng.BrickColor = color
  3217. elseif ModeOfGlitch == 9 then
  3218. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3219. end
  3220. rng.CanCollide = false
  3221. rng.FormFactor = 3
  3222. rng.Name = "Ring"
  3223. rng.Material = "Neon"
  3224. rng.Size = Vector3.new(1, 1, 1)
  3225. rng.Transparency = 1
  3226. rng.TopSurface = 0
  3227. rng.BottomSurface = 0
  3228. rng.CFrame = pos
  3229. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3230. local rngm = Instance.new("SpecialMesh", rng)
  3231. rngm.MeshType = "Sphere"
  3232. rngm.Scale = vt(x1,y1,z1)
  3233. if rainbowmode == true then
  3234. rng.Color = Color3.new(r/255,g/255,b/255)
  3235. end
  3236. if ModeOfGlitch == 9 then
  3237. coroutine.resume(coroutine.create(function()
  3238. while true do
  3239. swait()
  3240. if rng.Parent ~= nil then
  3241. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3242. else
  3243. break
  3244. end
  3245. end
  3246. end))
  3247. end
  3248. local scaler2 = 1
  3249. local speeder = FastSpeed
  3250. if type == "Add" then
  3251. scaler2 = 1*value
  3252. elseif type == "Divide" then
  3253. scaler2 = 1/value
  3254. end
  3255. coroutine.resume(coroutine.create(function()
  3256. for i = 0,10/bonuspeed,0.1 do
  3257. swait()
  3258. if rainbowmode == true then
  3259. rng.Color = Color3.new(r/255,g/255,b/255)
  3260. end
  3261. if type == "Add" then
  3262. scaler2 = scaler2 - 0.01*value/bonuspeed
  3263. elseif type == "Divide" then
  3264. scaler2 = scaler2 - 0.01/value*bonuspeed
  3265. end
  3266. if chaosmode == true then
  3267. rng.BrickColor = BrickColor.random()
  3268. end
  3269. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3270. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3271. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3272. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3273. end
  3274. rng:Destroy()
  3275. end))
  3276. end
  3277.  
  3278. function dmg(dude)
  3279. if dude.Name ~= Character then
  3280. local keptcolor = MAINRUINCOLOR
  3281. local bgf = Instance.new("BodyGyro",dude.Head)
  3282. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3283. --[[local val = Instance.new("BoolValue",dude)
  3284. val.Name = "IsHit"]]--
  3285. local ds = coroutine.wrap(function()
  3286. dude:WaitForChild("Head"):BreakJoints()
  3287. for i, v in pairs(dude:GetChildren()) do
  3288. if v:IsA("Part") or v:IsA("MeshPart") then
  3289. v.Name = "DEMINISHED"
  3290. end
  3291. end
  3292. wait(0.5)
  3293. targetted = nil
  3294. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3295. coroutine.resume(coroutine.create(function()
  3296. for i, v in pairs(dude:GetChildren()) do
  3297. if v:IsA("Accessory") then
  3298. v:Destroy()
  3299. end
  3300. if v:IsA("Humanoid") then
  3301. v:Destroy()
  3302. end
  3303. if v:IsA("CharacterMesh") then
  3304. v:Destroy()
  3305. end
  3306. if v:IsA("Model") then
  3307. v:Destroy()
  3308. end
  3309. if v:IsA("Part") or v:IsA("MeshPart") then
  3310. for x, o in pairs(v:GetChildren()) do
  3311. if o:IsA("Decal") then
  3312. o:Destroy()
  3313. end
  3314. end
  3315. coroutine.resume(coroutine.create(function()
  3316. v.Material = "Neon"
  3317. v.CanCollide = false
  3318. v.Anchored = false
  3319. local bld = Instance.new("ParticleEmitter",v)
  3320. bld.LightEmission = 0.75
  3321. bld.Texture = "rbxassetid://363275192" ---284205403
  3322. bld.Color = ColorSequence.new(keptcolor.Color)
  3323. bld.Rate = 500
  3324. bld.Lifetime = NumberRange.new(1)
  3325. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3326. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3327. bld.Speed = NumberRange.new(2,5)
  3328. bld.VelocitySpread = 50000
  3329. bld.Rotation = NumberRange.new(-500,500)
  3330. bld.RotSpeed = NumberRange.new(-500,500)
  3331. local sbs = Instance.new("BodyPosition", v)
  3332. sbs.P = 3000
  3333. sbs.D = 1000
  3334. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3335. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3336. v.Color = keptcolor.Color
  3337. coroutine.resume(coroutine.create(function()
  3338. for i = 0, 49 do
  3339. swait(1)
  3340. v:BreakJoints()
  3341. v.Transparency = v.Transparency + 0.02
  3342. end
  3343. v:BreakJoints()
  3344. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3345. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3346. bld.Speed = NumberRange.new(10,25)
  3347. bld.Drag = 5
  3348. bld.Acceleration = vt(0,2,0)
  3349. wait(0.5)
  3350. bld.Enabled = false
  3351. wait(8)
  3352. v:Destroy()
  3353. dude:Destroy()
  3354. end))
  3355. end))
  3356. end
  3357. end
  3358. end))
  3359. end)
  3360. ds()
  3361. end
  3362. end
  3363.  
  3364.  
  3365. function FindNearestHead(Position, Distance, SinglePlayer)
  3366. if SinglePlayer then
  3367. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3368. end
  3369. local List = {}
  3370. for i, v in pairs(workspace:GetChildren()) do
  3371. if v:IsA("Model") then
  3372. if v:findFirstChild("Head") then
  3373. if v ~= Character then
  3374. if (v.Head.Position - Position).magnitude <= Distance then
  3375. table.insert(List, v)
  3376. end
  3377. end
  3378. end
  3379. end
  3380. end
  3381. return List
  3382. end
  3383.  
  3384. function FaceMouse()
  3385. Cam = workspace.CurrentCamera
  3386. return {
  3387. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3388. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3389. }
  3390. end
  3391.  
  3392. function FaceMouse2()
  3393. Cam = workspace.CurrentCamera
  3394. return {
  3395. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3396. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3397. }
  3398. end
  3399.  
  3400. local ModeOfGlitch = 1
  3401. -- Functions are ready.
  3402. local storehumanoidWS = 16
  3403.  
  3404. function CorruptBlink()
  3405. for i = 0, 14 do
  3406. 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)
  3407. end
  3408. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3409. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3410. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3411. CameraEnshaking(2,10)
  3412. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3413. if v:FindFirstChild('Head') then
  3414. dmg(v)
  3415. end
  3416. end
  3417. for i = 0, 14 do
  3418. 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)
  3419. end
  3420. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3421. end
  3422. function PureBomb()
  3423. attack = true
  3424. hum.WalkSpeed = 0
  3425. local orb = Instance.new("Part", char)
  3426. orb.Anchored = true
  3427. orb.BrickColor = BrickColor.new("Toothpaste")
  3428. orb.CanCollide = false
  3429. orb.FormFactor = 3
  3430. orb.Name = "Ring"
  3431. orb.Material = "Neon"
  3432. orb.Size = Vector3.new(1, 1, 1)
  3433. orb.Transparency = 0
  3434. orb.TopSurface = 0
  3435. orb.BottomSurface = 0
  3436. local orbm = Instance.new("SpecialMesh", orb)
  3437. orbm.MeshType = "Sphere"
  3438. orbm.Name = "SizeMesh"
  3439. orbm.Scale = vt(0,0,0)
  3440. local scaled = 0.1
  3441. local posid = 0
  3442. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3443. for i = 0, 5, 0.1 do
  3444. swait()
  3445. scaled = scaled - 0.001
  3446. posid = posid - scaled
  3447. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3448. local scaled = 0.1
  3449. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3450. 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)
  3451. 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)
  3452. 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)
  3453. 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)
  3454. 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)
  3455. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3456. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3457. 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)
  3458. end
  3459. for i = 0, 2, 0.1 do
  3460. swait()
  3461. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3462. 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)
  3463. 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)
  3464. 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)
  3465. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3466. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3467. 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)
  3468. end
  3469. coroutine.resume(coroutine.create(function()
  3470. orb.Anchored = false
  3471. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3472. local a = Instance.new("Part",workspace)
  3473. a.Name = "Direction"
  3474. a.Anchored = true
  3475. a.BrickColor = bc("Bright red")
  3476. a.Material = "Neon"
  3477. a.Transparency = 1
  3478. a.CanCollide = false
  3479. local ray = Ray.new(
  3480. orb.CFrame.p, -- origin
  3481. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3482. )
  3483. local ignore = orb
  3484. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3485. a.BottomSurface = 10
  3486. a.TopSurface = 10
  3487. local distance = (orb.CFrame.p - position).magnitude
  3488. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3489. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3490. orb.CFrame = a.CFrame
  3491. a:Destroy()
  3492. local bv = Instance.new("BodyVelocity")
  3493. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3494. bv.velocity = orb.CFrame.lookVector*125
  3495. bv.Parent = orb
  3496. local hitted = false
  3497. game:GetService("Debris"):AddItem(orb, 15)
  3498. wait()
  3499. local hit =orb.Touched:connect(function(hit)
  3500. if hitted == false then
  3501. hitted = true
  3502. CameraEnshaking(10,2.5)
  3503. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3504. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3505. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3506. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3507. for i = 0, 49 do
  3508. 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)
  3509. end
  3510. for i = 0, 9 do
  3511. 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)
  3512. 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)
  3513. end
  3514. orb.Anchored = true
  3515. orb.Transparency = 1
  3516. wait(8)
  3517. orb:Destroy()
  3518. end
  3519. end)
  3520. end))
  3521. for i = 0, 1, 0.1 do
  3522. swait()
  3523. 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)
  3524. 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)
  3525. 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)
  3526. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3527. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3528. 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)
  3529. end
  3530. hum.WalkSpeed = storehumanoidWS
  3531. attack = false
  3532. end
  3533.  
  3534. function BanishingOrb()
  3535. attack = true
  3536. hum.WalkSpeed = 0
  3537. local orb = Instance.new("Part", char)
  3538. orb.Anchored = true
  3539. orb.BrickColor = BrickColor.new("Black")
  3540. orb.CanCollide = false
  3541. orb.FormFactor = 3
  3542. orb.Name = "Ring"
  3543. orb.Material = "Neon"
  3544. orb.Size = Vector3.new(1, 1, 1)
  3545. orb.Transparency = 0
  3546. orb.TopSurface = 0
  3547. orb.BottomSurface = 0
  3548. local orbm = Instance.new("SpecialMesh", orb)
  3549. orbm.MeshType = "Sphere"
  3550. orbm.Name = "SizeMesh"
  3551. orbm.Scale = vt(0,0,0)
  3552. local scaled = 0.1
  3553. local posid = 0
  3554. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3555. for i = 0, 5, 0.1 do
  3556. swait()
  3557. scaled = scaled - 0.001
  3558. posid = posid - scaled
  3559. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3560. local scaled = 0.1
  3561. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3562. 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)
  3563. 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)
  3564. 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)
  3565. 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)
  3566. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3567. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3568. 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)
  3569. end
  3570. for i = 0, 2, 0.1 do
  3571. swait()
  3572. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3573. 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)
  3574. 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)
  3575. 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)
  3576. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3577. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3578. 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)
  3579. end
  3580. coroutine.resume(coroutine.create(function()
  3581. orb.Anchored = false
  3582. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3583. local a = Instance.new("Part",workspace)
  3584. a.Name = "Direction"
  3585. a.Anchored = true
  3586. a.BrickColor = bc("Bright red")
  3587. a.Material = "Neon"
  3588. a.Transparency = 1
  3589. a.CanCollide = false
  3590. local ray = Ray.new(
  3591. orb.CFrame.p, -- origin
  3592. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3593. )
  3594. local ignore = orb
  3595. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3596. a.BottomSurface = 10
  3597. a.TopSurface = 10
  3598. local distance = (orb.CFrame.p - position).magnitude
  3599. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3600. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3601. orb.CFrame = a.CFrame
  3602. a:Destroy()
  3603. local bv = Instance.new("BodyVelocity")
  3604. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3605. bv.velocity = orb.CFrame.lookVector*0
  3606. bv.Parent = orb
  3607. local hitted = false
  3608. local rate = 0
  3609. coroutine.resume(coroutine.create(function()
  3610. for i = 0, 24 do
  3611. wait(0.1)
  3612. rate = rate + 0.25
  3613. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3614. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3615. if v:FindFirstChild('Head') then
  3616. dmg(v)
  3617. end
  3618. end
  3619. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3620. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3621. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3622. end
  3623. orb.Anchored = true
  3624. orb.Transparency = 1
  3625. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3626. if v:FindFirstChild('Head') then
  3627. dmg(v)
  3628. end
  3629. end
  3630. local eff = Instance.new("ParticleEmitter",orb)
  3631. eff.Texture = "rbxassetid://296874871"
  3632. eff.LightEmission = 0.95
  3633. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3634. eff.Rate = 1000000000
  3635. eff.Lifetime = NumberRange.new(3)
  3636. 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)})
  3637. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3638. eff.Speed = NumberRange.new(30)
  3639. eff.Acceleration = vt(0,-15,0)
  3640. eff.Rotation = NumberRange.new(-500,500)
  3641. eff.VelocitySpread = 100000
  3642. eff.RotSpeed = NumberRange.new(-500,500)
  3643. coroutine.resume(coroutine.create(function()
  3644. wait(0.6)
  3645. eff.Enabled = false
  3646. end))
  3647. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3648. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3649. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3650. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3651. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3652. game:GetService("Debris"):AddItem(orb, 15)
  3653. end))
  3654. end))
  3655. for i = 0, 1, 0.1 do
  3656. swait()
  3657. 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)
  3658. 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)
  3659. 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)
  3660. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3661. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3662. 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)
  3663. end
  3664. hum.WalkSpeed = storehumanoidWS
  3665. attack = false
  3666. end
  3667.  
  3668.  
  3669. function ChaosGroundStrike()
  3670. attack = true
  3671. for i = 0, 2, 0.1 do
  3672. swait()
  3673. 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)
  3674. 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)
  3675. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3676. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3677. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3678. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3679. end
  3680. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3681. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3682. CFuncs["EchoSound"].Create("rbxassetid://357202073", char, 1.5, 1,0,10,0.15,0.5,1)
  3683. CFuncs["EchoSound"].Create("rbxassetid://357202073", root, 10, 1,0,10,0.15,0.5,1)
  3684. bosschatfunc("TASTE MY POWER!",MAINRUINCOLOR.Color,1)
  3685. CameraEnshaking(4,12)
  3686. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3687. if v:FindFirstChild('Head') then
  3688. dmg(v)
  3689. end
  3690. end
  3691. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3692. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3693. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3694. for i = 0, 2, 0.1 do
  3695. swait()
  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. 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)
  3698. 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)
  3699. 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)
  3700. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3701. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3702. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3703. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3704. end
  3705. attack = false
  3706. end
  3707.  
  3708.  
  3709.  
  3710. function Starfall()
  3711. attack = true
  3712. hum.WalkSpeed = 0
  3713. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3714. for i = 0, 5, 0.1 do
  3715. swait()
  3716. 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)
  3717. 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)
  3718. 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)
  3719. 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)
  3720. 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)
  3721. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3722. 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)
  3723. 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)
  3724. end
  3725. local Overed = false
  3726. CameraEnshaking(2,20)
  3727. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3728. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3729. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3730. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3731. local orb = Instance.new("Part", char)
  3732. orb.Anchored = true
  3733. orb.BrickColor = BrickColor.new("Toothpaste")
  3734. orb.CanCollide = false
  3735. orb.FormFactor = 3
  3736. orb.Name = "Remenant"
  3737. orb.Material = "Neon"
  3738. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3739. orb.Size = Vector3.new(1, 1, 1)
  3740. orb.Transparency = 1
  3741. orb.TopSurface = 0
  3742. orb.BottomSurface = 0
  3743. hum.WalkSpeed = storehumanoidWS
  3744. coroutine.resume(coroutine.create(function()
  3745. for i = 0, 9 do
  3746. swait(10)
  3747. local lb = Instance.new("Part")
  3748. lb.Color = MAINRUINCOLOR.Color
  3749. lb.CanCollide = false
  3750. lb.Material = "Neon"
  3751. lb.Anchored = true
  3752. lb.TopSurface = 0
  3753. lb.BottomSurface = 0
  3754. lb.Transparency = 0
  3755. lb.Size = vt(1,1,1)
  3756. 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)))
  3757. lb.Anchored = false
  3758. lb.Parent = char
  3759. local thingery = Instance.new("SpecialMesh",lb)
  3760. thingery.MeshType = "Sphere"
  3761. thingery.Scale = vt(20,20,20)
  3762. game:GetService("Debris"):AddItem(lb, 10)
  3763. local bv = Instance.new("BodyVelocity")
  3764. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3765. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3766. bv.Parent = lb
  3767. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3768. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3769. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3770. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3771. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3772. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3773. local hitted = false
  3774. coroutine.resume(coroutine.create(function()
  3775. while true do
  3776. swait(1)
  3777. if lb.Parent ~= nil and hitted == false then
  3778. 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)
  3779. elseif lb.Parent == nil then
  3780. break
  3781. end
  3782. end
  3783. end))
  3784.  
  3785. game:GetService("Debris"):AddItem(a, 0.1)
  3786.  
  3787. coroutine.resume(coroutine.create(function()
  3788. swait(1)
  3789. lb.Touched:connect(function(hit)
  3790. if hitted == false then
  3791. hitted = true
  3792. lb.Transparency = 1
  3793. lb.Anchored = true
  3794. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3795. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3796. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3797. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3798. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3799. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3800. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3801. CameraEnshaking(1,5)
  3802. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3803. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3804. for i = 0, 9 do
  3805. 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)
  3806. end
  3807. for i = 0, 49 do
  3808. swait()
  3809. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3810. 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)
  3811. end
  3812. end
  3813. end)
  3814. end))
  3815. end
  3816. Overed = true
  3817. orb:Destroy()
  3818. end))
  3819.  
  3820. attack = false
  3821. end
  3822.  
  3823. function StarfallEX()
  3824. attack = true
  3825. hum.WalkSpeed = 0
  3826. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3827. for i = 0, 10, 0.1 do
  3828. swait()
  3829. 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)
  3830. 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)
  3831. 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)
  3832. 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)
  3833. 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)
  3834. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3835. 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)
  3836. 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)
  3837. end
  3838. local Overed = false
  3839. CameraEnshaking(2,20)
  3840. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3841. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3842. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3843. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3844. local orb = Instance.new("Part", char)
  3845. orb.Anchored = true
  3846. orb.BrickColor = BrickColor.new("Toothpaste")
  3847. orb.CanCollide = false
  3848. orb.FormFactor = 3
  3849. orb.Name = "Remenant"
  3850. orb.Material = "Neon"
  3851. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3852. orb.Size = Vector3.new(1, 1, 1)
  3853. orb.Transparency = 1
  3854. orb.TopSurface = 0
  3855. orb.BottomSurface = 0
  3856. hum.WalkSpeed = storehumanoidWS
  3857. coroutine.resume(coroutine.create(function()
  3858. for i = 0, 4 do
  3859. swait(15)
  3860. local lb = Instance.new("Part")
  3861. lb.Color = MAINRUINCOLOR.Color
  3862. lb.CanCollide = false
  3863. lb.Material = "Neon"
  3864. lb.Anchored = true
  3865. lb.TopSurface = 0
  3866. lb.BottomSurface = 0
  3867. lb.Transparency = 0
  3868. lb.Size = vt(1,1,1)
  3869. 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)))
  3870. lb.Anchored = false
  3871. lb.Parent = char
  3872. local thingery = Instance.new("SpecialMesh",lb)
  3873. thingery.MeshType = "Sphere"
  3874. thingery.Scale = vt(50,50,50)
  3875. game:GetService("Debris"):AddItem(lb, 10)
  3876. local bv = Instance.new("BodyVelocity")
  3877. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3878. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3879. bv.Parent = lb
  3880. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3881. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3882. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3883. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3884. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3885. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3886. local hitted = false
  3887. coroutine.resume(coroutine.create(function()
  3888. while true do
  3889. swait(1)
  3890. if lb.Parent ~= nil and hitted == false then
  3891. 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)
  3892. elseif lb.Parent == nil then
  3893. break
  3894. end
  3895. end
  3896. end))
  3897.  
  3898. game:GetService("Debris"):AddItem(a, 0.1)
  3899.  
  3900. coroutine.resume(coroutine.create(function()
  3901. swait(1)
  3902. lb.Touched:connect(function(hit)
  3903. if hitted == false then
  3904. hitted = true
  3905. lb.Transparency = 1
  3906. lb.Anchored = true
  3907. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3908. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3909. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3910. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3911. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3912. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3913. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3914. CameraEnshaking(1,5)
  3915. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3916. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3917. for i = 0, 9 do
  3918. 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)
  3919. end
  3920. for i = 0, 99 do
  3921. swait()
  3922. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3923. 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)
  3924. end
  3925. end
  3926. end)
  3927. end))
  3928. end
  3929. Overed = true
  3930. orb:Destroy()
  3931. end))
  3932.  
  3933. attack = false
  3934. end
  3935.  
  3936. function DivineBlast()
  3937. attack = true
  3938. hum.WalkSpeed = 0
  3939. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3940. elocacenter.Anchored = true
  3941. elocacenter.CFrame = sorb.CFrame
  3942. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3943. eloca1.Anchored = true
  3944. eloca1.CFrame = elocacenter.CFrame
  3945. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3946. eloca2.Anchored = true
  3947. eloca2.CFrame = elocacenter.CFrame
  3948. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3949. eloca3.Anchored = true
  3950. eloca3.CFrame = elocacenter.CFrame
  3951. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3952. eloca4.Anchored = true
  3953. eloca4.CFrame = elocacenter.CFrame
  3954. local lookavec = 0
  3955. local speeds = 0
  3956. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3957. for i = 0, 3, 0.1 do
  3958. swait()
  3959. ---
  3960. lookavec = lookavec + 0.1
  3961. speeds = speeds + 10
  3962. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3963. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3964. 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)
  3965.  
  3966. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3967. 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)
  3968.  
  3969. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3970. 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)
  3971.  
  3972. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3973. 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)
  3974. ---
  3975. root.CFrame = FaceMouse()[1]
  3976. 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)
  3977. 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)
  3978. 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)
  3979. 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)
  3980. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  3981. 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)
  3982. end
  3983. for i = 0, 3, 0.1 do
  3984. swait()
  3985. ---
  3986. speeds = speeds + 10
  3987. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3988. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3989. 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)
  3990.  
  3991. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3992. 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)
  3993.  
  3994. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3995. 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)
  3996.  
  3997. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3998. 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)
  3999. ---
  4000. root.CFrame = FaceMouse()[1]
  4001. 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)
  4002. 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)
  4003. 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)
  4004. 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)
  4005. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4006. 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)
  4007. end
  4008. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4009. for i = 0, 3, 0.1 do
  4010. swait()
  4011. ---
  4012. speeds = speeds + 10
  4013. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4014. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4015. 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)
  4016.  
  4017. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4018. 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)
  4019.  
  4020. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4021. 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)
  4022.  
  4023. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4024. 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)
  4025. ---
  4026. root.CFrame = FaceMouse()[1]
  4027. 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)
  4028. 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)
  4029. 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)
  4030. 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)
  4031. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4032. 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)
  4033. end
  4034. coroutine.resume(coroutine.create(function()
  4035. local a = Instance.new("Part",Character)
  4036. a.Name = "Direction"
  4037. a.Anchored = true
  4038. a.BrickColor = bc("White")
  4039. a.Material = "Neon"
  4040. a.Transparency = 0
  4041. a.Shape = "Cylinder"
  4042. a.CanCollide = false
  4043. local a2 = Instance.new("Part",Character)
  4044. a2.Name = "Direction"
  4045. a2.Anchored = true
  4046. a2.BrickColor = bc("Bright yellow")
  4047. a2.Material = "Neon"
  4048. a2.Transparency = 0
  4049. a2.Shape = "Cylinder"
  4050. a2.CanCollide = false
  4051. local b = Instance.new("Part",Character)
  4052. b.Name = "HitDirect"
  4053. b.Anchored = true
  4054. b.BrickColor = bc("Cool yellow")
  4055. b.Material = "Neon"
  4056. b.Transparency = 1
  4057. b.CanCollide = false
  4058. local ray = Ray.new(
  4059. elocacenter.CFrame.p, -- origin
  4060. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4061. )
  4062. local ignore = Character
  4063. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4064. a.BottomSurface = 10
  4065. a.TopSurface = 10
  4066. a2.BottomSurface = 10
  4067. a2.TopSurface = 10
  4068. local distance = (elocacenter.CFrame.p - position).magnitude
  4069. a.Size = Vector3.new(distance, 1, 1)
  4070. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4071. a2.Size = Vector3.new(distance, 1, 1)
  4072. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4073. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4074. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4075. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4076. game:GetService("Debris"):AddItem(a, 10)
  4077. game:GetService("Debris"):AddItem(a2, 10)
  4078. game:GetService("Debris"):AddItem(b, 10)
  4079. local msh = Instance.new("SpecialMesh",a)
  4080. msh.MeshType = "Cylinder"
  4081. msh.Scale = vt(1,2,2)
  4082. local msh2 = Instance.new("SpecialMesh",a2)
  4083. msh2.MeshType = "Cylinder"
  4084. msh2.Scale = vt(1,2.5,2.5)
  4085. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4086. coroutine.resume(coroutine.create(function()
  4087. for i = 0,10,0.1 do
  4088. swait()
  4089. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4090. a.Transparency = a.Transparency + 0.025
  4091. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4092. a2.Transparency = a2.Transparency + 0.05
  4093. end
  4094. a:Destroy()
  4095. a2:Destroy()
  4096. end))
  4097. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4098. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4099. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4100. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4101. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4102. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4103. MagniDamage(b, 25, 40,65, 0, "Normal")
  4104. for i = 0, 49 do
  4105. 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)
  4106. 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)
  4107. end
  4108. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4109. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4110. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4111. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4112. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4113. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4114. end))
  4115. game:GetService("Debris"):AddItem(elocacenter, 5)
  4116. hum.WalkSpeed = storehumanoidWS
  4117. attack = false
  4118. end
  4119.  
  4120. function StarDivision()
  4121. attack = true
  4122. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4123. for i = 0, 2, 0.1 do
  4124. swait()
  4125. 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)
  4126. 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)
  4127. 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)
  4128. 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)
  4129. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4130. 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)
  4131. end
  4132. local orb = Instance.new("Part", char)
  4133. orb.BrickColor = MAINRUINCOLOR
  4134. orb.CanCollide = false
  4135. orb.FormFactor = 3
  4136. orb.Name = "Ring"
  4137. orb.Material = "Neon"
  4138. orb.Size = Vector3.new(1, 1, 1)
  4139. orb.Transparency = 0
  4140. orb.TopSurface = 0
  4141. orb.BottomSurface = 0
  4142. local orbm = Instance.new("SpecialMesh", orb)
  4143. orbm.MeshType = "Sphere"
  4144. orbm.Name = "SizeMesh"
  4145. orbm.Scale = vt(2,2,2)
  4146. local a = Instance.new("Part",workspace)
  4147. a.Name = "Direction"
  4148. a.Anchored = true
  4149. a.BrickColor = bc("Bright red")
  4150. a.Material = "Neon"
  4151. a.Transparency = 1
  4152. a.CanCollide = false
  4153. local ray = Ray.new(
  4154. sorb.CFrame.p, -- origin
  4155. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4156. )
  4157. local ignore = sorb
  4158. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4159. a.BottomSurface = 10
  4160. a.TopSurface = 10
  4161. local distance = (sorb.CFrame.p - position).magnitude
  4162. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4163. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4164. orb.CFrame = a.CFrame
  4165. a:Destroy()
  4166. local bv = Instance.new("BodyVelocity")
  4167. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4168. bv.velocity = orb.CFrame.lookVector*100
  4169. bv.Parent = orb
  4170. local hitted = false
  4171. game:GetService("Debris"):AddItem(orb, 10)
  4172. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4173. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4174. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4175. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4176. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4177. coroutine.resume(coroutine.create(function()
  4178. while true do
  4179. swait(1)
  4180. if orb.Parent ~= nil and hitted == false then
  4181. 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)
  4182. elseif orb.Parent == nil then
  4183. break
  4184. end
  4185. end
  4186. end))
  4187. coroutine.resume(coroutine.create(function()
  4188. swait(1)
  4189. orb.Touched:connect(function(hit)
  4190. if hitted == false then
  4191. hitted = true
  4192. game:GetService("Debris"):AddItem(orb, 5)
  4193. orb.Transparency = 1
  4194. orb.Anchored = true
  4195. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4196. elocacenter.Anchored = true
  4197. elocacenter.CFrame = orb.CFrame
  4198. elocacenter.Orientation = vt(0,0,0)
  4199. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4200. eloca1.Anchored = true
  4201. eloca1.CFrame = elocacenter.CFrame
  4202. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4203. eloca2.Anchored = true
  4204. eloca2.CFrame = elocacenter.CFrame
  4205. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4206. eloca3.Anchored = true
  4207. eloca3.CFrame = elocacenter.CFrame
  4208. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4209. eloca4.Anchored = true
  4210. eloca4.CFrame = elocacenter.CFrame
  4211. local lookavec = 0
  4212. local speeds = 0
  4213. CameraEnshaking(1,1)
  4214. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4215. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4216. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4217. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4218. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4219. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4220. for i = 0, 99 do
  4221. swait()
  4222. lookavec = lookavec + 1
  4223. speeds = speeds + 0.1
  4224. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4225. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4226. 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)
  4227.  
  4228. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4229. 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)
  4230.  
  4231. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4232. 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)
  4233.  
  4234. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4235. 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)
  4236. end
  4237.  
  4238. for i = 0, 149 do
  4239. swait()
  4240. speeds = speeds + 0.1
  4241. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4242. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4243. 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)
  4244.  
  4245. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4246. 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)
  4247.  
  4248. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4249. 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)
  4250.  
  4251. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4252. 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)
  4253. end
  4254. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4255. if v:FindFirstChild('Head') then
  4256. dmg(v)
  4257. end
  4258. end
  4259. CameraEnshaking(7,30)
  4260. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4261. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4262. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4263. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4264. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4265. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4266. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4267. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4268. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4269. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4270. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4271. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4272. for i = 0, 24 do
  4273. 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)
  4274. 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)
  4275. 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)
  4276. 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)
  4277. end
  4278. coroutine.resume(coroutine.create(function()
  4279. for i = 0, 499 do
  4280. swait(1)
  4281. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4282. 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)
  4283. end
  4284. elocacenter:Destroy()
  4285. eloca1:Destroy()
  4286. eloca2:Destroy()
  4287. eloca3:Destroy()
  4288. eloca4:Destroy()
  4289. end))
  4290. end
  4291. end)
  4292. end))
  4293. attack = false
  4294. end
  4295.  
  4296.  
  4297. function THE_TRUE_POWER_OF_VIOLENCE()
  4298. attack = true
  4299. hum.WalkSpeed = 0
  4300. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
  4301. for i = 0, 10, 0.1 do
  4302. swait()
  4303. 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)
  4304. 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)
  4305. 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)
  4306. 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)
  4307. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4308. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4309. 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)
  4310. end
  4311. local orb = Instance.new("Part", char)
  4312. orb.BrickColor = MAINRUINCOLOR
  4313. orb.CanCollide = false
  4314. orb.FormFactor = 3
  4315. orb.Name = "Ring"
  4316. orb.Material = "Neon"
  4317. orb.Size = Vector3.new(1, 1, 1)
  4318. orb.Transparency = 0
  4319. orb.TopSurface = 0
  4320. orb.BottomSurface = 0
  4321. orb.CFrame = sorb.CFrame
  4322. local orbm = Instance.new("SpecialMesh", orb)
  4323. orbm.MeshType = "Sphere"
  4324. orbm.Name = "SizeMesh"
  4325. orbm.Scale = vt(0,0,0)
  4326. local sbs = Instance.new("BodyPosition", orb)
  4327. sbs.P = 3000
  4328. sbs.D = 1000
  4329. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4330. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4331. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4332. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4333. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4334. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4335. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4336. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4337. for i = 0, 10, 0.1 do
  4338. swait()
  4339. 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)
  4340. 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)
  4341. 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)
  4342. 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)
  4343. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4344. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4345. 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)
  4346. end
  4347. orb.Anchored = true
  4348. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4349. elocacenter.Anchored = true
  4350. elocacenter.CFrame = orb.CFrame
  4351. elocacenter.Orientation = vt(0,0,0)
  4352. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4353. eloca1.Anchored = true
  4354. eloca1.CFrame = elocacenter.CFrame
  4355. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4356. eloca2.Anchored = true
  4357. eloca2.CFrame = elocacenter.CFrame
  4358. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4359. eloca3.Anchored = true
  4360. eloca3.CFrame = elocacenter.CFrame
  4361. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4362. eloca4.Anchored = true
  4363. eloca4.CFrame = elocacenter.CFrame
  4364. local lookavec = 0
  4365. local speeds = 0
  4366. CameraEnshaking(1,1)
  4367. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4368. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4369. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4370. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4371. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4372. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4373. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4374. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4375. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4376. for i = 0, 99 do
  4377. swait()
  4378. lookavec = lookavec + 2.5
  4379. speeds = speeds + 0.25
  4380. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4381. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4382. 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)
  4383.  
  4384. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4385. 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)
  4386.  
  4387. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4388. 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)
  4389.  
  4390. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4391. 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)
  4392. end
  4393.  
  4394. for i = 0, 149 do
  4395. swait()
  4396. speeds = speeds + 0.25
  4397. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4398. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4399. 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)
  4400.  
  4401. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4402. 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)
  4403.  
  4404. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4405. 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)
  4406.  
  4407. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4408. 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)
  4409. end
  4410. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4411. for i = 0, 99 do
  4412. swait()
  4413. lookavec = lookavec - 2.5
  4414. speeds = speeds + 0.25
  4415. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4416. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4417. 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)
  4418.  
  4419. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4420. 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)
  4421.  
  4422. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4423. 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)
  4424.  
  4425. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4426. 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)
  4427. end
  4428. local scaled = 0.1*75
  4429. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4430. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4431. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4432. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4433. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4434. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4435. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4436. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4437. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4438. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4439. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4440. for i = 0, 10, 0.1 do
  4441. swait()
  4442. scaled = scaled - 0.001*75
  4443. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4444. 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)
  4445. 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)
  4446. 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)
  4447. 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)
  4448. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4449. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4450. 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)
  4451. end
  4452. for x = 0, 4 do
  4453. for i = 0, 9 do
  4454. 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)
  4455. end
  4456. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4457. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4458. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4459. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4460. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4461. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4462. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4463. for i = 0, 5, 0.1 do
  4464. swait()
  4465. 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)
  4466. 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)
  4467. 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)
  4468. 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)
  4469. 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)
  4470. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4471. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4472. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4473. end
  4474. end
  4475. local speedearn = 0
  4476. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4477. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4478. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4479. for i = 0, 30, 0.1 do
  4480. swait()
  4481. scaled = scaled - 0.001*75/10
  4482. speedearn = speedearn + 0.5
  4483. for i = 0, 4 do
  4484. 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)
  4485. end
  4486. 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)
  4487. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4488. 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)
  4489. 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)
  4490. 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)
  4491. 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)
  4492. 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)
  4493. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4494. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4495. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4496. end
  4497. orb.Transparency = 1
  4498. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4499. if v:FindFirstChild('Head') then
  4500. dmg(v)
  4501. end
  4502. end
  4503. CameraEnshaking(7,30)
  4504. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4505. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4506. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4507. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4508. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4509. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4510. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4511. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4512. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4513. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4514. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4515. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4516. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4517. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4518. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4519. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4520. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4521. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4522. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4523. for i = 0, 99 do
  4524. 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)
  4525. 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)
  4526. end
  4527. for i = 0, 24 do
  4528. 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)
  4529. 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)
  4530. 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)
  4531. 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)
  4532. 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)
  4533. end
  4534. game:GetService("Debris"):AddItem(orb, 10)
  4535. hum.WalkSpeed = storehumanoidWS
  4536. attack = false
  4537. end
  4538.  
  4539.  
  4540. function ViolentRing()
  4541. attack = true
  4542. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4543. for i = 0, 2, 0.1 do
  4544. swait()
  4545. local snap = math.random(1,10)
  4546. if snap == 1 then
  4547. 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)
  4548. end
  4549. 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)
  4550. 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)
  4551. 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)
  4552. 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)
  4553. 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)
  4554. 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)
  4555. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4556. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4557. 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)
  4558. RootPart.CFrame = FaceMouse()[1]
  4559. end
  4560. local orb = Instance.new("Part", char)
  4561. orb.BrickColor = MAINRUINCOLOR
  4562. orb.CanCollide = false
  4563. orb.FormFactor = 3
  4564. orb.Name = "Ring"
  4565. orb.Material = "Neon"
  4566. orb.Size = Vector3.new(1, 1, 1)
  4567. orb.Transparency = 0
  4568. orb.TopSurface = 0
  4569. orb.BottomSurface = 0
  4570. local orbm = Instance.new("SpecialMesh", orb)
  4571. orbm.MeshType = "Sphere"
  4572. orbm.Name = "SizeMesh"
  4573. orbm.Scale = vt(2,2,2)
  4574. orb.CFrame = mouse.Hit
  4575. local bv = Instance.new("BodyVelocity")
  4576. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4577. bv.velocity = orb.CFrame.lookVector*100
  4578. bv.Parent = orb
  4579. local hitted = false
  4580. coroutine.resume(coroutine.create(function()
  4581. game:GetService("Debris"):AddItem(orb, 5)
  4582. orb.Transparency = 1
  4583. orb.Anchored = true
  4584. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4585. elocacenter.Anchored = true
  4586. elocacenter.CFrame = orb.CFrame
  4587. elocacenter.Orientation = vt(0,0,0)
  4588. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4589. eloca1.Anchored = true
  4590. eloca1.CFrame = elocacenter.CFrame
  4591. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4592. eloca2.Anchored = true
  4593. eloca2.CFrame = elocacenter.CFrame
  4594. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4595. eloca3.Anchored = true
  4596. eloca3.CFrame = elocacenter.CFrame
  4597. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4598. eloca4.Anchored = true
  4599. eloca4.CFrame = elocacenter.CFrame
  4600. local lookavec = 0
  4601. local speeds = 0
  4602. CameraEnshaking(1,1)
  4603. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4604. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4605. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4606. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4607. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4608. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4609. for i = 0, 24 do
  4610. swait()
  4611. lookavec = lookavec + 3.5
  4612. speeds = speeds + 1
  4613. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4614. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4615. 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)
  4616.  
  4617. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4618. 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)
  4619.  
  4620. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4621. 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)
  4622.  
  4623. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4624. 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)
  4625. end
  4626.  
  4627. local risen = 0
  4628. for i = 0, 49 do
  4629. swait()
  4630. risen = risen + 0.05
  4631. speeds = speeds + 0.1
  4632. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4633. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4634. 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)
  4635.  
  4636. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4637. 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)
  4638.  
  4639. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4640. 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)
  4641.  
  4642. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4643. 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)
  4644. end
  4645. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4646. if v:FindFirstChild('Head') then
  4647. dmg(v)
  4648. end
  4649. end
  4650. CameraEnshaking(4,10)
  4651. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4652. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4653. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4654. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4655. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4656. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4657. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4658. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4659. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4660. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4661. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4662. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4663. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4664. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4665. for i = 0, 24 do
  4666. 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)
  4667. 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)
  4668. 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)
  4669. 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)
  4670. end
  4671. coroutine.resume(coroutine.create(function()
  4672. wait(10)
  4673. elocacenter:Destroy()
  4674. eloca1:Destroy()
  4675. eloca2:Destroy()
  4676. eloca3:Destroy()
  4677. eloca4:Destroy()
  4678. end))
  4679. end))
  4680. attack = false
  4681. end
  4682.  
  4683. function UniversalCollapse()
  4684. attack = true
  4685. local speedearn = 0
  4686. hum.WalkSpeed = 0
  4687. local sbs = Instance.new("BodyPosition", root)
  4688. sbs.P = 3000
  4689. sbs.D = 1000
  4690. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4691. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4692. bosschatfunc("*Roars*",MAINRUINCOLOR.Color,1)
  4693. CFuncs["EchoSound"].Create("rbxassetid://1286168545", char, 1.5, 1,0,10,0.15,0.5,1)
  4694. CFuncs["EchoSound"].Create("rbxassetid://1286168545", root, 10, 1,0,10,0.15,0.5,1)
  4695. CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
  4696. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4697. for i = 0, 110, 0.1 do
  4698. swait()
  4699. speedearn = speedearn + 0.1
  4700. 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)
  4701. 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)
  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. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4706. 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)
  4707. 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)
  4708. 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)
  4709. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4710. 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)
  4711. 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)
  4712. end
  4713. CameraEnshaking(5,50)
  4714. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4715. for i = 0, 2 do
  4716. CFuncs["EchoSound"].Create("rbxassetid://2508407083", char, 4, 1,0,10,0.15,0.5,1)
  4717. CFuncs["EchoSound"].Create("rbxassetid://2508407083", char, 4, 1,0,10,0.15,0.5,1)
  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 Taunt()
  6360. ATTACK = true
  6361. local LAUGH = nil
  6362. coroutine.resume(coroutine.create(function()
  6363. repeat
  6364. Swait()
  6365. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  6366. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  6367. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  6368. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  6369. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6370. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6371. until LAUGH ~= nil
  6372. repeat
  6373. Swait()
  6374. LAUGH.Parent = Head
  6375. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  6376. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  6377. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(180), RAD(10), RAD(-15)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  6378. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  6379. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6380. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6381. until LAUGH.Playing == false
  6382. ATTACK = false
  6383. end))
  6384. wait(0.1)
  6385. LAUGH = CreateSound(300208779, Head, 10, 1, false)
  6386. sick:Resume()
  6387. end
  6388.  
  6389. function Shell()
  6390. ATTACK = true
  6391. Rooted = false
  6392. local GYRO = IT("BodyGyro",RootPart)
  6393. GYRO.D = 750
  6394. GYRO.P = 20000
  6395. GYRO.MaxTorque = VT(0,40000000,0)
  6396. for i=0, 1, 0.1 / Animation_Speed do
  6397. Swait()
  6398. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  6399. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6400. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6401. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  6402. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  6403. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6404. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6405. end
  6406. GYRO:remove()
  6407. CreateSound(696483710, Gun, 5, 1, false)
  6408. local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun.Position,Mouse.Hit.p)
  6409. SpawnTrail(Gun.CFrame*CF(1.5,0.5,0).p,AIMPOS)
  6410. WACKYEFFECT({Time = 3, EffectType = "Sphere", Size = VT(1,0.3,0.3), Size2 = VT(1,0,0), Transparency = 0, Transparency2 = 1, CFrame = Gun.CFrame*CF(1.5,0.5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  6411. for i=0, 0.3, 0.1 / Animation_Speed do
  6412. Swait()
  6413. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6414. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6415. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(110), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  6416. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  6417. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6418. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  6419. end
  6420. ATTACK = false
  6421. Rooted = false
  6422. end
  6423.  
  6424. function EquinoxOrbs()
  6425. hum.WalkSpeed = 0
  6426. attack = true
  6427. for i = 0,1,0.1 do
  6428. swait()
  6429. 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)
  6430. 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)
  6431. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6432. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6433. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6434. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6435. end
  6436. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6437. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6438. for i = 0, 24 do
  6439. --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"))
  6440. end
  6441. bosschatfunc("TASTE MY POWER!!",MAINRUINCOLOR.Color,1)
  6442. CFuncs["EchoSound"].Create("rbxassetid://357202073", char, 4, 1,0,10,0.15,0.5,1)
  6443. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6444. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6445. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6446. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6447. for i = 0,4,0.1 do
  6448. swait()
  6449. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6450. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6451. CreateMesh(dis,"Sphere",1,1,1)
  6452. dis.Anchored = true
  6453. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6454. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6455. CreateMesh(dis2,"Sphere",1,1,1)
  6456. dis2.Anchored = true
  6457. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6458. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6459. --sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6460. coroutine.resume(coroutine.create(function()
  6461. swait(60)
  6462. dis.Transparency = 1
  6463. dis2.Transparency = 1
  6464. coroutine.resume(coroutine.create(function()
  6465. for i = 0, 19 do
  6466. swait()
  6467. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6468. end
  6469. hum.CameraOffset = vt(0,0,0)
  6470. end))
  6471. coroutine.resume(coroutine.create(function()
  6472. local eff = Instance.new("ParticleEmitter",dis)
  6473. eff.Texture = "rbxassetid://2273224484"
  6474. eff.LightEmission = 1
  6475. eff.Color = ColorSequence.new(dis.Color)
  6476. eff.Rate = 500000
  6477. eff.Lifetime = NumberRange.new(0.5,2)
  6478. 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)})
  6479. 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)})
  6480. eff.Speed = NumberRange.new(50,450)
  6481. eff.Drag = 5
  6482. eff.Rotation = NumberRange.new(-500,500)
  6483. eff.VelocitySpread = 9000
  6484. eff.RotSpeed = NumberRange.new(-50,50)
  6485. local eff2 = eff:Clone()
  6486. eff2.Parent = dis2
  6487. eff2.LightEmission = 0
  6488. eff2.Color = ColorSequence.new(dis2.Color)
  6489. wait(0.25)
  6490. eff.Enabled = false
  6491. eff2.Enabled = false
  6492. end))
  6493. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6494. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6495. CFuncs["EchoSound"].Create("rbxassetid://165970126", char, 4, 1,0,10,0.15,0.5,1)
  6496. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6497. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6498. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6499. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6500. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6501. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6502. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6503. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6504. end))
  6505. game:GetService("Debris"):AddItem(dis, 5)
  6506. game:GetService("Debris"):AddItem(dis2, 5)
  6507. 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)
  6508. 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)
  6509. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6510. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6511. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6512. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6513. end
  6514. attack = false
  6515. hum.WalkSpeed = storehumanoidWS
  6516. end
  6517. function FallenDEMISE()
  6518. attack = true
  6519. hum.WalkSpeed = 0
  6520. local keptcolor = MAINRUINCOLOR
  6521. --bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6522. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6523. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6524. for i = 0, 15, 0.1 do
  6525. swait()
  6526. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6527. 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)))
  6528. local at1 = Instance.new("Attachment",dis)
  6529. at1.Position = vt(-25000,0,0)
  6530. local at2 = Instance.new("Attachment",dis)
  6531. at2.Position = vt(25000,0,0)
  6532. local trl = Instance.new('Trail',dis)
  6533. trl.Attachment0 = at1
  6534. trl.FaceCamera = true
  6535. trl.Attachment1 = at2
  6536. trl.Texture = "rbxassetid://1049219073"
  6537. trl.LightEmission = 1
  6538. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6539. trl.Color = ColorSequence.new(dis.Color)
  6540. trl.Lifetime = 5
  6541. local bv = Instance.new("BodyVelocity")
  6542. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6543. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6544. bv.Parent = dis
  6545. game:GetService("Debris"):AddItem(dis, 1)
  6546. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6547. --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"))
  6548. --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"))
  6549. 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)
  6550. 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)
  6551. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6552. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6553. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6554. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6555. end
  6556. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6557. for i = 0, 30, 0.1 do
  6558. swait()
  6559. coroutine.resume(coroutine.create(function()
  6560. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6561. if v:FindFirstChild('Head') then
  6562. dmg(v)
  6563. end
  6564. end
  6565. end))
  6566. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6567. 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)))
  6568. local at1 = Instance.new("Attachment",dis)
  6569. at1.Position = vt(-50000,0,0)
  6570. local at2 = Instance.new("Attachment",dis)
  6571. at2.Position = vt(50000,0,0)
  6572. local trl = Instance.new('Trail',dis)
  6573. trl.Attachment0 = at1
  6574. trl.FaceCamera = true
  6575. trl.Attachment1 = at2
  6576. trl.Texture = "rbxassetid://1049219073"
  6577. trl.LightEmission = 1
  6578. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6579. trl.Color = ColorSequence.new(dis.Color)
  6580. trl.Lifetime = 10
  6581. local bv = Instance.new("BodyVelocity")
  6582. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6583. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6584. bv.Parent = dis
  6585. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6586. --sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6587. --sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6588. --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"))
  6589. --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"))
  6590. --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"))
  6591. --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"))
  6592. for i = 0, 2 do
  6593. --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)
  6594. end
  6595. 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)
  6596. 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)
  6597. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6598. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6599. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6600. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6601. end
  6602. attack = false
  6603. hum.WalkSpeed = storehumanoidWS
  6604. end
  6605. function NeptuniaWings()
  6606. local mainpart = CreateParta(m,1,0,"SmoothPlastic",BrickColor.Random())
  6607. 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))
  6608.  
  6609. local wng1a = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6610. CreateMesh(wng1a,"Wedge",0.1,4,4)
  6611. 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))
  6612. local wng2a = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6613. CreateMesh(wng2a,"Wedge",0.1,4,4)
  6614. 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))
  6615. local wng1b = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6616. CreateMesh(wng1b,"Wedge",0.1,1.5,3)
  6617. 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))
  6618. local wng2b = CreateParta(m,1,0,"Neon",BrickColor.new("Alder"))
  6619. CreateMesh(wng2b,"Wedge",0.1,1.5,3)
  6620. 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))
  6621. end
  6622.  
  6623. function MagicMissiles()
  6624. ATTACK = true
  6625. Rooted = true
  6626. local SELECTING = true
  6627. local SPOTS = {}
  6628. coroutine.resume(coroutine.create(function()
  6629. local LOOP = 0
  6630. repeat
  6631. LOOP = LOOP + 1
  6632. Swait()
  6633. if LOOP >= 10 then
  6634. LOOP = 0
  6635. for i = 1, #SPOTS do
  6636. if SPOTS[i] ~= nil then
  6637. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  6638. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  6639. end
  6640. end
  6641. end
  6642. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  6643. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  6644. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  6645. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  6646. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  6647. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  6648. until SELECTING == false
  6649. Rooted = false
  6650. repeat
  6651. LOOP = LOOP + 1
  6652. Swait()
  6653. if LOOP >= 10 then
  6654. LOOP = 0
  6655. for i = 1, #SPOTS do
  6656. if SPOTS[i] ~= nil then
  6657. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  6658. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  6659. end
  6660. end
  6661. end
  6662. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  6663. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
  6664. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  6665. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  6666. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  6667. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  6668. until ATTACK == false
  6669. end))
  6670. repeat
  6671. repeat Swait() until HOLD == true
  6672. local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
  6673. if DIST > 65 then
  6674. DIST = 65
  6675. end
  6676. local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)
  6677. local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  6678. if HITFLOOR ~= nil then
  6679. table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)))
  6680. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,2,6), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 90655239, SoundPitch = 1, SoundVolume = 6})
  6681. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  6682. end
  6683. repeat Swait() until HOLD == false
  6684. until #SPOTS == 5
  6685. SELECTING = false
  6686. for i = 1, #SPOTS do
  6687. if SPOTS[i] ~= nil then
  6688. local POS = SPOTS[i]
  6689. coroutine.resume(coroutine.create(function()
  6690. local MISSILE = IT("Model",Effects)
  6691. MISSILE.Name = "Missile"
  6692. local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,2,2))
  6693. MakeForm(BASEPART,"Cyl")
  6694. MISSILE.PrimaryPart = BASEPART
  6695. BASEPART.CFrame = POS*CF(0,-30*3,0)
  6696. local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,4,2))
  6697. MakeForm(HEAD,"Ball")
  6698. HEAD.CFrame = BASEPART.CFrame*CF(0,1,0)
  6699. local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2.5,0.1,2.5))
  6700. MakeForm(TAIL,"Cyl")
  6701. TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0)
  6702. for i = 1, 10 do
  6703. Swait()
  6704. for _, c in pairs(MISSILE:GetChildren()) do
  6705. if c.ClassName == "Part" then
  6706. c.Transparency = c.Transparency - 1/10
  6707. end
  6708. end
  6709. end
  6710. for i = 1, 15*1.5 do
  6711. Swait()
  6712. MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0))
  6713. end
  6714. ApplyAoE(BASEPART.CFrame.p,20,35,45,75,false)
  6715. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(75,1,75), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  6716. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4})
  6717. WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(22,2,22), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  6718. WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(20,3,20), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  6719. MISSILE:remove()
  6720. end))
  6721. end
  6722. end
  6723. wait(0.6)
  6724. ATTACK = false
  6725. Rooted = false
  6726. end
  6727. function ExplosiveLightBall()
  6728. if basiccooldown >= 5 then
  6729. local spart = Instance.new("Part",workspace)
  6730. local msh = Instance.new("SpecialMesh",spart)
  6731. msh.MeshType = "Sphere"
  6732. local sa = Instance.new("Sound",hed)
  6733. sa.SoundId = "rbxassetid://203691467"
  6734. sa.Pitch = 0.775
  6735. sa.Volume = 1
  6736. sa.Looped = false
  6737. local sa1 = Instance.new("Sound",hed)
  6738. sa1.SoundId = "rbxassetid://200633529"
  6739. sa1.Pitch = 0.75
  6740. sa1.Volume = 1
  6741. sa1.Looped = false
  6742. sa1:Play()
  6743. local sans1 = Instance.new("Sound",hed)
  6744. sans1.SoundId = "rbxassetid://200633529"
  6745. sans1.Pitch = 0.725
  6746. sans1.Volume = 1
  6747. sans1.Looped = false
  6748. sans1:Play()
  6749. spart.Size = vt(1,1,1)
  6750. spart.BrickColor = BrickColor.new("Bright violet")
  6751. spart.Material = "Neon"
  6752. spart.Transparency = 1
  6753. spart.Anchored = true
  6754. spart.CanCollide = false
  6755. spart.Position = hed.Position + vt(0,20,0)
  6756. local value = 2.5
  6757. for i = 0, 24 do
  6758. spart.Transparency = spart.Transparency - 0.05
  6759. value = value - 0.05
  6760. msh.Scale = msh.Scale + vt(value,value,value)
  6761. wait()
  6762. end
  6763. sa:Play()
  6764. spart.Anchored = false
  6765. local bv = Instance.new("BodyVelocity")
  6766. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6767. bv.velocity = mouse.Hit.lookVector *125
  6768. bv.Parent = spart
  6769. wait(0.1)
  6770. pewdiepie=spart.Touched:connect(function(hit) Explode(20,spart) end)
  6771. end
  6772. end
  6773. -------------------------------------
  6774.  
  6775. Humanoid.Animator.Parent = nil
  6776.  
  6777. -------------------------------------
  6778.  
  6779. local attacktype = 1
  6780. mouse.Button1Down:connect(function()
  6781. if attack == false and attacktype == 1 then
  6782. attacktype = 2
  6783. attackone()
  6784. elseif attack == false and attacktype == 2 then
  6785. attacktype = 3
  6786. attacktwo()
  6787. elseif attack == false and attacktype == 3 then
  6788. attacktype = 1
  6789. attackthree()
  6790. elseif attack == false and attacktype == 4 then
  6791. attacktype = 1
  6792. --attackfour()
  6793. end
  6794. end)
  6795. mouse.KeyDown:connect(function(k)
  6796. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  6797. --normalmog() ---Disabled due to crashing... only in VSB
  6798. ModeOfGlitch = 1
  6799. storehumanoidWS = 16
  6800. hum.WalkSpeed = 16
  6801. rainbowmode = false
  6802. chaosmode = false
  6803. newTheme("rbxassetid://147088444",48.6,1,1.25)
  6804. RecolorTextAndRename("STRESS HYPERION",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  6805. MAINRUINCOLOR = BrickColor.new("Really red")
  6806. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  6807. end
  6808. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  6809. ModeOfGlitch = 2
  6810. storehumanoidWS = 16
  6811. hum.WalkSpeed = 16
  6812. rainbowmode = false
  6813. chaosmode = false
  6814. RecolorTextAndRename("FROST HYPERION",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  6815. newTheme("rbxassetid://1579308042",0,1,1.25)
  6816. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  6817. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6818. end
  6819. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  6820. ModeOfGlitch = 3
  6821. storehumanoidWS = 16
  6822. hum.WalkSpeed = 16
  6823. rainbowmode = false
  6824. chaosmode = false
  6825. RecolorTextAndRename("VIRUS HYPERION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  6826. newTheme("rbxassetid://1533368028",58.15,0.98,1.25)
  6827. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6828. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6829. end
  6830. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  6831. ModeOfGlitch = 4
  6832. storehumanoidWS = 16
  6833. hum.WalkSpeed = 16
  6834. rainbowmode = false
  6835. chaosmode = true
  6836. RecolorTextAndRename("TRUE HYPERION",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  6837. newTheme("rbxassetid://1172077868",0,1.01,1.25)
  6838. MAINRUINCOLOR = BrickColor.new("Black")
  6839. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6840. end
  6841. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  6842. ModeOfGlitch = 5
  6843. storehumanoidWS = 16
  6844. hum.WalkSpeed = 16
  6845. rainbowmode = false
  6846. chaosmode = false
  6847. RecolorTextAndRename("DIVINE HYPERION",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  6848. newTheme("rbxassetid://2483634238",0,1.02,1.25)
  6849. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  6850. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6851. end
  6852. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  6853. ModeOfGlitch = 6
  6854. storehumanoidWS = 100
  6855. hum.WalkSpeed = 100
  6856. rainbowmode = false
  6857. chaosmode = false
  6858. RecolorTextAndRename("MURDER HYPERION",Color3.new(1,0,0),Color3.new(1,0,0),"Fantasy")
  6859. newTheme("rbxassetid://411780091",0,1.01,1.25)
  6860. MAINRUINCOLOR = BrickColor.new("Crimson")
  6861. RecolorThing(MAINRUINCOLOR,BrickColor.new("Crimson"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6862. end
  6863. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  6864. ModeOfGlitch = 8
  6865. storehumanoidWS = 140
  6866. hum.WalkSpeed = 140
  6867. rainbowmode = false
  6868. chaosmode = false
  6869. RecolorTextAndRename("DESTINY HYPERION",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  6870. newTheme("rbxassetid://2332836369",0,1.01,1.25)
  6871. MAINRUINCOLOR = BrickColor.new("Alder")
  6872. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6873. end
  6874. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  6875. ModeOfGlitch = 9
  6876. storehumanoidWS = 150
  6877. hum.WalkSpeed = 150
  6878. rainbowmode = false
  6879. chaosmode = false
  6880. RecolorTextAndRename("INFESTATION HYPERION",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Arcade")
  6881. newTheme("rbxassetid://867946538",0,1.01,1.25)
  6882. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  6883. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6884. end
  6885. if k == "h" and attack == false and ModeOfGlitch ~= 10 then
  6886. ModeOfGlitch = 10
  6887. storehumanoidWS = 75
  6888. hum.WalkSpeed = 75
  6889. rainbowmode = false
  6890. chaosmode = false
  6891. RecolorTextAndRename("EVIL HYPERION",Color3.new(0,0,0),Color3.new(5,0,0),"Arcade")
  6892. newTheme("rbxassetid://1107483895",0,1,1)
  6893. MAINRUINCOLOR = BrickColor.new("Crimson")
  6894. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6895. end
  6896. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  6897. ModeOfGlitch = 8889
  6898. storehumanoidWS = 180
  6899. hum.WalkSpeed = 180
  6900. rainbowmode = false
  6901. chaosmode = false
  6902. RecolorTextAndRename("CALAMITY HYPERION",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  6903. newTheme("rbxassetid://1960307734",0,1.01,1.25)
  6904. MAINRUINCOLOR = BrickColor.new("Lilac")
  6905. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6906. end
  6907. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  6908. ModeOfGlitch = 55469696922
  6909. storehumanoidWS = 275
  6910. hum.WalkSpeed = 275
  6911. rainbowmode = false
  6912. chaosmode = false
  6913. RecolorTextAndRename("ULTIMATE HYPERION",Color3.new(0.25,0,0.1),BrickColor.new("Blue").Color,"Arcade")
  6914. newTheme("rbxassetid://1382488262",0,1.005,1)
  6915. MAINRUINCOLOR = BrickColor.new("Orange")
  6916. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6917. end
  6918. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  6919. ModeOfGlitch = 4367677813
  6920. storehumanoidWS = 225
  6921. hum.WalkSpeed = 225
  6922. rainbowmode = false
  6923. chaosmode = false
  6924. RecolorTextAndRename("BRIGHTNESS HYPERION",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  6925. newTheme("rbxassetid://1126561168",0,1.01,1.25)
  6926. MAINRUINCOLOR = BrickColor.new("Baby blue")
  6927. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6928. end
  6929. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  6930. ModeOfGlitch = 9999999921111
  6931. storehumanoidWS = 300
  6932. hum.WalkSpeed = 300
  6933. rainbowmode = false
  6934. chaosmode = false
  6935. RecolorTextAndRename("OMEGA HYPERION",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  6936. newTheme("rbxassetid://2024346699",0,1.01,1.25)
  6937. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  6938. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6939. end
  6940. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  6941. ModeOfGlitch = 999999999556
  6942. storehumanoidWS = 500
  6943. hum.WalkSpeed = 500
  6944. rainbowmode = false
  6945. chaosmode = false
  6946. RecolorTextAndRename("INSANE HYPERION",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  6947. newTheme("rbxassetid://601578010",0,1,1)
  6948. MAINRUINCOLOR = BrickColor.new("Navy blue")
  6949. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6950. end
  6951. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  6952. ModeOfGlitch = 1264532489
  6953. storehumanoidWS = 250
  6954. hum.WalkSpeed = 250
  6955. rainbowmode = false
  6956. chaosmode = false
  6957. RecolorTextAndRename("FALLEN HYPERION",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  6958. newTheme("rbxassetid://919231299",0,1,1)
  6959. MAINRUINCOLOR = BrickColor.new("Pastel green")
  6960. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6961. end
  6962. if k == "l" and mutedtog == false then
  6963. mutedtog = true
  6964. kan.Volume = 0
  6965. elseif k == "l" and mutedtog == true then
  6966. mutedtog = false
  6967. kan.Volume = 1.25
  6968. end
  6969. if k == "p" and toggleTag == false then
  6970. toggleTag = true
  6971. modet.TextTransparency = 0
  6972. modet.TextStrokeTransparency = 0
  6973. elseif k == "p" and toggleTag == true then
  6974. toggleTag = false
  6975. modet.TextTransparency = 1
  6976. modet.TextStrokeTransparency = 1
  6977. end
  6978. if k == "z" and attack == false and ModeOfGlitch == 1 then
  6979. ExtinctiveHeartbreak()
  6980. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  6981. HeavenlyDisk()
  6982. elseif k == "x" and attack == false and ModeOfGlitch == 2 then
  6983. PureOrb()
  6984. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  6985. CorruptionEvent()
  6986. elseif k == "x" and attack == false and ModeOfGlitch == 3 then
  6987. MagicMissiles()
  6988. elseif k == "c" and attack == false and ModeOfGlitch == 4 then
  6989. ChaosEND()
  6990. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  6991. attacktwo()
  6992. elseif k == "v" and attack == false and ModeOfGlitch == 4 then
  6993. ChaosGroundStrike()
  6994. elseif k == "b" and attack == false and ModeOfGlitch == 4 then
  6995. HeavenlyDisk()
  6996. elseif k == "m" and attack == false and ModeOfGlitch == 4 then
  6997. FallenOrbs()
  6998. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  6999. RapidBurst()
  7000. elseif k == "k" and attack == false and ModeOfGlitch == 4 then
  7001. attackone()
  7002. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  7003. DivineLights()
  7004. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  7005. EquinoxOrbs()
  7006. elseif k == "z" and attack == false and ModeOfGlitch == 10 then
  7007. yinyangi()
  7008. elseif k == "x" and attack == false and ModeOfGlitch == 10 then
  7009. Taunt()
  7010. elseif k == "c" and attack == false and ModeOfGlitch == 10 then
  7011. Shell()
  7012. elseif k == "v" and attack == false and ModeOfGlitch == 10 then
  7013. ExplosiveLightBall()
  7014. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  7015. attackone()
  7016. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  7017. UniversalCollapse()
  7018. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  7019. FallenOrbs()
  7020. elseif k == "c" and attack == false and ModeOfGlitch == 8889 then
  7021. FallenOrbs()
  7022. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  7023. EquinoxOrbs()
  7024. elseif k == "z" and attack == false and ModeOfGlitch == 9999999921111 then
  7025. EndGROUND()
  7026. elseif k == "x" and attack == false and ModeOfGlitch == 9999999921111 then
  7027. StarDivision()
  7028. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  7029. FallenOrbs()
  7030. end
  7031. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  7032. FallenDEMISE()
  7033. end
  7034. if k == "x" and attack == false and ModeOfGlitch == 1 then
  7035. EndGROUND()
  7036. end
  7037. end)
  7038.  
  7039. --[[coroutine.resume(coroutine.create(function()
  7040. while true do
  7041. swait(2)
  7042. if chaosmode == true then
  7043. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7044. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7045. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7046. RecolorTextAndRename("TRUE HYPERION",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  7047. for i, v in pairs(mw1:GetChildren()) do
  7048. if v:IsA("Part") then
  7049. v.Transparency = 0.75
  7050. v.BrickColor = BrickColor.random()
  7051. v.Material = "Neon"
  7052. end
  7053. end
  7054. for i, v in pairs(m2:GetChildren()) do
  7055. if v:IsA("Part") then
  7056. v.BrickColor = BrickColor.random()
  7057. v.Material = "Neon"
  7058. end
  7059. end
  7060. end
  7061. end
  7062. end))]]--
  7063. Humanoid.Name = "STARGLITCHER"
  7064. Humanoid.MaxHealth = math.huge
  7065. Humanoid.Health = math.huge
  7066. Instance.new("ForceField",char).Visible = false
  7067.  
  7068. local bguis = Instance.new("BillboardGui",tors)
  7069. bguis.Size = UDim2.new(25, 0, 25, 0)
  7070. local imgca = Instance.new("ImageLabel",bguis)
  7071. imgca.BackgroundTransparency = 1
  7072. imgca.ImageTransparency = 1
  7073. imgca.Size = UDim2.new(1,0,1,0)
  7074. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  7075. imgca.ImageColor3 = Color3.new(0,0,0)
  7076.  
  7077. idleanim=.4
  7078. while true do
  7079. if mutedtog == false then
  7080. kan.Volume = currentVol
  7081. elseif mutedtog == true then
  7082. kan.Volume = 0
  7083. end
  7084. kan.PlaybackSpeed = currentPitch
  7085. kan.Pitch = currentPitch
  7086. kan.SoundId = currentThemePlaying
  7087. kan.Looped = true
  7088. kan.Parent = char
  7089. kan:Resume()
  7090. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  7091. imgca.ImageTransparency = 1
  7092. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  7093. imgca.ImageColor3 = MAINRUINCOLOR.Color
  7094. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  7095. end
  7096. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  7097. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  7098. coroutine.resume(coroutine.create(function()
  7099. if chaosmode == true then
  7100. for i, v in pairs(mw1:GetChildren()) do
  7101. if v:IsA("Part") then
  7102. v.Transparency = 0
  7103. v.BrickColor = BrickColor.random()
  7104. v.Material = "Neon"
  7105. end
  7106. end
  7107. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7108. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7109. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7110. RecolorTextAndRename("TRUE HYPERION",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  7111. end
  7112. end))
  7113. if chaosmode == false then
  7114. modet.Position = UDim2.new(0,0,0,0)
  7115. modet.Rotation = -5 * math.cos(sine / 32)
  7116. techc.Rotation = techc.Rotation + 1
  7117. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  7118. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  7119. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  7120. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  7121. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  7122. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  7123. else
  7124. techc.Rotation = techc.Rotation + 1
  7125. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  7126. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  7127. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  7128. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  7129. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  7130. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  7131. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  7132. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  7133. end
  7134. CameraManager()
  7135. swait()
  7136. 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)
  7137. 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)
  7138. 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)
  7139. 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)
  7140. 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)
  7141. 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)
  7142. 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)
  7143. 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)
  7144. 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)
  7145. 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)
  7146. 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)
  7147. 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)
  7148. sine = sine + change
  7149. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  7150. local velderp=RootPart.Velocity.y
  7151. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  7152. if equipped==true or equipped==false then
  7153. if attack==false then
  7154. idle=idle+1
  7155. else
  7156. idle=0
  7157. end
  7158. if idle>=500 then
  7159. if attack==false then
  7160. --Sheath()
  7161. end
  7162. end
  7163. if RootPart.Velocity.y > 1 and hitfloor==nil then
  7164. Anim="Jump"
  7165. if attack==false then
  7166. 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)
  7167. 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)
  7168. 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)
  7169. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  7170. 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)
  7171. 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)
  7172. end
  7173. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  7174. Anim="Fall"
  7175. if attack==false then
  7176. 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)
  7177. 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)
  7178. 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)
  7179. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  7180. 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)
  7181. 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)
  7182. end
  7183. elseif torvel<1 and hitfloor~=nil then
  7184. Anim="Idle"
  7185. if attack==false then
  7186. if ModeOfGlitch == 1 then
  7187. local snap = math.random(1,10)
  7188. if snap == 1 then
  7189. 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)
  7190. end
  7191. 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)
  7192. 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)
  7193. 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)
  7194. 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)
  7195. 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)
  7196. 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)
  7197. elseif ModeOfGlitch == 2 then
  7198. 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)
  7199. 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)
  7200. 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)
  7201. 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)
  7202. 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)
  7203. 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)
  7204. elseif ModeOfGlitch == 3 then
  7205. local snap = math.random(1,32)
  7206. if snap == 1 then
  7207. 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)
  7208. end
  7209. 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)
  7210. 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)
  7211. 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)
  7212. 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)
  7213. 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)
  7214. 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)
  7215. elseif ModeOfGlitch == 4 then
  7216. local snap = math.random(1,5)
  7217. if snap == 1 then
  7218. 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)
  7219. 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)
  7220. 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)
  7221. end
  7222. 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)
  7223. 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)
  7224. 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)
  7225. 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)
  7226. 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)
  7227. 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)
  7228. elseif ModeOfGlitch == 5 then
  7229. 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)
  7230. 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)
  7231. 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)
  7232. 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)
  7233. 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)
  7234. 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)
  7235. elseif ModeOfGlitch == 6 then
  7236. 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)
  7237. 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)
  7238. 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)
  7239. 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)
  7240. 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)
  7241. 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)
  7242. elseif ModeOfGlitch == 8 then
  7243. 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)
  7244. 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)
  7245. 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)
  7246. 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)
  7247. 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)
  7248. 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)
  7249. elseif ModeOfGlitch == 9 then
  7250. 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)
  7251. 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)
  7252. 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)
  7253. 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)
  7254. 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)
  7255. 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)
  7256. elseif ModeOfGlitch == 10 then
  7257. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  7258. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  7259. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  7260. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7261. 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)
  7262. 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)
  7263. elseif ModeOfGlitch == 8889 then
  7264. 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)
  7265. 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)
  7266. 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)
  7267. 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)
  7268. 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)
  7269. 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)
  7270. elseif ModeOfGlitch == 1264532489 then
  7271. 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)
  7272. 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)
  7273. 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)
  7274. 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)
  7275. 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)
  7276. 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)
  7277. elseif ModeOfGlitch == 9999999921111 then
  7278. 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)
  7279. 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)
  7280. 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)
  7281. 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)
  7282. 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)
  7283. 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)
  7284. elseif ModeOfGlitch == 4367677813 then
  7285. 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)
  7286. 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)
  7287. 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)
  7288. 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)
  7289. 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)
  7290. 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)
  7291. elseif ModeOfGlitch == 55469696922 then
  7292. 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)
  7293. 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)
  7294. 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)
  7295. 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)
  7296. 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)
  7297. 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)
  7298. elseif ModeOfGlitch == 999999999556 then
  7299. 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)
  7300. 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)
  7301. 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)
  7302. 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)
  7303. 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)
  7304. 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)
  7305. end
  7306. end
  7307. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  7308. Anim="Walk"
  7309. if attack==false then
  7310. 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)
  7311. 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)
  7312. 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)
  7313. 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)
  7314. 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)
  7315. 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)
  7316. end
  7317. elseif torvel>=22 and hitfloor~=nil then
  7318. Anim="Run"
  7319. if attack==false then
  7320. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 8889 and ModeofGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 10 then
  7321. 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)
  7322. 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)
  7323. 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)
  7324. 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)
  7325. 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)
  7326. 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)
  7327. if ModeOfGlitch == 9 then
  7328. --
  7329. end
  7330. elseif ModeOfGlitch == 6 or ModeOfGlitch == 10 or ModeofGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  7331. 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)
  7332. 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)
  7333. 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)
  7334. 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)
  7335. 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)
  7336. 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)
  7337. end
  7338. end
  7339. end
  7340. end
  7341. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement