Advertisement
ZaGodlyNoob

Hyperion Glitcher V1.5.2 (TEST)

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