Advertisement
artucox7

Star Glicher Rework

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