Advertisement
ZaGodlyNoob

Hyperion Glitcher V1.5.8

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