Advertisement
memberhero

SGR FE LAG FREE

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