Advertisement
Diamond_Nicholas

star glitcher

Apr 22nd, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 353.06 KB | None | 0 0
  1. warn("Edit by card100rac4")
  2. warn("Made for shadowthegamer6789")
  3. --TODO: add comments or something idk
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player = owner
  6. local Mouse,mouse,UserInputService,ContextActionService
  7. do
  8. script.Parent = Player.Character
  9. local CAS = {Actions={}}
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12. Event.Parent = Player.Character
  13. local fakeEvent = function()
  14. local t = {_fakeEvent=true}
  15. t.Connect = function(self,f)self.Function=f end
  16. t.connect = t.Connect
  17. return t
  18. end
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. function CAS:BindAction(name,fun,touch,...)
  22. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  23. end
  24. function CAS:UnbindAction(name)
  25. CAS.Actions[name] = nil
  26. end
  27. local function te(self,ev,...)
  28. local t = m[ev]
  29. if t and t._fakeEvent and t.Function then
  30. t.Function(...)
  31. end
  32. end
  33. m.TrigEvent = te
  34. UIS.TrigEvent = te
  35. Event.OnServerEvent:Connect(function(plr,io)
  36. if plr~=Player then return end
  37. if io.isMouse then
  38. m.Target = io.Target
  39. m.Hit = io.Hit
  40. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  41. if io.UserInputState == Enum.UserInputState.Begin then
  42. m:TrigEvent("Button1Down")
  43. else
  44. m:TrigEvent("Button1Up")
  45. end
  46. else
  47. for n,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. if io.UserInputState == Enum.UserInputState.Begin then
  55. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  56. UIS:TrigEvent("InputBegan",io,false)
  57. else
  58. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent("InputEnded",io,false)
  60. end
  61. end
  62. end)
  63. NLS([==[
  64. local Player = game:GetService("Players").LocalPlayer
  65.  
  66. local Char = Player.Character
  67. local Event = Char:WaitForChild("UserInput_Event")
  68.  
  69. local UIS = game:GetService("UserInputService")
  70.  
  71. local input = function(io,a)
  72. if a then return end
  73. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  74. Event:FireServer(io)
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78. local Changed = false
  79. local Mouse = Player:GetMouse()
  80. local h,t = Mouse.Hit,Mouse.Target
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  84. h,t=Mouse.Hit,Mouse.Target
  85. end
  86. end
  87. ]==],Player.Character)
  88. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  89. end
  90.  
  91.  
  92. wait(0.5)
  93.  
  94. warn([[SG AWAKEN Loaded.
  95. The super switcher.
  96. Velnorum is one of the first wielders.
  97.  
  98. Created, Reworked by NoobyGames12 and converted by Helkern
  99. ]])
  100.  
  101.  
  102. ------------- ORIGINAL WIELDER OC: Velnorum
  103. print([[Icons:
  104. ! = New
  105. ? = Spoilers
  106. * = Exclusivity
  107. C = Changes
  108.  
  109. ]])
  110. warn([[V 4.1 Update Log:
  111. !C? - Mostly about 7-9 main modes added.
  112. ! - Non-canon [N] modes are added from few modes:
  113. > Mayhem: NANO
  114. > Purity: BRIGHTNESS
  115. > Chaos: CRAZED
  116. > Divinity: FALLENEX
  117. > Destiny: OMEGA
  118. ! - Added back CALAMITY and INFESTATION.
  119. C - Two main click attacks changed.
  120. !C - Moves are added back, with severe change and difference.
  121. C - Some modes got renamed because fat filter
  122. C - Toned down the effects to be compatible with fe without strong lag.]])
  123. --- its obs smooth af do not touch
  124. ---- Sources and functions might be taken from others
  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://395351949"
  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 = "Shadow Star"
  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 = "Shadow:"
  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("Royal purple").Color
  752. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  753. ned.TextScaled = true
  754. ned.TextStrokeTransparency = 0
  755. ned.Text = "STAR"
  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('Royal purple').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('Royal purple').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('Royal purple').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,
  976. 5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  977. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  978. CreateMesh(wed,"Wedge",0.05,3,0.5)
  979. CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  980.  
  981. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  982. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  983. local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  984.  
  985. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  986. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  987. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  988. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  989. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  990. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  991. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  992. CreateMesh(wed,"Wedge",0.05,0.5,3)
  993. CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  994. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  995. CreateMesh(wed,"Wedge",0.05,3,0.5)
  996. CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  997.  
  998. -- Right wing.
  999.  
  1000. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1001. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1002. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1003.  
  1004. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1005. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1006. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1007. A0 = Instance.new('Attachment',wed)
  1008. A0.Position = vt(0,0.25,0.25)
  1009. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1010. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1011. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1012. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1013. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1014. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1015. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1016. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1017. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1018. A1 = Instance.new('Attachment',wed)
  1019. A1.Position = vt(0,2,0.25)
  1020.  
  1021. tr1 = Instance.new('Trail',wed)
  1022. tr1.Attachment0 = A1
  1023. tr1.Attachment1 = A0
  1024. tr1.Texture = "rbxassetid://2108945559"
  1025. tr1.LightEmission = 1
  1026. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1027. tr1.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  1028. tr1.Lifetime = 0.6
  1029.  
  1030. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1031. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1032. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1033.  
  1034. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1035. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1036. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1037. A0 = Instance.new('Attachment',wed)
  1038. A0.Position = vt(0,0.25,0.25)
  1039. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1040. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1041. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1042. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1043. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1044. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1045. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1046. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1047. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1048. A1 = Instance.new('Attachment',wed)
  1049. A1.Position = vt(0,2,0.25)
  1050.  
  1051. tr2 = Instance.new('Trail',wed)
  1052. tr2.Attachment0 = A1
  1053. tr2.Attachment1 = A0
  1054. tr2.Texture = "rbxassetid://2108945559"
  1055. tr2.LightEmission = 1
  1056. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1057. tr2.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  1058. tr2.Lifetime = 0.6
  1059.  
  1060. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1061. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1062. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1063.  
  1064. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1065. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1066. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1067. A0 = Instance.new('Attachment',wed)
  1068. A0.Position = vt(0,0.25,0.25)
  1069. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1070. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1071. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1072. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1073. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1074. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1075. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1076. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1077. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1078. A1 = Instance.new('Attachment',wed)
  1079. A1.Position = vt(0,2,0.25)
  1080.  
  1081. tr3 = Instance.new('Trail',wed)
  1082. tr3.Attachment0 = A1
  1083. tr3.Attachment1 = A0
  1084. tr3.Texture = "rbxassetid://2108945559"
  1085. tr3.LightEmission = 1
  1086. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1087. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1088. tr3.Lifetime = 0.6
  1089.  
  1090.  
  1091. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1092. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1093. local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1094.  
  1095. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1096. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1097. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1098. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1099. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1100. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1101. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1102. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1103. CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1104. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1105. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1106. CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1107.  
  1108. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1109. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1110. local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1111.  
  1112. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1113. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1114. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1115. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1116. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1117. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1118. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1119. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1120. CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1121. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1122. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1123. CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1124.  
  1125. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1126. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1127. local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1128.  
  1129. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1130. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1131. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1132. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1133. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1134. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1135. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1136. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1137. CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1138. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1139. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1140. CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1141.  
  1142. ---- HERES THE RING
  1143.  
  1144.  
  1145. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1146. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1147. CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1148. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1149. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1150. CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1151. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1152. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1153. CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1154.  
  1155.  
  1156. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1157. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1158. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1159.  
  1160. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1161. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1162. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1163.  
  1164.  
  1165.  
  1166. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1167. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1168. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1169.  
  1170. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1171. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1172. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1173.  
  1174. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1175. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1176. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1177.  
  1178. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1179. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1180. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1181. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1182. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1183. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1184.  
  1185. --- second ring
  1186.  
  1187. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1188. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1189. CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1190. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1191. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1192. CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1193. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1194. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1195. CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1196.  
  1197. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1198. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1199. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1200.  
  1201. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1202. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1203. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1204.  
  1205.  
  1206.  
  1207. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1208. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1209. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1210.  
  1211. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1212. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1213. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1214.  
  1215. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1216. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1217. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1218.  
  1219. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1220. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1221. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1222. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1223. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1224. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  1225.  
  1226.  
  1227.  
  1228. for i, v in pairs(m:GetChildren()) do
  1229. if v:IsA("Part") then
  1230. v.BrickColor = BrickColor.new("Really black")
  1231. v.Material = "Glass"
  1232. end
  1233. end
  1234. for i, v in pairs(m2:GetChildren()) do
  1235. if v:IsA("Part") then
  1236. v.BrickColor = BrickColor.new("Crimson")
  1237. v.Material = "Granite"
  1238. end
  1239. end
  1240. for i, v in pairs(m3:GetChildren()) do
  1241. if v:IsA("Part") then
  1242. v.BrickColor = BrickColor.new("Really red")
  1243. v.Material = "Neon"
  1244. end
  1245. end
  1246. for i, v in pairs(mw2:GetChildren()) do
  1247. if v:IsA("Part") then
  1248. v.BrickColor = BrickColor.new("Royal purple")
  1249. v.Material = "Neon"
  1250. end
  1251. end
  1252. for i, v in pairs(mw1:GetChildren()) do
  1253. if v:IsA("Part") then
  1254. v.Transparency = 0
  1255. v.BrickColor = BrickColor.new("Royal purple")
  1256. v.Material = "Neon"
  1257. end
  1258. end
  1259. for i, v in pairs(extrawingmod1:GetChildren()) do
  1260. if v:IsA("Part") then
  1261. v.Transparency = 0.75
  1262. v.BrickColor = BrickColor.new("Royal pruple")
  1263. v.Material = "Neon"
  1264. end
  1265. end
  1266. for i, v in pairs(extrawingmod2:GetChildren()) do
  1267. if v:IsA("Part") then
  1268. v.Transparency = 0.75
  1269. v.BrickColor = BrickColor.new("Royal pruple")
  1270. v.Material = "Neon"
  1271. end
  1272. end
  1273. local MAINRUINCOLOR = BrickColor.new("Really red")
  1274. ------
  1275.  
  1276.  
  1277. function RemoveOutlines(part)
  1278. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1279. end
  1280. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1281. local Part = Create("Part")({
  1282. Parent = Parent,
  1283. Reflectance = Reflectance,
  1284. Transparency = Transparency,
  1285. CanCollide = false,
  1286. Locked = true,
  1287. BrickColor = BrickColor.new(tostring(BColor)),
  1288. Name = Name,
  1289. Size = Size,
  1290. Material = Material
  1291. })
  1292. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1293. RemoveOutlines(Part)
  1294. return Part
  1295. end
  1296. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1297. local Msh = Create(Mesh)({
  1298. Parent = Part,
  1299. Offset = OffSet,
  1300. Scale = Scale
  1301. })
  1302. if Mesh == "SpecialMesh" then
  1303. Msh.MeshType = MeshType
  1304. Msh.MeshId = MeshId
  1305. end
  1306. return Msh
  1307. end
  1308. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1309. local Weld = Create("Weld")({
  1310. Parent = Parent,
  1311. Part0 = Part0,
  1312. Part1 = Part1,
  1313. C0 = C0,
  1314. C1 = C1
  1315. })
  1316. return Weld
  1317. end
  1318.  
  1319. Character=Player.Character
  1320. PlayerGui=Player.PlayerGui
  1321. Backpack=Player.Backpack
  1322. Torso=Character.Torso
  1323. Head=Character.Head
  1324. Humanoid=Character.Humanoid
  1325. m=Instance.new('Model',Character)
  1326. LeftArm=Character["Left Arm"]
  1327. LeftLeg=Character["Left Leg"]
  1328. RightArm=Character["Right Arm"]
  1329. RightLeg=Character["Right Leg"]
  1330. LS=Torso["Left Shoulder"]
  1331. LH=Torso["Left Hip"]
  1332. RS=Torso["Right Shoulder"]
  1333. RH=Torso["Right Hip"]
  1334. Face = Head.face
  1335. Neck=Torso.Neck
  1336. it=Instance.new
  1337. attacktype=1
  1338. vt=Vector3.new
  1339. cf=CFrame.new
  1340. euler=CFrame.fromEulerAnglesXYZ
  1341. angles=CFrame.Angles
  1342. cloaked=false
  1343. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1344. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1345. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1346. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1347. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1348. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1349. RootPart=Character.HumanoidRootPart
  1350. RootJoint=RootPart.RootJoint
  1351. RootCF=euler(-1.57,0,3.14)
  1352. attack = false
  1353. attackdebounce = false
  1354. deb=false
  1355. equipped=true
  1356. hand=false
  1357. combo=0
  1358. mana=0
  1359. trispeed=.2
  1360. attackmode='none'
  1361. local idle=0
  1362. local Anim="Idle"
  1363. local Effects={}
  1364. local gun=false
  1365. local shoot=false
  1366. local sine = 0
  1367. local change = 1
  1368.  
  1369. function RecolorTextAndRename(name,col1,col2,font)
  1370. modet.TextStrokeColor3 = col2
  1371. modet.TextColor3 = col1
  1372. modet.Font = font
  1373. modet.Text = name
  1374. techc.ImageColor3 = col2
  1375. circl.ImageColor3 = col2
  1376. circl2.ImageColor3 = col1
  1377. imgl2.ImageColor3 = col1
  1378. imgl2b.ImageColor3 = col2
  1379. ned.Text = name
  1380. ned.TextColor3 = col1
  1381. ned.TextStrokeColor3 = col2
  1382. end
  1383. --save shoulders
  1384. RSH, LSH=nil, nil
  1385. --welds
  1386. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1387. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1388. LH=Torso["Left Hip"]
  1389. RH=Torso["Right Hip"]
  1390. TorsoColor=Torso.BrickColor
  1391. function NoOutline(Part)
  1392. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1393. end
  1394. ch=Character
  1395. RSH=ch.Torso["Right Shoulder"]
  1396. LSH=ch.Torso["Left Shoulder"]
  1397. --
  1398. RSH.Parent=nil
  1399. LSH.Parent=nil
  1400. --
  1401. RW.Name="Right Shoulder"
  1402. RW.Part0=ch.Torso
  1403. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1404. RW.C1=cf(0, 0.5, 0)
  1405. RW.Part1=ch["Right Arm"]
  1406. RW.Parent=ch.Torso
  1407. --
  1408. LW.Name="Left Shoulder"
  1409. LW.Part0=ch.Torso
  1410. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1411. LW.C1=cf(0, 0.5, 0)
  1412. LW.Part1=ch["Left Arm"]
  1413. LW.Parent=ch.Torso
  1414.  
  1415. local Stats=Instance.new("BoolValue")
  1416. Stats.Name="Stats"
  1417. Stats.Parent=Character
  1418. local Atk=Instance.new("NumberValue")
  1419. Atk.Name="Damage"
  1420. Atk.Parent=Stats
  1421. Atk.Value=1
  1422. local Def=Instance.new("NumberValue")
  1423. Def.Name="Defense"
  1424. Def.Parent=Stats
  1425. Def.Value=1
  1426. local Speed=Instance.new("NumberValue")
  1427. Speed.Name="Speed"
  1428. Speed.Parent=Stats
  1429. Speed.Value=1
  1430. local Mvmt=Instance.new("NumberValue")
  1431. Mvmt.Name="Movement"
  1432. Mvmt.Parent=Stats
  1433. Mvmt.Value=1
  1434.  
  1435. local donum=0
  1436.  
  1437.  
  1438. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1439. local fp=it("Part")
  1440. fp.formFactor=formfactor
  1441. fp.Parent=parent
  1442. fp.Reflectance=reflectance
  1443. fp.Transparency=transparency
  1444. fp.CanCollide=false
  1445. fp.Locked=true
  1446. fp.BrickColor=brickcolor
  1447. fp.Name=name
  1448. fp.Size=size
  1449. fp.Position=Torso.Position
  1450. NoOutline(fp)
  1451. fp.Material="SmoothPlastic"
  1452. fp:BreakJoints()
  1453. return fp
  1454. end
  1455.  
  1456. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1457. local mesh=it(Mesh)
  1458. mesh.Parent=part
  1459. if Mesh=="SpecialMesh" then
  1460. mesh.MeshType=meshtype
  1461. if meshid~="nil" then
  1462. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1463. end
  1464. end
  1465. mesh.Offset=offset
  1466. mesh.Scale=scale
  1467. return mesh
  1468. end
  1469.  
  1470. function weld(parent,part0,part1,c0)
  1471. local weld=it("Weld")
  1472. weld.Parent=parent
  1473. weld.Part0=part0
  1474. weld.Part1=part1
  1475. weld.C0=c0
  1476. return weld
  1477. end
  1478.  
  1479. local Color1=Torso.BrickColor
  1480.  
  1481. local bodvel=Instance.new("BodyVelocity")
  1482. local bg=Instance.new("BodyGyro")
  1483.  
  1484. --------- SazEreno's Artificial HB --------------
  1485. ArtificialHB = Instance.new("BindableEvent", script)
  1486. ArtificialHB.Name = "ArtificialHB"
  1487.  
  1488. script:WaitForChild("ArtificialHB")
  1489. Frame_Speed = 1 / 60
  1490. frame = Frame_Speed
  1491. tf = 0
  1492. allowframeloss = false
  1493. tossremainder = false
  1494. lastframe = tick()
  1495. script.ArtificialHB:Fire()
  1496.  
  1497. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1498. tf = tf + s
  1499. if tf >= frame then
  1500. if allowframeloss then
  1501. script.ArtificialHB:Fire()
  1502. lastframe = tick()
  1503. else
  1504. for i = 1, math.floor(tf / frame) do
  1505. script.ArtificialHB:Fire()
  1506. end
  1507. lastframe = tick()
  1508. end
  1509. if tossremainder then
  1510. tf = 0
  1511. else
  1512. tf = tf - frame * math.floor(tf / frame)
  1513. end
  1514. end
  1515. end)
  1516.  
  1517. ------------------
  1518. function swait(num)
  1519. function swait(num)
  1520. if num==0 or num==nil then
  1521. game:service'RunService'.Stepped:wait(0)
  1522. else
  1523. for i=0,num do
  1524. game:service'RunService'.Stepped:wait(0)
  1525. end
  1526. end
  1527. end
  1528. end
  1529.  
  1530. -------- RAINBOW LEAVE IT TO ME
  1531. local r = 255
  1532. local g = 0
  1533. local b = 0
  1534. coroutine.resume(coroutine.create(function()
  1535. while wait() do
  1536. for i = 0, 254/5 do
  1537. swait()
  1538. g = g + 5
  1539. end
  1540. for i = 0, 254/5 do
  1541. swait()
  1542. r = r - 5
  1543. end
  1544. for i = 0, 254/5 do
  1545. swait()
  1546. b = b + 5
  1547. end
  1548. for i = 0, 254/5 do
  1549. swait()
  1550. g = g - 5
  1551. end
  1552. for i = 0, 254/5 do
  1553. swait()
  1554. r = r + 5
  1555. end
  1556. for i = 0, 254/5 do
  1557. swait()
  1558. b = b - 5
  1559. end
  1560. end
  1561. end))
  1562.  
  1563.  
  1564. so = function(id,par,vol,pit)
  1565. coroutine.resume(coroutine.create(function()
  1566. local sou = Instance.new("Sound",par or workspace)
  1567. sou.Volume=vol
  1568. sou.Pitch=pit or 1
  1569. sou.SoundId=id
  1570. swait()
  1571. sou:play()
  1572. game:GetService("Debris"):AddItem(sou,6)
  1573. end))
  1574. end
  1575.  
  1576. function clerp(a,b,t)
  1577. local qa = {QuaternionFromCFrame(a)}
  1578. local qb = {QuaternionFromCFrame(b)}
  1579. local ax, ay, az = a.x, a.y, a.z
  1580. local bx, by, bz = b.x, b.y, b.z
  1581. local _t = 1-t
  1582. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1583. end
  1584.  
  1585. function QuaternionFromCFrame(cf)
  1586. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1587. local trace = m00 + m11 + m22
  1588. if trace > 0 then
  1589. local s = math.sqrt(1 + trace)
  1590. local recip = 0.5/s
  1591. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1592. else
  1593. local i = 0
  1594. if m11 > m00 then
  1595. i = 1
  1596. end
  1597. if m22 > (i == 0 and m00 or m11) then
  1598. i = 2
  1599. end
  1600. if i == 0 then
  1601. local s = math.sqrt(m00-m11-m22+1)
  1602. local recip = 0.5/s
  1603. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1604. elseif i == 1 then
  1605. local s = math.sqrt(m11-m22-m00+1)
  1606. local recip = 0.5/s
  1607. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1608. elseif i == 2 then
  1609. local s = math.sqrt(m22-m00-m11+1)
  1610. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1611. end
  1612. end
  1613. end
  1614.  
  1615. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1616. local xs, ys, zs = x + x, y + y, z + z
  1617. local wx, wy, wz = w*xs, w*ys, w*zs
  1618. local xx = x*xs
  1619. local xy = x*ys
  1620. local xz = x*zs
  1621. local yy = y*ys
  1622. local yz = y*zs
  1623. local zz = z*zs
  1624. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1625. end
  1626.  
  1627. function QuaternionSlerp(a, b, t)
  1628. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1629. local startInterp, finishInterp;
  1630. if cosTheta >= 0.0001 then
  1631. if (1 - cosTheta) > 0.0001 then
  1632. local theta = math.acos(cosTheta)
  1633. local invSinTheta = 1/math.sin(theta)
  1634. startInterp = math.sin((1-t)*theta)*invSinTheta
  1635. finishInterp = math.sin(t*theta)*invSinTheta
  1636. else
  1637. startInterp = 1-t
  1638. finishInterp = t
  1639. end
  1640. else
  1641. if (1+cosTheta) > 0.0001 then
  1642. local theta = math.acos(-cosTheta)
  1643. local invSinTheta = 1/math.sin(theta)
  1644. startInterp = math.sin((t-1)*theta)*invSinTheta
  1645. finishInterp = math.sin(t*theta)*invSinTheta
  1646. else
  1647. startInterp = t-1
  1648. finishInterp = t
  1649. end
  1650. end
  1651. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1652. end
  1653.  
  1654. local function CFrameFromTopBack(at, top, back)
  1655. local right = top:Cross(back)
  1656. return CFrame.new(at.x, at.y, at.z,
  1657. right.x, top.x, back.x,
  1658. right.y, top.y, back.y,
  1659. right.z, top.z, back.z)
  1660. end
  1661.  
  1662. function Triangle(a, b, c)
  1663. local edg1 = (c-a):Dot((b-a).unit)
  1664. local edg2 = (a-b):Dot((c-b).unit)
  1665. local edg3 = (b-c):Dot((a-c).unit)
  1666. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1667. a, b, c = a, b, c
  1668. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1669. a, b, c = b, c, a
  1670. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1671. a, b, c = c, a, b
  1672. else
  1673. assert(false, "unreachable")
  1674. end
  1675.  
  1676. local len1 = (c-a):Dot((b-a).unit)
  1677. local len2 = (b-a).magnitude - len1
  1678. local width = (a + (b-a).unit*len1 - c).magnitude
  1679.  
  1680. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1681.  
  1682. local list = {}
  1683.  
  1684. if len1 > 0.01 then
  1685. local w1 = Instance.new('WedgePart', m)
  1686. game:GetService("Debris"):AddItem(w1,5)
  1687. w1.Material = "SmoothPlastic"
  1688. w1.FormFactor = 'Custom'
  1689. w1.BrickColor = BrickColor.new("Really red")
  1690. w1.Transparency = 0
  1691. w1.Reflectance = 0
  1692. w1.Material = "SmoothPlastic"
  1693. w1.CanCollide = false
  1694. local l1 = Instance.new("PointLight",w1)
  1695. l1.Color = Color3.new(170,0,0)
  1696. NoOutline(w1)
  1697. local sz = Vector3.new(0.2, width, len1)
  1698. w1.Size = sz
  1699. local sp = Instance.new("SpecialMesh",w1)
  1700. sp.MeshType = "Wedge"
  1701. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1702. w1:BreakJoints()
  1703. w1.Anchored = true
  1704. w1.Parent = workspace
  1705. w1.Transparency = 0.7
  1706. table.insert(Effects,{w1,"Disappear",.01})
  1707. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1708. table.insert(list,w1)
  1709. end
  1710.  
  1711. if len2 > 0.01 then
  1712. local w2 = Instance.new('WedgePart', m)
  1713. game:GetService("Debris"):AddItem(w2,5)
  1714. w2.Material = "SmoothPlastic"
  1715. w2.FormFactor = 'Custom'
  1716. w2.BrickColor = BrickColor.new("Really red")
  1717. w2.Transparency = 0
  1718. w2.Reflectance = 0
  1719. w2.Material = "SmoothPlastic"
  1720. w2.CanCollide = false
  1721. local l2 = Instance.new("PointLight",w2)
  1722. l2.Color = Color3.new(170,0,0)
  1723. NoOutline(w2)
  1724. local sz = Vector3.new(0.2, width, len2)
  1725. w2.Size = sz
  1726. local sp = Instance.new("SpecialMesh",w2)
  1727. sp.MeshType = "Wedge"
  1728. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1729. w2:BreakJoints()
  1730. w2.Anchored = true
  1731. w2.Parent = workspace
  1732. w2.Transparency = 0.7
  1733. table.insert(Effects,{w2,"Disappear",.01})
  1734. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1735. table.insert(list,w2)
  1736. end
  1737. return unpack(list)
  1738. end
  1739.  
  1740.  
  1741. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1742. if hit.Parent == nil then
  1743. return
  1744. end
  1745. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1746. for _, v in pairs(hit.Parent:children()) do
  1747. if v:IsA("Humanoid") then
  1748. h = v
  1749. end
  1750. end
  1751. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1752. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1753. return
  1754. end
  1755. local c = Create("ObjectValue")({
  1756. Name = "creator",
  1757. Value = game:GetService("Players").LocalPlayer,
  1758. Parent = h
  1759. })
  1760. game:GetService("Debris"):AddItem(c, 0.5)
  1761. if HitSound ~= nil and HitPitch ~= nil then
  1762. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1763. end
  1764. local Damage = math.random(minim, maxim)
  1765. local blocked = false
  1766. local block = hit.Parent:findFirstChild("Block")
  1767. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1768. blocked = true
  1769. block.Value = block.Value - 1
  1770. print(block.Value)
  1771. end
  1772. if blocked == false then
  1773. HitHealth = h.Health
  1774. h.MaxHealth = 100
  1775. h.Health = h.Health - Damage
  1776. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1777. print("gained kill")
  1778. dmg(h.Parent)
  1779. end
  1780. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1781. else
  1782. h.Health = h.Health - Damage / 2
  1783. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1784. end
  1785. if Type == "Knockdown" then
  1786. local hum = hit.Parent.Humanoid
  1787. hum.PlatformStand = true
  1788. coroutine.resume(coroutine.create(function(HHumanoid)
  1789. swait(1)
  1790. HHumanoid.PlatformStand = false
  1791. end), hum)
  1792. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1793. local bodvol = Create("BodyVelocity")({
  1794. velocity = angle * knockback,
  1795. P = 5000,
  1796. maxForce = Vector3.new(8000, 8000, 8000),
  1797. Parent = hit
  1798. })
  1799. local rl = Create("BodyAngularVelocity")({
  1800. P = 3000,
  1801. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1802. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1803. Parent = hit
  1804. })
  1805. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1806. game:GetService("Debris"):AddItem(rl, 0.5)
  1807. elseif Type == "Normal" then
  1808. local vp = Create("BodyVelocity")({
  1809. P = 500,
  1810. maxForce = Vector3.new(math.huge, 0, math.huge),
  1811. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1812. })
  1813. if knockback > 0 then
  1814. vp.Parent = hit.Parent.Head
  1815. end
  1816. game:GetService("Debris"):AddItem(vp, 0.5)
  1817. elseif Type == "Up" then
  1818. local bodyVelocity = Create("BodyVelocity")({
  1819. velocity = Vector3.new(0, 20, 0),
  1820. P = 5000,
  1821. maxForce = Vector3.new(8000, 8000, 8000),
  1822. Parent = hit
  1823. })
  1824. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1825. local bodyVelocity = Create("BodyVelocity")({
  1826. velocity = Vector3.new(0, 20, 0),
  1827. P = 5000,
  1828. maxForce = Vector3.new(8000, 8000, 8000),
  1829. Parent = hit
  1830. })
  1831. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1832. elseif Type == "Leech" then
  1833. local hum = hit.Parent.Humanoid
  1834. if hum ~= nil then
  1835. for i = 0, 2 do
  1836. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1837. end
  1838. Humanoid.Health = Humanoid.Health + 10
  1839. end
  1840. elseif Type == "UpKnock" then
  1841. local hum = hit.Parent.Humanoid
  1842. hum.PlatformStand = true
  1843. if hum ~= nil then
  1844. hitr = true
  1845. end
  1846. coroutine.resume(coroutine.create(function(HHumanoid)
  1847. swait(5)
  1848. HHumanoid.PlatformStand = false
  1849. hitr = false
  1850. end), hum)
  1851. local bodyVelocity = Create("BodyVelocity")({
  1852. velocity = Vector3.new(0, 20, 0),
  1853. P = 5000,
  1854. maxForce = Vector3.new(8000, 8000, 8000),
  1855. Parent = hit
  1856. })
  1857. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1858. local bodyVelocity = Create("BodyVelocity")({
  1859. velocity = Vector3.new(0, 20, 0),
  1860. P = 5000,
  1861. maxForce = Vector3.new(8000, 8000, 8000),
  1862. Parent = hit
  1863. })
  1864. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1865. elseif Type == "Snare" then
  1866. local bp = Create("BodyPosition")({
  1867. P = 2000,
  1868. D = 100,
  1869. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1870. position = hit.Parent.Torso.Position,
  1871. Parent = hit.Parent.Torso
  1872. })
  1873. game:GetService("Debris"):AddItem(bp, 1)
  1874. elseif Type == "Slashnare" then
  1875. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1876. for i = 1, math.random(4, 5) do
  1877. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1878. end
  1879. local bp = Create("BodyPosition")({
  1880. P = 2000,
  1881. D = 100,
  1882. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1883. position = hit.Parent.Torso.Position,
  1884. Parent = hit.Parent.Torso
  1885. })
  1886. game:GetService("Debris"):AddItem(bp, 1)
  1887. elseif Type == "Spike" then
  1888. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1889. local bp = Create("BodyPosition")({
  1890. P = 2000,
  1891. D = 100,
  1892. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1893. position = hit.Parent.Torso.Position,
  1894. Parent = hit.Parent.Torso
  1895. })
  1896. game:GetService("Debris"):AddItem(bp, 1)
  1897. elseif Type == "Freeze" then
  1898. local BodPos = Create("BodyPosition")({
  1899. P = 50000,
  1900. D = 1000,
  1901. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1902. position = hit.Parent.Torso.Position,
  1903. Parent = hit.Parent.Torso
  1904. })
  1905. local BodGy = Create("BodyGyro")({
  1906. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1907. P = 20000,
  1908. Parent = hit.Parent.Torso,
  1909. cframe = hit.Parent.Torso.CFrame
  1910. })
  1911. hit.Parent.Torso.Anchored = true
  1912. coroutine.resume(coroutine.create(function(Part)
  1913. swait(1.5)
  1914. Part.Anchored = false
  1915. end), hit.Parent.Torso)
  1916. game:GetService("Debris"):AddItem(BodPos, 3)
  1917. game:GetService("Debris"):AddItem(BodGy, 3)
  1918. end
  1919. local debounce = Create("BoolValue")({
  1920. Name = "DebounceHit",
  1921. Parent = hit.Parent,
  1922. Value = true
  1923. })
  1924. game:GetService("Debris"):AddItem(debounce, Delay)
  1925. c = Instance.new("ObjectValue")
  1926. c.Name = "creator"
  1927. c.Value = Player
  1928. c.Parent = h
  1929. game:GetService("Debris"):AddItem(c, 0.5)
  1930. end
  1931. end
  1932. function ShowDamage(Pos, Text, Time, Color)
  1933. local Rate = 0.03333333333333333
  1934. local Pos = Pos or Vector3.new(0, 0, 0)
  1935. local Text = Text or ""
  1936. local Time = Time or 2
  1937. local Color = Color or Color3.new(1, 0, 1)
  1938. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1939. EffectPart.Anchored = true
  1940. local BillboardGui = Create("BillboardGui")({
  1941. Size = UDim2.new(3, 0, 3, 0),
  1942. Adornee = EffectPart,
  1943. Parent = EffectPart
  1944. })
  1945. local TextLabel = Create("TextLabel")({
  1946. BackgroundTransparency = 1,
  1947. Size = UDim2.new(1, 0, 1, 0),
  1948. Text = Text,
  1949. TextColor3 = Color,
  1950. TextScaled = true,
  1951. Font = Enum.Font.ArialBold,
  1952. Parent = BillboardGui
  1953. })
  1954. game.Debris:AddItem(EffectPart, Time + 0.1)
  1955. EffectPart.Parent = game:GetService("Workspace")
  1956. delay(0, function()
  1957. local Frames = Time / Rate
  1958. for Frame = 1, Frames do
  1959. wait(Rate)
  1960. local Percent = Frame / Frames
  1961. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1962. TextLabel.TextTransparency = Percent
  1963. end
  1964. if EffectPart and EffectPart.Parent then
  1965. EffectPart:Destroy()
  1966. end
  1967. end)
  1968. end
  1969. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1970. for _, c in pairs(workspace:children()) do
  1971. local hum = c:findFirstChildOfClass("Humanoid")
  1972. if hum ~= nil then
  1973. local head = c:findFirstChild("Head")
  1974. if head ~= nil then
  1975. local targ = head.Position - Part.Position
  1976. local mag = targ.magnitude
  1977. if magni >= mag and c.Name ~= Player.Name then
  1978. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1979. end
  1980. end
  1981. end
  1982. end
  1983. end
  1984.  
  1985. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1986. for _, c in pairs(workspace:children()) do
  1987. local hum = c:findFirstChild("Humanoid")
  1988. if hum ~= nil then
  1989. local head = c:findFirstChild("Torso")
  1990. if head ~= nil then
  1991. local targ = head.Position - Part.Position
  1992. local mag = targ.magnitude
  1993. if magni >= mag and c.Name ~= Player.Name then
  1994. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1995. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1996. end
  1997. end
  1998. end
  1999. end
  2000. end
  2001.  
  2002. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2003. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2004. end
  2005.  
  2006. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2007. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2008. prt.Anchored=true
  2009. prt.CFrame=cframe
  2010. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2011. --http://www.roblox.com/asset/?id=4770560
  2012. game:GetService("Debris"):AddItem(prt,2)
  2013. CF=prt.CFrame
  2014. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2015. for i=0,1,0.2 do
  2016. wait()
  2017. Part.CFrame=CF*cf(0,0,-0.4)
  2018. end
  2019. for i=0,1,delay do
  2020. wait()
  2021. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  2022. Mesh.Scale=Mesh.Scale
  2023. end
  2024. for i=0,1,0.1 do
  2025. wait()
  2026. Part.Transparency=i
  2027. end
  2028. Part.Parent=nil
  2029. end),prt,msh,CF)
  2030. end
  2031.  
  2032. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2033. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2034. prt.Anchored=true
  2035. prt.Material = "Neon"
  2036. prt.CFrame=cframe
  2037. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2038. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2039. game:GetService("Debris"):AddItem(prt,5)
  2040. coroutine.resume(coroutine.create(function(Part,Mesh)
  2041. for i=0,1,delay do
  2042. swait()
  2043. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2044. Part.Transparency=i
  2045. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2046. end
  2047. Part.Parent=nil
  2048. end),prt,msh)
  2049. end
  2050.  
  2051. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2052. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2053. prt.Anchored=true
  2054. prt.Material = "Neon"
  2055. prt.CFrame=cframe
  2056. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2057. game:GetService("Debris"):AddItem(prt,5)
  2058. coroutine.resume(coroutine.create(function(Part,Mesh)
  2059. local rtype = rottype
  2060. for i=0,1,delay do
  2061. swait()
  2062. if rtype == 1 then
  2063. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2064. elseif rtype == 2 then
  2065. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2066. end
  2067. Part.Transparency=i
  2068. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2069. end
  2070. Part.Parent=nil
  2071. end),prt,msh)
  2072. end
  2073.  
  2074. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2075. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2076. prt.Anchored=true
  2077. prt.CFrame=cframe
  2078. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2079. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2080. game:GetService("Debris"):AddItem(prt,5)
  2081. coroutine.resume(coroutine.create(function(Part,Mesh)
  2082. for i=0,1,delay do
  2083. wait()
  2084. Part.Transparency=i
  2085. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2086. end
  2087. Part.Parent=nil
  2088. end),prt,msh)
  2089. end
  2090.  
  2091. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2092. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2093. prt.Anchored=true
  2094. prt.Material = "Neon"
  2095. prt.CFrame=cframe
  2096. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2097. game:GetService("Debris"):AddItem(prt,5)
  2098. coroutine.resume(coroutine.create(function(Part,Mesh)
  2099. local rtype = rottype
  2100. for i=0,1,delay do
  2101. swait()
  2102. if rtype == 1 then
  2103. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2104. elseif rtype == 2 then
  2105. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2106. end
  2107. Part.Transparency=i
  2108. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2109. end
  2110. Part.Parent=nil
  2111. end),prt,msh)
  2112. end
  2113.  
  2114. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2115. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2116. prt.Anchored=true
  2117. prt.Material = "Neon"
  2118. prt.CFrame=cframe
  2119. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2120. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2121. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2122. game:GetService("Debris"):AddItem(prt,5)
  2123. coroutine.resume(coroutine.create(function(Part,Mesh)
  2124. local rtype = rottype
  2125. for i=0,1,delay do
  2126. swait()
  2127. if rtype == 1 then
  2128. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2129. elseif rtype == 2 then
  2130. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2131. end
  2132. dec.Transparency=i
  2133. dec2.Transparency=i
  2134. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2135. end
  2136. Part.Parent=nil
  2137. end),prt,msh)
  2138. end
  2139.  
  2140. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2141. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2142. prt.Anchored=true
  2143. prt.Material = "Neon"
  2144. prt.CFrame=cframe
  2145. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2146. game:GetService("Debris"):AddItem(prt,5)
  2147. coroutine.resume(coroutine.create(function(Part,Mesh)
  2148. local rtype = rottype
  2149. for i=0,1,delay do
  2150. swait()
  2151. if rtype == 1 then
  2152. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2153. elseif rtype == 2 then
  2154. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2155. end
  2156. prt.Transparency=i
  2157. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2158. end
  2159. Part.Parent=nil
  2160. end),prt,msh)
  2161. end
  2162.  
  2163. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2164. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2165. prt.Anchored=true
  2166. prt.Material = "Neon"
  2167. prt.CFrame=cframe
  2168. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2169. game:GetService("Debris"):AddItem(prt,5)
  2170. coroutine.resume(coroutine.create(function(Part,Mesh)
  2171. local rtype = rottype
  2172. for i=0,1,delay do
  2173. swait()
  2174. if rtype == 1 then
  2175. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2176. elseif rtype == 2 then
  2177. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2178. end
  2179. prt.Transparency=i
  2180. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2181. end
  2182. Part.Parent=nil
  2183. end),prt,msh)
  2184. end
  2185.  
  2186. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2187. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2188. prt.Anchored=true
  2189. prt.Material = "Neon"
  2190. prt.CFrame=cframe
  2191. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2192. game:GetService("Debris"):AddItem(prt,5)
  2193. coroutine.resume(coroutine.create(function(Part,Mesh)
  2194. local rtype = rottype
  2195. for i=0,1,delay do
  2196. swait()
  2197. if rtype == 1 then
  2198. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2199. elseif rtype == 2 then
  2200. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2201. end
  2202. prt.Transparency=i
  2203. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2204. end
  2205. Part.Parent=nil
  2206. end),prt,msh)
  2207. end
  2208.  
  2209. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2210. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2211. prt.Anchored=true
  2212. prt.Material = "Neon"
  2213. prt.CFrame=cframe
  2214. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2215. game:GetService("Debris"):AddItem(prt,5)
  2216. coroutine.resume(coroutine.create(function(Part,Mesh)
  2217. local rtype = rottype
  2218. for i=0,1,delay do
  2219. swait()
  2220. if rtype == 1 then
  2221. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2222. elseif rtype == 2 then
  2223. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2224. end
  2225. prt.Transparency=i
  2226. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2227. end
  2228. Part.Parent=nil
  2229. end),prt,msh)
  2230. end
  2231.  
  2232. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2233. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2234. prt.Anchored=false
  2235. prt.CFrame=cframe
  2236. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2237. local wld=weld(prt,prt,Parent,cframe)
  2238. game:GetService("Debris"):AddItem(prt,5)
  2239. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2240. for i=0,1,delay do
  2241. wait()
  2242. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2243. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2244. Part.Transparency=i
  2245. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2246. end
  2247. Part.Parent=nil
  2248. end),prt,msh,wld)
  2249. end
  2250.  
  2251. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2252. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2253. prt.Anchored=false
  2254. prt.CFrame=cframe
  2255. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2256. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2257. game:GetService("Debris"):AddItem(prt,5)
  2258. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2259. for i=0,1,delay do
  2260. wait()
  2261. Weld.C0=euler(i*20,0,0)
  2262. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2263. Part.Transparency=i
  2264. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2265. end
  2266. Part.Parent=nil
  2267. end),prt,msh,wld)
  2268. end
  2269.  
  2270. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2271. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2272. prt.Anchored=true
  2273. prt.CFrame=cframe
  2274. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2275. game:GetService("Debris"):AddItem(prt,2)
  2276. coroutine.resume(coroutine.create(function(Part,Mesh)
  2277. for i=0,1,delay do
  2278. wait()
  2279. Part.CFrame=Part.CFrame
  2280. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2281. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2282. prt2.Anchored=true
  2283. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2284. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2285. game:GetService("Debris"):AddItem(prt2,2)
  2286. coroutine.resume(coroutine.create(function(Part,Mesh)
  2287. for i=0,1,0.1 do
  2288. wait()
  2289. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2290. end
  2291. Part.Parent=nil
  2292. end),prt2,msh2)
  2293. end
  2294. for i=0,1,delay*2 do
  2295. wait()
  2296. Part.CFrame=Part.CFrame
  2297. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2298. end
  2299. Part.Parent=nil
  2300. end),prt,msh)
  2301. end
  2302.  
  2303. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2304. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2305. prt.Anchored=true
  2306. prt.CFrame=cframe
  2307. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2308. game:GetService("Debris"):AddItem(prt,2)
  2309. coroutine.resume(coroutine.create(function(Part,Mesh)
  2310. for i=0,1,delay do
  2311. wait()
  2312. Part.CFrame=Part.CFrame
  2313. Part.Transparency=i
  2314. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2315. end
  2316. Part.Parent=nil
  2317. end),prt,msh)
  2318. end
  2319.  
  2320. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2321. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2322. prt.Anchored=true
  2323. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2324. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2325. game:GetService("Debris"):AddItem(prt,2)
  2326. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2327. CF=Part.CFrame
  2328. Numbb=0
  2329. randnumb=math.random()/10
  2330. rand1=math.random()/10
  2331. for i=0,1,rand1 do
  2332. wait()
  2333. CF=CF*cf(0,math.random()/2,0)
  2334. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2335. Part.CFrame=CF*euler(Numbb,0,0)
  2336. Part.Transparency=i
  2337. Numbb=Numbb+randnumb
  2338. end
  2339. Part.Parent=nil
  2340. end),prt,CF,Numbb,randnumb)
  2341. end
  2342.  
  2343. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2344. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2345. prt.Anchored=true
  2346. prt.CFrame=cframe
  2347. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2348. game:GetService("Debris"):AddItem(prt,5)
  2349. coroutine.resume(coroutine.create(function(Part,Mesh)
  2350. for i=0,1,delay do
  2351. wait()
  2352. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2353. Part.Transparency=i
  2354. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2355. end
  2356. Part.Parent=nil
  2357. end),prt,msh)
  2358. end
  2359.  
  2360. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2361. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2362. prt.Anchored=true
  2363. prt.CFrame=cframe
  2364. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2365. game:GetService("Debris"):AddItem(prt,2)
  2366. coroutine.resume(coroutine.create(function(Part,Mesh)
  2367. for i=0,1,delay do
  2368. wait()
  2369. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2370. Part.Transparency=i
  2371. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2372. end
  2373. Part.Parent=nil
  2374. end),prt,msh)
  2375. end
  2376.  
  2377. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2378. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2379. prt.Anchored=true
  2380. prt.CFrame=cframe*cf(x,y,z)
  2381. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2382. game:GetService("Debris"):AddItem(prt,5)
  2383. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2384. local num=math.random()
  2385. local num2=math.random(-3,2)+math.random()
  2386. local numm=0
  2387. for i=0,1,delay*2 do
  2388. swait()
  2389. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2390. Part.Transparency=i
  2391. numm=numm+0.01
  2392. end
  2393. Part.Parent=nil
  2394. Mesh.Parent=nil
  2395. end),prt,msh,x,y,z)
  2396. end
  2397.  
  2398. function dmgstart(dmg,what)
  2399. hitcon = what.Touched:connect(function(hit)
  2400. local hum = hit.Parent:FindFirstChild("Humanoid")
  2401. if hum and not hum:IsDescendantOf(Character) then
  2402. hum:TakeDamage(dmg)
  2403. end
  2404. end)
  2405. end
  2406.  
  2407. function dmgstop()
  2408. hitcon:disconnect()
  2409. end
  2410.  
  2411. function Cloak()
  2412. Face.Parent=nil
  2413. cloaked=true
  2414. for _,v in pairs(Torso.Parent:children()) do
  2415. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2416. coroutine.resume(coroutine.create(function()
  2417. for i=0,1,0.2 do
  2418. wait()
  2419. v.Transparency=i
  2420. end
  2421. v.Transparency=1
  2422. end))
  2423. end
  2424. if v.className=="Hat" then
  2425. hatp=v.Handle
  2426. coroutine.resume(coroutine.create(function(derp)
  2427. for i=0,1,0.2 do
  2428. wait()
  2429. derp.Transparency=i
  2430. end
  2431. derp.Transparency=1
  2432. end),hatp)
  2433. end
  2434. end
  2435. for _,v in pairs(m:children()) do
  2436. if v.className=="Part" then
  2437. coroutine.resume(coroutine.create(function()
  2438. for i=0,1,0.2 do
  2439. wait()
  2440. v.Transparency=i
  2441. end
  2442. v.Transparency=1
  2443. end))
  2444. end
  2445. end
  2446. end
  2447.  
  2448. function UnCloak()
  2449. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2450. Face.Parent=Head
  2451. cloaked=false
  2452. for _,v in pairs(Torso.Parent:children()) do
  2453. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2454. coroutine.resume(coroutine.create(function()
  2455. for i=0,1,0.1 do
  2456. wait()
  2457. v.Transparency=v.Transparency-0.1
  2458. end
  2459. v.Transparency=0
  2460. end))
  2461. end
  2462. if v.className=="Hat" then
  2463. hatp=v.Handle
  2464. coroutine.resume(coroutine.create(function(derp)
  2465. for i=0,1,0.1 do
  2466. wait()
  2467. derp.Transparency=derp.Transparency-0.1
  2468. end
  2469. derp.Transparency=0
  2470. end),hatp)
  2471. end
  2472. end
  2473. for _,v in pairs(m:children()) do
  2474. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2475. coroutine.resume(coroutine.create(function()
  2476. for i=0,1,0.1 do
  2477. wait()
  2478. v.Transparency=v.Transparency-0.1
  2479. end
  2480. v.Transparency=0
  2481. end))
  2482. v.Transparency=0
  2483. end
  2484. end
  2485. end
  2486.  
  2487. local origcolor = BrickColor.new("Pastel light blue")
  2488. ---- This section of explosions.
  2489.  
  2490. ----
  2491.  
  2492.  
  2493. function ring(type,pos,scale,value)
  2494. local type = type
  2495. local rng = Instance.new("Part", char)
  2496. rng.Anchored = true
  2497. rng.BrickColor = origcolor
  2498. rng.CanCollide = false
  2499. rng.FormFactor = 3
  2500. rng.Name = "Ring"
  2501. rng.Size = Vector3.new(1, 1, 1)
  2502. rng.Transparency = 0
  2503. rng.TopSurface = 0
  2504. rng.BottomSurface = 0
  2505. rng.CFrame = pos
  2506. local rngm = Instance.new("SpecialMesh", rng)
  2507. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2508. rngm.Scale = scale
  2509. local scaler2 = 1
  2510. if type == "Add" then
  2511. scaler2 = 1*value
  2512. elseif type == "Divide" then
  2513. scaler2 = 1/value
  2514. end
  2515. coroutine.resume(coroutine.create(function()
  2516. for i = 0,10,0.1 do
  2517. swait()
  2518. if type == "Add" then
  2519. scaler2 = scaler2 - 0.01*value
  2520. elseif type == "Divide" then
  2521. scaler2 = scaler2 - 0.01/value
  2522. end
  2523. rng.Transparency = rng.Transparency + 0.01
  2524. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2525. end
  2526. rng:Destroy()
  2527. end))
  2528. end
  2529.  
  2530.  
  2531. function wave(type,pos,scale,value)
  2532. local type = type
  2533. local rng = Instance.new("Part", char)
  2534. rng.Anchored = true
  2535. rng.BrickColor = origcolor
  2536. rng.CanCollide = false
  2537. rng.FormFactor = 3
  2538. rng.Name = "Ring"
  2539. rng.Size = Vector3.new(1, 1, 1)
  2540. rng.Transparency = 0
  2541. rng.TopSurface = 0
  2542. rng.BottomSurface = 0
  2543. rng.CFrame = pos
  2544. local rngm = Instance.new("SpecialMesh", rng)
  2545. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2546. rngm.Scale = scale
  2547. local scaler2 = 1
  2548. if type == "Add" then
  2549. scaler2 = 1*value
  2550. elseif type == "Divide" then
  2551. scaler2 = 1/value
  2552. end
  2553. coroutine.resume(coroutine.create(function()
  2554. for i = 0,10,0.1 do
  2555. swait()
  2556. if type == "Add" then
  2557. scaler2 = scaler2 - 0.01*value
  2558. elseif type == "Divide" then
  2559. scaler2 = scaler2 - 0.01/value
  2560. end
  2561. rng.Transparency = rng.Transparency + 0.01
  2562. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2563. end
  2564. rng:Destroy()
  2565. end))
  2566. end
  2567.  
  2568. function wind(type,pos,scale,value,speed)
  2569. local type = type
  2570. local rng = Instance.new("Part", char)
  2571. rng.Anchored = true
  2572. rng.BrickColor = origcolor
  2573. rng.CanCollide = false
  2574. rng.FormFactor = 3
  2575. rng.Name = "Ring"
  2576. rng.Size = Vector3.new(1, 1, 1)
  2577. rng.Transparency = 0
  2578. rng.TopSurface = 0
  2579. rng.BottomSurface = 0
  2580. rng.CFrame = pos
  2581. local rngm = Instance.new("SpecialMesh", rng)
  2582. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2583. rngm.Scale = scale
  2584. local scaler2 = 1
  2585. if type == "Add" then
  2586. scaler2 = 1*value
  2587. elseif type == "Divide" then
  2588. scaler2 = 1/value
  2589. end
  2590. coroutine.resume(coroutine.create(function()
  2591. for i = 0,10,0.1 do
  2592. swait()
  2593. if type == "Add" then
  2594. scaler2 = scaler2 - 0.01*value
  2595. elseif type == "Divide" then
  2596. scaler2 = scaler2 - 0.01/value
  2597. end
  2598. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2599. rng.Transparency = rng.Transparency + 0.01
  2600. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2601. end
  2602. rng:Destroy()
  2603. end))
  2604. end
  2605.  
  2606. function groundwind(type,pos,scale,value,speed)
  2607. local type = type
  2608. local rng = Instance.new("Part", char)
  2609. rng.Anchored = true
  2610. rng.BrickColor = origcolor
  2611. rng.CanCollide = false
  2612. rng.FormFactor = 3
  2613. rng.Name = "Ring"
  2614. rng.Size = Vector3.new(1, 1, 1)
  2615. rng.Transparency = 0
  2616. rng.TopSurface = 0
  2617. rng.BottomSurface = 0
  2618. rng.CFrame = pos
  2619. local rngm = Instance.new("SpecialMesh", rng)
  2620. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2621. rngm.Scale = scale
  2622. local scaler2 = 1
  2623. if type == "Add" then
  2624. scaler2 = 1*value
  2625. elseif type == "Divide" then
  2626. scaler2 = 1/value
  2627. end
  2628. coroutine.resume(coroutine.create(function()
  2629. for i = 0,10,0.1 do
  2630. swait()
  2631. if type == "Add" then
  2632. scaler2 = scaler2 - 0.01*value
  2633. elseif type == "Divide" then
  2634. scaler2 = scaler2 - 0.01/value
  2635. end
  2636. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2637. rng.Transparency = rng.Transparency + 0.01
  2638. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2639. end
  2640. rng:Destroy()
  2641. end))
  2642. end
  2643.  
  2644. function CameraManager()
  2645. if TwoD and not CamInterrupt then
  2646. if Humanoid.Health > 0 then
  2647. Camera.CameraSubject = Humanoid
  2648. Camera.CameraType = "Scriptable"
  2649. Humanoid.AutoRotate = false
  2650. if Booleans.GyroUse then
  2651. Directer.MaxTorque = Vec3(0, huge, 0)
  2652. else
  2653. Directer.MaxTorque = Vec3(0, 0, 0)
  2654. end
  2655. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2656. if Booleans.CamFollow then
  2657. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2658. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2659. else
  2660. CPart.Position = RootPart.Position
  2661. end
  2662. else
  2663. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2664. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2665. end
  2666. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2667. else
  2668. Camera.CameraSubject = Humanoid
  2669. Camera.CameraType = "Custom"
  2670. Controller.Disabled = false
  2671. end
  2672. end
  2673. end
  2674.  
  2675. function ring(type,pos,scale,value)
  2676. local type = type
  2677. local rng = Instance.new("Part", char)
  2678. rng.Anchored = true
  2679. rng.BrickColor = origcolor
  2680. rng.CanCollide = false
  2681. rng.FormFactor = 3
  2682. rng.Name = "Ring"
  2683. rng.Size = Vector3.new(1, 1, 1)
  2684. rng.Transparency = 0
  2685. rng.TopSurface = 0
  2686. rng.BottomSurface = 0
  2687. rng.CFrame = pos
  2688. local rngm = Instance.new("SpecialMesh", rng)
  2689. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2690. rngm.Scale = scale
  2691. local scaler2 = 1
  2692. if type == "Add" then
  2693. scaler2 = 1*value
  2694. elseif type == "Divide" then
  2695. scaler2 = 1/value
  2696. end
  2697. coroutine.resume(coroutine.create(function()
  2698. for i = 0,10,0.1 do
  2699. swait()
  2700. if type == "Add" then
  2701. scaler2 = scaler2 - 0.01*value
  2702. elseif type == "Divide" then
  2703. scaler2 = scaler2 - 0.01/value
  2704. end
  2705. rng.Transparency = rng.Transparency + 0.01
  2706. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2707. end
  2708. rng:Destroy()
  2709. end))
  2710. end
  2711.  
  2712.  
  2713. function wave(type,pos,scale,value)
  2714. local type = type
  2715. local rng = Instance.new("Part", char)
  2716. rng.Anchored = true
  2717. rng.BrickColor = origcolor
  2718. rng.CanCollide = false
  2719. rng.FormFactor = 3
  2720. rng.Name = "Ring"
  2721. rng.Size = Vector3.new(1, 1, 1)
  2722. rng.Transparency = 0
  2723. rng.TopSurface = 0
  2724. rng.BottomSurface = 0
  2725. rng.CFrame = pos
  2726. local rngm = Instance.new("SpecialMesh", rng)
  2727. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2728. rngm.Scale = scale
  2729. local scaler2 = 1
  2730. if type == "Add" then
  2731. scaler2 = 1*value
  2732. elseif type == "Divide" then
  2733. scaler2 = 1/value
  2734. end
  2735. coroutine.resume(coroutine.create(function()
  2736. for i = 0,10,0.1 do
  2737. swait()
  2738. if type == "Add" then
  2739. scaler2 = scaler2 - 0.01*value
  2740. elseif type == "Divide" then
  2741. scaler2 = scaler2 - 0.01/value
  2742. end
  2743. rng.Transparency = rng.Transparency + 0.01
  2744. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2745. end
  2746. rng:Destroy()
  2747. end))
  2748. end
  2749.  
  2750. function sphere(bonuspeed,type,pos,scale,value,color)
  2751. local type = type
  2752. local rng = Instance.new("Part", char)
  2753. rng.Anchored = true
  2754. if ModeOfGlitch ~= 9 then
  2755. rng.BrickColor = color
  2756. elseif ModeOfGlitch == 9 then
  2757. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2758. end
  2759. rng.CanCollide = false
  2760. rng.FormFactor = 3
  2761. rng.Name = "Ring"
  2762. rng.Material = "Neon"
  2763. rng.Size = Vector3.new(1, 1, 1)
  2764. rng.Transparency = 0
  2765. rng.TopSurface = 0
  2766. rng.BottomSurface = 0
  2767. rng.CFrame = pos
  2768. local rngm = Instance.new("SpecialMesh", rng)
  2769. rngm.MeshType = "Sphere"
  2770. rngm.Scale = scale
  2771. if rainbowmode == true then
  2772. rng.Color = Color3.new(r/255,g/255,b/255)
  2773. end
  2774. if ModeOfGlitch == 9 then
  2775. coroutine.resume(coroutine.create(function()
  2776. while true do
  2777. swait()
  2778. if rng.Parent ~= nil then
  2779. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2780. else
  2781. break
  2782. end
  2783. end
  2784. end))
  2785. end
  2786. local scaler2 = 1
  2787. if type == "Add" then
  2788. scaler2 = 1*value
  2789. elseif type == "Divide" then
  2790. scaler2 = 1/value
  2791. end
  2792. coroutine.resume(coroutine.create(function()
  2793. for i = 0,10/bonuspeed,0.1 do
  2794. swait()
  2795. if rainbowmode == true then
  2796. rng.Color = Color3.new(r/255,g/255,b/255)
  2797. end
  2798. if type == "Add" then
  2799. scaler2 = scaler2 - 0.01*value/bonuspeed
  2800. elseif type == "Divide" then
  2801. scaler2 = scaler2 - 0.01/value*bonuspeed
  2802. end
  2803. if chaosmode == true then
  2804. rng.BrickColor = BrickColor.random()
  2805. end
  2806. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2807. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2808. end
  2809. rng:Destroy()
  2810. end))
  2811. end
  2812.  
  2813. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2814. local type = type
  2815. local rng = Instance.new("Part", char)
  2816. rng.Anchored = true
  2817. if ModeOfGlitch ~= 9 then
  2818. rng.BrickColor = color
  2819. elseif ModeOfGlitch == 9 then
  2820. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2821. end
  2822. rng.CanCollide = false
  2823. rng.FormFactor = 3
  2824. rng.Name = "Ring"
  2825. rng.Material = "Neon"
  2826. rng.Size = Vector3.new(1, 1, 1)
  2827. rng.Transparency = 0
  2828. rng.TopSurface = 0
  2829. rng.BottomSurface = 0
  2830. rng.CFrame = pos
  2831. local rngm = Instance.new("SpecialMesh", rng)
  2832. rngm.MeshType = "Sphere"
  2833. rngm.Scale = scale
  2834. local scaler2 = 1
  2835. local scaler2b = 1
  2836. local scaler2c = 1
  2837. if type == "Add" then
  2838. scaler2 = 1*value
  2839. scaler2b = 1*value2
  2840. scaler2c = 1*value3
  2841. elseif type == "Divide" then
  2842. scaler2 = 1/value
  2843. scaler2b = 1/value2
  2844. scaler2c = 1/value3
  2845. end
  2846. if ModeOfGlitch == 9 then
  2847. coroutine.resume(coroutine.create(function()
  2848. while true do
  2849. swait()
  2850. if rng.Parent ~= nil then
  2851. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2852. else
  2853. break
  2854. end
  2855. end
  2856. end))
  2857. end
  2858. coroutine.resume(coroutine.create(function()
  2859. for i = 0,10/bonuspeed,0.1 do
  2860. swait()
  2861. if type == "Add" then
  2862. scaler2 = scaler2 - 0.01*value/bonuspeed
  2863. scaler2b = scaler2b - 0.01*value/bonuspeed
  2864. scaler2c = scaler2c - 0.01*value/bonuspeed
  2865. elseif type == "Divide" then
  2866. scaler2 = scaler2 - 0.01/value*bonuspeed
  2867. scaler2b = scaler2b - 0.01/value*bonuspeed
  2868. scaler2c = scaler2c - 0.01/value*bonuspeed
  2869. end
  2870. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2871. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2872. end
  2873. rng:Destroy()
  2874. end))
  2875. end
  2876.  
  2877. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2878. local type = type
  2879. local rotenable = rotatingop
  2880. local rng = Instance.new("Part", char)
  2881. rng.Anchored = true
  2882. rng.BrickColor = color
  2883. rng.CanCollide = false
  2884. rng.FormFactor = 3
  2885. rng.Name = "Ring"
  2886. rng.Material = "Neon"
  2887. rng.Size = Vector3.new(1, 1, 1)
  2888. rng.Transparency = 0
  2889. if typeoftrans == "In" then
  2890. rng.Transparency = 1
  2891. end
  2892. rng.TopSurface = 0
  2893. rng.BottomSurface = 0
  2894. rng.CFrame = pos
  2895. local rngm = Instance.new("SpecialMesh", rng)
  2896. rngm.MeshType = "FileMesh"
  2897. if typeofshape == "Normal" then
  2898. rngm.MeshId = "rbxassetid://662586858"
  2899. elseif typeofshape == "Round" then
  2900. rngm.MeshId = "rbxassetid://662585058"
  2901. end
  2902. rngm.Scale = scale
  2903. local scaler2 = 1/10
  2904. if type == "Add" then
  2905. scaler2 = 1*value/10
  2906. elseif type == "Divide" then
  2907. scaler2 = 1/value/10
  2908. end
  2909. local randomrot = math.random(1,2)
  2910. coroutine.resume(coroutine.create(function()
  2911. for i = 0,10/bonuspeed,0.1 do
  2912. swait()
  2913. if type == "Add" then
  2914. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2915. elseif type == "Divide" then
  2916. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2917. end
  2918. if rotenable == true then
  2919. if randomrot == 1 then
  2920. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2921. elseif randomrot == 2 then
  2922. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2923. end
  2924. end
  2925. if typeoftrans == "Out" then
  2926. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2927. elseif typeoftrans == "In" then
  2928. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2929. end
  2930. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2931. end
  2932. rng:Destroy()
  2933. end))
  2934. end
  2935.  
  2936. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2937. local type = type
  2938. local rng = Instance.new("Part", char)
  2939. rng.Anchored = true
  2940. rng.BrickColor = color
  2941. rng.CanCollide = false
  2942. rng.FormFactor = 3
  2943. rng.Name = "Ring"
  2944. rng.Material = "Neon"
  2945. rng.Size = Vector3.new(1, 1, 1)
  2946. rng.Transparency = 0
  2947. rng.TopSurface = 0
  2948. rng.BottomSurface = 0
  2949. rng.CFrame = pos
  2950. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2951. local rngm = Instance.new("SpecialMesh", rng)
  2952. rngm.MeshType = "Brick"
  2953. rngm.Scale = vt(x1,y1,z1)
  2954. if rainbowmode == true then
  2955. rng.Color = Color3.new(r/255,g/255,b/255)
  2956. end
  2957. local scaler2 = 1
  2958. local speeder = FastSpeed/10
  2959. if type == "Add" then
  2960. scaler2 = 1*value
  2961. elseif type == "Divide" then
  2962. scaler2 = 1/value
  2963. end
  2964. coroutine.resume(coroutine.create(function()
  2965. for i = 0,10/bonuspeed,0.1 do
  2966. swait()
  2967. if rainbowmode == true then
  2968. rng.Color = Color3.new(r/255,g/255,b/255)
  2969. end
  2970. if type == "Add" then
  2971. scaler2 = scaler2 - 0.01*value/bonuspeed
  2972. elseif type == "Divide" then
  2973. scaler2 = scaler2 - 0.01/value*bonuspeed
  2974. end
  2975. if chaosmode == true then
  2976. rng.BrickColor = BrickColor.random()
  2977. end
  2978. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2979. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2980. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2981. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2982. end
  2983. rng:Destroy()
  2984. end))
  2985. end
  2986.  
  2987. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2988. local type = type
  2989. local rng = Instance.new("Part", char)
  2990. rng.Anchored = true
  2991. rng.BrickColor = color
  2992. rng.CanCollide = false
  2993. rng.FormFactor = 3
  2994. rng.Name = "Ring"
  2995. rng.Material = "Neon"
  2996. rng.Size = Vector3.new(1, 1, 1)
  2997. rng.Transparency = 0
  2998. rng.TopSurface = 0
  2999. rng.BottomSurface = 0
  3000. rng.CFrame = pos
  3001. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3002. local rngm = Instance.new("SpecialMesh", rng)
  3003. rngm.MeshType = "Brick"
  3004. rngm.Scale = vt(x1,y1,z1)
  3005. if rainbowmode == true then
  3006. rng.Color = Color3.new(r/255,g/255,b/255)
  3007. end
  3008. local scaler2 = 1
  3009. local speeder = FastSpeed/10
  3010. if type == "Add" then
  3011. scaler2 = 1*value
  3012. elseif type == "Divide" then
  3013. scaler2 = 1/value
  3014. end
  3015. coroutine.resume(coroutine.create(function()
  3016. for i = 0,10/bonuspeed,0.1 do
  3017. swait()
  3018. if rainbowmode == true then
  3019. rng.Color = Color3.new(r/255,g/255,b/255)
  3020. end
  3021. if type == "Add" then
  3022. scaler2 = scaler2 - 0.01*value/bonuspeed
  3023. elseif type == "Divide" then
  3024. scaler2 = scaler2 - 0.01/value*bonuspeed
  3025. end
  3026. if chaosmode == true then
  3027. rng.BrickColor = BrickColor.random()
  3028. end
  3029. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3030. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3031. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3032. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3033. end
  3034. rng:Destroy()
  3035. end))
  3036. end
  3037.  
  3038. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3039. local type = type
  3040. local rng = Instance.new("Part", char)
  3041. rng.Anchored = true
  3042. rng.BrickColor = color
  3043. rng.CanCollide = false
  3044. rng.FormFactor = 3
  3045. rng.Name = "Ring"
  3046. rng.Material = "Neon"
  3047. rng.Size = Vector3.new(1, 1, 1)
  3048. rng.Transparency = 0
  3049. rng.TopSurface = 0
  3050. rng.BottomSurface = 0
  3051. rng.CFrame = pos
  3052. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3053. local rngm = Instance.new("SpecialMesh", rng)
  3054. rngm.MeshType = "Brick"
  3055. rngm.Scale = vt(x1,y1,z1)
  3056. if rainbowmode == true then
  3057. rng.Color = Color3.new(r/255,g/255,b/255)
  3058. end
  3059. local scaler2 = 0
  3060. local speeder = FastSpeed/10
  3061. if type == "Add" then
  3062. scaler2 = 1*value
  3063. elseif type == "Divide" then
  3064. scaler2 = 1/value
  3065. end
  3066. coroutine.resume(coroutine.create(function()
  3067. for i = 0,10/bonuspeed,0.1 do
  3068. swait()
  3069. if rainbowmode == true then
  3070. rng.Color = Color3.new(r/255,g/255,b/255)
  3071. end
  3072. if type == "Add" then
  3073. scaler2 = scaler2 - 0.01*value/bonuspeed
  3074. elseif type == "Divide" then
  3075. scaler2 = scaler2 - 0.01/value*bonuspeed
  3076. end
  3077. if chaosmode == true then
  3078. rng.BrickColor = BrickColor.random()
  3079. end
  3080. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3081. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3082. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3083. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3084. end
  3085. rng:Destroy()
  3086. end))
  3087. end
  3088.  
  3089. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3090. local type = type
  3091. local rng = Instance.new("Part", char)
  3092. rng.Anchored = true
  3093. rng.BrickColor = color
  3094. rng.Color = color3
  3095. rng.CanCollide = false
  3096. rng.FormFactor = 3
  3097. rng.Name = "Ring"
  3098. rng.Material = "Neon"
  3099. rng.Size = Vector3.new(1, 1, 1)
  3100. rng.Transparency = 0
  3101. rng.TopSurface = 0
  3102. rng.BottomSurface = 0
  3103. rng.CFrame = pos
  3104. local rngm = Instance.new("SpecialMesh", rng)
  3105. rngm.MeshType = "Brick"
  3106. rngm.Scale = scale
  3107. local scaler2 = 1
  3108. local scaler2b = 1
  3109. local scaler2c = 1
  3110. if type == "Add" then
  3111. scaler2 = 1*value
  3112. scaler2b = 1*value2
  3113. scaler2c = 1*value3
  3114. elseif type == "Divide" then
  3115. scaler2 = 1/value
  3116. scaler2b = 1/value2
  3117. scaler2c = 1/value3
  3118. end
  3119. coroutine.resume(coroutine.create(function()
  3120. for i = 0,10/bonuspeed,0.1 do
  3121. swait()
  3122. if type == "Add" then
  3123. scaler2 = scaler2 - 0.01*value/bonuspeed
  3124. scaler2b = scaler2b - 0.01*value/bonuspeed
  3125. scaler2c = scaler2c - 0.01*value/bonuspeed
  3126. elseif type == "Divide" then
  3127. scaler2 = scaler2 - 0.01/value*bonuspeed
  3128. scaler2b = scaler2b - 0.01/value*bonuspeed
  3129. scaler2c = scaler2c - 0.01/value*bonuspeed
  3130. end
  3131. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3132. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3133. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3134. end
  3135. rng:Destroy()
  3136. end))
  3137. end
  3138.  
  3139. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3140. local type = type
  3141. local rng = Instance.new("Part", char)
  3142. rng.Anchored = true
  3143. if ModeOfGlitch ~= 9 then
  3144. rng.BrickColor = color
  3145. elseif ModeOfGlitch == 9 then
  3146. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3147. end
  3148. rng.CanCollide = false
  3149. rng.FormFactor = 3
  3150. rng.Name = "Ring"
  3151. rng.Material = "Neon"
  3152. rng.Size = Vector3.new(1, 1, 1)
  3153. rng.Transparency = 0
  3154. rng.TopSurface = 0
  3155. rng.BottomSurface = 0
  3156. rng.CFrame = pos
  3157. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3158. local rngm = Instance.new("SpecialMesh", rng)
  3159. rngm.MeshType = "Sphere"
  3160. rngm.Scale = vt(x1,y1,z1)
  3161. if rainbowmode == true then
  3162. rng.Color = Color3.new(r/255,g/255,b/255)
  3163. end
  3164. if ModeOfGlitch == 9 then
  3165. coroutine.resume(coroutine.create(function()
  3166. while true do
  3167. swait()
  3168. if rng.Parent ~= nil then
  3169. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3170. else
  3171. break
  3172. end
  3173. end
  3174. end))
  3175. end
  3176. local scaler2 = 1
  3177. local speeder = FastSpeed
  3178. if type == "Add" then
  3179. scaler2 = 1*value
  3180. elseif type == "Divide" then
  3181. scaler2 = 1/value
  3182. end
  3183. coroutine.resume(coroutine.create(function()
  3184. for i = 0,10/bonuspeed,0.1 do
  3185. swait()
  3186. if rainbowmode == true then
  3187. rng.Color = Color3.new(r/255,g/255,b/255)
  3188. end
  3189. if type == "Add" then
  3190. scaler2 = scaler2 - 0.01*value/bonuspeed
  3191. elseif type == "Divide" then
  3192. scaler2 = scaler2 - 0.01/value*bonuspeed
  3193. end
  3194. if chaosmode == true then
  3195. rng.BrickColor = BrickColor.random()
  3196. end
  3197. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3198. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3199. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3200. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3201. end
  3202. rng:Destroy()
  3203. end))
  3204. end
  3205.  
  3206.  
  3207. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3208. local type = type
  3209. local rng = Instance.new("Part", char)
  3210. rng.Anchored = true
  3211. if ModeOfGlitch ~= 9 then
  3212. rng.BrickColor = color
  3213. elseif ModeOfGlitch == 9 then
  3214. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3215. end
  3216. rng.CanCollide = false
  3217. rng.FormFactor = 3
  3218. rng.Name = "Ring"
  3219. rng.Material = "Neon"
  3220. rng.Size = Vector3.new(1, 1, 1)
  3221. rng.Transparency = 1
  3222. rng.TopSurface = 0
  3223. rng.BottomSurface = 0
  3224. rng.CFrame = pos
  3225. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3226. local rngm = Instance.new("SpecialMesh", rng)
  3227. rngm.MeshType = "Sphere"
  3228. rngm.Scale = vt(x1,y1,z1)
  3229. if rainbowmode == true then
  3230. rng.Color = Color3.new(r/255,g/255,b/255)
  3231. end
  3232. if ModeOfGlitch == 9 then
  3233. coroutine.resume(coroutine.create(function()
  3234. while true do
  3235. swait()
  3236. if rng.Parent ~= nil then
  3237. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3238. else
  3239. break
  3240. end
  3241. end
  3242. end))
  3243. end
  3244. local scaler2 = 1
  3245. local speeder = FastSpeed
  3246. if type == "Add" then
  3247. scaler2 = 1*value
  3248. elseif type == "Divide" then
  3249. scaler2 = 1/value
  3250. end
  3251. coroutine.resume(coroutine.create(function()
  3252. for i = 0,10/bonuspeed,0.1 do
  3253. swait()
  3254. if rainbowmode == true then
  3255. rng.Color = Color3.new(r/255,g/255,b/255)
  3256. end
  3257. if type == "Add" then
  3258. scaler2 = scaler2 - 0.01*value/bonuspeed
  3259. elseif type == "Divide" then
  3260. scaler2 = scaler2 - 0.01/value*bonuspeed
  3261. end
  3262. if chaosmode == true then
  3263. rng.BrickColor = BrickColor.random()
  3264. end
  3265. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3266. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3267. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3268. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3269. end
  3270. rng:Destroy()
  3271. end))
  3272. end
  3273.  
  3274. function dmg(dude)
  3275. if dude.Name ~= Character then
  3276. local keptcolor = MAINRUINCOLOR
  3277. local bgf = Instance.new("BodyGyro",dude.Head)
  3278. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3279. --[[local val = Instance.new("BoolValue",dude)
  3280. val.Name = "IsHit"]]--
  3281. local ds = coroutine.wrap(function()
  3282. dude:WaitForChild("Head"):BreakJoints()
  3283. for i, v in pairs(dude:GetChildren()) do
  3284. if v:IsA("Part") or v:IsA("MeshPart") then
  3285. v.Name = "DEMINISHED"
  3286. end
  3287. end
  3288. wait(0.5)
  3289. targetted = nil
  3290. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3291. coroutine.resume(coroutine.create(function()
  3292. for i, v in pairs(dude:GetChildren()) do
  3293. if v:IsA("Accessory") then
  3294. v:Destroy()
  3295. end
  3296. if v:IsA("Humanoid") then
  3297. v:Destroy()
  3298. end
  3299. if v:IsA("CharacterMesh") then
  3300. v:Destroy()
  3301. end
  3302. if v:IsA("Model") then
  3303. v:Destroy()
  3304. end
  3305. if v:IsA("Part") or v:IsA("MeshPart") then
  3306. for x, o in pairs(v:GetChildren()) do
  3307. if o:IsA("Decal") then
  3308. o:Destroy()
  3309. end
  3310. end
  3311. coroutine.resume(coroutine.create(function()
  3312. v.Material = "Neon"
  3313. v.CanCollide = false
  3314. v.Anchored = false
  3315. local bld = Instance.new("ParticleEmitter",v)
  3316. bld.LightEmission = 0.75
  3317. bld.Texture = "rbxassetid://363275192" ---284205403
  3318. bld.Color = ColorSequence.new(keptcolor.Color)
  3319. bld.Rate = 500
  3320. bld.Lifetime = NumberRange.new(1)
  3321. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3322. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3323. bld.Speed = NumberRange.new(2,5)
  3324. bld.VelocitySpread = 50000
  3325. bld.Rotation = NumberRange.new(-500,500)
  3326. bld.RotSpeed = NumberRange.new(-500,500)
  3327. local sbs = Instance.new("BodyPosition", v)
  3328. sbs.P = 3000
  3329. sbs.D = 1000
  3330. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3331. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3332. v.Color = keptcolor.Color
  3333. coroutine.resume(coroutine.create(function()
  3334. for i = 0, 49 do
  3335. swait(1)
  3336. v:BreakJoints()
  3337. v.Transparency = v.Transparency + 0.02
  3338. end
  3339. v:BreakJoints()
  3340. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3341. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3342. bld.Speed = NumberRange.new(10,25)
  3343. bld.Drag = 5
  3344. bld.Acceleration = vt(0,2,0)
  3345. wait(0.5)
  3346. bld.Enabled = false
  3347. wait(8)
  3348. v:Destroy()
  3349. dude:Destroy()
  3350. end))
  3351. end))
  3352. end
  3353. end
  3354. end))
  3355. end)
  3356. ds()
  3357. end
  3358. end
  3359.  
  3360.  
  3361. function FindNearestHead(Position, Distance, SinglePlayer)
  3362. if SinglePlayer then
  3363. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3364. end
  3365. local List = {}
  3366. for i, v in pairs(workspace:GetChildren()) do
  3367. if v:IsA("Model") then
  3368. if v:findFirstChild("Head") then
  3369. if v ~= Character then
  3370. if (v.Head.Position - Position).magnitude <= Distance then
  3371. table.insert(List, v)
  3372. end
  3373. end
  3374. end
  3375. end
  3376. end
  3377. return List
  3378. end
  3379.  
  3380. function FaceMouse()
  3381. Cam = workspace.CurrentCamera
  3382. return {
  3383. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3384. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3385. }
  3386. end
  3387.  
  3388. function FaceMouse2()
  3389. Cam = workspace.CurrentCamera
  3390. return {
  3391. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3392. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3393. }
  3394. end
  3395.  
  3396. local ModeOfGlitch = 1
  3397. -- Functions are ready.
  3398. local storehumanoidWS = 16
  3399.  
  3400. function CorruptBlink()
  3401. for i = 0, 14 do
  3402. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3403. end
  3404. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3405. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3406. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3407. CameraEnshaking(2,10)
  3408. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3409. if v:FindFirstChild('Head') then
  3410. dmg(v)
  3411. end
  3412. end
  3413. for i = 0, 14 do
  3414. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3415. end
  3416. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3417. end
  3418. function PureBomb()
  3419. attack = true
  3420. hum.WalkSpeed = 0
  3421. local orb = Instance.new("Part", char)
  3422. orb.Anchored = true
  3423. orb.BrickColor = BrickColor.new("Toothpaste")
  3424. orb.CanCollide = false
  3425. orb.FormFactor = 3
  3426. orb.Name = "Ring"
  3427. orb.Material = "Neon"
  3428. orb.Size = Vector3.new(1, 1, 1)
  3429. orb.Transparency = 0
  3430. orb.TopSurface = 0
  3431. orb.BottomSurface = 0
  3432. local orbm = Instance.new("SpecialMesh", orb)
  3433. orbm.MeshType = "Sphere"
  3434. orbm.Name = "SizeMesh"
  3435. orbm.Scale = vt(0,0,0)
  3436. local scaled = 0.1
  3437. local posid = 0
  3438. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3439. for i = 0, 5, 0.1 do
  3440. swait()
  3441. scaled = scaled - 0.001
  3442. posid = posid - scaled
  3443. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3444. local scaled = 0.1
  3445. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3446. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10)
  3447. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0)
  3448. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3449. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3450. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3451. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3452. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3453. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3454. end
  3455. for i = 0, 2, 0.1 do
  3456. swait()
  3457. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3458. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3459. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3460. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3461. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3462. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3463. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3464. end
  3465. coroutine.resume(coroutine.create(function()
  3466. orb.Anchored = false
  3467. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3468. local a = Instance.new("Part",workspace)
  3469. a.Name = "Direction"
  3470. a.Anchored = true
  3471. a.BrickColor = bc("Bright red")
  3472. a.Material = "Neon"
  3473. a.Transparency = 1
  3474. a.CanCollide = false
  3475. local ray = Ray.new(
  3476. orb.CFrame.p, -- origin
  3477. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3478. )
  3479. local ignore = orb
  3480. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3481. a.BottomSurface = 10
  3482. a.TopSurface = 10
  3483. local distance = (orb.CFrame.p - position).magnitude
  3484. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3485. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3486. orb.CFrame = a.CFrame
  3487. a:Destroy()
  3488. local bv = Instance.new("BodyVelocity")
  3489. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3490. bv.velocity = orb.CFrame.lookVector*125
  3491. bv.Parent = orb
  3492. local hitted = false
  3493. game:GetService("Debris"):AddItem(orb, 15)
  3494. wait()
  3495. local hit =orb.Touched:connect(function(hit)
  3496. if hitted == false then
  3497. hitted = true
  3498. CameraEnshaking(10,2.5)
  3499. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3500. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3501. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3502. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3503. for i = 0, 49 do
  3504. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  3505. end
  3506. for i = 0, 9 do
  3507. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3508. sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3509. end
  3510. orb.Anchored = true
  3511. orb.Transparency = 1
  3512. wait(8)
  3513. orb:Destroy()
  3514. end
  3515. end)
  3516. end))
  3517. for i = 0, 1, 0.1 do
  3518. swait()
  3519. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3520. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3521. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3522. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3523. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3524. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3525. end
  3526. hum.WalkSpeed = storehumanoidWS
  3527. attack = false
  3528. end
  3529.  
  3530. function BanishingOrb()
  3531. attack = true
  3532. hum.WalkSpeed = 0
  3533. local orb = Instance.new("Part", char)
  3534. orb.Anchored = true
  3535. orb.BrickColor = BrickColor.new("Black")
  3536. orb.CanCollide = false
  3537. orb.FormFactor = 3
  3538. orb.Name = "Ring"
  3539. orb.Material = "Neon"
  3540. orb.Size = Vector3.new(1, 1, 1)
  3541. orb.Transparency = 0
  3542. orb.TopSurface = 0
  3543. orb.BottomSurface = 0
  3544. local orbm = Instance.new("SpecialMesh", orb)
  3545. orbm.MeshType = "Sphere"
  3546. orbm.Name = "SizeMesh"
  3547. orbm.Scale = vt(0,0,0)
  3548. local scaled = 0.1
  3549. local posid = 0
  3550. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3551. for i = 0, 5, 0.1 do
  3552. swait()
  3553. scaled = scaled - 0.001
  3554. posid = posid - scaled
  3555. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3556. local scaled = 0.1
  3557. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3558. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Black"),10)
  3559. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3560. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3561. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3562. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3563. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3564. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3565. end
  3566. for i = 0, 2, 0.1 do
  3567. swait()
  3568. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3569. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3570. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3571. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3572. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3573. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3574. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3575. end
  3576. coroutine.resume(coroutine.create(function()
  3577. orb.Anchored = false
  3578. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3579. local a = Instance.new("Part",workspace)
  3580. a.Name = "Direction"
  3581. a.Anchored = true
  3582. a.BrickColor = bc("Bright red")
  3583. a.Material = "Neon"
  3584. a.Transparency = 1
  3585. a.CanCollide = false
  3586. local ray = Ray.new(
  3587. orb.CFrame.p, -- origin
  3588. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3589. )
  3590. local ignore = orb
  3591. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3592. a.BottomSurface = 10
  3593. a.TopSurface = 10
  3594. local distance = (orb.CFrame.p - position).magnitude
  3595. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3596. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3597. orb.CFrame = a.CFrame
  3598. a:Destroy()
  3599. local bv = Instance.new("BodyVelocity")
  3600. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3601. bv.velocity = orb.CFrame.lookVector*0
  3602. bv.Parent = orb
  3603. local hitted = false
  3604. local rate = 0
  3605. coroutine.resume(coroutine.create(function()
  3606. for i = 0, 24 do
  3607. wait(0.1)
  3608. rate = rate + 0.25
  3609. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3610. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3611. if v:FindFirstChild('Head') then
  3612. dmg(v)
  3613. end
  3614. end
  3615. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3616. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3617. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3618. end
  3619. orb.Anchored = true
  3620. orb.Transparency = 1
  3621. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3622. if v:FindFirstChild('Head') then
  3623. dmg(v)
  3624. end
  3625. end
  3626. local eff = Instance.new("ParticleEmitter",orb)
  3627. eff.Texture = "rbxassetid://296874871"
  3628. eff.LightEmission = 0.95
  3629. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3630. eff.Rate = 1000000000
  3631. eff.Lifetime = NumberRange.new(3)
  3632. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,9,0),NumberSequenceKeypoint.new(1,0,0)})
  3633. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3634. eff.Speed = NumberRange.new(30)
  3635. eff.Acceleration = vt(0,-15,0)
  3636. eff.Rotation = NumberRange.new(-500,500)
  3637. eff.VelocitySpread = 100000
  3638. eff.RotSpeed = NumberRange.new(-500,500)
  3639. coroutine.resume(coroutine.create(function()
  3640. wait(0.6)
  3641. eff.Enabled = false
  3642. end))
  3643. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3644. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3645. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3646. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3647. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3648. game:GetService("Debris"):AddItem(orb, 15)
  3649. end))
  3650. end))
  3651. for i = 0, 1, 0.1 do
  3652. swait()
  3653. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3654. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3655. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3656. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3657. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3658. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3659. end
  3660. hum.WalkSpeed = storehumanoidWS
  3661. attack = false
  3662. end
  3663.  
  3664.  
  3665. function ChaosGroundStrike()
  3666. attack = true
  3667. for i = 0, 2, 0.1 do
  3668. swait()
  3669. bosschatfunc("INSANE STOMP",MAINRUINCOLOR.Color,2)
  3670. 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)
  3671. 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)
  3672. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3673. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3674. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3675. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3676. end
  3677. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3678. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3679. CameraEnshaking(4,12)
  3680. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3681. if v:FindFirstChild('Head') then
  3682. dmg(v)
  3683. end
  3684. end
  3685. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3686. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3687. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3688. for i = 0, 2, 0.1 do
  3689. swait()
  3690. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3691. 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)
  3692. 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)
  3693. 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)
  3694. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3695. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3696. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3697. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3698. end
  3699. attack = false
  3700. end
  3701.  
  3702. function InsaneGroundStrike()
  3703. attack = true
  3704. bosschatfunc("Feel the power of Chaos!",Color3.new(0,0,0))
  3705. for i = 0, 8, 0.1 do
  3706. swait()
  3707. PixelBlockNeg(2,1,"Add",RightLeg.CFrame*cf(0,-1.35,0)*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)
  3708.  
  3709. 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)
  3710. 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)
  3711. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3712. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3713. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3714. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3715. end
  3716. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3717. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3718. CameraEnshaking(8,24)
  3719. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 105)) do
  3720. if v:FindFirstChild('Head') then
  3721. dmg(v)
  3722. end
  3723. end
  3724. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3725. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3726. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(200,0.1,200),0.01,BrickColor.random())
  3727. CFuncs["Sound"].Create("rbxassetid://907329669", root, 10, 1)
  3728. bosschatfunc("Leave the dead where they fall!",Color3.new(0,0,0))
  3729. for i = 0, 2, 0.1 do
  3730. swait()
  3731. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-105,105),-5,math.random(-105,105))*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)
  3732. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-105,105),-5,math.random(-105,105))*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)
  3733. 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)
  3734. 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)
  3735. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3736. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3737. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3738. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3739. end
  3740. attack = false
  3741. end
  3742.  
  3743. function ChaosBegone()
  3744. attack = true
  3745. bosschatfunc("YOU CANT DEFEAT ME!",MAINRUINCOLOR.Color,2)
  3746. for i = 0, 10, 0.1 do
  3747. swait()
  3748. 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)), 0.2)
  3749. 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)), 0.2)
  3750. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3751. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3752. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  3753. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  3754. end
  3755. bosschatfunc("NOW DIE!",MAINRUINCOLOR.Color,2)
  3756. CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
  3757. CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
  3758. CameraEnshaking(5, 25)
  3759. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3760. if v:FindFirstChild("Head") then
  3761. dmg(v)
  3762. end
  3763. end
  3764. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  3765. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  3766. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  3767. for i = 0, 3, 0.1 do
  3768. swait()
  3769. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  3770. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  3771. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  3772. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  3773. 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)), 0.4)
  3774. 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)), 0.4)
  3775. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3776. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3777. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  3778. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  3779. end
  3780. attack = false
  3781. end
  3782. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  3783. local orb = Instance.new("Part", char)
  3784. orb.Anchored = true
  3785. orb.BrickColor = color
  3786. orb.CanCollide = false
  3787. orb.FormFactor = 3
  3788. orb.Name = "Ring"
  3789. orb.Material = "Neon"
  3790. orb.Size = Vector3.new(1, 1, 1)
  3791. orb.Transparency = 0
  3792. orb.TopSurface = 0
  3793. orb.BottomSurface = 0
  3794. local orbm = Instance.new("SpecialMesh", orb)
  3795. orbm.MeshType = "Sphere"
  3796. orb.CFrame = positted
  3797. orbm.Name = "SizeMesh"
  3798. orbm.Scale = vt(1, 1, 1)
  3799. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  3800. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  3801. coroutine.resume(coroutine.create(function()
  3802. wait(timer)
  3803. CameraEnshaking(3, ShakePower)
  3804. orb.Transparency = 1
  3805. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  3806. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  3807. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  3808. wait(3)
  3809. orb:Destroy()
  3810. end))
  3811. end
  3812. function orb_spawn(positted, timer)
  3813. local randomcol = math.random(1, 2)
  3814. local orb = Instance.new("Part", char)
  3815. orb.Anchored = true
  3816. if randomcol == 1 then
  3817. orb.BrickColor = BrickColor.new("White")
  3818. elseif randomcol == 2 then
  3819. orb.BrickColor = BrickColor.new("Really black")
  3820. end
  3821. orb.CanCollide = false
  3822. orb.FormFactor = 3
  3823. orb.Name = "Ring"
  3824. orb.Material = "Neon"
  3825. orb.Size = Vector3.new(1, 1, 1)
  3826. orb.Transparency = 0
  3827. orb.TopSurface = 0
  3828. orb.BottomSurface = 0
  3829. local orbm = Instance.new("SpecialMesh", orb)
  3830. orbm.MeshType = "Sphere"
  3831. orb.CFrame = positted
  3832. orbm.Name = "SizeMesh"
  3833. orbm.Scale = vt(1, 1, 1)
  3834. CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
  3835. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
  3836. for i = 0, 2 do
  3837. 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)
  3838. end
  3839. coroutine.resume(coroutine.create(function()
  3840. wait(timer)
  3841. CameraEnshaking(3, 2)
  3842. orb.Transparency = 1
  3843. MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
  3844. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
  3845. for i = 0, 4 do
  3846. 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)
  3847. end
  3848. CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
  3849. wait(3)
  3850. orb:Destroy()
  3851. end))
  3852. end
  3853. function scattercorrupt()
  3854. attack = true
  3855. local rot = 0
  3856. local randomrotations = math.random(1, 2)
  3857. local lookv = 2.5
  3858. local power = 5
  3859. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
  3860. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
  3861. for i = 0, 9 do
  3862. 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)
  3863. end
  3864. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  3865. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  3866. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  3867. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  3868. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  3869. local hite = Instance.new("Part", char)
  3870. hite.Anchored = true
  3871. hite.CanCollide = false
  3872. hite.FormFactor = 3
  3873. hite.Name = "Ring"
  3874. hite.Material = "Neon"
  3875. hite.Size = Vector3.new(1, 1, 1)
  3876. hite.Transparency = 1
  3877. hite.TopSurface = 0
  3878. hite.BottomSurface = 0
  3879. hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
  3880. local rem = Instance.new("Part", char)
  3881. rem.Anchored = true
  3882. rem.CanCollide = false
  3883. rem.FormFactor = 3
  3884. rem.Name = "Ring"
  3885. rem.Material = "Neon"
  3886. rem.Size = Vector3.new(1, 1, 1)
  3887. rem.Transparency = 1
  3888. rem.TopSurface = 0
  3889. rem.BottomSurface = 0
  3890. rem.CFrame = hite.CFrame
  3891. local rem2 = rem:Clone()
  3892. rem2.Parent = char
  3893. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3894. local rem3 = rem:Clone()
  3895. rem3.Parent = char
  3896. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3897. local rem4 = rem:Clone()
  3898. rem4.Parent = char
  3899. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3900. hite:Destroy()
  3901. coroutine.resume(coroutine.create(function()
  3902. for i = 0, 24 do
  3903. swait(1)
  3904. if randomrotations == 1 then
  3905. rot = rot + 1
  3906. elseif randomrotations == 2 then
  3907. rot = rot - 1
  3908. end
  3909. power = power + 0.5
  3910. lookv = lookv + 7.5
  3911. rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
  3912. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3913. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3914. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3915. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3916. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3917. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3918. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3919. end
  3920. end))
  3921. attack = false
  3922. end
  3923.  
  3924. function GleamingBeam()
  3925. attack = true
  3926. bosschatfunc("INFESTATION BEAM!",MAINRUINCOLOR.Color,3)
  3927. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  3928. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  3929. local rsiz = math.random(1,15)
  3930. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  3931. hb.Anchored = true
  3932. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  3933. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  3934. for i = 0, 16, 0.1 do
  3935. swait()
  3936. rsiz = math.random(5,15)
  3937. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  3938. sphereMK(math.random(3,9),0.25,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15)
  3939. sphere2(5,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,MAINRUINCOLOR)
  3940. 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)
  3941. 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)
  3942. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
  3943. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  3944. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  3945. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  3946. end
  3947. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  3948. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  3949. for i = 0, 2 do
  3950. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  3951. end
  3952. sphere2(3,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  3953. sphere2(6,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  3954. sphere2(9,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  3955. for i = 0, 49 do
  3956. local rsiza = math.random(1,15)
  3957. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  3958. end
  3959. local a = Instance.new("Part",Character)
  3960. a.Name = "Direction"
  3961. a.Anchored = true
  3962. a.BrickColor = MAINRUINCOLOR
  3963. a.Material = "Neon"
  3964. a.Transparency = 0
  3965. a.Shape = "Cylinder"
  3966. a.CanCollide = false
  3967. local ba = Instance.new("Part",Character)
  3968. ba.Name = "HitDirect"
  3969. ba.Anchored = true
  3970. ba.BrickColor = bc("Cool yellow")
  3971. ba.Material = "Neon"
  3972. ba.Transparency = 1
  3973. ba.CanCollide = false
  3974. local ray = Ray.new(
  3975. hb.CFrame.p, -- origin
  3976. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  3977. )
  3978. local ignore = Character
  3979. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3980. a.BottomSurface = 10
  3981. a.TopSurface = 10
  3982. local distance = (hb.CFrame.p - position).magnitude
  3983. a.Size = Vector3.new(distance, 1, 1)
  3984. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3985. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3986. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3987. local msh = Instance.new("SpecialMesh",a)
  3988. msh.MeshType = "Cylinder"
  3989. msh.Scale = vt(1,4,4)
  3990. game:GetService("Debris"):AddItem(a, 30)
  3991. game:GetService("Debris"):AddItem(ba, 30)
  3992. for i = 0, 25, 0.1 do
  3993. swait()
  3994. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  3995. ray = Ray.new(
  3996. hb.CFrame.p, -- origin
  3997. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  3998. )
  3999. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4000. distance = (hb.CFrame.p - position).magnitude
  4001. a.Size = Vector3.new(distance, 1, 1)
  4002. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4003. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4004. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4005. rsiz = math.random(5,25)
  4006. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  4007. sphereMK(math.random(4,8),0.25,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,MAINRUINCOLOR,0)
  4008. for c = 0, 2 do
  4009. sphereMK(math.random(3,6),0.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,MAINRUINCOLOR,2)
  4010. end
  4011. sphere2(5,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR)
  4012. sphere2(5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(12,12,12),0.05,0.05,0.05,MAINRUINCOLOR)
  4013. 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)),.6)
  4014. 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)),.6)
  4015. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(80)),.6)
  4016. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  4017. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  4018. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  4019. end
  4020. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  4021. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  4022. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  4023. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  4024. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  4025. sphere2(1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  4026. sphere2(2,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  4027. sphere2(3,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  4028. sphere2(3,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  4029. sphere2(6,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  4030. sphere2(9,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  4031. for i = 0, 49 do
  4032. local rsiza = math.random(1,15)
  4033. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  4034. end
  4035. for i = 0, 49 do
  4036. rsiz = math.random(1,8)
  4037. sphereMK(math.random(1,3),1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz,rsiz,rsiz,0,MAINRUINCOLOR,2)
  4038. end
  4039. coroutine.resume(coroutine.create(function()
  4040. for i = 0, 99 do
  4041. swait()
  4042. a.Transparency = a.Transparency + 0.01
  4043. end
  4044. a:Destroy()
  4045. ba:Destroy()
  4046. end))
  4047. hb:Destroy()
  4048. attack = false
  4049. end
  4050.  
  4051. function BeamOfDeath()
  4052. attack = true
  4053. bosschatfunc("DETERMINATION STRIKE!",MAINRUINCOLOR.Color,2)
  4054. hum.WalkSpeed = 0
  4055. local keptcolor = MAINRUINCOLOR
  4056. local orb = Instance.new("Part", char)
  4057. orb.BrickColor = keptcolor
  4058. orb.CanCollide = false
  4059. orb.FormFactor = 3
  4060. orb.Name = "Ring"
  4061. orb.Material = "Neon"
  4062. orb.Size = Vector3.new(1, 1, 1)
  4063. orb.Transparency = 1
  4064. orb.TopSurface = 0
  4065. orb.BottomSurface = 0
  4066. local orbm = Instance.new("SpecialMesh", orb)
  4067. orbm.MeshType = "Sphere"
  4068. orbm.Name = "SizeMesh"
  4069. orbm.Scale = vt(22.5,10000,22.5)
  4070. orb.CFrame = mouse.Hit
  4071. orb.Anchored = true
  4072. orb.Orientation = vt(0,0,0)
  4073. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  4074. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1)
  4075. coroutine.resume(coroutine.create(function()
  4076. coroutine.resume(coroutine.create(function()
  4077. for i = 0, 399 do
  4078. swait()
  4079. orbm.Scale = orbm.Scale - vt(0.05,0,0.05)
  4080. orb.Transparency = orb.Transparency - 0.0025
  4081. end
  4082. end))
  4083. wait(9)
  4084. coroutine.resume(coroutine.create(function()
  4085. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  4086. if hfr ~= nil then
  4087. for i = 0, 49 do
  4088. local deb = Instance.new("Part", char)
  4089. deb.Anchored = true
  4090. deb.CanCollide = false
  4091. deb.FormFactor = 3
  4092. deb.Name = "Ring"
  4093. deb.Material = hitfloor.Material
  4094. deb.Color = hitfloor.Color
  4095. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  4096. deb.Transparency = 0
  4097. deb.TopSurface = 0
  4098. deb.BottomSurface = 0
  4099. deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4100. local deb2 = Instance.new("Part", char)
  4101. deb2.CanCollide = false
  4102. deb2.FormFactor = 3
  4103. deb2.Name = "Ring"
  4104. deb2.Material = hitfloor.Material
  4105. deb2.Color = hitfloor.Color
  4106. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  4107. deb2.Transparency = 0
  4108. deb2.TopSurface = 0
  4109. deb2.BottomSurface = 0
  4110. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  4111. deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4112. local eff = Instance.new("ParticleEmitter",deb)
  4113. eff.Texture = "rbxassetid://363275192"
  4114. eff.LightEmission = 0.95
  4115. eff.Color = ColorSequence.new(keptcolor.Color)
  4116. eff.Rate = 100
  4117. eff.Lifetime = NumberRange.new(1)
  4118. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  4119. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4120. eff.Speed = NumberRange.new(0,5)
  4121. eff.Rotation = NumberRange.new(-500,500)
  4122. eff.VelocitySpread = 9000
  4123. eff.RotSpeed = NumberRange.new(-10,10)
  4124. local at1 = Instance.new('Attachment',deb2)
  4125. at1.Position = vt(0,15,0)
  4126. local at2 = Instance.new('Attachment',deb2)
  4127. at2.Position = vt(0,-15,0)
  4128. local tl = Instance.new('Trail',deb2)
  4129. tl.Attachment0 = at1
  4130. tl.Attachment1 = at2
  4131. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4132. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  4133. tl.Lifetime = 1
  4134. game:GetService("Debris"):AddItem(deb,30)
  4135. game:GetService("Debris"):AddItem(deb2,30)
  4136. coroutine.resume(coroutine.create(function()
  4137. wait(15)
  4138. eff.Enabled = false
  4139. for i = 0, 49 do
  4140. swait()
  4141. deb.Transparency = deb.Transparency + 0.02
  4142. end
  4143. wait(1)
  4144. deb:Destroy()
  4145. end))
  4146. end
  4147. end
  4148. end))
  4149. for i = 0, 199 do
  4150. swait(1.5)
  4151. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  4152. if v:FindFirstChild('Head') then
  4153. dmg(v)
  4154. end
  4155. end
  4156. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor)
  4157. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor)
  4158. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor)
  4159. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  4160. end
  4161. orb:Destroy()
  4162. end))
  4163. hum.WalkSpeed = storehumanoidWS
  4164. attack = false
  4165. end
  4166.  
  4167. function Beams()
  4168. attack = true
  4169. hum.WalkSpeed = 0
  4170. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  4171. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  4172. bosschatfunc("DETERMINATION BEAMS!",MAINRUINCOLOR.Color,2)
  4173. local keptcolor = MAINRUINCOLOR
  4174. coroutine.resume(coroutine.create(function()
  4175. for i = 0, 96 do
  4176. swait(5)
  4177. local orb = Instance.new("Part", char)
  4178. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  4179. orb.BrickColor = keptcolor
  4180. orb.CanCollide = false
  4181. orb.FormFactor = 3
  4182. orb.Name = "Ring"
  4183. orb.Material = "Neon"
  4184. orb.Size = Vector3.new(1, 1, 1)
  4185. orb.Transparency = 0
  4186. orb.TopSurface = 0
  4187. orb.BottomSurface = 0
  4188. orb.Anchored = true
  4189. local orbm = Instance.new("SpecialMesh", orb)
  4190. orbm.MeshType = "Sphere"
  4191. orbm.Name = "SizeMesh"
  4192. orbm.Scale = vt(1.25,1.25,1.25)
  4193. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  4194. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  4195. coroutine.resume(coroutine.create(function()
  4196. wait(0.5)
  4197. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  4198. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  4199. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  4200. orb.Transparency = 1
  4201. local a = Instance.new("Part",char)
  4202. a.Name = "Direction"
  4203. a.Anchored = true
  4204. a.BrickColor = keptcolor
  4205. a.Material = "Neon"
  4206. a.Transparency = 0.25
  4207. a.Shape = "Cylinder"
  4208. local ht = Instance.new("Part",char)
  4209. ht.Name = "DirectionHit"
  4210. ht.Anchored = true
  4211. ht.BrickColor = keptcolor
  4212. ht.CanCollide = false
  4213. ht.Transparency = 1
  4214. ht.Size = vt(0.1,0.1,0.1)
  4215. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  4216. a.CanCollide = false
  4217. local ray = Ray.new(
  4218. orb.CFrame.p, -- origin
  4219. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  4220. )
  4221. local ignore = char
  4222. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4223. a.BottomSurface = 10
  4224. a.TopSurface = 10
  4225. local distance = (orb.CFrame.p - position).magnitude
  4226. a.Size = Vector3.new(distance,1,1)
  4227. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4228. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4229. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  4230. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  4231. MagniDamage(ht, 9, 30,60, 0, "Normal")
  4232. coroutine.resume(coroutine.create(function()
  4233. local eff = Instance.new("ParticleEmitter",ht)
  4234. eff.Texture = "rbxassetid://284205403"
  4235. eff.LightEmission = 0.95
  4236. eff.Color = ColorSequence.new(keptcolor.Color)
  4237. eff.Rate = 500
  4238. eff.Lifetime = NumberRange.new(0.5)
  4239. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  4240. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4241. eff.Speed = NumberRange.new(10,50)
  4242. eff.Drag = 5
  4243. eff.Rotation = NumberRange.new(-500,500)
  4244. eff.VelocitySpread = 9000
  4245. eff.RotSpeed = NumberRange.new(-500,500)
  4246. wait(0.25)
  4247. eff.Enabled = false
  4248. end))
  4249. for i = 0, 4 do
  4250. sphere2(8,"Add",orb.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.005,0.125,-0.005,keptcolor)
  4251. sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.01,0.5,-0.01,keptcolor)
  4252. local rsiz = math.random(10,30)
  4253. sphereMK(math.random(2,4),0.25,"Add",ht.CFrame*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)
  4254. end
  4255. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4256. local msh = Instance.new("SpecialMesh",a)
  4257. msh.MeshType = "Cylinder"
  4258. msh.Scale = vt(1,1,1)
  4259. for i = 0, 49 do
  4260. swait()
  4261. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  4262. a.Transparency = a.Transparency + 0.02
  4263. end
  4264. orb:Destroy()
  4265. a:Destroy()
  4266. ht:Destroy()
  4267. end))
  4268. game:GetService("Debris"):AddItem(orb, 10)
  4269. end
  4270. end))
  4271. for i = 0,6,0.1 do
  4272. swait()
  4273. sphere2(7,"Add",sorb.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,0.075,-0.01,keptcolor)
  4274. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.2 * math.cos(sine / 35))* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  4275. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  4276. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  4277. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  4278. 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)
  4279. 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)
  4280. end
  4281. hum.WalkSpeed = storehumanoidWS
  4282. attack = false
  4283. end
  4284.  
  4285. function hugg()
  4286. attack = true
  4287. hum.WalkSpeed = 5
  4288. local rsiz = math.random(5,15)
  4289. for i = 0, 2, 0.1 do
  4290. swait()
  4291. 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(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  4292. 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))),.3)
  4293. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4294. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(0)),.3)
  4295. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  4296. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  4297. end
  4298. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  4299. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  4300. hb.Anchored = true
  4301. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  4302. local huggedperson = nil
  4303. local act = false
  4304. local alreadydid = false
  4305. for i = 0, 3, 0.1 do
  4306. swait()
  4307. if act == false then
  4308. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  4309. if v:FindFirstChild('Head') then
  4310. if alreadydid == false then
  4311. huggedperson = v
  4312. hum.WalkSpeed = 0
  4313. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  4314. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  4315. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  4316. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  4317. local radm = math.random(1,3)
  4318. bosschatfunc("Friend hug!",MAINRUINCOLOR.Color,1)
  4319. root.Anchored = true
  4320. coroutine.resume(coroutine.create(function()
  4321. huggedperson.Humanoid.WalkSpeed = 0
  4322. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  4323. end))
  4324. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  4325. alreadydid = true
  4326. act = true
  4327. print(huggedperson.Name)
  4328. end
  4329. end
  4330. end
  4331. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  4332. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(0)),.3)
  4333. elseif act == true then
  4334. coroutine.resume(coroutine.create(function()
  4335. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  4336. end))
  4337. rsiz = math.random(5,15)
  4338. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  4339. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(40)),.1)
  4340. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  4341. end
  4342. 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(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  4343. 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))),.3)
  4344. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4345. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  4346. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  4347. end
  4348. hb:Destroy()
  4349. if act == true then
  4350. for x = 0, 2 do
  4351. for i = 0, 2, 0.1 do
  4352. swait()
  4353. coroutine.resume(coroutine.create(function()
  4354. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  4355. end))
  4356. rsiz = math.random(5,15)
  4357. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  4358. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(45)),.1)
  4359. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  4360. 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(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  4361. 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))),.3)
  4362. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4363. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  4364. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  4365. end
  4366. for i = 0, 2, 0.1 do
  4367. swait()
  4368. coroutine.resume(coroutine.create(function()
  4369. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  4370. end))
  4371. rsiz = math.random(5,15)
  4372. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  4373. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(35)),.1)
  4374. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  4375. 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(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  4376. 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))),.3)
  4377. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4378. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  4379. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  4380. end
  4381. end
  4382. end
  4383. hum.WalkSpeed = storehumanoidWS
  4384. root.Anchored = false
  4385. if act == true then
  4386. coroutine.resume(coroutine.create(function()
  4387. huggedperson.Humanoid.WalkSpeed = 16
  4388. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  4389. end))
  4390. end
  4391. hum.WalkSpeed = storehumanoidWS
  4392. attack = false
  4393. end
  4394.  
  4395. function THE_TRUE_POWER_OF_VIOLENCE()
  4396. attack = true
  4397. hum.WalkSpeed = 0
  4398. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
  4399. for i = 0, 10, 0.1 do
  4400. swait()
  4401. 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)
  4402. 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)
  4403. 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)
  4404. 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)
  4405. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4406. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4407. 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)
  4408. end
  4409. local orb = Instance.new("Part", char)
  4410. orb.BrickColor = MAINRUINCOLOR
  4411. orb.CanCollide = false
  4412. orb.FormFactor = 3
  4413. orb.Name = "Ring"
  4414. orb.Material = "Neon"
  4415. orb.Size = Vector3.new(1, 1, 1)
  4416. orb.Transparency = 0
  4417. orb.TopSurface = 0
  4418. orb.BottomSurface = 0
  4419. orb.CFrame = sorb.CFrame
  4420. local orbm = Instance.new("SpecialMesh", orb)
  4421. orbm.MeshType = "Sphere"
  4422. orbm.Name = "SizeMesh"
  4423. orbm.Scale = vt(0,0,0)
  4424. local sbs = Instance.new("BodyPosition", orb)
  4425. sbs.P = 3000
  4426. sbs.D = 1000
  4427. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4428. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4429. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4430. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4431. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4432. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4433. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4434. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4435. for i = 0, 10, 0.1 do
  4436. swait()
  4437. 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)
  4438. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6)
  4439. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6)
  4440. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4441. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4442. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4443. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4444. end
  4445. orb.Anchored = true
  4446. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4447. elocacenter.Anchored = true
  4448. elocacenter.CFrame = orb.CFrame
  4449. elocacenter.Orientation = vt(0,0,0)
  4450. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4451. eloca1.Anchored = true
  4452. eloca1.CFrame = elocacenter.CFrame
  4453. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4454. eloca2.Anchored = true
  4455. eloca2.CFrame = elocacenter.CFrame
  4456. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4457. eloca3.Anchored = true
  4458. eloca3.CFrame = elocacenter.CFrame
  4459. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4460. eloca4.Anchored = true
  4461. eloca4.CFrame = elocacenter.CFrame
  4462. local lookavec = 0
  4463. local speeds = 0
  4464. CameraEnshaking(1,1)
  4465. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4466. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4467. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4468. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4469. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4470. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4471. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4472. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4473. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4474. for i = 0, 99 do
  4475. swait()
  4476. lookavec = lookavec + 2.5
  4477. speeds = speeds + 0.25
  4478. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4479. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4480. 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)
  4481.  
  4482. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4483. 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)
  4484.  
  4485. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4486. 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)
  4487.  
  4488. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4489. 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)
  4490. end
  4491.  
  4492. for i = 0, 149 do
  4493. swait()
  4494. speeds = speeds + 0.25
  4495. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4496. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4497. 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)
  4498.  
  4499. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4500. 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)
  4501.  
  4502. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4503. 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)
  4504.  
  4505. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4506. 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)
  4507. end
  4508. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4509. for i = 0, 99 do
  4510. swait()
  4511. lookavec = lookavec - 2.5
  4512. speeds = speeds + 0.25
  4513. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4514. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4515. 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)
  4516.  
  4517. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4518. 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)
  4519.  
  4520. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4521. 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)
  4522.  
  4523. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4524. 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)
  4525. end
  4526. local scaled = 0.1*75
  4527. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4528. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4529. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4530. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4531. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4532. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4533. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4534. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4535. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4536. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4537. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4538. for i = 0, 10, 0.1 do
  4539. swait()
  4540. scaled = scaled - 0.001*75
  4541. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4542. 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)
  4543. 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)
  4544. 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)
  4545. 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)
  4546. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4547. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4548. 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)
  4549. end
  4550. for x = 0, 4 do
  4551. for i = 0, 9 do
  4552. 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)
  4553. end
  4554. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4555. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4556. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4557. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4558. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4559. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4560. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4561. for i = 0, 5, 0.1 do
  4562. swait()
  4563. 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)
  4564. 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)
  4565. 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)
  4566. 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)
  4567. 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)
  4568. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4569. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4570. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4571. end
  4572. end
  4573. local speedearn = 0
  4574. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4575. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4576. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4577. for i = 0, 30, 0.1 do
  4578. swait()
  4579. scaled = scaled - 0.001*75/10
  4580. speedearn = speedearn + 0.5
  4581. for i = 0, 4 do
  4582. 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)
  4583. end
  4584. 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)
  4585. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4586. 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)
  4587. 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)
  4588. 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)
  4589. 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)
  4590. 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)
  4591. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4592. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4593. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4594. end
  4595. orb.Transparency = 1
  4596. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4597. if v:FindFirstChild('Head') then
  4598. dmg(v)
  4599. end
  4600. end
  4601. CameraEnshaking(7,30)
  4602. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4603. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4604. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4605. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4606. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4607. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4608. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4609. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4610. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4611. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4612. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4613. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4614. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4615. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4616. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4617. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4618. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4619. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4620. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4621. for i = 0, 99 do
  4622. 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)
  4623. 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)
  4624. end
  4625. for i = 0, 24 do
  4626. 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)
  4627. 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)
  4628. 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)
  4629. 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)
  4630. 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)
  4631. end
  4632. game:GetService("Debris"):AddItem(orb, 10)
  4633. hum.WalkSpeed = storehumanoidWS
  4634. attack = false
  4635. end
  4636.  
  4637. function Starfall()
  4638. attack = true
  4639. hum.WalkSpeed = 0
  4640. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  4641. for i = 0, 5, 0.1 do
  4642. swait()
  4643. 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)
  4644. 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)
  4645. 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)
  4646. 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)
  4647. 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)
  4648. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  4649. 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)
  4650. 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)
  4651. end
  4652. local Overed = false
  4653. CameraEnshaking(2,20)
  4654. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4655. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4656. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  4657. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  4658. local orb = Instance.new("Part", char)
  4659. orb.Anchored = true
  4660. orb.BrickColor = BrickColor.new("Toothpaste")
  4661. orb.CanCollide = false
  4662. orb.FormFactor = 3
  4663. orb.Name = "Remenant"
  4664. orb.Material = "Neon"
  4665. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  4666. orb.Size = Vector3.new(1, 1, 1)
  4667. orb.Transparency = 1
  4668. orb.TopSurface = 0
  4669. orb.BottomSurface = 0
  4670. hum.WalkSpeed = storehumanoidWS
  4671. coroutine.resume(coroutine.create(function()
  4672. for i = 0, 9 do
  4673. swait(10)
  4674. local lb = Instance.new("Part")
  4675. lb.Color = MAINRUINCOLOR.Color
  4676. lb.CanCollide = false
  4677. lb.Material = "Neon"
  4678. lb.Anchored = true
  4679. lb.TopSurface = 0
  4680. lb.BottomSurface = 0
  4681. lb.Transparency = 0
  4682. lb.Size = vt(1,1,1)
  4683. 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)))
  4684. lb.Anchored = false
  4685. lb.Parent = char
  4686. local thingery = Instance.new("SpecialMesh",lb)
  4687. thingery.MeshType = "Sphere"
  4688. thingery.Scale = vt(20,20,20)
  4689. game:GetService("Debris"):AddItem(lb, 10)
  4690. local bv = Instance.new("BodyVelocity")
  4691. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4692. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  4693. bv.Parent = lb
  4694. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  4695. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  4696. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  4697. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  4698. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  4699. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  4700. local hitted = false
  4701. coroutine.resume(coroutine.create(function()
  4702. while true do
  4703. swait(1)
  4704. if lb.Parent ~= nil and hitted == false then
  4705. 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)
  4706. elseif lb.Parent == nil then
  4707. break
  4708. end
  4709. end
  4710. end))
  4711.  
  4712. game:GetService("Debris"):AddItem(a, 0.1)
  4713.  
  4714. coroutine.resume(coroutine.create(function()
  4715. swait(1)
  4716. lb.Touched:connect(function(hit)
  4717. if hitted == false then
  4718. hitted = true
  4719. lb.Transparency = 1
  4720. lb.Anchored = true
  4721. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  4722. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  4723. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  4724. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  4725. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  4726. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  4727. MagniDamage(lb, 45, 45,85, 0, "Normal")
  4728. CameraEnshaking(1,5)
  4729. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4730. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4731. for i = 0, 9 do
  4732. 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)
  4733. end
  4734. for i = 0, 49 do
  4735. swait()
  4736. MagniDamage(lb, 30, 2,4, 0, "Normal")
  4737. 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)
  4738. end
  4739. end
  4740. end)
  4741. end))
  4742. end
  4743. Overed = true
  4744. orb:Destroy()
  4745. end))
  4746.  
  4747. attack = false
  4748. end
  4749.  
  4750.  
  4751. function ViolentRing()
  4752. attack = true
  4753. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4754. for i = 0, 2, 0.1 do
  4755. swait()
  4756. local snap = math.random(1,10)
  4757. if snap == 1 then
  4758. 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)
  4759. end
  4760. 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)
  4761. 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)
  4762. 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)
  4763. 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)
  4764. 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)
  4765. 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)
  4766. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4767. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4768. 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)
  4769. RootPart.CFrame = FaceMouse()[1]
  4770. end
  4771. local orb = Instance.new("Part", char)
  4772. orb.BrickColor = MAINRUINCOLOR
  4773. orb.CanCollide = false
  4774. orb.FormFactor = 3
  4775. orb.Name = "Ring"
  4776. orb.Material = "Neon"
  4777. orb.Size = Vector3.new(1, 1, 1)
  4778. orb.Transparency = 0
  4779. orb.TopSurface = 0
  4780. orb.BottomSurface = 0
  4781. local orbm = Instance.new("SpecialMesh", orb)
  4782. orbm.MeshType = "Sphere"
  4783. orbm.Name = "SizeMesh"
  4784. orbm.Scale = vt(2,2,2)
  4785. orb.CFrame = mouse.Hit
  4786. local bv = Instance.new("BodyVelocity")
  4787. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4788. bv.velocity = orb.CFrame.lookVector*100
  4789. bv.Parent = orb
  4790. local hitted = false
  4791. coroutine.resume(coroutine.create(function()
  4792. game:GetService("Debris"):AddItem(orb, 5)
  4793. orb.Transparency = 1
  4794. orb.Anchored = true
  4795. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4796. elocacenter.Anchored = true
  4797. elocacenter.CFrame = orb.CFrame
  4798. elocacenter.Orientation = vt(0,0,0)
  4799. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4800. eloca1.Anchored = true
  4801. eloca1.CFrame = elocacenter.CFrame
  4802. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4803. eloca2.Anchored = true
  4804. eloca2.CFrame = elocacenter.CFrame
  4805. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4806. eloca3.Anchored = true
  4807. eloca3.CFrame = elocacenter.CFrame
  4808. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4809. eloca4.Anchored = true
  4810. eloca4.CFrame = elocacenter.CFrame
  4811. local lookavec = 0
  4812. local speeds = 0
  4813. CameraEnshaking(1,1)
  4814. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4815. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4816. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4817. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4818. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4819. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4820. for i = 0, 24 do
  4821. swait()
  4822. lookavec = lookavec + 3.5
  4823. speeds = speeds + 1
  4824. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4825. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4826. 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)
  4827.  
  4828. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4829. 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)
  4830.  
  4831. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4832. 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)
  4833.  
  4834. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4835. 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)
  4836. end
  4837.  
  4838. local risen = 0
  4839. for i = 0, 49 do
  4840. swait()
  4841. risen = risen + 0.05
  4842. speeds = speeds + 0.1
  4843. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4844. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4845. 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)
  4846.  
  4847. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4848. 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)
  4849.  
  4850. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4851. 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)
  4852.  
  4853. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4854. 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)
  4855. end
  4856. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4857. if v:FindFirstChild('Head') then
  4858. dmg(v)
  4859. end
  4860. end
  4861. CameraEnshaking(4,10)
  4862. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4863. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4864. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4865. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4866. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4867. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4868. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4869. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4870. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4871. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4872. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4873. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4874. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4875. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4876. for i = 0, 24 do
  4877. 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)
  4878. 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)
  4879. 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)
  4880. 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)
  4881. end
  4882. coroutine.resume(coroutine.create(function()
  4883. wait(10)
  4884. elocacenter:Destroy()
  4885. eloca1:Destroy()
  4886. eloca2:Destroy()
  4887. eloca3:Destroy()
  4888. eloca4:Destroy()
  4889. end))
  4890. end))
  4891. attack = false
  4892. end
  4893.  
  4894. function AZUREFINALE()
  4895. attack = true
  4896. duringend = true
  4897. hum.WalkSpeed = 0
  4898. CFuncs["Sound"].Create("rbxassetid://1117054464", char, 7.5, 0.75)
  4899. CFuncs["LongSound"].Create("rbxassetid://1042700914", char, 3.5, 0.05)
  4900. local hite = Instance.new("Part", char)
  4901. hite.Anchored = true
  4902. hite.CanCollide = false
  4903. hite.FormFactor = 3
  4904. hite.Name = "Ring"
  4905. hite.Material = "Neon"
  4906. hite.Size = Vector3.new(1, 1, 1)
  4907. hite.Transparency = 0
  4908. hite.TopSurface = 0
  4909. hite.BottomSurface = 0
  4910. hite.BrickColor = MAINRUINCOLOR
  4911. local orbm = Instance.new("SpecialMesh", hite)
  4912. orbm.MeshType = "Sphere"
  4913. orbm.Name = "SizeMesh"
  4914. orbm.Scale = vt(0,0,0)
  4915. hite.CFrame = root.CFrame*CFrame.new(0,200,0)
  4916. for i = 0,70,0.1 do
  4917. swait()
  4918. orbm.Scale = orbm.Scale + vt(0.5,0.5,0.5)
  4919. rsiz = math.random(10,45)
  4920. kan.Volume = kan.Volume + 0.01
  4921. kan.Pitch = kan.Pitch - 0.00070
  4922. bosschatfunc("I'm sorry I have to do this...",MAINRUINCOLOR.Color,2)
  4923. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  4924. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  4925. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  4926. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  4927. 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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  4928. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  4929. end
  4930. kan.Pitch = 0.6
  4931. hite.Transparency = 1
  4932. for i = 0,2 do
  4933. CFuncs["LongSound"].Create("rbxassetid://324849898", char, 10,0.9)
  4934. end
  4935. CFuncs["LongSound"].Create("rbxassetid://1117054464", char, 5, 0.75)
  4936. coroutine.resume(coroutine.create(function()
  4937. local eff = Instance.new("ParticleEmitter",hite)
  4938. eff.Texture = "rbxassetid://284205403"
  4939. eff.LightEmission = 0.95
  4940. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  4941. eff.Rate = 10000
  4942. eff.Lifetime = NumberRange.new(5)
  4943. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,0,0)})
  4944. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4945. eff.Speed = NumberRange.new(600,1250)
  4946. eff.Drag = 5
  4947. eff.Rotation = NumberRange.new(-500,500)
  4948. eff.VelocitySpread = 9000
  4949. eff.RotSpeed = NumberRange.new(-500,500)
  4950. wait(1)
  4951. eff.Enabled = false
  4952. end))
  4953. for i = 0,5,0.1 do
  4954. swait()
  4955. bosschatfunc("...This will kill me... But I don't care...",MAINRUINCOLOR.Color,2)
  4956. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  4957. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  4958. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  4959. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  4960. 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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  4961. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  4962. end
  4963. local adsc = 0
  4964. local radiatezone = 0
  4965. for i = 0,20,0.1 do
  4966. swait()
  4967. adsc = adsc + 0.025
  4968. radiatezone = radiatezone + 1.25
  4969. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  4970. if v:FindFirstChild('Head') then
  4971. dmg(v)
  4972. end
  4973. end
  4974. bosschatfunc("Goodbye...",MAINRUINCOLOR.Color,2)
  4975. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  4976. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  4977. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  4978. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  4979. 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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  4980. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  4981. end
  4982. for i = 0,2 do
  4983. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.9)
  4984. end
  4985. for i = 0,40,0.1 do
  4986. swait()
  4987. adsc = adsc + 0.05
  4988. radiatezone = radiatezone + 2.5
  4989. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  4990. if v:FindFirstChild('Head') then
  4991. dmg(v)
  4992. end
  4993. end
  4994. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  4995. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  4996. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  4997. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  4998. 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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  4999. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  5000. end
  5001. for i = 0,4 do
  5002. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.75)
  5003. CFuncs["LongSound"].Create("rbxassetid://923073285", char, 1.25,0.75)
  5004. end
  5005. for i = 0,80,0.1 do
  5006. swait()
  5007. adsc = adsc + 0.075
  5008. radiatezone = radiatezone + 3.75
  5009. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  5010. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  5011. if v:FindFirstChild('Head') then
  5012. dmg(v)
  5013. end
  5014. end
  5015. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  5016. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  5017. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  5018. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  5019. 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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  5020. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  5021. end
  5022. hite:Destroy()
  5023. char:BreakJoints()
  5024. duringend = false
  5025. hum.WalkSpeed = storehumanoidWS
  5026. attack = false
  5027. end
  5028.  
  5029.  
  5030. function ChaosEND()
  5031. attack = true
  5032. local speedearn = 0
  5033. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
  5034. for i = 0, 15, 0.1 do
  5035. swait()
  5036. speedearn = speedearn + 0.25
  5037. 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)
  5038. 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)
  5039. 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)
  5040. 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)
  5041. 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)
  5042. 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)
  5043. 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)
  5044. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5045. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5046. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  5047. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  5048. end
  5049. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  5050. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  5051. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  5052. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  5053. CameraEnshaking(5,25)
  5054. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  5055. if v:FindFirstChild('Head') then
  5056. dmg(v)
  5057. end
  5058. end
  5059. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  5060. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  5061. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  5062. for i = 0, 3, 0.1 do
  5063. swait()
  5064. 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)
  5065. 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)
  5066. 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)
  5067. 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)
  5068. 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)
  5069. 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)
  5070. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5071. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5072. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  5073. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  5074. end
  5075. attack = false
  5076. end
  5077.  
  5078. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  5079. local orb = Instance.new("Part", char)
  5080. orb.Anchored = true
  5081. orb.BrickColor = color
  5082. orb.CanCollide = false
  5083. orb.FormFactor = 3
  5084. orb.Name = "Ring"
  5085. orb.Material = "Neon"
  5086. orb.Size = Vector3.new(1, 1, 1)
  5087. orb.Transparency = 0
  5088. orb.TopSurface = 0
  5089. orb.BottomSurface = 0
  5090. local orbm = Instance.new("SpecialMesh", orb)
  5091. orbm.MeshType = "Sphere"
  5092. orb.CFrame = positted
  5093. orbm.Name = "SizeMesh"
  5094. orbm.Scale = vt(1,1,1)
  5095. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  5096. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  5097. --[[for i = 0, 2 do
  5098. 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)
  5099. end]]--
  5100. coroutine.resume(coroutine.create(function()
  5101. wait(timer)
  5102. CameraEnshaking(3,ShakePower)
  5103. orb.Transparency = 1
  5104. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  5105. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  5106. --[[for i = 0, 4 do
  5107. 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)
  5108. end]]--
  5109. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  5110. wait(3)
  5111. orb:Destroy()
  5112. end))
  5113. end
  5114.  
  5115. function orb_spawn(positted,timer)
  5116. local randomcol = math.random(1,2)
  5117. local orb = Instance.new("Part", char)
  5118. orb.Anchored = true
  5119. if randomcol == 1 then
  5120. orb.BrickColor = BrickColor.new("White")
  5121. elseif randomcol == 2 then
  5122. orb.BrickColor = BrickColor.new("Really black")
  5123. end
  5124. orb.CanCollide = false
  5125. orb.FormFactor = 3
  5126. orb.Name = "Ring"
  5127. orb.Material = "Neon"
  5128. orb.Size = Vector3.new(1, 1, 1)
  5129. orb.Transparency = 0
  5130. orb.TopSurface = 0
  5131. orb.BottomSurface = 0
  5132. local orbm = Instance.new("SpecialMesh", orb)
  5133. orbm.MeshType = "Sphere"
  5134. orb.CFrame = positted
  5135. orbm.Name = "SizeMesh"
  5136. orbm.Scale = vt(1,1,1)
  5137. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  5138. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  5139. for i = 0, 2 do
  5140. 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)
  5141. end
  5142. coroutine.resume(coroutine.create(function()
  5143. wait(timer)
  5144. CameraEnshaking(3,2)
  5145. orb.Transparency = 1
  5146. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  5147. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  5148. for i = 0, 4 do
  5149. 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)
  5150. end
  5151. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  5152. wait(3)
  5153. orb:Destroy()
  5154. end))
  5155. end
  5156.  
  5157. function scattercorrupt()
  5158. attack = true
  5159. local rot = 0
  5160. local randomrotations = math.random(1,2)
  5161. local lookv = 2.5
  5162. local power = 5
  5163. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  5164. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  5165. for i = 0, 9 do
  5166. 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)
  5167. end
  5168. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  5169. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  5170. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  5171. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  5172. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  5173. local hite = Instance.new("Part", char)
  5174. hite.Anchored = true
  5175. hite.CanCollide = false
  5176. hite.FormFactor = 3
  5177. hite.Name = "Ring"
  5178. hite.Material = "Neon"
  5179. hite.Size = Vector3.new(1, 1, 1)
  5180. hite.Transparency = 1
  5181. hite.TopSurface = 0
  5182. hite.BottomSurface = 0
  5183. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5184. local rem = Instance.new("Part", char)
  5185. rem.Anchored = true
  5186. rem.CanCollide = false
  5187. rem.FormFactor = 3
  5188. rem.Name = "Ring"
  5189. rem.Material = "Neon"
  5190. rem.Size = Vector3.new(1, 1, 1)
  5191. rem.Transparency = 1
  5192. rem.TopSurface = 0
  5193. rem.BottomSurface = 0
  5194. rem.CFrame = hite.CFrame
  5195. local rem2 = rem:Clone()
  5196. rem2.Parent = char
  5197. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5198. local rem3 = rem:Clone()
  5199. rem3.Parent = char
  5200. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5201. local rem4 = rem:Clone()
  5202. rem4.Parent = char
  5203. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5204. hite:Destroy()
  5205. coroutine.resume(coroutine.create(function()
  5206. for i = 0, 24 do
  5207. swait(1)
  5208. if randomrotations == 1 then
  5209. rot = rot + 1
  5210. elseif randomrotations == 2 then
  5211. rot = rot - 1
  5212. end
  5213. power = power + 0.5
  5214. lookv = lookv + 7.5
  5215. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5216. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5217. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5218. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5219. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5220. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5221. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5222. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5223. end
  5224. end))
  5225. attack = false
  5226. end
  5227. function yinyangi()
  5228. attack = true
  5229. for i = 0, 2, 0.1 do
  5230. swait()
  5231. 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)
  5232. 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)
  5233. 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)
  5234. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5235. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5236. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5237. end
  5238. local bv = Instance.new("BodyVelocity")
  5239. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5240. bv.velocity = root.CFrame.lookVector*175
  5241. bv.Parent = root
  5242. for Rotations = 0, 9 do
  5243. for i = 0, 1, 0.5 do
  5244. swait()
  5245. bv.velocity = root.CFrame.lookVector*175
  5246. 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)
  5247. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5248. 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)
  5249. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5250. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5251. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5252. end
  5253. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5254. for i = 0, 1, 0.5 do
  5255. swait()
  5256. bv.velocity = root.CFrame.lookVector*175
  5257. 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)
  5258. 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)
  5259. 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)
  5260. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5261. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5262. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5263. end
  5264. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5265. for i = 0, 1, 0.5 do
  5266. swait()
  5267. bv.velocity = root.CFrame.lookVector*175
  5268. 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)
  5269. 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)
  5270. 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)
  5271. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5272. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5273. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5274. end
  5275. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5276. for i = 0, 1, 0.5 do
  5277. swait()
  5278. bv.velocity = root.CFrame.lookVector*175
  5279. 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)
  5280. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5281. 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)
  5282. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5283. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5284. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5285. end
  5286. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5287. end
  5288. bv:Destroy()
  5289. attack = false
  5290. end
  5291.  
  5292. function createBGCircle(size,parent,color)
  5293. local bgui = Instance.new("BillboardGui",parent)
  5294. bgui.Size = UDim2.new(size, 0, size, 0)
  5295. local imgc = Instance.new("ImageLabel",bgui)
  5296. imgc.BackgroundTransparency = 1
  5297. imgc.ImageTransparency = 0
  5298. imgc.Size = UDim2.new(1,0,1,0)
  5299. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5300. imgc.ImageColor3 = color
  5301. return bgui,imgc
  5302. end
  5303.  
  5304. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5305. local bgui,imgc = createBGCircle(size,guipar,color)
  5306. bgui.AlwaysOnTop = true
  5307. imgc.Image = "rbxassetid://" ..img
  5308. local rrot = math.random(1,2)
  5309. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5310. coroutine.resume(coroutine.create(function()
  5311. for i = 0, 24*delay do
  5312. swait()
  5313. if rotationenabled == true then
  5314. if rrot == 1 then
  5315. imgc.Rotation = imgc.Rotation + rotsp
  5316. elseif rrot == 2 then
  5317. imgc.Rotation = imgc.Rotation - rotsp
  5318. end
  5319. end
  5320. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5321. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5322. end
  5323. bgui:Destroy()
  5324. end))
  5325. end
  5326. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5327. for i, v in pairs(mw2:GetChildren()) do
  5328. if v:IsA("Part") then
  5329. v.BrickColor = one
  5330. v.Material = "Neon"
  5331. end
  5332. end
  5333. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5334. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5335. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5336. tr1.Color = ColorSequence.new(one.Color)
  5337. tr2.Color = ColorSequence.new(one.Color)
  5338. tr3.Color = ColorSequence.new(one.Color)
  5339. for i, v in pairs(mw1:GetChildren()) do
  5340. if v:IsA("Part") then
  5341. if secondaryenabled == false then
  5342. v.Transparency = 0
  5343. elseif secondaryenabled == true then
  5344. v.Transparency = 0
  5345. end
  5346. v.BrickColor = two
  5347. v.Material = "Neon"
  5348. end
  5349. end
  5350. if secondaryenabled == false then
  5351. tl1.Enabled = false
  5352. tl2.Enabled = false
  5353. tl3.Enabled = false
  5354. elseif secondaryenabled == true then
  5355. tl1.Enabled = true
  5356. tl2.Enabled = true
  5357. tl3.Enabled = true
  5358. end
  5359. tl1.Color = ColorSequence.new(two.Color)
  5360. tl2.Color = ColorSequence.new(two.Color)
  5361. tl3.Color = ColorSequence.new(two.Color)
  5362. for i, v in pairs(m:GetChildren()) do
  5363. if v:IsA("Part") then
  5364. v.BrickColor = three
  5365. v.Material = "Ice"
  5366. end
  5367. end
  5368. for i, v in pairs(m2:GetChildren()) do
  5369. if v:IsA("Part") then
  5370. v.BrickColor = four
  5371. v.Material = "Ice"
  5372. end
  5373. end
  5374. for i, v in pairs(m3:GetChildren()) do
  5375. if v:IsA("Part") then
  5376. v.BrickColor = five
  5377. v.Material = "Neon"
  5378. end
  5379. end
  5380. for i, v in pairs(extrawingmod1:GetChildren()) do
  5381. if v:IsA("Part") then
  5382. v.Transparency = 0.75
  5383. v.BrickColor = BrickColor.new("Royal purple")
  5384. v.Material = "Neon"
  5385. end
  5386. end
  5387. for i, v in pairs(extrawingmod2:GetChildren()) do
  5388. if v:IsA("Part") then
  5389. v.Transparency = 0.75
  5390. v.BrickColor = BrickColor.new("Royal purple")
  5391. v.Material = "Neon"
  5392. end
  5393. end
  5394. end
  5395.  
  5396.  
  5397. function normalmog()
  5398. attack = true
  5399. hum.WalkSpeed = 0
  5400. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5401. for i = 0,6,0.1 do
  5402. swait()
  5403. 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)
  5404. 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)
  5405. 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)
  5406. 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)
  5407. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5408. 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)
  5409. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5410. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5411. end
  5412. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5413. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5414. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5415. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5416. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5417. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5418. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5419. rainbowmode = false
  5420. chaosmode = false
  5421. ModeOfGlitch = 1
  5422. storehumanoidWS = 16
  5423. newTheme("rbxassetid://395351949",48.6,1,1.25)
  5424. RecolorTextAndRename("Shadow Star",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5425. CameraEnshaking(5,2.5)
  5426. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5427. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5428. for i = 0, 49 do
  5429. 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)
  5430. end
  5431. for i = 0, 24 do
  5432. 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)
  5433. 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"))
  5434. end
  5435. for i = 0,3,0.1 do
  5436. 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)
  5437. end
  5438. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5439. for i = 0,2,0.1 do
  5440. swait()
  5441. 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)
  5442. 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)
  5443. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5444. 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)
  5445. 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)
  5446. 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)
  5447. end
  5448. hum.WalkSpeed = storehumanoidWS
  5449. attack = false
  5450. end
  5451.  
  5452. function attackone()
  5453. attack = true
  5454. local keptcolor = MAINRUINCOLOR
  5455. for i = 0,1,0.1 do
  5456. swait()
  5457. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5458. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5459. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5460. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5461. 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)
  5462. 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)
  5463. end
  5464. local distlook = 5
  5465. coroutine.resume(coroutine.create(function()
  5466. for i = 0, 4 do
  5467. swait(2)
  5468. CameraEnshaking(2,3)
  5469. local hite = Instance.new("Part", char)
  5470. hite.Anchored = true
  5471. hite.CanCollide = false
  5472. hite.FormFactor = 3
  5473. hite.Name = "Ring"
  5474. hite.Material = "Neon"
  5475. hite.Size = Vector3.new(1, 1, 1)
  5476. hite.Transparency = 1
  5477. hite.TopSurface = 0
  5478. hite.BottomSurface = 0
  5479. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5480. 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)
  5481. 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)
  5482. 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)
  5483. 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)
  5484. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5485. for i = 0, 14 do
  5486. local rsiz = math.random(5,20)
  5487. 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)
  5488. end
  5489. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5490. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5491. game:GetService("Debris"):AddItem(hite, 5)
  5492. distlook = distlook + 10
  5493. end
  5494. end))
  5495. for i = 0,1,0.1 do
  5496. swait()
  5497. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5498. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5499. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5500. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5501. 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)
  5502. 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)
  5503. end
  5504. attack = false
  5505. end
  5506.  
  5507. function attacktwo()
  5508. attack = true
  5509. hum.WalkSpeed = 2
  5510. local keptcolor = MAINRUINCOLOR
  5511. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5512. 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)
  5513. 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)
  5514. for i = 0, 14 do
  5515. end
  5516. for i = 0,1,0.1 do
  5517. swait()
  5518. 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)
  5519. 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)
  5520. 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)
  5521. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5522. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5523. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5524. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5525. end
  5526. for i = 0, 1 do
  5527. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5528. for i = 0,1,0.6 do
  5529. swait()
  5530. 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)
  5531. 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)
  5532. 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)
  5533. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5534. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5535. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5536. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5537. end
  5538. for i = 0,1,0.6 do
  5539. swait()
  5540. 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)
  5541. 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)
  5542. 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)
  5543. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5544. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5545. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5546. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5547. end
  5548. for i = 0,1,0.6 do
  5549. swait()
  5550. 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)
  5551. 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)
  5552. 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)
  5553. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5554. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5555. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5556. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5557. end
  5558. for i = 0,1,0.6 do
  5559. swait()
  5560. 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)
  5561. 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)
  5562. 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)
  5563. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5564. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5565. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5566. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5567. end
  5568. local rot = 0
  5569. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5570. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5571. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5572. CreateMesh(dis,"Sphere",10,1,10)
  5573. local at1 = Instance.new("Attachment",dis)
  5574. at1.Position = vt(-5,0,0)
  5575. local at2 = Instance.new("Attachment",dis)
  5576. at2.Position = vt(5,0,0)
  5577. local trl = Instance.new('Trail',wed)
  5578. trl.Attachment0 = at1
  5579. trl.Attachment1 = at2
  5580. trl.Texture = "rbxassetid://1049219073"
  5581. trl.LightEmission = 1
  5582. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5583. trl.Color = ColorSequence.new(dis.Color)
  5584. trl.Lifetime = 0.6
  5585. local a = Instance.new("Part",workspace)
  5586. a.Name = "Direction"
  5587. a.Anchored = true
  5588. a.BrickColor = bc("Bright red")
  5589. a.Material = "Neon"
  5590. a.Transparency = 1
  5591. a.CanCollide = false
  5592. local ray = Ray.new(
  5593. dis.CFrame.p, -- origin
  5594. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5595. )
  5596. local ignore = dis
  5597. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5598. a.BottomSurface = 10
  5599. a.TopSurface = 10
  5600. local distance = (dis.CFrame.p - position).magnitude
  5601. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5602. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5603. dis.CFrame = a.CFrame
  5604. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5605. a:Destroy()
  5606. local bv = Instance.new("BodyVelocity")
  5607. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5608. bv.velocity = dis.CFrame.lookVector*250
  5609. bv.Parent = dis
  5610. game:GetService("Debris"):AddItem(dis, 5)
  5611. local hitted = false
  5612. coroutine.resume(coroutine.create(function()
  5613. dis.Touched:connect(function(hit)
  5614. if hitted == false and hit.Parent ~= char then
  5615. hitted = true
  5616. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5617. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5618. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5619. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5620. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5621. coroutine.resume(coroutine.create(function()
  5622. for i = 0, 9 do
  5623. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5624. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5625. local at1 = Instance.new("Attachment",disr)
  5626. at1.Position = vt(-5,0,0)
  5627. local at2 = Instance.new("Attachment",disr)
  5628. at2.Position = vt(5,0,0)
  5629. local trl = Instance.new('Trail',disr)
  5630. trl.Attachment0 = at1
  5631. trl.FaceCamera = true
  5632. trl.Attachment1 = at2
  5633. trl.Texture = "rbxassetid://2342682798"
  5634. trl.LightEmission = 1
  5635. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5636. trl.Color = ColorSequence.new(keptcolor.Color)
  5637. trl.Lifetime = 0.5
  5638. local bv = Instance.new("BodyVelocity")
  5639. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5640. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5641. bv.Parent = disr
  5642. local val = 0
  5643. coroutine.resume(coroutine.create(function()
  5644. swait(30)
  5645. for i = 0, 9 do
  5646. swait()
  5647. val = val + 0.1
  5648. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5649. end
  5650. game:GetService("Debris"):AddItem(disr, 3)
  5651. end))
  5652. end
  5653. local eff = Instance.new("ParticleEmitter",dis)
  5654. eff.Texture = "rbxassetid://2273224484"
  5655. eff.LightEmission = 1
  5656. eff.Color = ColorSequence.new(keptcolor.Color)
  5657. eff.Rate = 50
  5658. eff.Lifetime = NumberRange.new(0.5,2)
  5659. 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)})
  5660. 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)})
  5661. eff.Speed = NumberRange.new(20,250)
  5662. eff.Drag = 5
  5663. eff.Rotation = NumberRange.new(-500,500)
  5664. eff.VelocitySpread = 9000
  5665. eff.RotSpeed = NumberRange.new(-50,50)
  5666. wait(0.25)
  5667. eff.Enabled = false
  5668. end))
  5669. for i = 0, 9 do
  5670. end
  5671. for i = 0, 19 do
  5672. end
  5673. coroutine.resume(coroutine.create(function()
  5674. for i = 0, 19 do
  5675. swait()
  5676. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5677. end
  5678. hum.CameraOffset = vt(0,0,0)
  5679. end))
  5680. dis.Anchored = true
  5681. dis.Transparency = 1
  5682. wait(8)
  5683. dis:Destroy()
  5684. end
  5685. end)
  5686. end))
  5687. rot = rot - 15
  5688. end
  5689. for i = 0,2,0.1 do
  5690. swait()
  5691. 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)
  5692. 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)
  5693. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5694. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5695. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5696. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5697. end
  5698. attack = false
  5699. hum.WalkSpeed = storehumanoidWS
  5700. end
  5701.  
  5702. function attackthree()
  5703. attack = true
  5704. local keptcolor = MAINRUINCOLOR
  5705. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5706. for i = 0,2,0.1 do
  5707. swait()
  5708. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5709. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5710. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5711. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5712. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5713. 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)
  5714. 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)
  5715. end
  5716. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5717. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5718. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5719. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5720. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5721. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5722. for i = 0, 24 do
  5723. end
  5724. for i = 0,4,0.1 do
  5725. swait()
  5726. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5727. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5728. CreateMesh(dis,"Sphere",1,1,1)
  5729. dis.Anchored = true
  5730. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5731. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5732. coroutine.resume(coroutine.create(function()
  5733. swait(30)
  5734. dis.Transparency = 1
  5735. coroutine.resume(coroutine.create(function()
  5736. for i = 0, 19 do
  5737. swait()
  5738. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5739. end
  5740. hum.CameraOffset = vt(0,0,0)
  5741. end))
  5742. coroutine.resume(coroutine.create(function()
  5743. local eff = Instance.new("ParticleEmitter",dis)
  5744. eff.Texture = "rbxassetid://2273224484"
  5745. eff.LightEmission = 1
  5746. eff.Color = ColorSequence.new(dis.Color)
  5747. eff.Rate = 500000
  5748. eff.Lifetime = NumberRange.new(0.5,2)
  5749. 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)})
  5750. 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)})
  5751. eff.Speed = NumberRange.new(50,450)
  5752. eff.Drag = 5
  5753. eff.Rotation = NumberRange.new(-500,500)
  5754. eff.VelocitySpread = 9000
  5755. eff.RotSpeed = NumberRange.new(-50,50)
  5756. wait(0.125)
  5757. eff.Enabled = false
  5758. end))
  5759. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5760. for i = 0, 2 do
  5761. --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)
  5762. end
  5763. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5764. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5765. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5766. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5767. end))
  5768. game:GetService("Debris"):AddItem(dis, 5)
  5769. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5770. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5771. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5772. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5773. 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)
  5774. 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)
  5775. end
  5776. attack = false
  5777. end
  5778. ----------------------------------- Abilities
  5779.  
  5780. function ExtinctiveHeartbreak()
  5781. local targetted = nil
  5782. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5783. targetted = mouse.Target.Parent
  5784. end
  5785. if targetted ~= nil then
  5786. attack = true
  5787. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5788. for i = 0, 9 do
  5789. 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)
  5790. end
  5791. for i = 0, 24 do
  5792. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  5793. end
  5794. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5795. local originalpos = root.CFrame
  5796. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5797. for i = 0, 9 do
  5798. 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)
  5799. end
  5800. for i = 0, 24 do
  5801. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  5802. end
  5803. hum.WalkSpeed = 0
  5804. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5805. local radm = math.random(1,3)
  5806. if radm == 1 then
  5807. bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5808. elseif radm == 2 then
  5809. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5810. elseif radm == 3 then
  5811. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5812. end
  5813. for i = 0,2,0.1 do
  5814. swait()
  5815. 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)
  5816. 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)
  5817. 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)
  5818. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5819. 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)
  5820. 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)
  5821. end
  5822. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  5823. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  5824. for i = 0,2,0.1 do
  5825. swait()
  5826. coroutine.resume(coroutine.create(function()
  5827. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5828. for i,v in pairs(targetted:GetChildren()) do
  5829. if v:IsA("Part") or v:IsA("MeshPart") then
  5830. v.Velocity = vt(0,0,0)
  5831. end
  5832. end
  5833. end))
  5834. 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)
  5835. 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)
  5836. 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)
  5837. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5838. 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)
  5839. 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)
  5840. end
  5841. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  5842. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  5843. for i = 0, 1 do
  5844. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  5845. end
  5846. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  5847. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5848. for i = 0,4,0.1 do
  5849. swait()
  5850. coroutine.resume(coroutine.create(function()
  5851. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5852. 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)))
  5853. local at1 = Instance.new("Attachment",dis)
  5854. at1.Position = vt(-25000,0,0)
  5855. local at2 = Instance.new("Attachment",dis)
  5856. at2.Position = vt(25000,0,0)
  5857. local trl = Instance.new('Trail',dis)
  5858. trl.Attachment0 = at1
  5859. trl.FaceCamera = true
  5860. trl.Attachment1 = at2
  5861. trl.Texture = "rbxassetid://1049219073"
  5862. trl.LightEmission = 1
  5863. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5864. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5865. trl.Lifetime = 5
  5866. local bv = Instance.new("BodyVelocity")
  5867. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5868. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5869. bv.Parent = dis
  5870. game:GetService("Debris"):AddItem(dis, 5)
  5871. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5872. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5873. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5874. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5875. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5876. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5877. 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)
  5878. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5879. for i = 0, 2 do
  5880. 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"))
  5881. end
  5882. 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)
  5883. for i,v in pairs(targetted:GetChildren()) do
  5884. if v:IsA("Part") or v:IsA("MeshPart") then
  5885. v.Velocity = vt(0,0,0)
  5886. end
  5887. end
  5888. end))
  5889. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5890. 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)
  5891. 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)
  5892. 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)
  5893. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5894. 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)
  5895. 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)
  5896. end
  5897. hum.CameraOffset = vt(0,0,0)
  5898. for i = 0, 49 do
  5899. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5900. 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)))
  5901. local at1 = Instance.new("Attachment",dis)
  5902. at1.Position = vt(-50000,0,0)
  5903. local at2 = Instance.new("Attachment",dis)
  5904. at2.Position = vt(50000,0,0)
  5905. local trl = Instance.new('Trail',dis)
  5906. trl.Attachment0 = at1
  5907. trl.FaceCamera = true
  5908. trl.Attachment1 = at2
  5909. trl.Texture = "rbxassetid://1049219073"
  5910. trl.LightEmission = 1
  5911. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5912. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5913. trl.Lifetime = 5
  5914. local bv = Instance.new("BodyVelocity")
  5915. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5916. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5917. bv.Parent = dis
  5918. game:GetService("Debris"):AddItem(dis, 5)
  5919. end
  5920. for i = 0, 49 do
  5921. 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)
  5922. 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"))
  5923. end
  5924. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5925. for i = 0, 1 do
  5926. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5927. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5928. end
  5929. for i = 0, 4 do
  5930. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5931. end
  5932. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5933. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5934. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5935. dmg(targetted)
  5936. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5937. for i = 0, 9 do
  5938. 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)
  5939. end
  5940. for i = 0, 24 do
  5941. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  5942. end
  5943. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5944. root.CFrame = originalpos
  5945. for i = 0, 9 do
  5946. 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)
  5947. end
  5948. for i = 0, 24 do
  5949. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  5950. end
  5951. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5952. attack = false
  5953. hum.WalkSpeed = storehumanoidWS
  5954. end
  5955. end
  5956.  
  5957.  
  5958.  
  5959. function CorruptionEvent()
  5960. attack = true
  5961. hum.WalkSpeed = 0
  5962. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5963. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5964. local keptcolor = MAINRUINCOLOR
  5965. for i = 0,4,0.1 do
  5966. swait()
  5967. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5968. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5969. 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)
  5970. 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)
  5971. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5972. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5973. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5974. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5975. end
  5976. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5977. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5978. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5979. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5980. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5981. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5982. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5983. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5984. hum.CameraOffset = vt(0,0,0)
  5985. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5986. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5987. for i = 0, 24 do
  5988. 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"))
  5989. end
  5990. local rrot = 0
  5991. coroutine.resume(coroutine.create(function()
  5992. for i = 0, 4 do
  5993. rrot = rrot + 45
  5994. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5995. xa.Anchored = true
  5996. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5997. xb.Anchored = true
  5998. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5999. xc.Anchored = true
  6000. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6001. xd.Anchored = true
  6002. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  6003. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  6004. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  6005. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  6006. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  6007. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  6008. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  6009. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  6010. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  6011. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  6012. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  6013. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  6014. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  6015. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  6016. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  6017. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  6018. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6019. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6020. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6021. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6022. for i = 0, 9 do
  6023. bosschatfunc("DIE!",MAINRUINCOLOR.Color,1)
  6024. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  6025. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xb.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  6026. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xc.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  6027. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xd.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  6028. end
  6029. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6030. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6031. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6032. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6033. 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)
  6034. 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)
  6035. 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)
  6036. 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)
  6037. 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))
  6038. 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))
  6039. 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))
  6040. 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))
  6041. game:GetService("Debris"):AddItem(xa, 5)
  6042. game:GetService("Debris"):AddItem(xb, 5)
  6043. game:GetService("Debris"):AddItem(xc, 5)
  6044. game:GetService("Debris"):AddItem(xd, 5)
  6045. coroutine.resume(coroutine.create(function()
  6046. for i = 0, 19 do
  6047. swait()
  6048. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6049. end
  6050. hum.CameraOffset = vt(0,0,0)
  6051. end))
  6052. swait(9)
  6053. end
  6054. end))
  6055. for i = 0,2,0.1 do
  6056. swait()
  6057. 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)
  6058. 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)
  6059. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  6060. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  6061. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  6062. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6063. end
  6064. attack = false
  6065. hum.WalkSpeed = storehumanoidWS
  6066. end
  6067.  
  6068. function EndGROUND()
  6069. attack = true
  6070. hum.WalkSpeed = 0
  6071. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  6072. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  6073. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  6074. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  6075. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  6076. local keptcolor = MAINRUINCOLOR
  6077. for i = 0,4,0.1 do
  6078. swait()
  6079. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6080. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6081. 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"))
  6082. 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)
  6083. 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)
  6084. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  6085. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  6086. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  6087. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  6088. end
  6089. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  6090. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  6091. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  6092. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  6093. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  6094. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  6095. coroutine.resume(coroutine.create(function()
  6096. local shval = 10
  6097. for i = 0, 99 do
  6098. swait()
  6099. shval = shval - 0.1
  6100. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  6101. end
  6102. hum.CameraOffset = vt(0,0,0)
  6103. end))
  6104. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6105. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6106. for i = 0, 24 do
  6107. 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"))
  6108. end
  6109. local rrot = 0
  6110. local xam = 1
  6111. coroutine.resume(coroutine.create(function()
  6112. for i = 0, 14 do
  6113. --swait()
  6114. rrot = rrot + 40*xam
  6115. xam = xam + 0.25
  6116. local bonus = xam
  6117. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  6118. xa.Anchored = true
  6119. xa.Color = Color3.new(0,0,0)
  6120. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  6121. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  6122. local xc = 0
  6123. coroutine.resume(coroutine.create(function()
  6124. for i = 0, 99 do
  6125. swait()
  6126. xc = xc + 0.01
  6127. xa.Color = Color3.new(xc,0,0)
  6128. end
  6129. xa.Transparency = 1
  6130. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  6131. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  6132. for i = 0, 9 do
  6133. 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"))
  6134. end
  6135. 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)
  6136. 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)
  6137. 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))
  6138. game:GetService("Debris"):AddItem(xa, 5)
  6139. coroutine.resume(coroutine.create(function()
  6140. for i = 0, 19 do
  6141. swait()
  6142. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6143. end
  6144. hum.CameraOffset = vt(0,0,0)
  6145. end))
  6146. end))
  6147. end
  6148. end))
  6149. for i = 0,2,0.1 do
  6150. swait()
  6151. 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)
  6152. 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)
  6153. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  6154. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  6155. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  6156. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6157. end
  6158. attack = false
  6159. hum.WalkSpeed = storehumanoidWS
  6160. end
  6161.  
  6162. function harmonytaunty()
  6163. attack = true
  6164. hum.WalkSpeed = 0
  6165. CFuncs["Sound"].Create("rbxassetid://430312221", tors, 1.25, 1.15)
  6166. for i = 0,7,0.1 do
  6167. swait()
  6168. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-20 + 6 * math.cos(sine / 34))),.2)
  6169. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(10 - 4 * math.cos(sine / 47))),.2)
  6170. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(-2 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-2 + 4 * math.cos(sine / 62))),.2)
  6171. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(12 - 3 * math.cos(sine / 28)),math.rad(12 - 3 * math.cos(sine / 79)),math.rad(2 - 4 * math.cos(sine / 62))),.2)
  6172. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.01 * math.cos(sine / 28),-0.1)*angles(math.rad(34 + 2 * math.cos(sine / 33)),math.rad(0),math.rad(-13 - 3 * math.cos(sine / 28))),.2)
  6173. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(80 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(10 + 5 * math.cos(sine / 30))),.2)
  6174. end
  6175. attack = false
  6176. hum.WalkSpeed = storehumanoidWS
  6177. end
  6178.  
  6179. function vistaunty()
  6180. attack = true
  6181. hum.WalkSpeed = 0
  6182. local rd = math.random(1,5)
  6183. if rd == 1 then
  6184. chatfunc("Do you know this song?",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  6185. elseif rd == 2 then
  6186. chatfunc("You seem annoyed. Did I make you? It's possible...",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  6187. elseif rd == 3 then
  6188. chatfunc("I'm just bored. Don't mess with me, Capiche?",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  6189. elseif rd == 4 then
  6190. chatfunc("Ready to dance? If not, come back if you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  6191. elseif rd == 5 then
  6192. chatfunc("Dance to the beat with me, Yeah?",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  6193. end
  6194. for i = 0, 8, 0.1 do
  6195. swait()
  6196. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4)
  6197. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4)
  6198. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(60)),.4)
  6199. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-60)),.4)
  6200. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(90 + 5 * math.cos(sine / 34) + kan.PlaybackLoudness/7.5),math.rad(0),math.rad(60 - 2 * math.cos(sine / 38))),.4)
  6201. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4)
  6202. end
  6203. attack = false
  6204. end
  6205.  
  6206. function HeavenlyDisk()
  6207. attack = true
  6208. hum.WalkSpeed = 2
  6209. local keptcolor = MAINRUINCOLOR
  6210. local radm = math.random(1,3)
  6211. if radm == 1 then
  6212. --bosschatfunc("Don't make this too easy for you.",MAINRUINCOLOR.Color,1)
  6213. elseif radm == 2 then
  6214. --bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  6215. elseif radm == 3 then
  6216. --bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6217. end
  6218. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6219. CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
  6220. for i = 0, 14 do
  6221. --
  6222. end
  6223. for i = 0,2,0.1 do
  6224. swait()
  6225. 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)
  6226. 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)
  6227. 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)
  6228. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6229. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6230. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6231. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6232. end
  6233. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6234. for i = 0,1,0.6 do
  6235. swait()
  6236. 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)
  6237. --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"))
  6238. 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)
  6239. 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)
  6240. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6241. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6242. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6243. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6244. end
  6245. for i = 0,1,0.6 do
  6246. swait()
  6247. 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)
  6248. --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"))
  6249. 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)
  6250. 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)
  6251. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6252. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6253. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6254. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6255. end
  6256. for i = 0,1,0.6 do
  6257. swait()
  6258. 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)
  6259. --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"))
  6260. 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)
  6261. 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)
  6262. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6263. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6264. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6265. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6266. end
  6267. for i = 0,1,0.6 do
  6268. swait()
  6269. 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)
  6270. --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"))
  6271. 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)
  6272. 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)
  6273. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6274. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6275. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6276. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6277. end
  6278. local rot = 15
  6279. for i = 0, 2 do
  6280. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6281. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6282. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6283. CreateMesh(dis,"Sphere",10,1,10)
  6284. local at1 = Instance.new("Attachment",dis)
  6285. at1.Position = vt(-5,0,0)
  6286. local at2 = Instance.new("Attachment",dis)
  6287. at2.Position = vt(5,0,0)
  6288. local trl = Instance.new('Trail',wed)
  6289. trl.Attachment0 = at1
  6290. trl.Attachment1 = at2
  6291. trl.Texture = "rbxassetid://1049219073"
  6292. trl.LightEmission = 1
  6293. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6294. trl.Color = ColorSequence.new(dis.Color)
  6295. trl.Lifetime = 0.6
  6296. local a = Instance.new("Part",workspace)
  6297. a.Name = "Direction"
  6298. a.Anchored = true
  6299. a.BrickColor = bc("Bright red")
  6300. a.Material = "Neon"
  6301. a.Transparency = 1
  6302. a.CanCollide = false
  6303. local ray = Ray.new(
  6304. dis.CFrame.p, -- origin
  6305. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6306. )
  6307. local ignore = dis
  6308. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6309. a.BottomSurface = 10
  6310. a.TopSurface = 10
  6311. local distance = (dis.CFrame.p - position).magnitude
  6312. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6313. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6314. dis.CFrame = a.CFrame
  6315. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6316. a:Destroy()
  6317. local bv = Instance.new("BodyVelocity")
  6318. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6319. bv.velocity = dis.CFrame.lookVector*250
  6320. bv.Parent = dis
  6321. game:GetService("Debris"):AddItem(dis, 5)
  6322. local hitted = false
  6323. coroutine.resume(coroutine.create(function()
  6324. dis.Touched:connect(function(hit)
  6325. if hitted == false and hit.Parent ~= char then
  6326. hitted = true
  6327. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6328. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6329. --sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6330. --sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6331. --sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6332. coroutine.resume(coroutine.create(function()
  6333. for i = 0, 9 do
  6334. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6335. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6336. local at1 = Instance.new("Attachment",disr)
  6337. at1.Position = vt(-2,0,0)
  6338. local at2 = Instance.new("Attachment",disr)
  6339. at2.Position = vt(2,0,0)
  6340. local trl = Instance.new('Trail',disr)
  6341. trl.Attachment0 = at1
  6342. trl.FaceCamera = true
  6343. trl.Attachment1 = at2
  6344. trl.Texture = "rbxassetid://2342682798"
  6345. trl.LightEmission = 1
  6346. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6347. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6348. trl.Lifetime = 0.5
  6349. local bv = Instance.new("BodyVelocity")
  6350. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6351. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6352. bv.Parent = disr
  6353. local val = 0
  6354. coroutine.resume(coroutine.create(function()
  6355. swait(30)
  6356. for i = 0, 9 do
  6357. swait()
  6358. val = val + 0.1
  6359. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6360. end
  6361. game:GetService("Debris"):AddItem(disr, 3)
  6362. end))
  6363. end
  6364. local eff = Instance.new("ParticleEmitter",dis)
  6365. eff.Texture = "rbxassetid://2273224484"
  6366. eff.LightEmission = 1
  6367. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6368. eff.Rate = 500000
  6369. eff.Lifetime = NumberRange.new(0.5,2)
  6370. 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)})
  6371. 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)})
  6372. eff.Speed = NumberRange.new(20,250)
  6373. eff.Drag = 5
  6374. eff.Rotation = NumberRange.new(-500,500)
  6375. eff.VelocitySpread = 9000
  6376. eff.RotSpeed = NumberRange.new(-50,50)
  6377. wait(0.25)
  6378. eff.Enabled = false
  6379. end))
  6380. for i = 0, 9 do
  6381. --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"))
  6382. end
  6383. for i = 0, 19 do
  6384. --
  6385. end
  6386. coroutine.resume(coroutine.create(function()
  6387. for i = 0, 19 do
  6388. swait()
  6389. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6390. end
  6391. hum.CameraOffset = vt(0,0,0)
  6392. end))
  6393. dis.Anchored = true
  6394. dis.Transparency = 1
  6395. wait(8)
  6396. dis:Destroy()
  6397. end
  6398. end)
  6399. end))
  6400. rot = rot - 15
  6401. end
  6402. for i = 0,2,0.1 do
  6403. swait()
  6404. 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)
  6405. 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)
  6406. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6407. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6408. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6409. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6410. end
  6411. attack = false
  6412. hum.WalkSpeed = storehumanoidWS
  6413. end
  6414.  
  6415. function RapidBurst()
  6416. attack = true
  6417. hum.WalkSpeed = 0
  6418. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6419. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6420. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6421. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6422. local keptcolor = MAINRUINCOLOR
  6423. for i = 0,8,0.1 do
  6424. swait()
  6425. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6426. --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())
  6427. 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)
  6428. 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)
  6429. 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)
  6430. 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)
  6431. 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)
  6432. 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)
  6433. 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)
  6434. end
  6435. for i = 0, 99 do
  6436. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6437. 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)))
  6438. local at1 = Instance.new("Attachment",dis)
  6439. at1.Position = vt(-25000,0,0)
  6440. local at2 = Instance.new("Attachment",dis)
  6441. at2.Position = vt(25000,0,0)
  6442. local trl = Instance.new('Trail',dis)
  6443. trl.Attachment0 = at1
  6444. trl.FaceCamera = true
  6445. trl.Attachment1 = at2
  6446. trl.Texture = "rbxassetid://1049219073"
  6447. trl.LightEmission = 1
  6448. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6449. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6450. trl.Lifetime = 5
  6451. local bv = Instance.new("BodyVelocity")
  6452. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6453. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6454. bv.Parent = dis
  6455. game:GetService("Debris"):AddItem(dis, 5)
  6456. end
  6457. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6458. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6459. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6460. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6461. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6462. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6463. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6464. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6465. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6466. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6467. hum.CameraOffset = vt(0,0,0)
  6468. for i = 0, 24 do
  6469. --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())
  6470. end
  6471. local distam = 0
  6472. coroutine.resume(coroutine.create(function()
  6473. for i = 0, 99 do
  6474. wait()
  6475. distam = distam + 1
  6476. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6477. xa.Anchored = true
  6478. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6479. game:GetService("Debris"):AddItem(xa, 5)
  6480. for i = 0, 4 do
  6481. --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())
  6482. end
  6483. coroutine.resume(coroutine.create(function()
  6484. local eff = Instance.new("ParticleEmitter",xa)
  6485. eff.Texture = "rbxassetid://2273224484"
  6486. eff.LightEmission = 1
  6487. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6488. eff.Rate = 500000
  6489. eff.Lifetime = NumberRange.new(1,3)
  6490. 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)})
  6491. 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)})
  6492. eff.Speed = NumberRange.new(50,500)
  6493. eff.Drag = 5
  6494. eff.Rotation = NumberRange.new(-500,500)
  6495. eff.VelocitySpread = 9000
  6496. eff.RotSpeed = NumberRange.new(-50,50)
  6497. wait(0.25)
  6498. eff.Enabled = false
  6499. end))
  6500. coroutine.resume(coroutine.create(function()
  6501. for i = 0, 19 do
  6502. swait()
  6503. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6504. end
  6505. hum.CameraOffset = vt(0,0,0)
  6506. end))
  6507. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6508. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6509. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6510. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6511. end
  6512. end))
  6513. attack = false
  6514. hum.WalkSpeed = storehumanoidWS
  6515. end
  6516.  
  6517.  
  6518. function FallenOrbs()
  6519. attack = true
  6520. hum.WalkSpeed = 2
  6521. local keptcolor = MAINRUINCOLOR
  6522. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
  6523. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
  6524. local radm = math.random(1,3)
  6525. if radm == 1 then
  6526. bosschatfunc("Lets make this a little fun.",MAINRUINCOLOR.Color,1)
  6527. elseif radm == 2 then
  6528. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6529. elseif radm == 3 then
  6530. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6531. end
  6532. coroutine.resume(coroutine.create(function()
  6533. for i = 0, 29 do
  6534. swait(2)
  6535. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6536. dis.Anchored = true
  6537. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6538. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6539. CreateMesh(dis,"Sphere",2,2,2)
  6540. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6541. --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"))
  6542. coroutine.resume(coroutine.create(function()
  6543. wait(0.5)
  6544. dis.Anchored = false
  6545. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  6546. local at1 = Instance.new("Attachment",dis)
  6547. at1.Position = vt(-1,0,0)
  6548. local at2 = Instance.new("Attachment",dis)
  6549. at2.Position = vt(1,0,0)
  6550. local trl = Instance.new('Trail',dis)
  6551. trl.Attachment0 = at1
  6552. trl.FaceCamera = true
  6553. trl.Attachment1 = at2
  6554. trl.Texture = "rbxassetid://1049219073"
  6555. trl.LightEmission = 1
  6556. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6557. trl.Color = ColorSequence.new(dis.Color)
  6558. trl.Lifetime = 0.6
  6559. local a = Instance.new("Part",workspace)
  6560. a.Name = "Direction"
  6561. a.Anchored = true
  6562. a.BrickColor = bc("Bright red")
  6563. a.Material = "Neon"
  6564. a.Transparency = 1
  6565. a.CanCollide = false
  6566. local ray = Ray.new(
  6567. dis.CFrame.p, -- origin
  6568. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6569. )
  6570. local ignore = dis
  6571. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6572. a.BottomSurface = 10
  6573. a.TopSurface = 10
  6574. local distance = (dis.CFrame.p - position).magnitude
  6575. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6576. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6577. dis.CFrame = a.CFrame
  6578. a:Destroy()
  6579. local bv = Instance.new("BodyVelocity")
  6580. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6581. bv.velocity = dis.CFrame.lookVector*500
  6582. bv.Parent = dis
  6583. game:GetService("Debris"):AddItem(dis, 5)
  6584. local hitted = false
  6585. coroutine.resume(coroutine.create(function()
  6586. dis.Touched:connect(function(hit)
  6587. if hitted == false and hit.Parent ~= char then
  6588. hitted = true
  6589. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  6590. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6591. --sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6592. --sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6593. coroutine.resume(coroutine.create(function()
  6594. for i = 0, 4 do
  6595. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6596. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6597. local at1 = Instance.new("Attachment",disr)
  6598. at1.Position = vt(-10,0,0)
  6599. local at2 = Instance.new("Attachment",disr)
  6600. at2.Position = vt(10,0,0)
  6601. local trl = Instance.new('Trail',disr)
  6602. trl.Attachment0 = at1
  6603. trl.FaceCamera = true
  6604. trl.Attachment1 = at2
  6605. trl.Texture = "rbxassetid://2342682798"
  6606. trl.LightEmission = 1
  6607. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6608. trl.Color = ColorSequence.new(disr.Color)
  6609. trl.Lifetime = 0.5
  6610. local bv = Instance.new("BodyVelocity")
  6611. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6612. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6613. bv.Parent = disr
  6614. local val = 0
  6615. coroutine.resume(coroutine.create(function()
  6616. swait(30)
  6617. for i = 0, 9 do
  6618. swait()
  6619. val = val + 0.1
  6620. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6621. end
  6622. game:GetService("Debris"):AddItem(disr, 3)
  6623. end))
  6624. end
  6625. local eff = Instance.new("ParticleEmitter",dis)
  6626. eff.Texture = "rbxassetid://2273224484"
  6627. eff.LightEmission = 1
  6628. eff.Color = ColorSequence.new(dis.Color)
  6629. eff.Rate = 500000
  6630. eff.Lifetime = NumberRange.new(0.5,2)
  6631. 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)})
  6632. 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)})
  6633. eff.Speed = NumberRange.new(20,250)
  6634. eff.Drag = 5
  6635. eff.Rotation = NumberRange.new(-500,500)
  6636. eff.VelocitySpread = 9000
  6637. eff.RotSpeed = NumberRange.new(-50,50)
  6638. wait(0.5)
  6639. eff.Enabled = false
  6640. end))
  6641. for i = 0, 4 do
  6642. --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"))
  6643. end
  6644. coroutine.resume(coroutine.create(function()
  6645. for i = 0, 19 do
  6646. swait()
  6647. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6648. end
  6649. hum.CameraOffset = vt(0,0,0)
  6650. end))
  6651. dis.Anchored = true
  6652. dis.Transparency = 1
  6653. wait(8)
  6654. dis:Destroy()
  6655. end
  6656. end)
  6657. end))
  6658. end))
  6659. end
  6660. end))
  6661. for i = 0,9,0.1 do
  6662. swait()
  6663. 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)
  6664. 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)
  6665. 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)
  6666. 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)
  6667. 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)
  6668. 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)
  6669. 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)
  6670. end
  6671. attack = false
  6672. hum.WalkSpeed = storehumanoidWS
  6673. end
  6674.  
  6675. function EquinoxOrbs()
  6676. hum.WalkSpeed = 0
  6677. attack = true
  6678. for i = 0,1,0.1 do
  6679. swait()
  6680. 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)
  6681. 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)
  6682. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6683. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6684. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6685. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6686. end
  6687. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6688. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6689. for i = 0, 24 do
  6690. --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"))
  6691. end
  6692. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6693. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6694. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6695. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6696. for i = 0,4,0.1 do
  6697. swait()
  6698. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6699. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6700. CreateMesh(dis,"Sphere",1,1,1)
  6701. dis.Anchored = true
  6702. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6703. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6704. CreateMesh(dis2,"Sphere",1,1,1)
  6705. dis2.Anchored = true
  6706. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6707. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6708. --sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6709. coroutine.resume(coroutine.create(function()
  6710. swait(60)
  6711. dis.Transparency = 1
  6712. dis2.Transparency = 1
  6713. coroutine.resume(coroutine.create(function()
  6714. for i = 0, 19 do
  6715. swait()
  6716. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6717. end
  6718. hum.CameraOffset = vt(0,0,0)
  6719. end))
  6720. coroutine.resume(coroutine.create(function()
  6721. local eff = Instance.new("ParticleEmitter",dis)
  6722. eff.Texture = "rbxassetid://2273224484"
  6723. eff.LightEmission = 1
  6724. eff.Color = ColorSequence.new(dis.Color)
  6725. eff.Rate = 500000
  6726. eff.Lifetime = NumberRange.new(0.5,2)
  6727. 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)})
  6728. 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)})
  6729. eff.Speed = NumberRange.new(50,450)
  6730. eff.Drag = 5
  6731. eff.Rotation = NumberRange.new(-500,500)
  6732. eff.VelocitySpread = 9000
  6733. eff.RotSpeed = NumberRange.new(-50,50)
  6734. local eff2 = eff:Clone()
  6735. eff2.Parent = dis2
  6736. eff2.LightEmission = 0
  6737. eff2.Color = ColorSequence.new(dis2.Color)
  6738. wait(0.25)
  6739. eff.Enabled = false
  6740. eff2.Enabled = false
  6741. end))
  6742. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6743. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6744. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6745. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6746. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6747. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6748. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6749. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6750. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6751. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6752. end))
  6753. game:GetService("Debris"):AddItem(dis, 5)
  6754. game:GetService("Debris"):AddItem(dis2, 5)
  6755. 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)
  6756. 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)
  6757. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6758. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6759. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6760. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6761. end
  6762. attack = false
  6763. hum.WalkSpeed = storehumanoidWS
  6764. end
  6765. function FallenDEMISE()
  6766. attack = true
  6767. hum.WalkSpeed = 0
  6768. local keptcolor = MAINRUINCOLOR
  6769. --bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6770. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6771. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6772. for i = 0, 15, 0.1 do
  6773. swait()
  6774. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6775. 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)))
  6776. local at1 = Instance.new("Attachment",dis)
  6777. at1.Position = vt(-25000,0,0)
  6778. local at2 = Instance.new("Attachment",dis)
  6779. at2.Position = vt(25000,0,0)
  6780. local trl = Instance.new('Trail',dis)
  6781. trl.Attachment0 = at1
  6782. trl.FaceCamera = true
  6783. trl.Attachment1 = at2
  6784. trl.Texture = "rbxassetid://1049219073"
  6785. trl.LightEmission = 1
  6786. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6787. trl.Color = ColorSequence.new(dis.Color)
  6788. trl.Lifetime = 5
  6789. local bv = Instance.new("BodyVelocity")
  6790. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6791. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6792. bv.Parent = dis
  6793. game:GetService("Debris"):AddItem(dis, 1)
  6794. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6795. --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"))
  6796. --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"))
  6797. 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)
  6798. 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)
  6799. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6800. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6801. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6802. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6803. end
  6804. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6805. for i = 0, 30, 0.1 do
  6806. swait()
  6807. coroutine.resume(coroutine.create(function()
  6808. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6809. if v:FindFirstChild('Head') then
  6810. dmg(v)
  6811. end
  6812. end
  6813. end))
  6814. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6815. 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)))
  6816. local at1 = Instance.new("Attachment",dis)
  6817. at1.Position = vt(-50000,0,0)
  6818. local at2 = Instance.new("Attachment",dis)
  6819. at2.Position = vt(50000,0,0)
  6820. local trl = Instance.new('Trail',dis)
  6821. trl.Attachment0 = at1
  6822. trl.FaceCamera = true
  6823. trl.Attachment1 = at2
  6824. trl.Texture = "rbxassetid://1049219073"
  6825. trl.LightEmission = 1
  6826. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6827. trl.Color = ColorSequence.new(dis.Color)
  6828. trl.Lifetime = 10
  6829. local bv = Instance.new("BodyVelocity")
  6830. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6831. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6832. bv.Parent = dis
  6833. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6834. --sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6835. --sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6836. --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"))
  6837. --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"))
  6838. --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"))
  6839. --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"))
  6840. for i = 0, 2 do
  6841. --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)
  6842. end
  6843. 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)
  6844. 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)
  6845. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6846. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6847. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6848. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6849. end
  6850. attack = false
  6851. hum.WalkSpeed = storehumanoidWS
  6852. end
  6853. -------------------------------------
  6854.  
  6855. Humanoid.Animator.Parent = nil
  6856.  
  6857. -------------------------------------
  6858.  
  6859. local attacktype = 1
  6860. mouse.Button1Down:connect(function()
  6861. if attack == false and attacktype == 1 then
  6862. attacktype = 2
  6863. attackone()
  6864. elseif attack == false and attacktype == 2 then
  6865. attacktype = 3
  6866. attacktwo()
  6867. elseif attack == false and attacktype == 3 then
  6868. attacktype = 1
  6869. attackthree()
  6870. elseif attack == false and attacktype == 4 then
  6871. attacktype = 1
  6872. --attackfour()
  6873. end
  6874. end)
  6875. mouse.KeyDown:connect(function(k)
  6876. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  6877. --normalmog() ---Disabled due to crashing... only in VSB
  6878. ModeOfGlitch = 1
  6879. storehumanoidWS = 16
  6880. hum.WalkSpeed = 16
  6881. rainbowmode = false
  6882. chaosmode = false
  6883. newTheme("rbxassetid://395351949",0,1.02,1.25)
  6884. RecolorTextAndRename("Shadow Star",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  6885. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6886. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  6887. end
  6888. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  6889. ModeOfGlitch = 2
  6890. storehumanoidWS = 16
  6891. hum.WalkSpeed = 16
  6892. rainbowmode = false
  6893. chaosmode = false
  6894. RecolorTextAndRename("Black War Shadow",Color3.new(0,0,0),Color3.new(0,0,0),"Code")
  6895. newTheme("rbxassetid://790661474",0,1,1)
  6896. MAINRUINCOLOR = BrickColor.new("Really black")
  6897. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6898. end
  6899. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  6900. ModeOfGlitch = 3
  6901. storehumanoidWS = 16
  6902. hum.WalkSpeed = 16
  6903. rainbowmode = false
  6904. chaosmode = false
  6905. RecolorTextAndRename("Careless Shadow",Color3.new(0,0,0),Color3.new(0,0,0.4),"Antique")
  6906. newTheme("rbxassetid://2074863720", 0,0.8,1.5)
  6907. MAINRUINCOLOR = BrickColor.new("Dark red")
  6908. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6909. end
  6910. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  6911. ModeOfGlitch = 4
  6912. storehumanoidWS = 16
  6913. hum.WalkSpeed = 16
  6914. rainbowmode = false
  6915. chaosmode = true
  6916. RecolorTextAndRename("Anti Shadow",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  6917. newTheme("rbxassetid://1370857557",0,0.8,1.5)
  6918. MAINRUINCOLOR = BrickColor.new("Black")
  6919. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6920. end
  6921. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  6922. ModeOfGlitch = 5
  6923. storehumanoidWS = 100
  6924. hum.WalkSpeed = 100
  6925. rainbowmode = false
  6926. chaosmode = false
  6927. RecolorTextAndRename("Light Shadow",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  6928. newTheme("rbxassetid://595800581",0,1,1)
  6929. MAINRUINCOLOR = BrickColor.new("Really yellow")
  6930. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6931. end
  6932. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  6933. ModeOfGlitch = 6
  6934. storehumanoidWS = 100
  6935. hum.WalkSpeed = 100
  6936. rainbowmode = false
  6937. chaosmode = false
  6938. RecolorTextAndRename("Depressed Shadow",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  6939. newTheme("rbxassetid://1564523997",0,1,1)
  6940. MAINRUINCOLOR = BrickColor.new("Really black")
  6941. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6942. end
  6943.  
  6944. if k == "n" and attack == false and ModeOfGlitch == 664663666 and ModeOfGlitch ~= 98749871956 then
  6945. ModeOfGlitch = 98749871956
  6946. storehumanoidWS = 16
  6947. hum.WalkSpeed = 16
  6948. rainbowmode = false
  6949. chaosmode = false
  6950. RecolorTextAndRename("Broken Heart Shadow",Color3.new(1,1,1),BrickColor.new("Black").Color,"Code")
  6951. newTheme("rbxassetid://1849282910",0,1.01,1.25)
  6952. MAINRUINCOLOR = BrickColor.new("Black")
  6953. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6954. end
  6955. if k == "h" and attack == false and ModeOfGlitch ~= 100 then
  6956. ModeOfGlitch = 100
  6957. storehumanoidWS = 4000
  6958. hum.WalkSpeed = 400
  6959. rainbowmode = false
  6960. chaosmode = false
  6961. RecolorTextAndRename("Scared Shadow",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  6962. newTheme("rbxassetid://247971190",0,1,1)
  6963. MAINRUINCOLOR = BrickColor.new("Really black")
  6964. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6965. end
  6966. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  6967. ModeOfGlitch = 8
  6968. storehumanoidWS = 140
  6969. hum.WalkSpeed = 140
  6970. rainbowmode = false
  6971. chaosmode = false
  6972. RecolorTextAndRename("Timeless Shadow",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  6973. newTheme("rbxassetid://1495032271",0,1.01,1.25)
  6974. MAINRUINCOLOR = BrickColor.new("Alder")
  6975. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6976. end
  6977. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 3444 then
  6978. ModeOfGlitch = 3444
  6979. storehumanoidWS = 100
  6980. hum.WalkSpeed = 100
  6981. rainbowmode = false
  6982. chaosmode = false
  6983. CRAZED = false
  6984. RecolorTextAndRename("Insane Shadow",Color3.new(1,1,1),BrickColor.new("Storm blue").Color,"Code")
  6985. newTheme("rbxassetid://1218913321",0,1,1)
  6986. MAINRUINCOLOR = BrickColor.new("Storm blue")
  6987. RecolorThing(MAINRUINCOLOR,BrickColor.new("Storm blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  6988. end
  6989. if k == "m" and attack == false and ModeOfGlitch == 98749871956 and ModeOfGlitch ~= 8376532578634534 then
  6990. ModeOfGlitch = 8376532578634534
  6991. storehumanoidWS = 50
  6992. hum.WalkSpeed = 50
  6993. rainbowmode = false
  6994. chaosmode = false
  6995. RecolorTextAndRename("Full Power Shadow",Color3.new(1,1,1),BrickColor.new("Maroon").Color,"Code")
  6996. newTheme("rbxassetid://183142252",0,1.01,1.25)
  6997. MAINRUINCOLOR = BrickColor.new("Maroon")
  6998. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6999. end
  7000. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 664663666 then
  7001. ModeOfGlitch = 664663666
  7002. storehumanoidWS = 175
  7003. hum.WalkSpeed = 175
  7004. rainbowmode = false
  7005. chaosmode = false
  7006. CRAZED = false
  7007. RecolorTextAndRename("Violent Shadow",Color3.new(0.1,0,0),Color3.new(0.25,0,0),"Antique")
  7008. disably = false
  7009. bosschatfunc("HAHAHAHAHAH!!!!!!!","Antique",Color3.new(0.1,0,0),Color3.new(0.25,0,0))
  7010. disably = true
  7011. newTheme("rbxassetid://1138145518",0,1.01,1.5)
  7012. MAINRUINCOLOR = BrickColor.new("Maroon")
  7013. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true,false)
  7014. end
  7015. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  7016. ModeOfGlitch = 9
  7017. storehumanoidWS = 150
  7018. hum.WalkSpeed = 150
  7019. rainbowmode = false
  7020. chaosmode = false
  7021. RecolorTextAndRename("Infected Shadow",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  7022. newTheme("rbxassetid://1812212957",0,0.8,1.5)
  7023. MAINRUINCOLOR = BrickColor.new("Dark red")
  7024. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark Red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7025. end
  7026. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  7027. ModeOfGlitch = 8889
  7028. storehumanoidWS = 180
  7029. hum.WalkSpeed = 180
  7030. rainbowmode = false
  7031. chaosmode = false
  7032. RecolorTextAndRename("Destroyer Shadow",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  7033. newTheme("rbxassetid://1359036559",0,1.01,1.25)
  7034. MAINRUINCOLOR = BrickColor.new("Lilac")
  7035. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7036. end
  7037. if k == "n" and attack == false and ModeOfGlitch == 8889 and ModeOfGlitch ~= 99999999 then
  7038. ModeOfGlitch = 99999999
  7039. bosschatfunc("Try to stop me now!",MAINRUINCOLOR.Color,2)
  7040. storehumanoidWS = 180
  7041. hum.WalkSpeed = 180
  7042. rainbowmode = false
  7043. chaosmode = false
  7044. RecolorTextAndRename("Royal Shadow",BrickColor.new("Royal purple").Color,BrickColor.new("Lilac").Color,"Antique")
  7045. newTheme("rbxassetid://1504604335",0,1.01,1.25)
  7046. MAINRUINCOLOR = BrickColor.new("Lilac")
  7047. RecolorThing(MAINRUINCOLOR,BrickColor.new("Royal purple"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7048. end
  7049. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  7050. ModeOfGlitch = 55469696922
  7051. storehumanoidWS = 275
  7052. hum.WalkSpeed = 275
  7053. rainbowmode = false
  7054. chaosmode = false
  7055. RecolorTextAndRename("Friendly Shadow",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  7056. newTheme("rbxassetid://1844782079",0,1.005,1.25)
  7057. MAINRUINCOLOR = BrickColor.new("Navy blue")
  7058. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7059. end
  7060. if k == "j" and attack == false and ModeOfGlitch ~= 897616 then
  7061. ModeOfGlitch = 897616
  7062. bosschatfunc("a new mode? Let's see what this mode has got in store for us shall we...",MAINRUINCOLOR.Color,2)
  7063. storehumanoidWS = 200
  7064. hum.WalkSpeed = 200
  7065. rainbowmode = false
  7066. chaosmode = false
  7067. RecolorTextAndRename("Reaper Shadow",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  7068. newTheme("rbxassetid://912710423",0,1.01,1.25)
  7069. MAINRUINCOLOR = BrickColor.new("Maroon")
  7070. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7071. end
  7072. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  7073. ModeOfGlitch = 4367677813
  7074. storehumanoidWS = 225
  7075. hum.WalkSpeed = 225
  7076. rainbowmode = false
  7077. chaosmode = false
  7078. RecolorTextAndRename("Lightless Shadow",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  7079. newTheme("rbxassetid://363284685",0,1.01,1.25)
  7080. MAINRUINCOLOR = BrickColor.new("Baby blue")
  7081. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7082. end
  7083. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  7084. ModeOfGlitch = 9999999921111
  7085. storehumanoidWS = 16
  7086. hum.WalkSpeed = 16
  7087. rainbowmode = false
  7088. chaosmode = false
  7089. RecolorTextAndRename("Evil Shadow",BrickColor.new("Really black").Color,BrickColor.new("Really black").Color,"SciFi")
  7090. newTheme("rbxassetid://1346743822",0,1,1)
  7091. MAINRUINCOLOR = BrickColor.new("Really black")
  7092. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7093. end
  7094. if k == "m" and attack == false and ModeOfGlitch == 999999999556 and ModeOfGlitch ~= 99999999955665 then
  7095. ModeOfGlitch = 99999999955665
  7096. storehumanoidWS = 500
  7097. hum.WalkSpeed = 500
  7098. rainbowmode = false
  7099. chaosmode = false
  7100. CRAZED = true
  7101. RecolorTextAndRename("Astral Shadow",BrickColor.new("Navy blue").Color,BrickColor.new("Bright yellow").Color,"Code")
  7102. disably = false
  7103. bosschatfunc("HAHAHAHAHA.","Code",BrickColor.new("Navy blue").Color,BrickColor.new("Navy blue").Color)
  7104. disably = true
  7105. newTheme("rbxassetid://1755270401",0,1.02,1.25)
  7106. MAINRUINCOLOR = BrickColor.new("Navy blue")
  7107. RecolorThing(MAINRUINCOLOR,BrickColor.new("Navy blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,0,BrickColor.new("Navy blue"),0,BrickColor.new("Really blue"),true,true)
  7108. end
  7109. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  7110. ModeOfGlitch = 999999999556
  7111. storehumanoidWS = 250
  7112. hum.WalkSpeed = 250
  7113. rainbowmode = false
  7114. chaosmode = false
  7115. RecolorTextAndRename("Hero Shadow",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  7116. newTheme("rbxassetid://398455752",0,1.02,1.25)
  7117. MAINRUINCOLOR = BrickColor.new("Really red")
  7118. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7119. end
  7120. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  7121. ModeOfGlitch = 1264532489
  7122. storehumanoidWS = 250
  7123. hum.WalkSpeed = 250
  7124. rainbowmode = false
  7125. chaosmode = false
  7126. RecolorTextAndRename("Shadow, The King of Corruption and Destruction",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  7127. newTheme("rbxassetid://1504604335",0,0.8,1.5)
  7128. MAINRUINCOLOR = BrickColor.new("Royal purple")
  7129. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7130. end
  7131. if k == "l" and mutedtog == false then
  7132. mutedtog = true
  7133. kan.Volume = 0
  7134. elseif k == "l" and mutedtog == true then
  7135. mutedtog = false
  7136. kan.Volume = 1.25
  7137. end
  7138. if k == "p" and toggleTag == false then
  7139. toggleTag = true
  7140. modet.TextTransparency = 0
  7141. modet.TextStrokeTransparency = 0
  7142. elseif k == "p" and toggleTag == true then
  7143. toggleTag = false
  7144. modet.TextTransparency = 1
  7145. modet.TextStrokeTransparency = 1
  7146. end
  7147. if k == "z" and attack == false and ModeOfGlitch == 1 then
  7148. ExtinctiveHeartbreak()
  7149. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  7150. HeavenlyDisk()
  7151. elseif k == "v" and attack == false and ModeOfGlitch == 99999999 then
  7152. harmonytaunty()
  7153. elseif k == "z" and attack == false and ModeOfGlitch == 99999999 then
  7154. HeavenlyDisk()
  7155. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  7156. GleamingBeam()
  7157. elseif k == "z" and attack == false and ModeOfGlitch == 8376532578634534 then
  7158. ExtinctiveHeartbreak()
  7159. elseif k == "c" and attack == false and ModeOfGlitch == 98749871956 then
  7160. CorruptBlink()
  7161. elseif k == "x" and attack == false and ModeOfGlitch == 999999999556 then
  7162. BeamOfDeath()
  7163. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  7164. Beams()
  7165. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  7166. CorruptionEvent()
  7167. elseif k == "z" and attack == false and ModeOfGlitch == 9999999921111 then
  7168. CorruptionEvent()
  7169. elseif k == "c" and attack == false and ModeOfGlitch == 4 then
  7170. ChaosGroundStrike()
  7171. elseif k == "x" and attack == false and ModeOfGlitch == 9999999921111 then
  7172. ChaosGroundStrike()
  7173. elseif k == "b" and attack == false and ModeOfGlitch == 4 then
  7174. InsaneGroundStrike()
  7175. elseif k == "b" and attack == false and ModeOfGlitch == 4 then
  7176. InsaneGroundStrike()
  7177. elseif k == "z" and attack == false and ModeOfGlitch == 3444 then
  7178. InsaneGroundStrike()
  7179. elseif k == "v" and attack == false and ModeOfGlitch == 3444 then
  7180. ChaosBegone()
  7181. elseif k == "v" and attack == false and ModeOfGlitch == 4 then
  7182. ChaosBegone()
  7183. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  7184. ChaosBegone()
  7185. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  7186. CorruptionEvent()
  7187. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  7188. Starfall()
  7189. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  7190. RapidBurst()
  7191. elseif k == "z" and attack == false and ModeOfGlitch == 55469696922 then
  7192. hugg()
  7193. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  7194. EquinoxOrbs()
  7195. elseif k == "m" and attack == false and ModeOfGlitch == 6 then
  7196. RiddleMeThisRiddleMeThat()
  7197. elseif k == "z" and attack == false and ModeOfGlitch == 100 then
  7198. CorruptionEvent()
  7199. elseif k == "x" and attack == false and ModeOfGlitch == 100 then
  7200. EquinoxOrbs()
  7201. elseif k == "x" and attack == false and ModeOfGlitch == 99999999 then
  7202. Beams()
  7203. elseif k == "z" and attack == false and ModeOfGlitch == 99999999 then
  7204. FallenOrbs()
  7205. elseif k == "z" and attack == false and ModeOfGlitch == 897616 then
  7206. EndGROUND()
  7207. elseif k == "z" and attack == false and ModeOfGlitch == 897616 then
  7208. EndGROUND()
  7209. elseif k == "b" and attack == false and ModeOfGlitch == 99999999 then
  7210. AZUREFINALE()
  7211. end
  7212. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  7213. AZUREFINALE()
  7214. end
  7215. if k == "x" and attack == false and ModeOfGlitch == 1 then
  7216. EndGROUND()
  7217. end
  7218. end)
  7219.  
  7220. --[[coroutine.resume(coroutine.create(function()
  7221. while true do
  7222. swait(2)
  7223. if chaosmode == true then
  7224. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7225. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7226. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7227. RecolorTextAndRename("ChAoS ShAdOw",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  7228. for i, v in pairs(mw1:GetChildren()) do
  7229. if v:IsA("Part") then
  7230. v.Transparency = 0.75
  7231. v.BrickColor = BrickColor.random()
  7232. v.Material = "Neon"
  7233. end
  7234. end
  7235. for i, v in pairs(m2:GetChildren()) do
  7236. if v:IsA("Part") then
  7237. v.BrickColor = BrickColor.random()
  7238. v.Material = "Neon"
  7239. end
  7240. end
  7241. end
  7242. end
  7243. end))]]--
  7244. Humanoid.Name = "STARGLITCHER"
  7245. Humanoid.MaxHealth = math.huge
  7246. Humanoid.Health = math.huge
  7247. Instance.new("ForceField",char).Visible = false
  7248.  
  7249. local bguis = Instance.new("BillboardGui",tors)
  7250. bguis.Size = UDim2.new(25, 0, 25, 0)
  7251. local imgca = Instance.new("ImageLabel",bguis)
  7252. imgca.BackgroundTransparency = 1
  7253. imgca.ImageTransparency = 1
  7254. imgca.Size = UDim2.new(1,0,1,0)
  7255. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  7256. imgca.ImageColor3 = Color3.new(0,0,0)
  7257.  
  7258. idleanim=.4
  7259. while true do
  7260. if mutedtog == false then
  7261. kan.Volume = currentVol
  7262. elseif mutedtog == true then
  7263. kan.Volume = 0
  7264. end
  7265. kan.PlaybackSpeed = currentPitch
  7266. kan.Pitch = currentPitch
  7267. kan.SoundId = currentThemePlaying
  7268. kan.Looped = true
  7269. kan.Parent = char
  7270. kan:Resume()
  7271. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  7272. imgca.ImageTransparency = 1
  7273. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  7274. imgca.ImageColor3 = MAINRUINCOLOR.Color
  7275. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  7276. end
  7277. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  7278. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  7279. coroutine.resume(coroutine.create(function()
  7280. if chaosmode == true then
  7281. for i, v in pairs(mw1:GetChildren()) do
  7282. if v:IsA("Part") then
  7283. v.Transparency = 0
  7284. v.BrickColor = BrickColor.random()
  7285. v.Material = "Neon"
  7286. end
  7287. end
  7288. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7289. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7290. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7291. RecolorTextAndRename("ChAoS ShAdOW",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  7292. end
  7293. end))
  7294. if chaosmode == false then
  7295. modet.Position = UDim2.new(0,0,0,0)
  7296. modet.Rotation = -5 * math.cos(sine / 32)
  7297. techc.Rotation = techc.Rotation + 1
  7298. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  7299. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  7300. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  7301. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  7302. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  7303. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  7304. else
  7305. techc.Rotation = techc.Rotation + 1
  7306. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  7307. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  7308. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  7309. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  7310. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  7311. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  7312. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  7313. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  7314. end
  7315. CameraManager()
  7316. swait()
  7317. lwing1weld.C1=clerp(lwing1weld.C1,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(2))*angles(math.rad(9 + 14 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 25* math.cos(sine / -67))),.2)
  7318. lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(-14))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(2),math.rad(25 + -45 * math.cos(sine / 14))),.9)
  7319. lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(26))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 56))),.3)
  7320. 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)
  7321. 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)
  7322. 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)
  7323. 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)
  7324. 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)
  7325. 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)
  7326. 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)
  7327. 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)
  7328. 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)
  7329. sine = sine + change
  7330. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  7331. local velderp=RootPart.Velocity.y
  7332. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  7333. if equipped==true or equipped==false then
  7334. if attack==false then
  7335. idle=idle+1
  7336. else
  7337. idle=0
  7338. end
  7339. if idle>=500 then
  7340. if attack==false then
  7341. --Sheath()
  7342. end
  7343. end
  7344. if RootPart.Velocity.y > 1 and hitfloor==nil then
  7345. Anim="Jump"
  7346. if attack==false then
  7347. 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)
  7348. 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)
  7349. 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)
  7350. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  7351. 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)
  7352. 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)
  7353. end
  7354. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  7355. Anim="Fall"
  7356. if attack==false then
  7357. 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)
  7358. 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)
  7359. 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)
  7360. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  7361. 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)
  7362. 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)
  7363. end
  7364. elseif torvel<1 and hitfloor~=nil then
  7365. Anim="Idle"
  7366. if attack==false then
  7367. if ModeOfGlitch == 1 then
  7368. local snap = math.random(1,10)
  7369. if snap == 1 then
  7370. 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)
  7371. end
  7372. 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)
  7373. 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)
  7374. 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)
  7375. 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)
  7376. 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)
  7377. 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)
  7378. elseif ModeOfGlitch == 8376532578634534 then
  7379. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  7380. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  7381. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  7382. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(-25),0)*angles(math.rad(0 - 25 * math.cos(sine / 0.1164)),math.rad(0 - 30 * math.cos(sine / 0.25)),math.rad(0 - 30 * math.cos(sine / 0.465))),.1)
  7383. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  7384. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  7385. elseif ModeOfGlitch == 2 then
  7386. 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)
  7387. 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)
  7388. 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)
  7389. 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)
  7390. 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)
  7391. 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)
  7392. elseif ModeOfGlitch == 3444 then
  7393. if snap == 1 then
  7394. 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)
  7395. 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)
  7396. 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)
  7397. end
  7398. 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) - 5 * math.cos(sine / 1)),math.rad(0 - 1 * math.cos(sine / 56) - 5 * math.cos(sine / 1)),math.rad(-18 - 5 * math.cos(sine / 32) - 5 * math.cos(sine / 1))),.1)
  7399. 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) - 5 * math.cos(sine / 1)),math.rad(0 - 1 * math.cos(sine / 56) - 5 * math.cos(sine / 1)),math.rad(31 + 8 * math.cos(sine / 38) - 5 * math.cos(sine / 1))),.1)
  7400. 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) - 5 * math.cos(sine / 1)),math.rad(8 - 5 * math.cos(sine / 1)),math.rad(0 - 5 * math.cos(sine / 1))),.1)
  7401. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko* cf(0, 0, 0 + ((1) - 1)) * angles(math.rad(15 - 2.5 * math.cos(sine / 30) - 5 * math.cos(sine / 1)), math.rad(20 - 5 * math.cos(sine / 1)), math.rad(0 - 5 * math.cos(sine / 1))), 0.08)
  7402. 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) - 5 * math.cos(sine / 1)),math.rad(1 - 3 * math.cos(sine / 53) - 5 * math.cos(sine / 1)),math.rad(33 + 10 * math.cos(sine / 73) - 5 * math.cos(sine / 1))),.1)
  7403. 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) - 5 * math.cos(sine / 1)),math.rad(2 - 1 * math.cos(sine / 55) - 5 * math.cos(sine / 1)),math.rad(-27 - 6 * math.cos(sine / 33) - 5 * math.cos(sine / 1))),.1)
  7404. elseif ModeOfGlitch == 99999999955665 then
  7405. 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 - 9 * math.cos(sine / 51))),.1)
  7406. 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 + 7 * math.cos(sine / 44))),.1)
  7407. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1.5 + 0.25 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(13)),.1)
  7408. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(24 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-13 + 2 * math.cos(sine / 53))),.1)
  7409. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(68 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  7410. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(82 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  7411. elseif ModeOfGlitch == 897616 then
  7412. local snap = math.random(1,32)
  7413. if snap == 1 then
  7414. 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)
  7415. end
  7416. 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)
  7417. 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)
  7418. 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)
  7419. 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)
  7420. 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)
  7421. 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)
  7422. elseif ModeOfGlitch == 3 then
  7423. local snap = math.random(1,32)
  7424. if snap == 1 then
  7425. 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)
  7426. end
  7427. 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)
  7428. 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)
  7429. 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)
  7430. 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)
  7431. 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)
  7432. 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)
  7433. elseif ModeOfGlitch == 98749871956 then
  7434. local snap = math.random(1,10)
  7435. if snap == 1 then
  7436. 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)
  7437. end
  7438. 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(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  7439. 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(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  7440. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  7441. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7442. 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)
  7443. 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)
  7444. elseif ModeOfGlitch == 4 then
  7445. local snap = math.random(1,5)
  7446. if snap == 1 then
  7447. 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)
  7448. 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)
  7449. 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)
  7450. end
  7451. 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)
  7452. 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)
  7453. 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)
  7454. 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)
  7455. 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)
  7456. 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)
  7457. elseif ModeOfGlitch == 5 then
  7458. 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)
  7459. 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)
  7460. 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)
  7461. 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)
  7462. 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)
  7463. 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)
  7464. elseif ModeOfGlitch == 6 then
  7465. 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(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  7466. 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(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  7467. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  7468. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1)
  7469. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  7470. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  7471. elseif ModeOfGlitch == 100 then
  7472. 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)
  7473. 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)
  7474. 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)
  7475. 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)
  7476. 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)
  7477. 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)
  7478. elseif ModeOfGlitch == 8 then
  7479. 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)
  7480. 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)
  7481. 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)
  7482. 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)
  7483. 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)
  7484. 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)
  7485. elseif ModeOfGlitch == 9 then
  7486. 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)
  7487. 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)
  7488. 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)
  7489. 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)
  7490. 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)
  7491. 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)
  7492. elseif ModeOfGlitch == 8889 then
  7493. 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)
  7494. 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)
  7495. 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)
  7496. 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)
  7497. 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)
  7498. 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)
  7499. elseif ModeOfGlitch == 664663666 then
  7500. local snap = math.random(1,32)
  7501. if snap == 1 then
  7502. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(32 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1)
  7503. end
  7504. 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(-4 - 7 * math.cos(sine / 39))),.1)
  7505. 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 + 8 * math.cos(sine / 31))),.1)
  7506. 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(32 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  7507. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  7508. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(32 + 6 * math.cos(sine / 72)),math.rad(2 - 4 * math.cos(sine / 58)),math.rad(14 + 1 * math.cos(sine / 45))),.1)
  7509. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(32 - 7 * math.cos(sine / 66)),math.rad(6 - 5 * math.cos(sine / 59)),math.rad(-9 - 3 * math.cos(sine / 45))),.1)
  7510. elseif ModeOfGlitch == 55469696922 then
  7511. 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)
  7512. 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)
  7513. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.25 * math.cos(sine / 50),0 + 0.25 * math.cos(sine / 43),6 + 1 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  7514. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  7515. 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)
  7516. 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)
  7517. elseif ModeOfGlitch == 55469696922 then
  7518. 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)
  7519. 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)
  7520. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.25 * math.cos(sine / 50),0 + 0.25 * math.cos(sine / 43),6 + 1 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  7521. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  7522. 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)
  7523. 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)
  7524. elseif ModeOfGlitch == 1264532489 then
  7525. 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)
  7526. 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)
  7527. 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)
  7528. 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)
  7529. 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)
  7530. 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)
  7531. 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)
  7532. elseif ModeOfGlitch == 9999999921111 then
  7533. 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)
  7534. 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)
  7535. 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)
  7536. 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)
  7537. 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)
  7538. 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)
  7539. elseif ModeOfGlitch == 4367677813 then
  7540. 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)
  7541. 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)
  7542. 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)
  7543. 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)
  7544. 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)
  7545. 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)
  7546. elseif ModeOfGlitch == 55469696922 then
  7547. 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)
  7548. 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)
  7549. 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)
  7550. 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)
  7551. 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)
  7552. 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)
  7553. elseif ModeOfGlitch == 999999999556 then
  7554. 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)
  7555. 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)
  7556. 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)
  7557. 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)
  7558. 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)
  7559. 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)
  7560. elseif ModeOfGlitch == 9999999921111 then
  7561. 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)
  7562. 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)
  7563. 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)
  7564. 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)
  7565. 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)
  7566. 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)
  7567. elseif ModeOfGlitch == 4367677813 then
  7568. 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)
  7569. 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)
  7570. 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)
  7571. 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)
  7572. 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)
  7573. 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)
  7574. elseif ModeOfGlitch == 55469696922 then
  7575. 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)
  7576. 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)
  7577. 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)
  7578. 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)
  7579. 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)
  7580. 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)
  7581. elseif ModeOfGlitch == 999999999556 then
  7582. 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)
  7583. 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)
  7584. 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)
  7585. 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)
  7586. 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)
  7587. 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)
  7588. elseif ModeOfGlitch == 99999999 then
  7589.  
  7590. 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)
  7591. 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)
  7592. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-40)),.1)
  7593. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  7594. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  7595. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  7596. end
  7597. end
  7598. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  7599. Anim="Walk"
  7600. if attack==false then
  7601. 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)
  7602. 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)
  7603. 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)
  7604. 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)
  7605. 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)
  7606. 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)
  7607. end
  7608. elseif torvel>=22 and hitfloor~=nil then
  7609. Anim="Run"
  7610. if attack==false then
  7611. 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
  7612. 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)
  7613. 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)
  7614. 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)
  7615. 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)
  7616. 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)
  7617. 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)
  7618. if ModeOfGlitch == 9 then
  7619. --
  7620. end
  7621. elseif ModeOfGlitch == 6 or ModeOfGlitch == 100 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 or ModeOfGlitch == 8 or ModeOfGlitch == 99999999 or ModeOfGlitch == 897616 or ModeOfGlitch == 664663666 or ModeOfGlitch == 8376532578634534 then
  7622. 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)
  7623. 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)
  7624. 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)
  7625. 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)
  7626. 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)
  7627. 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)
  7628. end
  7629. end
  7630. end
  7631. end
  7632. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement