Advertisement
ZaGodlyNoob

SGR V2.5

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