Advertisement
ZaGodlyNoob

Hyperion Glitcher (TEST)

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