Advertisement
ZaGodlyNoob

SGR V2.7.1

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