Advertisement
Darkraiii7

Untitled

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