Advertisement
hjkook

SF220

Jan 29th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 322.90 KB | None | 0 0
  1. --TODO: add comments or something idk
  2. local Player = owner
  3. local Mouse,mouse,UserInputService,ContextActionService
  4. do
  5. script.Parent = Player.Character
  6. local CAS = {Actions={}}
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9. Event.Parent = Player.Character
  10. local fakeEvent = function()
  11. local t = {_fakeEvent=true}
  12. t.Connect = function(self,f)self.Function=f end
  13. t.connect = t.Connect
  14. return t
  15. end
  16. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  17. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  18. function CAS:BindAction(name,fun,touch,...)
  19. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  20. end
  21. function CAS:UnbindAction(name)
  22. CAS.Actions[name] = nil
  23. end
  24. local function te(self,ev,...)
  25. local t = m[ev]
  26. if t and t._fakeEvent and t.Function then
  27. t.Function(...)
  28. end
  29. end
  30. m.TrigEvent = te
  31. UIS.TrigEvent = te
  32. Event.OnServerEvent:Connect(function(plr,io)
  33. if plr~=Player then return end
  34. if io.isMouse then
  35. m.Target = io.Target
  36. m.Hit = io.Hit
  37. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  38. if io.UserInputState == Enum.UserInputState.Begin then
  39. m:TrigEvent("Button1Down")
  40. else
  41. m:TrigEvent("Button1Up")
  42. end
  43. else
  44. for n,t in pairs(CAS.Actions) do
  45. for _,k in pairs(t.Keys) do
  46. if k==io.KeyCode then
  47. t.Function(t.Name,io.UserInputState,io)
  48. end
  49. end
  50. end
  51. if io.UserInputState == Enum.UserInputState.Begin then
  52. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  53. UIS:TrigEvent("InputBegan",io,false)
  54. else
  55. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent("InputEnded",io,false)
  57. end
  58. end
  59. end)
  60. NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62.  
  63. local Char = Player.Character
  64. local Event = Char:WaitForChild("UserInput_Event")
  65.  
  66. local UIS = game:GetService("UserInputService")
  67.  
  68. local input = function(io,a)
  69. if a then return end
  70. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  71. Event:FireServer(io)
  72. end
  73. UIS.InputBegan:Connect(input)
  74. UIS.InputEnded:Connect(input)
  75. local Changed = false
  76. local Mouse = Player:GetMouse()
  77. local h,t = Mouse.Hit,Mouse.Target
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  81. h,t=Mouse.Hit,Mouse.Target
  82. end
  83. end
  84. ]==],Player.Character)
  85. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  86. end
  87.  
  88.  
  89. wait(0.5)
  90.  
  91. warn([[SG AWAKEN Loaded.
  92. The super switcher.
  93. Velnorum is one of the first wielders.
  94.  
  95. Created, Reworked by NoobyGames12 and converted by Helkern
  96. ]])
  97.  
  98.  
  99. ------------- ORIGINAL WIELDER OC: Velnorum
  100. print([[Icons:
  101. ! = New
  102. ? = Spoilers
  103. * = Exclusivity
  104. C = Changes
  105.  
  106. ]])
  107. warn([[V 4.1 Update Log:
  108. !C? - Mostly about 7-9 main modes added.
  109. ! - Non-canon [N] modes are added from few modes:
  110. > Mayhem: NANO
  111. > Purity: BRIGHTNESS
  112. > Chaos: CRAZED
  113. > Divinity: FALLENEX
  114. > Destiny: OMEGA
  115. ! - Added back CALAMITY and INFESTATION.
  116. C - Two main click attacks changed.
  117. !C - Moves are added back, with severe change and difference.
  118. C - Some modes got renamed because fat filter
  119. C - Toned down the effects to be compatible with fe without strong lag.]])
  120. --- its obs smooth af do not touch
  121. ---- Sources and functions might be taken from others
  122. plr = owner
  123. char = plr.Character
  124. hum = char.Humanoid
  125. local cam = game.Workspace.CurrentCamera
  126. Camera = cam
  127. local CamInterrupt = false
  128. local TwoD = false
  129. local TargetInfo = {nil, nil}
  130. cam.CameraType = "Custom"
  131. t = char.Torso
  132. h = char.Head
  133. ra = char["Right Arm"]
  134. la = char["Left Arm"]
  135. rl = char["Right Leg"]
  136. ll = char["Left Leg"]
  137. tors = char.Torso
  138. lleg = char["Left Leg"]
  139. root = char.HumanoidRootPart
  140. hed = char.Head
  141. rleg = char["Right Leg"]
  142. rarm = char["Right Arm"]
  143. larm = char["Left Arm"]
  144. radian = math.rad
  145. random = math.random
  146. Vec3 = Vector3.new
  147. Inst = Instance.new
  148. cFrame = CFrame.new
  149. Euler = CFrame.fromEulerAnglesXYZ
  150. vt = Vector3.new
  151. bc = BrickColor.new
  152. br = BrickColor.random
  153. it = Instance.new
  154. cf = CFrame.new
  155.  
  156. local Booleans = {
  157. CamFollow = true,
  158. GyroUse = true
  159. }
  160.  
  161. function lerp(object, newCFrame, alpha)
  162. return object:lerp(newCFrame, alpha)
  163. end
  164.  
  165. local Directer = Inst("BodyGyro", root)
  166. Directer.MaxTorque = Vec3(0, 0, 0)
  167. Directer.P = 600000
  168. local CPart = Inst("Part")
  169. CPart.Anchored = true
  170. CPart.CanCollide = false
  171. CPart.Locked = true
  172. CPart.Transparency = 1
  173.  
  174. local rainbowmode = false
  175. local chaosmode = false
  176.  
  177. local kan = Instance.new("Sound",char)
  178. kan.Volume = 1.25
  179. kan.TimePosition = 0
  180. kan.PlaybackSpeed = 1
  181. kan.Pitch = 1
  182. kan.SoundId = "rbxassetid://1537276744"
  183. kan.Name = "wrecked"
  184. kan.Looped = true
  185. kan:Play()
  186.  
  187. local currentThemePlaying = kan.SoundId
  188. local currentPitch = kan.Pitch
  189. local currentVol = kan.Volume
  190. function newTheme(ID,timepos,pitch,vol)
  191. local kanz = kan
  192. --kanz:Stop()
  193. kanz.Volume = vol
  194. --kanz.TimePosition = timepos
  195. kanz.PlaybackSpeed = pitch
  196. kanz.Pitch = pitch
  197. kanz.SoundId = ID
  198. kanz.Name = "wrecked"
  199. kanz.Looped = true
  200. currentThemePlaying = kanz.SoundId
  201. currentVol = kanz.Volume
  202. currentPitch = kanz.Pitch
  203. --kanz:Play()
  204. --coroutine.resume(coroutine.create(function()
  205. --wait(0.05)
  206. --end))
  207. end
  208.  
  209.  
  210. function newThemeCust(ID,timepos,pitch,vol)
  211. local kanz = kan
  212. kanz:Stop()
  213. kanz.Volume = vol
  214. kanz.TimePosition = timepos
  215. kanz.PlaybackSpeed = pitch
  216. kanz.Pitch = pitch
  217. kanz.SoundId = ID
  218. kanz.Name = "wrecked"
  219. kanz.Looped = true
  220. currentThemePlaying = kanz.SoundId
  221. currentVol = kanz.Volume
  222. currentPitch = kanz.Pitch
  223. kanz:Play()
  224. coroutine.resume(coroutine.create(function()
  225. wait(0.05)
  226. end))
  227. end
  228.  
  229. local mutedtog = false
  230.  
  231. function CameraEnshaking(Length,Intensity)
  232. coroutine.resume(coroutine.create(function()
  233. local intensity = 1*Intensity
  234. local rotM = 0.01*Intensity
  235. for i = 0, Length, 0.1 do
  236. swait()
  237. intensity = intensity - 0.05*Intensity/Length
  238. rotM = rotM - 0.0005*Intensity/Length
  239. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  240. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  241. end
  242. Humanoid.CameraOffset = Vec3(0, 0, 0)
  243. end))
  244. end
  245. CamShake=function(Part,Distan,Power,Times)
  246. local de=Part.Position
  247. for i,v in pairs(workspace:children()) do
  248. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  249. for _,c in pairs(v:children()) do
  250. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  251. local Noob=v.Humanoid
  252. if Noob~=nil then
  253. coroutine.resume(coroutine.create(function()
  254. FV = Instance.new("BoolValue", Noob)
  255. FV.Name = "CameraShake"
  256. for ShakeNum=1,Times do
  257. swait()
  258. local ef=Power
  259. if ef>=1 then
  260. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  261. else
  262. ef=Power*10
  263. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  264. end
  265. end
  266. Humanoid.CameraOffset = Vector3.new(0,0,0)
  267. FV:Destroy()
  268. end))
  269. CameraShake(Times, Power, Noob)
  270. end
  271. end
  272. end
  273. end
  274. end
  275. end
  276.  
  277. local toggleTag = true
  278. local bilguit = Instance.new("BillboardGui", hed)
  279. bilguit.Adornee = nil
  280. bilguit.Name = "ModeName"
  281. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  282. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  283. local modet = Instance.new("TextLabel", bilguit)
  284. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  285. modet.FontSize = "Size8"
  286. modet.TextScaled = true
  287. modet.TextTransparency = 0
  288. modet.BackgroundTransparency = 1
  289. modet.TextTransparency = 0
  290. modet.TextStrokeTransparency = 0
  291. modet.Font = "Antique"
  292. modet.TextStrokeColor3 = Color3.new(1,0,0)
  293. modet.TextColor3 = Color3.new(0.25,0,0)
  294. modet.Text = "STAR"
  295.  
  296.  
  297. function chatfunc(text,color,typet,font,timeex)
  298. local chat = coroutine.wrap(function()
  299. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  300. Character:FindFirstChild("TalkingBillBoard"):destroy()
  301. end
  302. local naeeym2 = Instance.new("BillboardGui",Character)
  303. naeeym2.Size = UDim2.new(0,100,0,40)
  304. naeeym2.StudsOffset = Vector3.new(0,3,0)
  305. naeeym2.Adornee = Character.Head
  306. naeeym2.Name = "TalkingBillBoard"
  307. local tecks2 = Instance.new("TextLabel",naeeym2)
  308. tecks2.BackgroundTransparency = 1
  309. tecks2.BorderSizePixel = 0
  310. tecks2.Text = ""
  311. tecks2.Font = font
  312. tecks2.TextSize = 30
  313. tecks2.TextStrokeTransparency = 0
  314. tecks2.TextColor3 = color
  315. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  316. tecks2.Size = UDim2.new(1,0,0.5,0)
  317. local tecks3 = Instance.new("TextLabel",naeeym2)
  318. tecks3.BackgroundTransparency = 1
  319. tecks3.BorderSizePixel = 0
  320. tecks3.Text = ""
  321. tecks3.Font = font
  322. tecks3.TextSize = 30
  323. tecks3.TextStrokeTransparency = 0
  324. if typet == "Inverted" then
  325. tecks3.TextColor3 = Color3.new(0,0,0)
  326. tecks3.TextStrokeColor3 = color
  327. elseif typet == "Normal" then
  328. tecks3.TextColor3 = color
  329. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  330. end
  331. tecks3.Size = UDim2.new(1,0,0.5,0)
  332. coroutine.resume(coroutine.create(function()
  333. while true do
  334. swait(1)
  335. if chaosmode == true then
  336. tecks2.TextColor3 = BrickColor.random().Color
  337. tecks3.TextStrokeColor3 = BrickColor.random().Color
  338. end
  339. end
  340. end))
  341. modet.TextTransparency = modet.TextTransparency + 1
  342. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  343. for i = 0, 74*timeex do
  344. swait()
  345. modet.TextTransparency = 1
  346. modet.TextStrokeTransparency = 1
  347. tecks2.Text = text
  348. tecks3.Text = text
  349. end
  350. local randomrot = math.random(1,2)
  351. if randomrot == 1 then
  352. for i = 1, 50 do
  353. swait()
  354. tecks2.Text = text
  355. tecks3.Text = text
  356. modet.TextTransparency = modet.TextTransparency - .02
  357. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  358. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  359. tecks2.TextTransparency = tecks2.TextTransparency + .04
  360. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  361. tecks3.TextTransparency = tecks2.TextTransparency + .04
  362. end
  363. elseif randomrot == 2 then
  364. for i = 1, 50 do
  365. swait()
  366. tecks2.Text = text
  367. tecks3.Text = text
  368. modet.TextTransparency = modet.TextTransparency - .02
  369. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  370. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  371. tecks2.TextTransparency = tecks2.TextTransparency + .04
  372. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  373. tecks3.TextTransparency = tecks2.TextTransparency + .04
  374. end
  375. end
  376. modet.TextTransparency = 0
  377. modet.TextStrokeTransparency = 0
  378. if toggleTag == false then
  379. modet.TextTransparency = 1
  380. modet.TextStrokeTransparency = 1
  381. end
  382. naeeym2:Destroy()
  383. end)
  384. chat()
  385. end
  386.  
  387. function bosschatfunc(text,color,watval)
  388. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  389. coroutine.resume(coroutine.create(function()
  390. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  391. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  392. end
  393. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  394. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  395. scrg.Name = "Dialog"
  396. local txtlb = Instance.new("TextLabel",scrg)
  397. txtlb.Text = ""
  398. txtlb.Font = "Bodoni"
  399. txtlb.TextColor3 = Color3.new(0,0,0)
  400. txtlb.TextStrokeTransparency = 0
  401. txtlb.BackgroundTransparency = 0.75
  402. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  403. txtlb.TextStrokeColor3 = color
  404. txtlb.TextScaled = true
  405. txtlb.Size = UDim2.new(1,0,0.25,0)
  406. txtlb.TextXAlignment = "Left"
  407. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  408. local txtlb2 = Instance.new("TextLabel",scrg)
  409. txtlb2.Text = "Star:"
  410. txtlb2.Font = "Arcade"
  411. txtlb2.TextColor3 = Color3.new(0,0,0)
  412. txtlb2.TextStrokeTransparency = 0
  413. txtlb2.BackgroundTransparency = 1
  414. txtlb2.TextStrokeColor3 = color
  415. txtlb2.TextSize = 40
  416. txtlb2.Size = UDim2.new(1,0,0.25,0)
  417. txtlb2.TextXAlignment = "Left"
  418. txtlb2.Position = UDim2.new(0,0,1,0)
  419. local fvalen = 0.55
  420. local fval = -0.49
  421. coroutine.resume(coroutine.create(function()
  422. while true do
  423. swait()
  424. if chaosmode == true then
  425. txtlb.Rotation = math.random(-1,1)
  426. txtlb2.Rotation = math.random(-1,1)
  427. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  428. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  429. txtlb.TextStrokeColor3 = BrickColor.random().Color
  430. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  431. end
  432. end
  433. end))
  434. coroutine.resume(coroutine.create(function()
  435. while true do
  436. swait()
  437. if scrg.Parent ~= nil then
  438. fvalen = fvalen - 0.0001
  439. elseif scrg.Parent == nil then
  440. break
  441. end
  442. end
  443. end))
  444. local flol = 1.75
  445. local flil = 1.6
  446. coroutine.resume(coroutine.create(function()
  447. for i = 0, 9 do
  448. swait()
  449. fval = fval + 0.05
  450. flol = flol - 0.1
  451. flil = flil - 0.1
  452. txtlb.Text = ""
  453. txtlb.Position = UDim2.new(0,0,flol,0)
  454. txtlb2.Position = UDim2.new(0,0,flil,0)
  455. end
  456. txtlb.Text = text
  457. wait(watval)
  458. local valinc = 0
  459. for i = 0, 99 do
  460. swait()
  461. valinc = valinc + 0.0001
  462. flol = flol + valinc
  463. flil = flil + valinc
  464. txtlb.Rotation = txtlb.Rotation + valinc*20
  465. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  466. txtlb.Position = UDim2.new(0,0,flol,0)
  467. txtlb2.Position = UDim2.new(0,0,flil,0)
  468. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  469. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  470. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  471. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  472. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  473. end
  474. scrg:Destroy()
  475. end))
  476. end))
  477. end
  478. end
  479.  
  480.  
  481. local Create = LoadLibrary("RbxUtility").Create
  482.  
  483. CFuncs = {
  484. ["Part"] = {
  485. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  486. local Part = Create("Part"){
  487. Parent = Parent,
  488. Reflectance = Reflectance,
  489. Transparency = Transparency,
  490. CanCollide = false,
  491. Locked = true,
  492. BrickColor = BrickColor.new(tostring(BColor)),
  493. Name = Name,
  494. Size = Size,
  495. Material = Material,
  496. }
  497. RemoveOutlines(Part)
  498. return Part
  499. end;
  500. };
  501.  
  502. ["Mesh"] = {
  503. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  504. local Msh = Create(Mesh){
  505. Parent = Part,
  506. Offset = OffSet,
  507. Scale = Scale,
  508. }
  509. if Mesh == "SpecialMesh" then
  510. Msh.MeshType = MeshType
  511. Msh.MeshId = MeshId
  512. end
  513. return Msh
  514. end;
  515. };
  516.  
  517. ["Mesh"] = {
  518. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  519. local Msh = Create(Mesh){
  520. Parent = Part,
  521. Offset = OffSet,
  522. Scale = Scale,
  523. }
  524. if Mesh == "SpecialMesh" then
  525. Msh.MeshType = MeshType
  526. Msh.MeshId = MeshId
  527. end
  528. return Msh
  529. end;
  530. };
  531.  
  532. ["Weld"] = {
  533. Create = function(Parent, Part0, Part1, C0, C1)
  534. local Weld = Create("Weld"){
  535. Parent = Parent,
  536. Part0 = Part0,
  537. Part1 = Part1,
  538. C0 = C0,
  539. C1 = C1,
  540. }
  541. return Weld
  542. end;
  543. };
  544.  
  545. ["Sound"] = {
  546. Create = function(id, par, vol, pit)
  547. coroutine.resume(coroutine.create(function()
  548. local S = Create("Sound"){
  549. Volume = vol,
  550. Name = "EffectSoundo",
  551. Pitch = pit or 1,
  552. SoundId = id,
  553. Parent = par or workspace,
  554. }
  555. wait()
  556. S:play()
  557. game:GetService("Debris"):AddItem(S, 10)
  558. end))
  559. end;
  560. };
  561.  
  562. ["TimeSound"] = {
  563. Create = function(id, par, vol, pit, timepos)
  564. coroutine.resume(coroutine.create(function()
  565. local S = Create("Sound"){
  566. Volume = vol,
  567. Name = "EffectSoundo",
  568. Pitch = pit or 1,
  569. SoundId = id,
  570. TimePosition = timepos,
  571. Parent = par or workspace,
  572. }
  573. wait()
  574. S:play()
  575. game:GetService("Debris"):AddItem(S, 10)
  576. end))
  577. end;
  578. };
  579. ["EchoSound"] = {
  580. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  581. coroutine.resume(coroutine.create(function()
  582. local Sas = Create("Sound"){
  583. Volume = vol,
  584. Name = "EffectSoundo",
  585. Pitch = pit or 1,
  586. SoundId = id,
  587. TimePosition = timepos,
  588. Parent = par or workspace,
  589. }
  590. local E = Create("EchoSoundEffect"){
  591. Delay = echodelay,
  592. Name = "Echo",
  593. Feedback = fedb,
  594. DryLevel = dryl,
  595. Parent = Sas,
  596. }
  597. wait()
  598. Sas:play()
  599. game:GetService("Debris"):AddItem(Sas, delays)
  600. end))
  601. end;
  602. };
  603.  
  604. ["LongSound"] = {
  605. Create = function(id, par, vol, pit)
  606. coroutine.resume(coroutine.create(function()
  607. local S = Create("Sound"){
  608. Volume = vol,
  609. Pitch = pit or 1,
  610. SoundId = id,
  611. Parent = par or workspace,
  612. }
  613. wait()
  614. S:play()
  615. game:GetService("Debris"):AddItem(S, 60)
  616. end))
  617. end;
  618. };
  619.  
  620. ["ParticleEmitter"] = {
  621. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  622. local fp = Create("ParticleEmitter"){
  623. Parent = Parent,
  624. Color = ColorSequence.new(Color1, Color2),
  625. LightEmission = LightEmission,
  626. Size = Size,
  627. Texture = Texture,
  628. Transparency = Transparency,
  629. ZOffset = ZOffset,
  630. Acceleration = Accel,
  631. Drag = Drag,
  632. LockedToPart = LockedToPart,
  633. VelocityInheritance = VelocityInheritance,
  634. EmissionDirection = EmissionDirection,
  635. Enabled = Enabled,
  636. Lifetime = LifeTime,
  637. Rate = Rate,
  638. Rotation = Rotation,
  639. RotSpeed = RotSpeed,
  640. Speed = Speed,
  641. VelocitySpread = VelocitySpread,
  642. }
  643. return fp
  644. end;
  645. };
  646.  
  647. CreateTemplate = {
  648.  
  649. };
  650. }
  651.  
  652.  
  653.  
  654. New = function(Object, Parent, Name, Data)
  655. local Object = Instance.new(Object)
  656. for Index, Value in pairs(Data or {}) do
  657. Object[Index] = Value
  658. end
  659. Object.Parent = Parent
  660. Object.Name = Name
  661. return Object
  662. end
  663. local halocolor = BrickColor.new("Pastel light blue")
  664. local halocolor2 = BrickColor.new("Cool yellow")
  665. local starcolor = BrickColor.new("Bright yellow")
  666. local lunacolor = BrickColor.new("Navy blue")
  667. local lunacolor2 = BrickColor.new("Bright blue")
  668. local wepcolor = BrickColor.new("Really black")
  669. local maincolor = BrickColor.new("Really black")
  670. local m = Instance.new("Model",char)
  671. local m2 = Instance.new("Model",char)
  672. local m3 = Instance.new("Model",char)
  673. local mw1 = Instance.new("Model",char)
  674. local mw2 = Instance.new("Model",char)
  675.  
  676.  
  677. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  678. local gui = it(GuiType)
  679. gui.Parent = parent
  680. gui.Text = text
  681. gui.BackgroundTransparency = backtrans
  682. gui.BackgroundColor3 = backcol
  683. gui.SizeConstraint = "RelativeXY"
  684. gui.TextXAlignment = "Center"
  685. gui.TextYAlignment = "Center"
  686. gui.Position = pos
  687. gui.Size = size
  688. gui.Font = "SourceSans"
  689. gui.FontSize = "Size14"
  690. gui.TextWrapped = false
  691. gui.TextStrokeTransparency = 0
  692. gui.TextColor = BrickColor.new("White")
  693. return gui
  694. end
  695. --------------------------- GUI STUFF
  696. local basgui = it("GuiMain")
  697. basgui.Parent = plr.PlayerGui
  698. basgui.Name = "VISgui"
  699. local fullscreenz = it("Frame")
  700. fullscreenz.Parent = basgui
  701. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  702. fullscreenz.BackgroundTransparency = 1
  703. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  704. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  705. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  706. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  707. imgl2.BackgroundTransparency = 1
  708. imgl2.BorderSizePixel = 0
  709. imgl2.ImageTransparency = 0.5
  710. imgl2.ImageColor3 = Color3.new(1,0,0)
  711. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  712. imgl2.Size = UDim2.new(0,1000,0,1000)
  713. imgl2.Image = "rbxassetid://2325939897"
  714. local techc = imgl2:Clone()
  715. techc.Parent = fullscreenz
  716. techc.ImageTransparency = 0
  717. techc.Size = UDim2.new(0,900,0,900)
  718. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  719. techc.ImageColor3 = Color3.new(1,0,0)
  720. techc.Image = "rbxassetid://2273224484"
  721. local circl = imgl2:Clone()
  722. circl.Parent = fullscreenz
  723. circl.ImageTransparency = 0
  724. circl.Size = UDim2.new(0,550,0,550)
  725. circl.Position = UDim2.new(0.75,25,0.55,25)
  726. circl.ImageColor3 = Color3.new(0,0,0)
  727. circl.Image = "rbxassetid://2312119891"
  728. local circl2 = imgl2:Clone()
  729. circl2.Parent = fullscreenz
  730. circl2.ImageTransparency = 0
  731. circl2.Size = UDim2.new(0,700,0,700)
  732. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  733. circl2.ImageColor3 = Color3.new(1,0,0)
  734. circl2.Image = "rbxassetid://2312119891"
  735. local imgl2b = imgl2:Clone()
  736. imgl2b.Parent = fullscreenz
  737. imgl2b.ImageTransparency = 0
  738. imgl2b.Size = UDim2.new(0,800,0,800)
  739. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  740. imgl2b.ImageColor3 = Color3.new(0,0,0)
  741. local ned = Instance.new("TextLabel",fullscreenz)
  742. ned.ZIndex = 2
  743. ned.Font = "Arcade"
  744. ned.BackgroundTransparency = 1
  745. ned.BorderSizePixel = 0.65
  746. ned.Size = UDim2.new(0.3,0,0.2,0)
  747. ned.Position = UDim2.new(0.7,0,0.8,0)
  748. ned.TextColor3 = BrickColor.new("Royal purple").Color
  749. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  750. ned.TextScaled = true
  751. ned.TextStrokeTransparency = 0
  752. ned.Text = "STAR"
  753. ned.TextSize = 24
  754. ned.Rotation = 1
  755. ned.TextXAlignment = "Right"
  756. ned.TextYAlignment = "Bottom"
  757.  
  758. local extrawingmod1 = Instance.new("Model",char)
  759. local extrawingmod2 = Instance.new("Model",char)
  760.  
  761. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  762. local p = Instance.new("Part")
  763. p.TopSurface = 0
  764. p.BottomSurface = 0
  765. p.Parent = parent
  766. p.Size = Vector3.new(0.1,0.1,0.1)
  767. p.Transparency = transparency
  768. p.Reflectance = reflectance
  769. p.CanCollide = false
  770. p.Locked = true
  771. p.BrickColor = brickcolor
  772. p.Material = material
  773. return p
  774. end
  775.  
  776. function CreateMesh(parent,meshtype,x1,y1,z1)
  777. local mesh = Instance.new("SpecialMesh",parent)
  778. mesh.MeshType = meshtype
  779. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  780. return mesh
  781. end
  782.  
  783. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  784. local mesh = Instance.new("SpecialMesh",parent)
  785. mesh.MeshType = "FileMesh"
  786. mesh.MeshId = meshid
  787. mesh.Scale = Vector3.new(x1,y1,z1)
  788. return mesh
  789. end
  790.  
  791.  
  792. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  793. local mesh = Instance.new("SpecialMesh",parent)
  794. mesh.MeshType = "FileMesh"
  795. mesh.MeshId = meshid
  796. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  797. mesh.Scale = Vector3.new(x1,y1,z1)
  798. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  799. return mesh
  800. end
  801.  
  802. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  803. local weld = Instance.new("Weld")
  804. weld.Parent = parent
  805. weld.Part0 = part0
  806. weld.Part1 = part1
  807. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  808. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  809. return weld
  810. end
  811.  
  812.  
  813. --------------
  814. --------------
  815. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  816. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  817. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  818. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  819.  
  820. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  821. CreateMesh(handle,"Brick",0,0,0)
  822. local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  823. local valuaring = 10
  824. for i = 0, 49 do
  825. valuaring = valuaring + 10
  826. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  827. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  828. CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  829. end
  830.  
  831. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  832. CreateMesh(handle,"Brick",0,0,0)
  833. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  834. local valuaring = 10
  835. for i = 0, 49 do
  836. valuaring = valuaring + 10
  837. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  838. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  839. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  840. end
  841.  
  842.  
  843. local handle = CreateParta(m,1,1,"Neon",maincolor)
  844. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  845. local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  846.  
  847. --- Left wing.
  848.  
  849. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  850. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  851. local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  852.  
  853. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  854. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  855. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  856. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  857. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  858. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  859. A0 = Instance.new('Attachment',wed)
  860. A0.Position = vt(0,0.25,0.25)
  861. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  862. CreateMesh(wed,"Wedge",0.05,0.5,3)
  863. CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  864. A1 = Instance.new('Attachment',wed)
  865. A1.Position = vt(0,-0.25,-2)
  866. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  867. CreateMesh(wed,"Wedge",0.05,3,0.5)
  868. CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  869.  
  870. tl1 = Instance.new('Trail',wed)
  871. tl1.Attachment0 = A1
  872. tl1.Attachment1 = A0
  873. tl1.Texture = "rbxassetid://2108945559"
  874. tl1.LightEmission = 1
  875. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  876. tl1.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  877. tl1.Lifetime = 0.6
  878.  
  879.  
  880. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  881. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  882. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  883.  
  884. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  885. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  886. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  887. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  888. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  889. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  890. A0 = Instance.new('Attachment',wed)
  891. A0.Position = vt(0,0.25,0.25)
  892. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,0.5,3)
  894. CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  895. A1 = Instance.new('Attachment',wed)
  896. A1.Position = vt(0,-0.25,-2)
  897. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  898. CreateMesh(wed,"Wedge",0.05,3,0.5)
  899. CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  900.  
  901. tl2 = Instance.new('Trail',wed)
  902. tl2.Attachment0 = A1
  903. tl2.Attachment1 = A0
  904. tl2.Texture = "rbxassetid://2108945559"
  905. tl2.LightEmission = 1
  906. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  907. tl2.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  908. tl2.Lifetime = 0.6
  909.  
  910. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  911. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  912. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  913.  
  914. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  915. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  916. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  917. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  918. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  919. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  920. A0 = Instance.new('Attachment',wed)
  921. A0.Position = vt(0,0.25,0.25)
  922. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  923. CreateMesh(wed,"Wedge",0.05,0.5,3)
  924. CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  925. A1 = Instance.new('Attachment',wed)
  926. A1.Position = vt(0,-0.25,-2)
  927. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  928. CreateMesh(wed,"Wedge",0.05,3,0.5)
  929. CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  930.  
  931. tl3 = Instance.new('Trail',wed)
  932. tl3.Attachment0 = A1
  933. tl3.Attachment1 = A0
  934. tl3.Texture = "rbxassetid://2108945559"
  935. tl3.LightEmission = 1
  936. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  937. tl3.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  938. tl3.Lifetime = 0.6
  939.  
  940. tl1.Enabled = false
  941. tl2.Enabled = false
  942. tl3.Enabled = false
  943. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  944. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  945. local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  946.  
  947. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  948. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  949. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  950. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  951. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  952. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  953. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  954. CreateMesh(wed,"Wedge",0.05,0.5,3)
  955. CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  956. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  957. CreateMesh(wed,"Wedge",0.05,3,0.5)
  958. CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  959.  
  960. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  961. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  962. local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  963.  
  964. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  965. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  966. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  967. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  968. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  969. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  970. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  971. CreateMesh(wed,"Wedge",0.05,0.5,3)
  972. CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  973. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  974. CreateMesh(wed,"Wedge",0.05,3,0.5)
  975. CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  976.  
  977. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  978. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  979. local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  980.  
  981. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  982. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  983. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  984. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  985. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  986. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  987. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  988. CreateMesh(wed,"Wedge",0.05,0.5,3)
  989. CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  990. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  991. CreateMesh(wed,"Wedge",0.05,3,0.5)
  992. CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  993.  
  994. -- Right wing.
  995.  
  996. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  997. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  998. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  999.  
  1000. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1001. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1002. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1003. A0 = Instance.new('Attachment',wed)
  1004. A0.Position = vt(0,0.25,0.25)
  1005. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1006. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1007. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1008. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1009. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1010. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1011. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1012. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1013. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1014. A1 = Instance.new('Attachment',wed)
  1015. A1.Position = vt(0,2,0.25)
  1016.  
  1017. tr1 = Instance.new('Trail',wed)
  1018. tr1.Attachment0 = A1
  1019. tr1.Attachment1 = A0
  1020. tr1.Texture = "rbxassetid://2108945559"
  1021. tr1.LightEmission = 1
  1022. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1023. tr1.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  1024. tr1.Lifetime = 0.6
  1025.  
  1026. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1027. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1028. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1029.  
  1030. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1031. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1032. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1033. A0 = Instance.new('Attachment',wed)
  1034. A0.Position = vt(0,0.25,0.25)
  1035. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1036. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1037. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1038. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1039. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1040. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1041. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1042. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1043. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1044. A1 = Instance.new('Attachment',wed)
  1045. A1.Position = vt(0,2,0.25)
  1046.  
  1047. tr2 = Instance.new('Trail',wed)
  1048. tr2.Attachment0 = A1
  1049. tr2.Attachment1 = A0
  1050. tr2.Texture = "rbxassetid://2108945559"
  1051. tr2.LightEmission = 1
  1052. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1053. tr2.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  1054. tr2.Lifetime = 0.6
  1055.  
  1056. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1057. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1058. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1059.  
  1060. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1061. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1062. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1063. A0 = Instance.new('Attachment',wed)
  1064. A0.Position = vt(0,0.25,0.25)
  1065. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1066. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1067. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1068. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1069. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1070. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1071. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1072. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1073. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1074. A1 = Instance.new('Attachment',wed)
  1075. A1.Position = vt(0,2,0.25)
  1076.  
  1077. tr3 = Instance.new('Trail',wed)
  1078. tr3.Attachment0 = A1
  1079. tr3.Attachment1 = A0
  1080. tr3.Texture = "rbxassetid://2108945559"
  1081. tr3.LightEmission = 1
  1082. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1083. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1084. tr3.Lifetime = 0.6
  1085.  
  1086.  
  1087. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1088. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1089. local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1090.  
  1091. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1092. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1093. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1094. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1095. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1096. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1097. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1098. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1099. CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1100. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1101. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1102. CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1103.  
  1104. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1105. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1106. local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1107.  
  1108. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1109. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1110. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1111. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1112. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1113. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1114. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1115. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1116. CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1117. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1118. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1119. CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1120.  
  1121. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1122. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1123. local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1124.  
  1125. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1126. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1127. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1128. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1129. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1130. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1131. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1132. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1133. CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1134. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1135. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1136. CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1137.  
  1138. ---- HERES THE RING
  1139.  
  1140.  
  1141. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1142. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1143. CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1144. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1145. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1146. CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1147. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1148. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1149. CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1150.  
  1151.  
  1152. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1153. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1154. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1155.  
  1156. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1157. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1158. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1159.  
  1160.  
  1161.  
  1162. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1163. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1164. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1165.  
  1166. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1167. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1168. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1169.  
  1170. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1171. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1172. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1173.  
  1174. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1175. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1176. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1177. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1178. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1179. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1180.  
  1181. --- second ring
  1182.  
  1183. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1184. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1185. CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1186. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1187. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1188. CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1189. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1190. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1191. CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1192.  
  1193. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1194. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1195. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1196.  
  1197. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1198. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1199. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1200.  
  1201.  
  1202.  
  1203. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1204. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1205. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1206.  
  1207. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1208. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1209. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1210.  
  1211. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1212. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1213. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1214.  
  1215. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1216. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1217. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1218. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1219. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1220. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  1221.  
  1222.  
  1223.  
  1224. for i, v in pairs(m:GetChildren()) do
  1225. if v:IsA("Part") then
  1226. v.BrickColor = BrickColor.new("Really black")
  1227. v.Material = "Glass"
  1228. end
  1229. end
  1230. for i, v in pairs(m2:GetChildren()) do
  1231. if v:IsA("Part") then
  1232. v.BrickColor = BrickColor.new("Crimson")
  1233. v.Material = "Granite"
  1234. end
  1235. end
  1236. for i, v in pairs(m3:GetChildren()) do
  1237. if v:IsA("Part") then
  1238. v.BrickColor = BrickColor.new("Really red")
  1239. v.Material = "Neon"
  1240. end
  1241. end
  1242. for i, v in pairs(mw2:GetChildren()) do
  1243. if v:IsA("Part") then
  1244. v.BrickColor = BrickColor.new("Royal purple")
  1245. v.Material = "Neon"
  1246. end
  1247. end
  1248. for i, v in pairs(mw1:GetChildren()) do
  1249. if v:IsA("Part") then
  1250. v.Transparency = 0
  1251. v.BrickColor = BrickColor.new("Royal purple")
  1252. v.Material = "Neon"
  1253. end
  1254. end
  1255. for i, v in pairs(extrawingmod1:GetChildren()) do
  1256. if v:IsA("Part") then
  1257. v.Transparency = 0.75
  1258. v.BrickColor = BrickColor.new("Royal pruple")
  1259. v.Material = "Neon"
  1260. end
  1261. end
  1262. for i, v in pairs(extrawingmod2:GetChildren()) do
  1263. if v:IsA("Part") then
  1264. v.Transparency = 0.75
  1265. v.BrickColor = BrickColor.new("Royal pruple")
  1266. v.Material = "Neon"
  1267. end
  1268. end
  1269. local MAINRUINCOLOR = BrickColor.new("Really red")
  1270. ------
  1271.  
  1272.  
  1273. function RemoveOutlines(part)
  1274. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1275. end
  1276. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1277. local Part = Create("Part")({
  1278. Parent = Parent,
  1279. Reflectance = Reflectance,
  1280. Transparency = Transparency,
  1281. CanCollide = false,
  1282. Locked = true,
  1283. BrickColor = BrickColor.new(tostring(BColor)),
  1284. Name = Name,
  1285. Size = Size,
  1286. Material = Material
  1287. })
  1288. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1289. RemoveOutlines(Part)
  1290. return Part
  1291. end
  1292. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1293. local Msh = Create(Mesh)({
  1294. Parent = Part,
  1295. Offset = OffSet,
  1296. Scale = Scale
  1297. })
  1298. if Mesh == "SpecialMesh" then
  1299. Msh.MeshType = MeshType
  1300. Msh.MeshId = MeshId
  1301. end
  1302. return Msh
  1303. end
  1304. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1305. local Weld = Create("Weld")({
  1306. Parent = Parent,
  1307. Part0 = Part0,
  1308. Part1 = Part1,
  1309. C0 = C0,
  1310. C1 = C1
  1311. })
  1312. return Weld
  1313. end
  1314.  
  1315. Character=Player.Character
  1316. PlayerGui=Player.PlayerGui
  1317. Backpack=Player.Backpack
  1318. Torso=Character.Torso
  1319. Head=Character.Head
  1320. Humanoid=Character.Humanoid
  1321. m=Instance.new('Model',Character)
  1322. LeftArm=Character["Left Arm"]
  1323. LeftLeg=Character["Left Leg"]
  1324. RightArm=Character["Right Arm"]
  1325. RightLeg=Character["Right Leg"]
  1326. LS=Torso["Left Shoulder"]
  1327. LH=Torso["Left Hip"]
  1328. RS=Torso["Right Shoulder"]
  1329. RH=Torso["Right Hip"]
  1330. Face = Head.face
  1331. Neck=Torso.Neck
  1332. it=Instance.new
  1333. attacktype=1
  1334. vt=Vector3.new
  1335. cf=CFrame.new
  1336. euler=CFrame.fromEulerAnglesXYZ
  1337. angles=CFrame.Angles
  1338. cloaked=false
  1339. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1340. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1341. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1342. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1343. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1344. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1345. RootPart=Character.HumanoidRootPart
  1346. RootJoint=RootPart.RootJoint
  1347. RootCF=euler(-1.57,0,3.14)
  1348. attack = false
  1349. attackdebounce = false
  1350. deb=false
  1351. equipped=true
  1352. hand=false
  1353. combo=0
  1354. mana=0
  1355. trispeed=.2
  1356. attackmode='none'
  1357. local idle=0
  1358. local Anim="Idle"
  1359. local Effects={}
  1360. local gun=false
  1361. local shoot=false
  1362. local sine = 0
  1363. local change = 1
  1364.  
  1365. function RecolorTextAndRename(name,col1,col2,font)
  1366. modet.TextStrokeColor3 = col2
  1367. modet.TextColor3 = col1
  1368. modet.Font = font
  1369. modet.Text = name
  1370. techc.ImageColor3 = col2
  1371. circl.ImageColor3 = col2
  1372. circl2.ImageColor3 = col1
  1373. imgl2.ImageColor3 = col1
  1374. imgl2b.ImageColor3 = col2
  1375. ned.Text = name
  1376. ned.TextColor3 = col1
  1377. ned.TextStrokeColor3 = col2
  1378. end
  1379. --save shoulders
  1380. RSH, LSH=nil, nil
  1381. --welds
  1382. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1383. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1384. LH=Torso["Left Hip"]
  1385. RH=Torso["Right Hip"]
  1386. TorsoColor=Torso.BrickColor
  1387. function NoOutline(Part)
  1388. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1389. end
  1390. ch=Character
  1391. RSH=ch.Torso["Right Shoulder"]
  1392. LSH=ch.Torso["Left Shoulder"]
  1393. --
  1394. RSH.Parent=nil
  1395. LSH.Parent=nil
  1396. --
  1397. RW.Name="Right Shoulder"
  1398. RW.Part0=ch.Torso
  1399. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1400. RW.C1=cf(0, 0.5, 0)
  1401. RW.Part1=ch["Right Arm"]
  1402. RW.Parent=ch.Torso
  1403. --
  1404. LW.Name="Left Shoulder"
  1405. LW.Part0=ch.Torso
  1406. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1407. LW.C1=cf(0, 0.5, 0)
  1408. LW.Part1=ch["Left Arm"]
  1409. LW.Parent=ch.Torso
  1410.  
  1411. local Stats=Instance.new("BoolValue")
  1412. Stats.Name="Stats"
  1413. Stats.Parent=Character
  1414. local Atk=Instance.new("NumberValue")
  1415. Atk.Name="Damage"
  1416. Atk.Parent=Stats
  1417. Atk.Value=1
  1418. local Def=Instance.new("NumberValue")
  1419. Def.Name="Defense"
  1420. Def.Parent=Stats
  1421. Def.Value=1
  1422. local Speed=Instance.new("NumberValue")
  1423. Speed.Name="Speed"
  1424. Speed.Parent=Stats
  1425. Speed.Value=1
  1426. local Mvmt=Instance.new("NumberValue")
  1427. Mvmt.Name="Movement"
  1428. Mvmt.Parent=Stats
  1429. Mvmt.Value=1
  1430.  
  1431. local donum=0
  1432.  
  1433.  
  1434. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1435. local fp=it("Part")
  1436. fp.formFactor=formfactor
  1437. fp.Parent=parent
  1438. fp.Reflectance=reflectance
  1439. fp.Transparency=transparency
  1440. fp.CanCollide=false
  1441. fp.Locked=true
  1442. fp.BrickColor=brickcolor
  1443. fp.Name=name
  1444. fp.Size=size
  1445. fp.Position=Torso.Position
  1446. NoOutline(fp)
  1447. fp.Material="SmoothPlastic"
  1448. fp:BreakJoints()
  1449. return fp
  1450. end
  1451.  
  1452. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1453. local mesh=it(Mesh)
  1454. mesh.Parent=part
  1455. if Mesh=="SpecialMesh" then
  1456. mesh.MeshType=meshtype
  1457. if meshid~="nil" then
  1458. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1459. end
  1460. end
  1461. mesh.Offset=offset
  1462. mesh.Scale=scale
  1463. return mesh
  1464. end
  1465.  
  1466. function weld(parent,part0,part1,c0)
  1467. local weld=it("Weld")
  1468. weld.Parent=parent
  1469. weld.Part0=part0
  1470. weld.Part1=part1
  1471. weld.C0=c0
  1472. return weld
  1473. end
  1474.  
  1475. local Color1=Torso.BrickColor
  1476.  
  1477. local bodvel=Instance.new("BodyVelocity")
  1478. local bg=Instance.new("BodyGyro")
  1479.  
  1480. --------- SazEreno's Artificial HB --------------
  1481. ArtificialHB = Instance.new("BindableEvent", script)
  1482. ArtificialHB.Name = "ArtificialHB"
  1483.  
  1484. script:WaitForChild("ArtificialHB")
  1485. Frame_Speed = 1 / 60
  1486. frame = Frame_Speed
  1487. tf = 0
  1488. allowframeloss = false
  1489. tossremainder = false
  1490. lastframe = tick()
  1491. script.ArtificialHB:Fire()
  1492.  
  1493. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1494. tf = tf + s
  1495. if tf >= frame then
  1496. if allowframeloss then
  1497. script.ArtificialHB:Fire()
  1498. lastframe = tick()
  1499. else
  1500. for i = 1, math.floor(tf / frame) do
  1501. script.ArtificialHB:Fire()
  1502. end
  1503. lastframe = tick()
  1504. end
  1505. if tossremainder then
  1506. tf = 0
  1507. else
  1508. tf = tf - frame * math.floor(tf / frame)
  1509. end
  1510. end
  1511. end)
  1512.  
  1513. ------------------
  1514. function swait(num)
  1515. function swait(num)
  1516. if num==0 or num==nil then
  1517. game:service'RunService'.Stepped:wait(0)
  1518. else
  1519. for i=0,num do
  1520. game:service'RunService'.Stepped:wait(0)
  1521. end
  1522. end
  1523. end
  1524. end
  1525.  
  1526. -------- RAINBOW LEAVE IT TO ME
  1527. local r = 255
  1528. local g = 0
  1529. local b = 0
  1530. coroutine.resume(coroutine.create(function()
  1531. while wait() do
  1532. for i = 0, 254/5 do
  1533. swait()
  1534. g = g + 5
  1535. end
  1536. for i = 0, 254/5 do
  1537. swait()
  1538. r = r - 5
  1539. end
  1540. for i = 0, 254/5 do
  1541. swait()
  1542. b = b + 5
  1543. end
  1544. for i = 0, 254/5 do
  1545. swait()
  1546. g = g - 5
  1547. end
  1548. for i = 0, 254/5 do
  1549. swait()
  1550. r = r + 5
  1551. end
  1552. for i = 0, 254/5 do
  1553. swait()
  1554. b = b - 5
  1555. end
  1556. end
  1557. end))
  1558.  
  1559.  
  1560. so = function(id,par,vol,pit)
  1561. coroutine.resume(coroutine.create(function()
  1562. local sou = Instance.new("Sound",par or workspace)
  1563. sou.Volume=vol
  1564. sou.Pitch=pit or 1
  1565. sou.SoundId=id
  1566. swait()
  1567. sou:play()
  1568. game:GetService("Debris"):AddItem(sou,6)
  1569. end))
  1570. end
  1571.  
  1572. function clerp(a,b,t)
  1573. local qa = {QuaternionFromCFrame(a)}
  1574. local qb = {QuaternionFromCFrame(b)}
  1575. local ax, ay, az = a.x, a.y, a.z
  1576. local bx, by, bz = b.x, b.y, b.z
  1577. local _t = 1-t
  1578. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1579. end
  1580.  
  1581. function QuaternionFromCFrame(cf)
  1582. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1583. local trace = m00 + m11 + m22
  1584. if trace > 0 then
  1585. local s = math.sqrt(1 + trace)
  1586. local recip = 0.5/s
  1587. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1588. else
  1589. local i = 0
  1590. if m11 > m00 then
  1591. i = 1
  1592. end
  1593. if m22 > (i == 0 and m00 or m11) then
  1594. i = 2
  1595. end
  1596. if i == 0 then
  1597. local s = math.sqrt(m00-m11-m22+1)
  1598. local recip = 0.5/s
  1599. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1600. elseif i == 1 then
  1601. local s = math.sqrt(m11-m22-m00+1)
  1602. local recip = 0.5/s
  1603. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1604. elseif i == 2 then
  1605. local s = math.sqrt(m22-m00-m11+1)
  1606. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1607. end
  1608. end
  1609. end
  1610.  
  1611. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1612. local xs, ys, zs = x + x, y + y, z + z
  1613. local wx, wy, wz = w*xs, w*ys, w*zs
  1614. local xx = x*xs
  1615. local xy = x*ys
  1616. local xz = x*zs
  1617. local yy = y*ys
  1618. local yz = y*zs
  1619. local zz = z*zs
  1620. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1621. end
  1622.  
  1623. function QuaternionSlerp(a, b, t)
  1624. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1625. local startInterp, finishInterp;
  1626. if cosTheta >= 0.0001 then
  1627. if (1 - cosTheta) > 0.0001 then
  1628. local theta = math.acos(cosTheta)
  1629. local invSinTheta = 1/math.sin(theta)
  1630. startInterp = math.sin((1-t)*theta)*invSinTheta
  1631. finishInterp = math.sin(t*theta)*invSinTheta
  1632. else
  1633. startInterp = 1-t
  1634. finishInterp = t
  1635. end
  1636. else
  1637. if (1+cosTheta) > 0.0001 then
  1638. local theta = math.acos(-cosTheta)
  1639. local invSinTheta = 1/math.sin(theta)
  1640. startInterp = math.sin((t-1)*theta)*invSinTheta
  1641. finishInterp = math.sin(t*theta)*invSinTheta
  1642. else
  1643. startInterp = t-1
  1644. finishInterp = t
  1645. end
  1646. end
  1647. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1648. end
  1649.  
  1650. local function CFrameFromTopBack(at, top, back)
  1651. local right = top:Cross(back)
  1652. return CFrame.new(at.x, at.y, at.z,
  1653. right.x, top.x, back.x,
  1654. right.y, top.y, back.y,
  1655. right.z, top.z, back.z)
  1656. end
  1657.  
  1658. function Triangle(a, b, c)
  1659. local edg1 = (c-a):Dot((b-a).unit)
  1660. local edg2 = (a-b):Dot((c-b).unit)
  1661. local edg3 = (b-c):Dot((a-c).unit)
  1662. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1663. a, b, c = a, b, c
  1664. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1665. a, b, c = b, c, a
  1666. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1667. a, b, c = c, a, b
  1668. else
  1669. assert(false, "unreachable")
  1670. end
  1671.  
  1672. local len1 = (c-a):Dot((b-a).unit)
  1673. local len2 = (b-a).magnitude - len1
  1674. local width = (a + (b-a).unit*len1 - c).magnitude
  1675.  
  1676. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1677.  
  1678. local list = {}
  1679.  
  1680. if len1 > 0.01 then
  1681. local w1 = Instance.new('WedgePart', m)
  1682. game:GetService("Debris"):AddItem(w1,5)
  1683. w1.Material = "SmoothPlastic"
  1684. w1.FormFactor = 'Custom'
  1685. w1.BrickColor = BrickColor.new("Really red")
  1686. w1.Transparency = 0
  1687. w1.Reflectance = 0
  1688. w1.Material = "SmoothPlastic"
  1689. w1.CanCollide = false
  1690. local l1 = Instance.new("PointLight",w1)
  1691. l1.Color = Color3.new(170,0,0)
  1692. NoOutline(w1)
  1693. local sz = Vector3.new(0.2, width, len1)
  1694. w1.Size = sz
  1695. local sp = Instance.new("SpecialMesh",w1)
  1696. sp.MeshType = "Wedge"
  1697. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1698. w1:BreakJoints()
  1699. w1.Anchored = true
  1700. w1.Parent = workspace
  1701. w1.Transparency = 0.7
  1702. table.insert(Effects,{w1,"Disappear",.01})
  1703. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1704. table.insert(list,w1)
  1705. end
  1706.  
  1707. if len2 > 0.01 then
  1708. local w2 = Instance.new('WedgePart', m)
  1709. game:GetService("Debris"):AddItem(w2,5)
  1710. w2.Material = "SmoothPlastic"
  1711. w2.FormFactor = 'Custom'
  1712. w2.BrickColor = BrickColor.new("Really red")
  1713. w2.Transparency = 0
  1714. w2.Reflectance = 0
  1715. w2.Material = "SmoothPlastic"
  1716. w2.CanCollide = false
  1717. local l2 = Instance.new("PointLight",w2)
  1718. l2.Color = Color3.new(170,0,0)
  1719. NoOutline(w2)
  1720. local sz = Vector3.new(0.2, width, len2)
  1721. w2.Size = sz
  1722. local sp = Instance.new("SpecialMesh",w2)
  1723. sp.MeshType = "Wedge"
  1724. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1725. w2:BreakJoints()
  1726. w2.Anchored = true
  1727. w2.Parent = workspace
  1728. w2.Transparency = 0.7
  1729. table.insert(Effects,{w2,"Disappear",.01})
  1730. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1731. table.insert(list,w2)
  1732. end
  1733. return unpack(list)
  1734. end
  1735.  
  1736.  
  1737. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1738. if hit.Parent == nil then
  1739. return
  1740. end
  1741. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1742. for _, v in pairs(hit.Parent:children()) do
  1743. if v:IsA("Humanoid") then
  1744. h = v
  1745. end
  1746. end
  1747. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1748. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1749. return
  1750. end
  1751. local c = Create("ObjectValue")({
  1752. Name = "creator",
  1753. Value = game:GetService("Players").LocalPlayer,
  1754. Parent = h
  1755. })
  1756. game:GetService("Debris"):AddItem(c, 0.5)
  1757. if HitSound ~= nil and HitPitch ~= nil then
  1758. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1759. end
  1760. local Damage = math.random(minim, maxim)
  1761. local blocked = false
  1762. local block = hit.Parent:findFirstChild("Block")
  1763. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1764. blocked = true
  1765. block.Value = block.Value - 1
  1766. print(block.Value)
  1767. end
  1768. if blocked == false then
  1769. HitHealth = h.Health
  1770. h.MaxHealth = 100
  1771. h.Health = h.Health - Damage
  1772. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1773. print("gained kill")
  1774. dmg(h.Parent)
  1775. end
  1776. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1777. else
  1778. h.Health = h.Health - Damage / 2
  1779. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1780. end
  1781. if Type == "Knockdown" then
  1782. local hum = hit.Parent.Humanoid
  1783. hum.PlatformStand = true
  1784. coroutine.resume(coroutine.create(function(HHumanoid)
  1785. swait(1)
  1786. HHumanoid.PlatformStand = false
  1787. end), hum)
  1788. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1789. local bodvol = Create("BodyVelocity")({
  1790. velocity = angle * knockback,
  1791. P = 5000,
  1792. maxForce = Vector3.new(8000, 8000, 8000),
  1793. Parent = hit
  1794. })
  1795. local rl = Create("BodyAngularVelocity")({
  1796. P = 3000,
  1797. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1798. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1799. Parent = hit
  1800. })
  1801. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1802. game:GetService("Debris"):AddItem(rl, 0.5)
  1803. elseif Type == "Normal" then
  1804. local vp = Create("BodyVelocity")({
  1805. P = 500,
  1806. maxForce = Vector3.new(math.huge, 0, math.huge),
  1807. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1808. })
  1809. if knockback > 0 then
  1810. vp.Parent = hit.Parent.Head
  1811. end
  1812. game:GetService("Debris"):AddItem(vp, 0.5)
  1813. elseif Type == "Up" then
  1814. local bodyVelocity = Create("BodyVelocity")({
  1815. velocity = Vector3.new(0, 20, 0),
  1816. P = 5000,
  1817. maxForce = Vector3.new(8000, 8000, 8000),
  1818. Parent = hit
  1819. })
  1820. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1821. local bodyVelocity = Create("BodyVelocity")({
  1822. velocity = Vector3.new(0, 20, 0),
  1823. P = 5000,
  1824. maxForce = Vector3.new(8000, 8000, 8000),
  1825. Parent = hit
  1826. })
  1827. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1828. elseif Type == "Leech" then
  1829. local hum = hit.Parent.Humanoid
  1830. if hum ~= nil then
  1831. for i = 0, 2 do
  1832. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1833. end
  1834. Humanoid.Health = Humanoid.Health + 10
  1835. end
  1836. elseif Type == "UpKnock" then
  1837. local hum = hit.Parent.Humanoid
  1838. hum.PlatformStand = true
  1839. if hum ~= nil then
  1840. hitr = true
  1841. end
  1842. coroutine.resume(coroutine.create(function(HHumanoid)
  1843. swait(5)
  1844. HHumanoid.PlatformStand = false
  1845. hitr = false
  1846. end), hum)
  1847. local bodyVelocity = Create("BodyVelocity")({
  1848. velocity = Vector3.new(0, 20, 0),
  1849. P = 5000,
  1850. maxForce = Vector3.new(8000, 8000, 8000),
  1851. Parent = hit
  1852. })
  1853. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1854. local bodyVelocity = Create("BodyVelocity")({
  1855. velocity = Vector3.new(0, 20, 0),
  1856. P = 5000,
  1857. maxForce = Vector3.new(8000, 8000, 8000),
  1858. Parent = hit
  1859. })
  1860. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1861. elseif Type == "Snare" then
  1862. local bp = Create("BodyPosition")({
  1863. P = 2000,
  1864. D = 100,
  1865. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1866. position = hit.Parent.Torso.Position,
  1867. Parent = hit.Parent.Torso
  1868. })
  1869. game:GetService("Debris"):AddItem(bp, 1)
  1870. elseif Type == "Slashnare" then
  1871. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1872. for i = 1, math.random(4, 5) do
  1873. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1874. end
  1875. local bp = Create("BodyPosition")({
  1876. P = 2000,
  1877. D = 100,
  1878. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1879. position = hit.Parent.Torso.Position,
  1880. Parent = hit.Parent.Torso
  1881. })
  1882. game:GetService("Debris"):AddItem(bp, 1)
  1883. elseif Type == "Spike" then
  1884. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1885. local bp = Create("BodyPosition")({
  1886. P = 2000,
  1887. D = 100,
  1888. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1889. position = hit.Parent.Torso.Position,
  1890. Parent = hit.Parent.Torso
  1891. })
  1892. game:GetService("Debris"):AddItem(bp, 1)
  1893. elseif Type == "Freeze" then
  1894. local BodPos = Create("BodyPosition")({
  1895. P = 50000,
  1896. D = 1000,
  1897. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1898. position = hit.Parent.Torso.Position,
  1899. Parent = hit.Parent.Torso
  1900. })
  1901. local BodGy = Create("BodyGyro")({
  1902. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1903. P = 20000,
  1904. Parent = hit.Parent.Torso,
  1905. cframe = hit.Parent.Torso.CFrame
  1906. })
  1907. hit.Parent.Torso.Anchored = true
  1908. coroutine.resume(coroutine.create(function(Part)
  1909. swait(1.5)
  1910. Part.Anchored = false
  1911. end), hit.Parent.Torso)
  1912. game:GetService("Debris"):AddItem(BodPos, 3)
  1913. game:GetService("Debris"):AddItem(BodGy, 3)
  1914. end
  1915. local debounce = Create("BoolValue")({
  1916. Name = "DebounceHit",
  1917. Parent = hit.Parent,
  1918. Value = true
  1919. })
  1920. game:GetService("Debris"):AddItem(debounce, Delay)
  1921. c = Instance.new("ObjectValue")
  1922. c.Name = "creator"
  1923. c.Value = Player
  1924. c.Parent = h
  1925. game:GetService("Debris"):AddItem(c, 0.5)
  1926. end
  1927. end
  1928. function ShowDamage(Pos, Text, Time, Color)
  1929. local Rate = 0.03333333333333333
  1930. local Pos = Pos or Vector3.new(0, 0, 0)
  1931. local Text = Text or ""
  1932. local Time = Time or 2
  1933. local Color = Color or Color3.new(1, 0, 1)
  1934. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1935. EffectPart.Anchored = true
  1936. local BillboardGui = Create("BillboardGui")({
  1937. Size = UDim2.new(3, 0, 3, 0),
  1938. Adornee = EffectPart,
  1939. Parent = EffectPart
  1940. })
  1941. local TextLabel = Create("TextLabel")({
  1942. BackgroundTransparency = 1,
  1943. Size = UDim2.new(1, 0, 1, 0),
  1944. Text = Text,
  1945. TextColor3 = Color,
  1946. TextScaled = true,
  1947. Font = Enum.Font.ArialBold,
  1948. Parent = BillboardGui
  1949. })
  1950. game.Debris:AddItem(EffectPart, Time + 0.1)
  1951. EffectPart.Parent = game:GetService("Workspace")
  1952. delay(0, function()
  1953. local Frames = Time / Rate
  1954. for Frame = 1, Frames do
  1955. wait(Rate)
  1956. local Percent = Frame / Frames
  1957. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1958. TextLabel.TextTransparency = Percent
  1959. end
  1960. if EffectPart and EffectPart.Parent then
  1961. EffectPart:Destroy()
  1962. end
  1963. end)
  1964. end
  1965. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1966. for _, c in pairs(workspace:children()) do
  1967. local hum = c:findFirstChildOfClass("Humanoid")
  1968. if hum ~= nil then
  1969. local head = c:findFirstChild("Head")
  1970. if head ~= nil then
  1971. local targ = head.Position - Part.Position
  1972. local mag = targ.magnitude
  1973. if magni >= mag and c.Name ~= Player.Name then
  1974. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1975. end
  1976. end
  1977. end
  1978. end
  1979. end
  1980.  
  1981. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1982. for _, c in pairs(workspace:children()) do
  1983. local hum = c:findFirstChild("Humanoid")
  1984. if hum ~= nil then
  1985. local head = c:findFirstChild("Torso")
  1986. if head ~= nil then
  1987. local targ = head.Position - Part.Position
  1988. local mag = targ.magnitude
  1989. if magni >= mag and c.Name ~= Player.Name then
  1990. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1991. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1992. end
  1993. end
  1994. end
  1995. end
  1996. end
  1997.  
  1998. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1999. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2000. end
  2001.  
  2002. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2003. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2004. prt.Anchored=true
  2005. prt.CFrame=cframe
  2006. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2007. --http://www.roblox.com/asset/?id=4770560
  2008. game:GetService("Debris"):AddItem(prt,2)
  2009. CF=prt.CFrame
  2010. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2011. for i=0,1,0.2 do
  2012. wait()
  2013. Part.CFrame=CF*cf(0,0,-0.4)
  2014. end
  2015. for i=0,1,delay do
  2016. wait()
  2017. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  2018. Mesh.Scale=Mesh.Scale
  2019. end
  2020. for i=0,1,0.1 do
  2021. wait()
  2022. Part.Transparency=i
  2023. end
  2024. Part.Parent=nil
  2025. end),prt,msh,CF)
  2026. end
  2027.  
  2028. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2029. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2030. prt.Anchored=true
  2031. prt.Material = "Neon"
  2032. prt.CFrame=cframe
  2033. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2034. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2035. game:GetService("Debris"):AddItem(prt,5)
  2036. coroutine.resume(coroutine.create(function(Part,Mesh)
  2037. for i=0,1,delay do
  2038. swait()
  2039. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2040. Part.Transparency=i
  2041. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2042. end
  2043. Part.Parent=nil
  2044. end),prt,msh)
  2045. end
  2046.  
  2047. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2048. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2049. prt.Anchored=true
  2050. prt.Material = "Neon"
  2051. prt.CFrame=cframe
  2052. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2053. game:GetService("Debris"):AddItem(prt,5)
  2054. coroutine.resume(coroutine.create(function(Part,Mesh)
  2055. local rtype = rottype
  2056. for i=0,1,delay do
  2057. swait()
  2058. if rtype == 1 then
  2059. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2060. elseif rtype == 2 then
  2061. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2062. end
  2063. Part.Transparency=i
  2064. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2065. end
  2066. Part.Parent=nil
  2067. end),prt,msh)
  2068. end
  2069.  
  2070. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2071. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2072. prt.Anchored=true
  2073. prt.CFrame=cframe
  2074. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2075. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2076. game:GetService("Debris"):AddItem(prt,5)
  2077. coroutine.resume(coroutine.create(function(Part,Mesh)
  2078. for i=0,1,delay do
  2079. wait()
  2080. Part.Transparency=i
  2081. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2082. end
  2083. Part.Parent=nil
  2084. end),prt,msh)
  2085. end
  2086.  
  2087. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2088. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2089. prt.Anchored=true
  2090. prt.Material = "Neon"
  2091. prt.CFrame=cframe
  2092. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2093. game:GetService("Debris"):AddItem(prt,5)
  2094. coroutine.resume(coroutine.create(function(Part,Mesh)
  2095. local rtype = rottype
  2096. for i=0,1,delay do
  2097. swait()
  2098. if rtype == 1 then
  2099. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2100. elseif rtype == 2 then
  2101. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2102. end
  2103. Part.Transparency=i
  2104. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2105. end
  2106. Part.Parent=nil
  2107. end),prt,msh)
  2108. end
  2109.  
  2110. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2111. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2112. prt.Anchored=true
  2113. prt.Material = "Neon"
  2114. prt.CFrame=cframe
  2115. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2116. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2117. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2118. game:GetService("Debris"):AddItem(prt,5)
  2119. coroutine.resume(coroutine.create(function(Part,Mesh)
  2120. local rtype = rottype
  2121. for i=0,1,delay do
  2122. swait()
  2123. if rtype == 1 then
  2124. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2125. elseif rtype == 2 then
  2126. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2127. end
  2128. dec.Transparency=i
  2129. dec2.Transparency=i
  2130. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2131. end
  2132. Part.Parent=nil
  2133. end),prt,msh)
  2134. end
  2135.  
  2136. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2137. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2138. prt.Anchored=true
  2139. prt.Material = "Neon"
  2140. prt.CFrame=cframe
  2141. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2142. game:GetService("Debris"):AddItem(prt,5)
  2143. coroutine.resume(coroutine.create(function(Part,Mesh)
  2144. local rtype = rottype
  2145. for i=0,1,delay do
  2146. swait()
  2147. if rtype == 1 then
  2148. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2149. elseif rtype == 2 then
  2150. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2151. end
  2152. prt.Transparency=i
  2153. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2154. end
  2155. Part.Parent=nil
  2156. end),prt,msh)
  2157. end
  2158.  
  2159. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2160. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2161. prt.Anchored=true
  2162. prt.Material = "Neon"
  2163. prt.CFrame=cframe
  2164. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2165. game:GetService("Debris"):AddItem(prt,5)
  2166. coroutine.resume(coroutine.create(function(Part,Mesh)
  2167. local rtype = rottype
  2168. for i=0,1,delay do
  2169. swait()
  2170. if rtype == 1 then
  2171. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2172. elseif rtype == 2 then
  2173. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2174. end
  2175. prt.Transparency=i
  2176. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2177. end
  2178. Part.Parent=nil
  2179. end),prt,msh)
  2180. end
  2181.  
  2182. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2183. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2184. prt.Anchored=true
  2185. prt.Material = "Neon"
  2186. prt.CFrame=cframe
  2187. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2188. game:GetService("Debris"):AddItem(prt,5)
  2189. coroutine.resume(coroutine.create(function(Part,Mesh)
  2190. local rtype = rottype
  2191. for i=0,1,delay do
  2192. swait()
  2193. if rtype == 1 then
  2194. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2195. elseif rtype == 2 then
  2196. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2197. end
  2198. prt.Transparency=i
  2199. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2200. end
  2201. Part.Parent=nil
  2202. end),prt,msh)
  2203. end
  2204.  
  2205. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2206. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2207. prt.Anchored=true
  2208. prt.Material = "Neon"
  2209. prt.CFrame=cframe
  2210. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2211. game:GetService("Debris"):AddItem(prt,5)
  2212. coroutine.resume(coroutine.create(function(Part,Mesh)
  2213. local rtype = rottype
  2214. for i=0,1,delay do
  2215. swait()
  2216. if rtype == 1 then
  2217. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2218. elseif rtype == 2 then
  2219. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2220. end
  2221. prt.Transparency=i
  2222. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2223. end
  2224. Part.Parent=nil
  2225. end),prt,msh)
  2226. end
  2227.  
  2228. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2229. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2230. prt.Anchored=false
  2231. prt.CFrame=cframe
  2232. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2233. local wld=weld(prt,prt,Parent,cframe)
  2234. game:GetService("Debris"):AddItem(prt,5)
  2235. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2236. for i=0,1,delay do
  2237. wait()
  2238. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2239. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2240. Part.Transparency=i
  2241. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2242. end
  2243. Part.Parent=nil
  2244. end),prt,msh,wld)
  2245. end
  2246.  
  2247. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2248. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2249. prt.Anchored=false
  2250. prt.CFrame=cframe
  2251. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2252. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2253. game:GetService("Debris"):AddItem(prt,5)
  2254. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2255. for i=0,1,delay do
  2256. wait()
  2257. Weld.C0=euler(i*20,0,0)
  2258. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2259. Part.Transparency=i
  2260. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2261. end
  2262. Part.Parent=nil
  2263. end),prt,msh,wld)
  2264. end
  2265.  
  2266. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2267. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2268. prt.Anchored=true
  2269. prt.CFrame=cframe
  2270. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2271. game:GetService("Debris"):AddItem(prt,2)
  2272. coroutine.resume(coroutine.create(function(Part,Mesh)
  2273. for i=0,1,delay do
  2274. wait()
  2275. Part.CFrame=Part.CFrame
  2276. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2277. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2278. prt2.Anchored=true
  2279. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2280. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2281. game:GetService("Debris"):AddItem(prt2,2)
  2282. coroutine.resume(coroutine.create(function(Part,Mesh)
  2283. for i=0,1,0.1 do
  2284. wait()
  2285. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2286. end
  2287. Part.Parent=nil
  2288. end),prt2,msh2)
  2289. end
  2290. for i=0,1,delay*2 do
  2291. wait()
  2292. Part.CFrame=Part.CFrame
  2293. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2294. end
  2295. Part.Parent=nil
  2296. end),prt,msh)
  2297. end
  2298.  
  2299. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2300. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2301. prt.Anchored=true
  2302. prt.CFrame=cframe
  2303. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2304. game:GetService("Debris"):AddItem(prt,2)
  2305. coroutine.resume(coroutine.create(function(Part,Mesh)
  2306. for i=0,1,delay do
  2307. wait()
  2308. Part.CFrame=Part.CFrame
  2309. Part.Transparency=i
  2310. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2311. end
  2312. Part.Parent=nil
  2313. end),prt,msh)
  2314. end
  2315.  
  2316. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2317. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2318. prt.Anchored=true
  2319. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2320. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2321. game:GetService("Debris"):AddItem(prt,2)
  2322. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2323. CF=Part.CFrame
  2324. Numbb=0
  2325. randnumb=math.random()/10
  2326. rand1=math.random()/10
  2327. for i=0,1,rand1 do
  2328. wait()
  2329. CF=CF*cf(0,math.random()/2,0)
  2330. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2331. Part.CFrame=CF*euler(Numbb,0,0)
  2332. Part.Transparency=i
  2333. Numbb=Numbb+randnumb
  2334. end
  2335. Part.Parent=nil
  2336. end),prt,CF,Numbb,randnumb)
  2337. end
  2338.  
  2339. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2340. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2341. prt.Anchored=true
  2342. prt.CFrame=cframe
  2343. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2344. game:GetService("Debris"):AddItem(prt,5)
  2345. coroutine.resume(coroutine.create(function(Part,Mesh)
  2346. for i=0,1,delay do
  2347. wait()
  2348. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2349. Part.Transparency=i
  2350. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2351. end
  2352. Part.Parent=nil
  2353. end),prt,msh)
  2354. end
  2355.  
  2356. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2357. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2358. prt.Anchored=true
  2359. prt.CFrame=cframe
  2360. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2361. game:GetService("Debris"):AddItem(prt,2)
  2362. coroutine.resume(coroutine.create(function(Part,Mesh)
  2363. for i=0,1,delay do
  2364. wait()
  2365. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2366. Part.Transparency=i
  2367. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2368. end
  2369. Part.Parent=nil
  2370. end),prt,msh)
  2371. end
  2372.  
  2373. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2374. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2375. prt.Anchored=true
  2376. prt.CFrame=cframe*cf(x,y,z)
  2377. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2378. game:GetService("Debris"):AddItem(prt,5)
  2379. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2380. local num=math.random()
  2381. local num2=math.random(-3,2)+math.random()
  2382. local numm=0
  2383. for i=0,1,delay*2 do
  2384. swait()
  2385. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2386. Part.Transparency=i
  2387. numm=numm+0.01
  2388. end
  2389. Part.Parent=nil
  2390. Mesh.Parent=nil
  2391. end),prt,msh,x,y,z)
  2392. end
  2393.  
  2394. function dmgstart(dmg,what)
  2395. hitcon = what.Touched:connect(function(hit)
  2396. local hum = hit.Parent:FindFirstChild("Humanoid")
  2397. if hum and not hum:IsDescendantOf(Character) then
  2398. hum:TakeDamage(dmg)
  2399. end
  2400. end)
  2401. end
  2402.  
  2403. function dmgstop()
  2404. hitcon:disconnect()
  2405. end
  2406.  
  2407. function Cloak()
  2408. Face.Parent=nil
  2409. cloaked=true
  2410. for _,v in pairs(Torso.Parent:children()) do
  2411. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2412. coroutine.resume(coroutine.create(function()
  2413. for i=0,1,0.2 do
  2414. wait()
  2415. v.Transparency=i
  2416. end
  2417. v.Transparency=1
  2418. end))
  2419. end
  2420. if v.className=="Hat" then
  2421. hatp=v.Handle
  2422. coroutine.resume(coroutine.create(function(derp)
  2423. for i=0,1,0.2 do
  2424. wait()
  2425. derp.Transparency=i
  2426. end
  2427. derp.Transparency=1
  2428. end),hatp)
  2429. end
  2430. end
  2431. for _,v in pairs(m:children()) do
  2432. if v.className=="Part" then
  2433. coroutine.resume(coroutine.create(function()
  2434. for i=0,1,0.2 do
  2435. wait()
  2436. v.Transparency=i
  2437. end
  2438. v.Transparency=1
  2439. end))
  2440. end
  2441. end
  2442. end
  2443.  
  2444. function UnCloak()
  2445. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2446. Face.Parent=Head
  2447. cloaked=false
  2448. for _,v in pairs(Torso.Parent:children()) do
  2449. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2450. coroutine.resume(coroutine.create(function()
  2451. for i=0,1,0.1 do
  2452. wait()
  2453. v.Transparency=v.Transparency-0.1
  2454. end
  2455. v.Transparency=0
  2456. end))
  2457. end
  2458. if v.className=="Hat" then
  2459. hatp=v.Handle
  2460. coroutine.resume(coroutine.create(function(derp)
  2461. for i=0,1,0.1 do
  2462. wait()
  2463. derp.Transparency=derp.Transparency-0.1
  2464. end
  2465. derp.Transparency=0
  2466. end),hatp)
  2467. end
  2468. end
  2469. for _,v in pairs(m:children()) do
  2470. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2471. coroutine.resume(coroutine.create(function()
  2472. for i=0,1,0.1 do
  2473. wait()
  2474. v.Transparency=v.Transparency-0.1
  2475. end
  2476. v.Transparency=0
  2477. end))
  2478. v.Transparency=0
  2479. end
  2480. end
  2481. end
  2482.  
  2483. local origcolor = BrickColor.new("Pastel light blue")
  2484. ---- This section of explosions.
  2485.  
  2486. ----
  2487.  
  2488.  
  2489. function ring(type,pos,scale,value)
  2490. local type = type
  2491. local rng = Instance.new("Part", char)
  2492. rng.Anchored = true
  2493. rng.BrickColor = origcolor
  2494. rng.CanCollide = false
  2495. rng.FormFactor = 3
  2496. rng.Name = "Ring"
  2497. rng.Size = Vector3.new(1, 1, 1)
  2498. rng.Transparency = 0
  2499. rng.TopSurface = 0
  2500. rng.BottomSurface = 0
  2501. rng.CFrame = pos
  2502. local rngm = Instance.new("SpecialMesh", rng)
  2503. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2504. rngm.Scale = scale
  2505. local scaler2 = 1
  2506. if type == "Add" then
  2507. scaler2 = 1*value
  2508. elseif type == "Divide" then
  2509. scaler2 = 1/value
  2510. end
  2511. coroutine.resume(coroutine.create(function()
  2512. for i = 0,10,0.1 do
  2513. swait()
  2514. if type == "Add" then
  2515. scaler2 = scaler2 - 0.01*value
  2516. elseif type == "Divide" then
  2517. scaler2 = scaler2 - 0.01/value
  2518. end
  2519. rng.Transparency = rng.Transparency + 0.01
  2520. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2521. end
  2522. rng:Destroy()
  2523. end))
  2524. end
  2525.  
  2526.  
  2527. function wave(type,pos,scale,value)
  2528. local type = type
  2529. local rng = Instance.new("Part", char)
  2530. rng.Anchored = true
  2531. rng.BrickColor = origcolor
  2532. rng.CanCollide = false
  2533. rng.FormFactor = 3
  2534. rng.Name = "Ring"
  2535. rng.Size = Vector3.new(1, 1, 1)
  2536. rng.Transparency = 0
  2537. rng.TopSurface = 0
  2538. rng.BottomSurface = 0
  2539. rng.CFrame = pos
  2540. local rngm = Instance.new("SpecialMesh", rng)
  2541. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2542. rngm.Scale = scale
  2543. local scaler2 = 1
  2544. if type == "Add" then
  2545. scaler2 = 1*value
  2546. elseif type == "Divide" then
  2547. scaler2 = 1/value
  2548. end
  2549. coroutine.resume(coroutine.create(function()
  2550. for i = 0,10,0.1 do
  2551. swait()
  2552. if type == "Add" then
  2553. scaler2 = scaler2 - 0.01*value
  2554. elseif type == "Divide" then
  2555. scaler2 = scaler2 - 0.01/value
  2556. end
  2557. rng.Transparency = rng.Transparency + 0.01
  2558. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2559. end
  2560. rng:Destroy()
  2561. end))
  2562. end
  2563.  
  2564. function wind(type,pos,scale,value,speed)
  2565. local type = type
  2566. local rng = Instance.new("Part", char)
  2567. rng.Anchored = true
  2568. rng.BrickColor = origcolor
  2569. rng.CanCollide = false
  2570. rng.FormFactor = 3
  2571. rng.Name = "Ring"
  2572. rng.Size = Vector3.new(1, 1, 1)
  2573. rng.Transparency = 0
  2574. rng.TopSurface = 0
  2575. rng.BottomSurface = 0
  2576. rng.CFrame = pos
  2577. local rngm = Instance.new("SpecialMesh", rng)
  2578. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2579. rngm.Scale = scale
  2580. local scaler2 = 1
  2581. if type == "Add" then
  2582. scaler2 = 1*value
  2583. elseif type == "Divide" then
  2584. scaler2 = 1/value
  2585. end
  2586. coroutine.resume(coroutine.create(function()
  2587. for i = 0,10,0.1 do
  2588. swait()
  2589. if type == "Add" then
  2590. scaler2 = scaler2 - 0.01*value
  2591. elseif type == "Divide" then
  2592. scaler2 = scaler2 - 0.01/value
  2593. end
  2594. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2595. rng.Transparency = rng.Transparency + 0.01
  2596. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2597. end
  2598. rng:Destroy()
  2599. end))
  2600. end
  2601.  
  2602. function groundwind(type,pos,scale,value,speed)
  2603. local type = type
  2604. local rng = Instance.new("Part", char)
  2605. rng.Anchored = true
  2606. rng.BrickColor = origcolor
  2607. rng.CanCollide = false
  2608. rng.FormFactor = 3
  2609. rng.Name = "Ring"
  2610. rng.Size = Vector3.new(1, 1, 1)
  2611. rng.Transparency = 0
  2612. rng.TopSurface = 0
  2613. rng.BottomSurface = 0
  2614. rng.CFrame = pos
  2615. local rngm = Instance.new("SpecialMesh", rng)
  2616. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2617. rngm.Scale = scale
  2618. local scaler2 = 1
  2619. if type == "Add" then
  2620. scaler2 = 1*value
  2621. elseif type == "Divide" then
  2622. scaler2 = 1/value
  2623. end
  2624. coroutine.resume(coroutine.create(function()
  2625. for i = 0,10,0.1 do
  2626. swait()
  2627. if type == "Add" then
  2628. scaler2 = scaler2 - 0.01*value
  2629. elseif type == "Divide" then
  2630. scaler2 = scaler2 - 0.01/value
  2631. end
  2632. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2633. rng.Transparency = rng.Transparency + 0.01
  2634. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2635. end
  2636. rng:Destroy()
  2637. end))
  2638. end
  2639.  
  2640. function CameraManager()
  2641. if TwoD and not CamInterrupt then
  2642. if Humanoid.Health > 0 then
  2643. Camera.CameraSubject = Humanoid
  2644. Camera.CameraType = "Scriptable"
  2645. Humanoid.AutoRotate = false
  2646. if Booleans.GyroUse then
  2647. Directer.MaxTorque = Vec3(0, huge, 0)
  2648. else
  2649. Directer.MaxTorque = Vec3(0, 0, 0)
  2650. end
  2651. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2652. if Booleans.CamFollow then
  2653. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2654. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2655. else
  2656. CPart.Position = RootPart.Position
  2657. end
  2658. else
  2659. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2660. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2661. end
  2662. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2663. else
  2664. Camera.CameraSubject = Humanoid
  2665. Camera.CameraType = "Custom"
  2666. Controller.Disabled = false
  2667. end
  2668. end
  2669. end
  2670.  
  2671. function ring(type,pos,scale,value)
  2672. local type = type
  2673. local rng = Instance.new("Part", char)
  2674. rng.Anchored = true
  2675. rng.BrickColor = origcolor
  2676. rng.CanCollide = false
  2677. rng.FormFactor = 3
  2678. rng.Name = "Ring"
  2679. rng.Size = Vector3.new(1, 1, 1)
  2680. rng.Transparency = 0
  2681. rng.TopSurface = 0
  2682. rng.BottomSurface = 0
  2683. rng.CFrame = pos
  2684. local rngm = Instance.new("SpecialMesh", rng)
  2685. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2686. rngm.Scale = scale
  2687. local scaler2 = 1
  2688. if type == "Add" then
  2689. scaler2 = 1*value
  2690. elseif type == "Divide" then
  2691. scaler2 = 1/value
  2692. end
  2693. coroutine.resume(coroutine.create(function()
  2694. for i = 0,10,0.1 do
  2695. swait()
  2696. if type == "Add" then
  2697. scaler2 = scaler2 - 0.01*value
  2698. elseif type == "Divide" then
  2699. scaler2 = scaler2 - 0.01/value
  2700. end
  2701. rng.Transparency = rng.Transparency + 0.01
  2702. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2703. end
  2704. rng:Destroy()
  2705. end))
  2706. end
  2707.  
  2708.  
  2709. function wave(type,pos,scale,value)
  2710. local type = type
  2711. local rng = Instance.new("Part", char)
  2712. rng.Anchored = true
  2713. rng.BrickColor = origcolor
  2714. rng.CanCollide = false
  2715. rng.FormFactor = 3
  2716. rng.Name = "Ring"
  2717. rng.Size = Vector3.new(1, 1, 1)
  2718. rng.Transparency = 0
  2719. rng.TopSurface = 0
  2720. rng.BottomSurface = 0
  2721. rng.CFrame = pos
  2722. local rngm = Instance.new("SpecialMesh", rng)
  2723. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2724. rngm.Scale = scale
  2725. local scaler2 = 1
  2726. if type == "Add" then
  2727. scaler2 = 1*value
  2728. elseif type == "Divide" then
  2729. scaler2 = 1/value
  2730. end
  2731. coroutine.resume(coroutine.create(function()
  2732. for i = 0,10,0.1 do
  2733. swait()
  2734. if type == "Add" then
  2735. scaler2 = scaler2 - 0.01*value
  2736. elseif type == "Divide" then
  2737. scaler2 = scaler2 - 0.01/value
  2738. end
  2739. rng.Transparency = rng.Transparency + 0.01
  2740. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2741. end
  2742. rng:Destroy()
  2743. end))
  2744. end
  2745.  
  2746. function sphere(bonuspeed,type,pos,scale,value,color)
  2747. local type = type
  2748. local rng = Instance.new("Part", char)
  2749. rng.Anchored = true
  2750. if ModeOfGlitch ~= 9 then
  2751. rng.BrickColor = color
  2752. elseif ModeOfGlitch == 9 then
  2753. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2754. end
  2755. rng.CanCollide = false
  2756. rng.FormFactor = 3
  2757. rng.Name = "Ring"
  2758. rng.Material = "Neon"
  2759. rng.Size = Vector3.new(1, 1, 1)
  2760. rng.Transparency = 0
  2761. rng.TopSurface = 0
  2762. rng.BottomSurface = 0
  2763. rng.CFrame = pos
  2764. local rngm = Instance.new("SpecialMesh", rng)
  2765. rngm.MeshType = "Sphere"
  2766. rngm.Scale = scale
  2767. if rainbowmode == true then
  2768. rng.Color = Color3.new(r/255,g/255,b/255)
  2769. end
  2770. if ModeOfGlitch == 9 then
  2771. coroutine.resume(coroutine.create(function()
  2772. while true do
  2773. swait()
  2774. if rng.Parent ~= nil then
  2775. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2776. else
  2777. break
  2778. end
  2779. end
  2780. end))
  2781. end
  2782. local scaler2 = 1
  2783. if type == "Add" then
  2784. scaler2 = 1*value
  2785. elseif type == "Divide" then
  2786. scaler2 = 1/value
  2787. end
  2788. coroutine.resume(coroutine.create(function()
  2789. for i = 0,10/bonuspeed,0.1 do
  2790. swait()
  2791. if rainbowmode == true then
  2792. rng.Color = Color3.new(r/255,g/255,b/255)
  2793. end
  2794. if type == "Add" then
  2795. scaler2 = scaler2 - 0.01*value/bonuspeed
  2796. elseif type == "Divide" then
  2797. scaler2 = scaler2 - 0.01/value*bonuspeed
  2798. end
  2799. if chaosmode == true then
  2800. rng.BrickColor = BrickColor.random()
  2801. end
  2802. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2803. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2804. end
  2805. rng:Destroy()
  2806. end))
  2807. end
  2808.  
  2809. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2810. local type = type
  2811. local rng = Instance.new("Part", char)
  2812. rng.Anchored = true
  2813. if ModeOfGlitch ~= 9 then
  2814. rng.BrickColor = color
  2815. elseif ModeOfGlitch == 9 then
  2816. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2817. end
  2818. rng.CanCollide = false
  2819. rng.FormFactor = 3
  2820. rng.Name = "Ring"
  2821. rng.Material = "Neon"
  2822. rng.Size = Vector3.new(1, 1, 1)
  2823. rng.Transparency = 0
  2824. rng.TopSurface = 0
  2825. rng.BottomSurface = 0
  2826. rng.CFrame = pos
  2827. local rngm = Instance.new("SpecialMesh", rng)
  2828. rngm.MeshType = "Sphere"
  2829. rngm.Scale = scale
  2830. local scaler2 = 1
  2831. local scaler2b = 1
  2832. local scaler2c = 1
  2833. if type == "Add" then
  2834. scaler2 = 1*value
  2835. scaler2b = 1*value2
  2836. scaler2c = 1*value3
  2837. elseif type == "Divide" then
  2838. scaler2 = 1/value
  2839. scaler2b = 1/value2
  2840. scaler2c = 1/value3
  2841. end
  2842. if ModeOfGlitch == 9 then
  2843. coroutine.resume(coroutine.create(function()
  2844. while true do
  2845. swait()
  2846. if rng.Parent ~= nil then
  2847. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2848. else
  2849. break
  2850. end
  2851. end
  2852. end))
  2853. end
  2854. coroutine.resume(coroutine.create(function()
  2855. for i = 0,10/bonuspeed,0.1 do
  2856. swait()
  2857. if type == "Add" then
  2858. scaler2 = scaler2 - 0.01*value/bonuspeed
  2859. scaler2b = scaler2b - 0.01*value/bonuspeed
  2860. scaler2c = scaler2c - 0.01*value/bonuspeed
  2861. elseif type == "Divide" then
  2862. scaler2 = scaler2 - 0.01/value*bonuspeed
  2863. scaler2b = scaler2b - 0.01/value*bonuspeed
  2864. scaler2c = scaler2c - 0.01/value*bonuspeed
  2865. end
  2866. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2867. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2868. end
  2869. rng:Destroy()
  2870. end))
  2871. end
  2872.  
  2873. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2874. local type = type
  2875. local rotenable = rotatingop
  2876. local rng = Instance.new("Part", char)
  2877. rng.Anchored = true
  2878. rng.BrickColor = color
  2879. rng.CanCollide = false
  2880. rng.FormFactor = 3
  2881. rng.Name = "Ring"
  2882. rng.Material = "Neon"
  2883. rng.Size = Vector3.new(1, 1, 1)
  2884. rng.Transparency = 0
  2885. if typeoftrans == "In" then
  2886. rng.Transparency = 1
  2887. end
  2888. rng.TopSurface = 0
  2889. rng.BottomSurface = 0
  2890. rng.CFrame = pos
  2891. local rngm = Instance.new("SpecialMesh", rng)
  2892. rngm.MeshType = "FileMesh"
  2893. if typeofshape == "Normal" then
  2894. rngm.MeshId = "rbxassetid://662586858"
  2895. elseif typeofshape == "Round" then
  2896. rngm.MeshId = "rbxassetid://662585058"
  2897. end
  2898. rngm.Scale = scale
  2899. local scaler2 = 1/10
  2900. if type == "Add" then
  2901. scaler2 = 1*value/10
  2902. elseif type == "Divide" then
  2903. scaler2 = 1/value/10
  2904. end
  2905. local randomrot = math.random(1,2)
  2906. coroutine.resume(coroutine.create(function()
  2907. for i = 0,10/bonuspeed,0.1 do
  2908. swait()
  2909. if type == "Add" then
  2910. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2911. elseif type == "Divide" then
  2912. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2913. end
  2914. if rotenable == true then
  2915. if randomrot == 1 then
  2916. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2917. elseif randomrot == 2 then
  2918. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2919. end
  2920. end
  2921. if typeoftrans == "Out" then
  2922. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2923. elseif typeoftrans == "In" then
  2924. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2925. end
  2926. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2927. end
  2928. rng:Destroy()
  2929. end))
  2930. end
  2931.  
  2932. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2933. local type = type
  2934. local rng = Instance.new("Part", char)
  2935. rng.Anchored = true
  2936. rng.BrickColor = color
  2937. rng.CanCollide = false
  2938. rng.FormFactor = 3
  2939. rng.Name = "Ring"
  2940. rng.Material = "Neon"
  2941. rng.Size = Vector3.new(1, 1, 1)
  2942. rng.Transparency = 0
  2943. rng.TopSurface = 0
  2944. rng.BottomSurface = 0
  2945. rng.CFrame = pos
  2946. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2947. local rngm = Instance.new("SpecialMesh", rng)
  2948. rngm.MeshType = "Brick"
  2949. rngm.Scale = vt(x1,y1,z1)
  2950. if rainbowmode == true then
  2951. rng.Color = Color3.new(r/255,g/255,b/255)
  2952. end
  2953. local scaler2 = 1
  2954. local speeder = FastSpeed/10
  2955. if type == "Add" then
  2956. scaler2 = 1*value
  2957. elseif type == "Divide" then
  2958. scaler2 = 1/value
  2959. end
  2960. coroutine.resume(coroutine.create(function()
  2961. for i = 0,10/bonuspeed,0.1 do
  2962. swait()
  2963. if rainbowmode == true then
  2964. rng.Color = Color3.new(r/255,g/255,b/255)
  2965. end
  2966. if type == "Add" then
  2967. scaler2 = scaler2 - 0.01*value/bonuspeed
  2968. elseif type == "Divide" then
  2969. scaler2 = scaler2 - 0.01/value*bonuspeed
  2970. end
  2971. if chaosmode == true then
  2972. rng.BrickColor = BrickColor.random()
  2973. end
  2974. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2975. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2976. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2977. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2978. end
  2979. rng:Destroy()
  2980. end))
  2981. end
  2982.  
  2983. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2984. local type = type
  2985. local rng = Instance.new("Part", char)
  2986. rng.Anchored = true
  2987. rng.BrickColor = color
  2988. rng.CanCollide = false
  2989. rng.FormFactor = 3
  2990. rng.Name = "Ring"
  2991. rng.Material = "Neon"
  2992. rng.Size = Vector3.new(1, 1, 1)
  2993. rng.Transparency = 0
  2994. rng.TopSurface = 0
  2995. rng.BottomSurface = 0
  2996. rng.CFrame = pos
  2997. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2998. local rngm = Instance.new("SpecialMesh", rng)
  2999. rngm.MeshType = "Brick"
  3000. rngm.Scale = vt(x1,y1,z1)
  3001. if rainbowmode == true then
  3002. rng.Color = Color3.new(r/255,g/255,b/255)
  3003. end
  3004. local scaler2 = 1
  3005. local speeder = FastSpeed/10
  3006. if type == "Add" then
  3007. scaler2 = 1*value
  3008. elseif type == "Divide" then
  3009. scaler2 = 1/value
  3010. end
  3011. coroutine.resume(coroutine.create(function()
  3012. for i = 0,10/bonuspeed,0.1 do
  3013. swait()
  3014. if rainbowmode == true then
  3015. rng.Color = Color3.new(r/255,g/255,b/255)
  3016. end
  3017. if type == "Add" then
  3018. scaler2 = scaler2 - 0.01*value/bonuspeed
  3019. elseif type == "Divide" then
  3020. scaler2 = scaler2 - 0.01/value*bonuspeed
  3021. end
  3022. if chaosmode == true then
  3023. rng.BrickColor = BrickColor.random()
  3024. end
  3025. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3026. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3027. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3028. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3029. end
  3030. rng:Destroy()
  3031. end))
  3032. end
  3033.  
  3034. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3035. local type = type
  3036. local rng = Instance.new("Part", char)
  3037. rng.Anchored = true
  3038. rng.BrickColor = color
  3039. rng.CanCollide = false
  3040. rng.FormFactor = 3
  3041. rng.Name = "Ring"
  3042. rng.Material = "Neon"
  3043. rng.Size = Vector3.new(1, 1, 1)
  3044. rng.Transparency = 0
  3045. rng.TopSurface = 0
  3046. rng.BottomSurface = 0
  3047. rng.CFrame = pos
  3048. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3049. local rngm = Instance.new("SpecialMesh", rng)
  3050. rngm.MeshType = "Brick"
  3051. rngm.Scale = vt(x1,y1,z1)
  3052. if rainbowmode == true then
  3053. rng.Color = Color3.new(r/255,g/255,b/255)
  3054. end
  3055. local scaler2 = 0
  3056. local speeder = FastSpeed/10
  3057. if type == "Add" then
  3058. scaler2 = 1*value
  3059. elseif type == "Divide" then
  3060. scaler2 = 1/value
  3061. end
  3062. coroutine.resume(coroutine.create(function()
  3063. for i = 0,10/bonuspeed,0.1 do
  3064. swait()
  3065. if rainbowmode == true then
  3066. rng.Color = Color3.new(r/255,g/255,b/255)
  3067. end
  3068. if type == "Add" then
  3069. scaler2 = scaler2 - 0.01*value/bonuspeed
  3070. elseif type == "Divide" then
  3071. scaler2 = scaler2 - 0.01/value*bonuspeed
  3072. end
  3073. if chaosmode == true then
  3074. rng.BrickColor = BrickColor.random()
  3075. end
  3076. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3077. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3078. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3079. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3080. end
  3081. rng:Destroy()
  3082. end))
  3083. end
  3084.  
  3085. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3086. local type = type
  3087. local rng = Instance.new("Part", char)
  3088. rng.Anchored = true
  3089. rng.BrickColor = color
  3090. rng.Color = color3
  3091. rng.CanCollide = false
  3092. rng.FormFactor = 3
  3093. rng.Name = "Ring"
  3094. rng.Material = "Neon"
  3095. rng.Size = Vector3.new(1, 1, 1)
  3096. rng.Transparency = 0
  3097. rng.TopSurface = 0
  3098. rng.BottomSurface = 0
  3099. rng.CFrame = pos
  3100. local rngm = Instance.new("SpecialMesh", rng)
  3101. rngm.MeshType = "Brick"
  3102. rngm.Scale = scale
  3103. local scaler2 = 1
  3104. local scaler2b = 1
  3105. local scaler2c = 1
  3106. if type == "Add" then
  3107. scaler2 = 1*value
  3108. scaler2b = 1*value2
  3109. scaler2c = 1*value3
  3110. elseif type == "Divide" then
  3111. scaler2 = 1/value
  3112. scaler2b = 1/value2
  3113. scaler2c = 1/value3
  3114. end
  3115. coroutine.resume(coroutine.create(function()
  3116. for i = 0,10/bonuspeed,0.1 do
  3117. swait()
  3118. if type == "Add" then
  3119. scaler2 = scaler2 - 0.01*value/bonuspeed
  3120. scaler2b = scaler2b - 0.01*value/bonuspeed
  3121. scaler2c = scaler2c - 0.01*value/bonuspeed
  3122. elseif type == "Divide" then
  3123. scaler2 = scaler2 - 0.01/value*bonuspeed
  3124. scaler2b = scaler2b - 0.01/value*bonuspeed
  3125. scaler2c = scaler2c - 0.01/value*bonuspeed
  3126. end
  3127. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3128. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3129. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3130. end
  3131. rng:Destroy()
  3132. end))
  3133. end
  3134.  
  3135. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3136. local type = type
  3137. local rng = Instance.new("Part", char)
  3138. rng.Anchored = true
  3139. if ModeOfGlitch ~= 9 then
  3140. rng.BrickColor = color
  3141. elseif ModeOfGlitch == 9 then
  3142. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3143. end
  3144. rng.CanCollide = false
  3145. rng.FormFactor = 3
  3146. rng.Name = "Ring"
  3147. rng.Material = "Neon"
  3148. rng.Size = Vector3.new(1, 1, 1)
  3149. rng.Transparency = 0
  3150. rng.TopSurface = 0
  3151. rng.BottomSurface = 0
  3152. rng.CFrame = pos
  3153. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3154. local rngm = Instance.new("SpecialMesh", rng)
  3155. rngm.MeshType = "Sphere"
  3156. rngm.Scale = vt(x1,y1,z1)
  3157. if rainbowmode == true then
  3158. rng.Color = Color3.new(r/255,g/255,b/255)
  3159. end
  3160. if ModeOfGlitch == 9 then
  3161. coroutine.resume(coroutine.create(function()
  3162. while true do
  3163. swait()
  3164. if rng.Parent ~= nil then
  3165. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3166. else
  3167. break
  3168. end
  3169. end
  3170. end))
  3171. end
  3172. local scaler2 = 1
  3173. local speeder = FastSpeed
  3174. if type == "Add" then
  3175. scaler2 = 1*value
  3176. elseif type == "Divide" then
  3177. scaler2 = 1/value
  3178. end
  3179. coroutine.resume(coroutine.create(function()
  3180. for i = 0,10/bonuspeed,0.1 do
  3181. swait()
  3182. if rainbowmode == true then
  3183. rng.Color = Color3.new(r/255,g/255,b/255)
  3184. end
  3185. if type == "Add" then
  3186. scaler2 = scaler2 - 0.01*value/bonuspeed
  3187. elseif type == "Divide" then
  3188. scaler2 = scaler2 - 0.01/value*bonuspeed
  3189. end
  3190. if chaosmode == true then
  3191. rng.BrickColor = BrickColor.random()
  3192. end
  3193. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3194. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3195. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3196. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3197. end
  3198. rng:Destroy()
  3199. end))
  3200. end
  3201.  
  3202.  
  3203. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3204. local type = type
  3205. local rng = Instance.new("Part", char)
  3206. rng.Anchored = true
  3207. if ModeOfGlitch ~= 9 then
  3208. rng.BrickColor = color
  3209. elseif ModeOfGlitch == 9 then
  3210. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3211. end
  3212. rng.CanCollide = false
  3213. rng.FormFactor = 3
  3214. rng.Name = "Ring"
  3215. rng.Material = "Neon"
  3216. rng.Size = Vector3.new(1, 1, 1)
  3217. rng.Transparency = 1
  3218. rng.TopSurface = 0
  3219. rng.BottomSurface = 0
  3220. rng.CFrame = pos
  3221. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3222. local rngm = Instance.new("SpecialMesh", rng)
  3223. rngm.MeshType = "Sphere"
  3224. rngm.Scale = vt(x1,y1,z1)
  3225. if rainbowmode == true then
  3226. rng.Color = Color3.new(r/255,g/255,b/255)
  3227. end
  3228. if ModeOfGlitch == 9 then
  3229. coroutine.resume(coroutine.create(function()
  3230. while true do
  3231. swait()
  3232. if rng.Parent ~= nil then
  3233. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3234. else
  3235. break
  3236. end
  3237. end
  3238. end))
  3239. end
  3240. local scaler2 = 1
  3241. local speeder = FastSpeed
  3242. if type == "Add" then
  3243. scaler2 = 1*value
  3244. elseif type == "Divide" then
  3245. scaler2 = 1/value
  3246. end
  3247. coroutine.resume(coroutine.create(function()
  3248. for i = 0,10/bonuspeed,0.1 do
  3249. swait()
  3250. if rainbowmode == true then
  3251. rng.Color = Color3.new(r/255,g/255,b/255)
  3252. end
  3253. if type == "Add" then
  3254. scaler2 = scaler2 - 0.01*value/bonuspeed
  3255. elseif type == "Divide" then
  3256. scaler2 = scaler2 - 0.01/value*bonuspeed
  3257. end
  3258. if chaosmode == true then
  3259. rng.BrickColor = BrickColor.random()
  3260. end
  3261. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3262. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3263. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3264. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3265. end
  3266. rng:Destroy()
  3267. end))
  3268. end
  3269.  
  3270. function dmg(dude)
  3271. if dude.Name ~= Character then
  3272. local keptcolor = MAINRUINCOLOR
  3273. local bgf = Instance.new("BodyGyro",dude.Head)
  3274. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3275. --[[local val = Instance.new("BoolValue",dude)
  3276. val.Name = "IsHit"]]--
  3277. local ds = coroutine.wrap(function()
  3278. dude:WaitForChild("Head"):BreakJoints()
  3279. for i, v in pairs(dude:GetChildren()) do
  3280. if v:IsA("Part") or v:IsA("MeshPart") then
  3281. v.Name = "DEMINISHED"
  3282. end
  3283. end
  3284. wait(0.5)
  3285. targetted = nil
  3286. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3287. coroutine.resume(coroutine.create(function()
  3288. for i, v in pairs(dude:GetChildren()) do
  3289. if v:IsA("Accessory") then
  3290. v:Destroy()
  3291. end
  3292. if v:IsA("Humanoid") then
  3293. v:Destroy()
  3294. end
  3295. if v:IsA("CharacterMesh") then
  3296. v:Destroy()
  3297. end
  3298. if v:IsA("Model") then
  3299. v:Destroy()
  3300. end
  3301. if v:IsA("Part") or v:IsA("MeshPart") then
  3302. for x, o in pairs(v:GetChildren()) do
  3303. if o:IsA("Decal") then
  3304. o:Destroy()
  3305. end
  3306. end
  3307. coroutine.resume(coroutine.create(function()
  3308. v.Material = "Neon"
  3309. v.CanCollide = false
  3310. v.Anchored = false
  3311. local bld = Instance.new("ParticleEmitter",v)
  3312. bld.LightEmission = 0.75
  3313. bld.Texture = "rbxassetid://363275192" ---284205403
  3314. bld.Color = ColorSequence.new(keptcolor.Color)
  3315. bld.Rate = 500
  3316. bld.Lifetime = NumberRange.new(1)
  3317. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3318. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3319. bld.Speed = NumberRange.new(2,5)
  3320. bld.VelocitySpread = 50000
  3321. bld.Rotation = NumberRange.new(-500,500)
  3322. bld.RotSpeed = NumberRange.new(-500,500)
  3323. local sbs = Instance.new("BodyPosition", v)
  3324. sbs.P = 3000
  3325. sbs.D = 1000
  3326. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3327. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3328. v.Color = keptcolor.Color
  3329. coroutine.resume(coroutine.create(function()
  3330. for i = 0, 49 do
  3331. swait(1)
  3332. v:BreakJoints()
  3333. v.Transparency = v.Transparency + 0.02
  3334. end
  3335. v:BreakJoints()
  3336. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3337. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3338. bld.Speed = NumberRange.new(10,25)
  3339. bld.Drag = 5
  3340. bld.Acceleration = vt(0,2,0)
  3341. wait(0.5)
  3342. bld.Enabled = false
  3343. wait(8)
  3344. v:Destroy()
  3345. dude:Destroy()
  3346. end))
  3347. end))
  3348. end
  3349. end
  3350. end))
  3351. end)
  3352. ds()
  3353. end
  3354. end
  3355.  
  3356.  
  3357. function FindNearestHead(Position, Distance, SinglePlayer)
  3358. if SinglePlayer then
  3359. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3360. end
  3361. local List = {}
  3362. for i, v in pairs(workspace:GetChildren()) do
  3363. if v:IsA("Model") then
  3364. if v:findFirstChild("Head") then
  3365. if v ~= Character then
  3366. if (v.Head.Position - Position).magnitude <= Distance then
  3367. table.insert(List, v)
  3368. end
  3369. end
  3370. end
  3371. end
  3372. end
  3373. return List
  3374. end
  3375.  
  3376. function FaceMouse()
  3377. Cam = workspace.CurrentCamera
  3378. return {
  3379. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3380. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3381. }
  3382. end
  3383.  
  3384. function FaceMouse2()
  3385. Cam = workspace.CurrentCamera
  3386. return {
  3387. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3388. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3389. }
  3390. end
  3391.  
  3392. local ModeOfGlitch = 1
  3393. -- Functions are ready.
  3394. local storehumanoidWS = 16
  3395.  
  3396. function CorruptBlink()
  3397. for i = 0, 14 do
  3398. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3399. end
  3400. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3401. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3402. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3403. CameraEnshaking(2,10)
  3404. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3405. if v:FindFirstChild('Head') then
  3406. dmg(v)
  3407. end
  3408. end
  3409. for i = 0, 14 do
  3410. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3411. end
  3412. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3413. end
  3414. function PureBomb()
  3415. attack = true
  3416. hum.WalkSpeed = 0
  3417. local orb = Instance.new("Part", char)
  3418. orb.Anchored = true
  3419. orb.BrickColor = BrickColor.new("Toothpaste")
  3420. orb.CanCollide = false
  3421. orb.FormFactor = 3
  3422. orb.Name = "Ring"
  3423. orb.Material = "Neon"
  3424. orb.Size = Vector3.new(1, 1, 1)
  3425. orb.Transparency = 0
  3426. orb.TopSurface = 0
  3427. orb.BottomSurface = 0
  3428. local orbm = Instance.new("SpecialMesh", orb)
  3429. orbm.MeshType = "Sphere"
  3430. orbm.Name = "SizeMesh"
  3431. orbm.Scale = vt(0,0,0)
  3432. local scaled = 0.1
  3433. local posid = 0
  3434. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3435. for i = 0, 5, 0.1 do
  3436. swait()
  3437. scaled = scaled - 0.001
  3438. posid = posid - scaled
  3439. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3440. local scaled = 0.1
  3441. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3442. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10)
  3443. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0)
  3444. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3445. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3446. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3447. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3448. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3449. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3450. end
  3451. for i = 0, 2, 0.1 do
  3452. swait()
  3453. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3454. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3455. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3456. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3457. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3458. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3459. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3460. end
  3461. coroutine.resume(coroutine.create(function()
  3462. orb.Anchored = false
  3463. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3464. local a = Instance.new("Part",workspace)
  3465. a.Name = "Direction"
  3466. a.Anchored = true
  3467. a.BrickColor = bc("Bright red")
  3468. a.Material = "Neon"
  3469. a.Transparency = 1
  3470. a.CanCollide = false
  3471. local ray = Ray.new(
  3472. orb.CFrame.p, -- origin
  3473. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3474. )
  3475. local ignore = orb
  3476. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3477. a.BottomSurface = 10
  3478. a.TopSurface = 10
  3479. local distance = (orb.CFrame.p - position).magnitude
  3480. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3481. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3482. orb.CFrame = a.CFrame
  3483. a:Destroy()
  3484. local bv = Instance.new("BodyVelocity")
  3485. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3486. bv.velocity = orb.CFrame.lookVector*125
  3487. bv.Parent = orb
  3488. local hitted = false
  3489. game:GetService("Debris"):AddItem(orb, 15)
  3490. wait()
  3491. local hit =orb.Touched:connect(function(hit)
  3492. if hitted == false then
  3493. hitted = true
  3494. CameraEnshaking(10,2.5)
  3495. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3496. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3497. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3498. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3499. for i = 0, 49 do
  3500. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  3501. end
  3502. for i = 0, 9 do
  3503. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3504. sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3505. end
  3506. orb.Anchored = true
  3507. orb.Transparency = 1
  3508. wait(8)
  3509. orb:Destroy()
  3510. end
  3511. end)
  3512. end))
  3513. for i = 0, 1, 0.1 do
  3514. swait()
  3515. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3516. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3517. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3518. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3519. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3520. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3521. end
  3522. hum.WalkSpeed = storehumanoidWS
  3523. attack = false
  3524. end
  3525.  
  3526. function BanishingOrb()
  3527. attack = true
  3528. hum.WalkSpeed = 0
  3529. local orb = Instance.new("Part", char)
  3530. orb.Anchored = true
  3531. orb.BrickColor = BrickColor.new("Black")
  3532. orb.CanCollide = false
  3533. orb.FormFactor = 3
  3534. orb.Name = "Ring"
  3535. orb.Material = "Neon"
  3536. orb.Size = Vector3.new(1, 1, 1)
  3537. orb.Transparency = 0
  3538. orb.TopSurface = 0
  3539. orb.BottomSurface = 0
  3540. local orbm = Instance.new("SpecialMesh", orb)
  3541. orbm.MeshType = "Sphere"
  3542. orbm.Name = "SizeMesh"
  3543. orbm.Scale = vt(0,0,0)
  3544. local scaled = 0.1
  3545. local posid = 0
  3546. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3547. for i = 0, 5, 0.1 do
  3548. swait()
  3549. scaled = scaled - 0.001
  3550. posid = posid - scaled
  3551. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3552. local scaled = 0.1
  3553. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3554. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Black"),10)
  3555. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3556. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3557. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3558. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3559. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3560. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3561. end
  3562. for i = 0, 2, 0.1 do
  3563. swait()
  3564. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3565. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3566. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3567. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3568. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3569. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3570. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3571. end
  3572. coroutine.resume(coroutine.create(function()
  3573. orb.Anchored = false
  3574. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3575. local a = Instance.new("Part",workspace)
  3576. a.Name = "Direction"
  3577. a.Anchored = true
  3578. a.BrickColor = bc("Bright red")
  3579. a.Material = "Neon"
  3580. a.Transparency = 1
  3581. a.CanCollide = false
  3582. local ray = Ray.new(
  3583. orb.CFrame.p, -- origin
  3584. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3585. )
  3586. local ignore = orb
  3587. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3588. a.BottomSurface = 10
  3589. a.TopSurface = 10
  3590. local distance = (orb.CFrame.p - position).magnitude
  3591. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3592. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3593. orb.CFrame = a.CFrame
  3594. a:Destroy()
  3595. local bv = Instance.new("BodyVelocity")
  3596. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3597. bv.velocity = orb.CFrame.lookVector*0
  3598. bv.Parent = orb
  3599. local hitted = false
  3600. local rate = 0
  3601. coroutine.resume(coroutine.create(function()
  3602. for i = 0, 24 do
  3603. wait(0.1)
  3604. rate = rate + 0.25
  3605. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3606. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3607. if v:FindFirstChild('Head') then
  3608. dmg(v)
  3609. end
  3610. end
  3611. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3612. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3613. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3614. end
  3615. orb.Anchored = true
  3616. orb.Transparency = 1
  3617. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3618. if v:FindFirstChild('Head') then
  3619. dmg(v)
  3620. end
  3621. end
  3622. local eff = Instance.new("ParticleEmitter",orb)
  3623. eff.Texture = "rbxassetid://296874871"
  3624. eff.LightEmission = 0.95
  3625. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3626. eff.Rate = 1000000000
  3627. eff.Lifetime = NumberRange.new(3)
  3628. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,9,0),NumberSequenceKeypoint.new(1,0,0)})
  3629. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3630. eff.Speed = NumberRange.new(30)
  3631. eff.Acceleration = vt(0,-15,0)
  3632. eff.Rotation = NumberRange.new(-500,500)
  3633. eff.VelocitySpread = 100000
  3634. eff.RotSpeed = NumberRange.new(-500,500)
  3635. coroutine.resume(coroutine.create(function()
  3636. wait(0.6)
  3637. eff.Enabled = false
  3638. end))
  3639. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3640. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3641. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3642. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3643. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3644. game:GetService("Debris"):AddItem(orb, 15)
  3645. end))
  3646. end))
  3647. for i = 0, 1, 0.1 do
  3648. swait()
  3649. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3650. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3651. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3652. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3653. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3654. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3655. end
  3656. hum.WalkSpeed = storehumanoidWS
  3657. attack = false
  3658. end
  3659.  
  3660.  
  3661. function ChaosGroundStrike()
  3662. attack = true
  3663. for i = 0, 2, 0.1 do
  3664. swait()
  3665. bosschatfunc("INSANE STOMP",MAINRUINCOLOR.Color,2)
  3666. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3667. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3668. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3669. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3670. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3671. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3672. end
  3673. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3674. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3675. CameraEnshaking(4,12)
  3676. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3677. if v:FindFirstChild('Head') then
  3678. dmg(v)
  3679. end
  3680. end
  3681. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3682. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3683. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3684. for i = 0, 2, 0.1 do
  3685. swait()
  3686. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3687. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3688. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3689. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3690. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3691. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3692. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3693. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3694. end
  3695. attack = false
  3696. end
  3697.  
  3698. function ChaosBegone()
  3699. attack = true
  3700. bosschatfunc("LEAVE THE DEAD!",MAINRUINCOLOR.Color,2)
  3701. for i = 0, 10, 0.1 do
  3702. swait()
  3703. 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)
  3704. 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)
  3705. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3706. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3707. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  3708. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  3709. end
  3710. bosschatfunc("WHERE THEY FALL!",MAINRUINCOLOR.Color,2)
  3711. CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
  3712. CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
  3713. CameraEnshaking(5, 25)
  3714. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3715. if v:FindFirstChild("Head") then
  3716. dmg(v)
  3717. end
  3718. end
  3719. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  3720. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  3721. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  3722. for i = 0, 3, 0.1 do
  3723. swait()
  3724. 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)
  3725. 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)
  3726. 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)
  3727. 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)
  3728. 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)
  3729. 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)
  3730. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3731. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3732. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  3733. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  3734. end
  3735. attack = false
  3736. end
  3737. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  3738. local orb = Instance.new("Part", char)
  3739. orb.Anchored = true
  3740. orb.BrickColor = color
  3741. orb.CanCollide = false
  3742. orb.FormFactor = 3
  3743. orb.Name = "Ring"
  3744. orb.Material = "Neon"
  3745. orb.Size = Vector3.new(1, 1, 1)
  3746. orb.Transparency = 0
  3747. orb.TopSurface = 0
  3748. orb.BottomSurface = 0
  3749. local orbm = Instance.new("SpecialMesh", orb)
  3750. orbm.MeshType = "Sphere"
  3751. orb.CFrame = positted
  3752. orbm.Name = "SizeMesh"
  3753. orbm.Scale = vt(1, 1, 1)
  3754. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  3755. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  3756. coroutine.resume(coroutine.create(function()
  3757. wait(timer)
  3758. CameraEnshaking(3, ShakePower)
  3759. orb.Transparency = 1
  3760. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  3761. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  3762. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  3763. wait(3)
  3764. orb:Destroy()
  3765. end))
  3766. end
  3767. function orb_spawn(positted, timer)
  3768. local randomcol = math.random(1, 2)
  3769. local orb = Instance.new("Part", char)
  3770. orb.Anchored = true
  3771. if randomcol == 1 then
  3772. orb.BrickColor = BrickColor.new("White")
  3773. elseif randomcol == 2 then
  3774. orb.BrickColor = BrickColor.new("Really black")
  3775. end
  3776. orb.CanCollide = false
  3777. orb.FormFactor = 3
  3778. orb.Name = "Ring"
  3779. orb.Material = "Neon"
  3780. orb.Size = Vector3.new(1, 1, 1)
  3781. orb.Transparency = 0
  3782. orb.TopSurface = 0
  3783. orb.BottomSurface = 0
  3784. local orbm = Instance.new("SpecialMesh", orb)
  3785. orbm.MeshType = "Sphere"
  3786. orb.CFrame = positted
  3787. orbm.Name = "SizeMesh"
  3788. orbm.Scale = vt(1, 1, 1)
  3789. CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
  3790. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
  3791. for i = 0, 2 do
  3792. 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)
  3793. end
  3794. coroutine.resume(coroutine.create(function()
  3795. wait(timer)
  3796. CameraEnshaking(3, 2)
  3797. orb.Transparency = 1
  3798. MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
  3799. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
  3800. for i = 0, 4 do
  3801. 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)
  3802. end
  3803. CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
  3804. wait(3)
  3805. orb:Destroy()
  3806. end))
  3807. end
  3808. function scattercorrupt()
  3809. attack = true
  3810. local rot = 0
  3811. local randomrotations = math.random(1, 2)
  3812. local lookv = 2.5
  3813. local power = 5
  3814. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
  3815. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
  3816. for i = 0, 9 do
  3817. 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)
  3818. end
  3819. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  3820. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  3821. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  3822. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  3823. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  3824. local hite = Instance.new("Part", char)
  3825. hite.Anchored = true
  3826. hite.CanCollide = false
  3827. hite.FormFactor = 3
  3828. hite.Name = "Ring"
  3829. hite.Material = "Neon"
  3830. hite.Size = Vector3.new(1, 1, 1)
  3831. hite.Transparency = 1
  3832. hite.TopSurface = 0
  3833. hite.BottomSurface = 0
  3834. hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
  3835. local rem = Instance.new("Part", char)
  3836. rem.Anchored = true
  3837. rem.CanCollide = false
  3838. rem.FormFactor = 3
  3839. rem.Name = "Ring"
  3840. rem.Material = "Neon"
  3841. rem.Size = Vector3.new(1, 1, 1)
  3842. rem.Transparency = 1
  3843. rem.TopSurface = 0
  3844. rem.BottomSurface = 0
  3845. rem.CFrame = hite.CFrame
  3846. local rem2 = rem:Clone()
  3847. rem2.Parent = char
  3848. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3849. local rem3 = rem:Clone()
  3850. rem3.Parent = char
  3851. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3852. local rem4 = rem:Clone()
  3853. rem4.Parent = char
  3854. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3855. hite:Destroy()
  3856. coroutine.resume(coroutine.create(function()
  3857. for i = 0, 24 do
  3858. swait(1)
  3859. if randomrotations == 1 then
  3860. rot = rot + 1
  3861. elseif randomrotations == 2 then
  3862. rot = rot - 1
  3863. end
  3864. power = power + 0.5
  3865. lookv = lookv + 7.5
  3866. rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
  3867. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3868. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3869. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3870. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3871. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3872. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3873. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3874. end
  3875. end))
  3876. attack = false
  3877. end
  3878.  
  3879. function GleamingBeam()
  3880. attack = true
  3881. bosschatfunc("CORRUPTED BEAM!!!",MAINRUINCOLOR.Color,3)
  3882. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  3883. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  3884. local rsiz = math.random(1,15)
  3885. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  3886. hb.Anchored = true
  3887. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  3888. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  3889. for i = 0, 16, 0.1 do
  3890. swait()
  3891. rsiz = math.random(5,15)
  3892. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  3893. 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)
  3894. 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)
  3895. 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)
  3896. 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)
  3897. 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)
  3898. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  3899. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  3900. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  3901. end
  3902. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  3903. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  3904. for i = 0, 2 do
  3905. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  3906. end
  3907. 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)
  3908. 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)
  3909. 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)
  3910. for i = 0, 49 do
  3911. local rsiza = math.random(1,15)
  3912. 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)
  3913. end
  3914. local a = Instance.new("Part",Character)
  3915. a.Name = "Direction"
  3916. a.Anchored = true
  3917. a.BrickColor = MAINRUINCOLOR
  3918. a.Material = "Neon"
  3919. a.Transparency = 0
  3920. a.Shape = "Cylinder"
  3921. a.CanCollide = false
  3922. local ba = Instance.new("Part",Character)
  3923. ba.Name = "HitDirect"
  3924. ba.Anchored = true
  3925. ba.BrickColor = bc("Cool yellow")
  3926. ba.Material = "Neon"
  3927. ba.Transparency = 1
  3928. ba.CanCollide = false
  3929. local ray = Ray.new(
  3930. hb.CFrame.p, -- origin
  3931. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  3932. )
  3933. local ignore = Character
  3934. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3935. a.BottomSurface = 10
  3936. a.TopSurface = 10
  3937. local distance = (hb.CFrame.p - position).magnitude
  3938. a.Size = Vector3.new(distance, 1, 1)
  3939. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3940. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3941. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3942. local msh = Instance.new("SpecialMesh",a)
  3943. msh.MeshType = "Cylinder"
  3944. msh.Scale = vt(1,4,4)
  3945. game:GetService("Debris"):AddItem(a, 30)
  3946. game:GetService("Debris"):AddItem(ba, 30)
  3947. for i = 0, 25, 0.1 do
  3948. swait()
  3949. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  3950. ray = Ray.new(
  3951. hb.CFrame.p, -- origin
  3952. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  3953. )
  3954. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3955. distance = (hb.CFrame.p - position).magnitude
  3956. a.Size = Vector3.new(distance, 1, 1)
  3957. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3958. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3959. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3960. rsiz = math.random(5,25)
  3961. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  3962. 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)
  3963. for c = 0, 2 do
  3964. 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)
  3965. end
  3966. 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)
  3967. 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)
  3968. 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)
  3969. 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)
  3970. 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)
  3971. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  3972. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  3973. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  3974. end
  3975. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  3976. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  3977. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  3978. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  3979. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  3980. 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)
  3981. 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)
  3982. 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)
  3983. 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)
  3984. 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)
  3985. 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)
  3986. for i = 0, 49 do
  3987. local rsiza = math.random(1,15)
  3988. 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)
  3989. end
  3990. for i = 0, 49 do
  3991. rsiz = math.random(1,8)
  3992. 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)
  3993. end
  3994. coroutine.resume(coroutine.create(function()
  3995. for i = 0, 99 do
  3996. swait()
  3997. a.Transparency = a.Transparency + 0.01
  3998. end
  3999. a:Destroy()
  4000. ba:Destroy()
  4001. end))
  4002. hb:Destroy()
  4003. attack = false
  4004. end
  4005.  
  4006. function BeamOfDeath()
  4007. attack = true
  4008. bosschatfunc("DETERMINED STRIKE!",MAINRUINCOLOR.Color,2)
  4009. hum.WalkSpeed = 0
  4010. local keptcolor = MAINRUINCOLOR
  4011. local orb = Instance.new("Part", char)
  4012. orb.BrickColor = keptcolor
  4013. orb.CanCollide = false
  4014. orb.FormFactor = 3
  4015. orb.Name = "Ring"
  4016. orb.Material = "Neon"
  4017. orb.Size = Vector3.new(1, 1, 1)
  4018. orb.Transparency = 1
  4019. orb.TopSurface = 0
  4020. orb.BottomSurface = 0
  4021. local orbm = Instance.new("SpecialMesh", orb)
  4022. orbm.MeshType = "Sphere"
  4023. orbm.Name = "SizeMesh"
  4024. orbm.Scale = vt(22.5,10000,22.5)
  4025. orb.CFrame = mouse.Hit
  4026. orb.Anchored = true
  4027. orb.Orientation = vt(0,0,0)
  4028. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  4029. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1)
  4030. coroutine.resume(coroutine.create(function()
  4031. coroutine.resume(coroutine.create(function()
  4032. for i = 0, 399 do
  4033. swait()
  4034. orbm.Scale = orbm.Scale - vt(0.05,0,0.05)
  4035. orb.Transparency = orb.Transparency - 0.0025
  4036. end
  4037. end))
  4038. wait(9)
  4039. coroutine.resume(coroutine.create(function()
  4040. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  4041. if hfr ~= nil then
  4042. for i = 0, 49 do
  4043. local deb = Instance.new("Part", char)
  4044. deb.Anchored = true
  4045. deb.CanCollide = false
  4046. deb.FormFactor = 3
  4047. deb.Name = "Ring"
  4048. deb.Material = hitfloor.Material
  4049. deb.Color = hitfloor.Color
  4050. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  4051. deb.Transparency = 0
  4052. deb.TopSurface = 0
  4053. deb.BottomSurface = 0
  4054. 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)))
  4055. local deb2 = Instance.new("Part", char)
  4056. deb2.CanCollide = false
  4057. deb2.FormFactor = 3
  4058. deb2.Name = "Ring"
  4059. deb2.Material = hitfloor.Material
  4060. deb2.Color = hitfloor.Color
  4061. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  4062. deb2.Transparency = 0
  4063. deb2.TopSurface = 0
  4064. deb2.BottomSurface = 0
  4065. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  4066. 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)))
  4067. local eff = Instance.new("ParticleEmitter",deb)
  4068. eff.Texture = "rbxassetid://363275192"
  4069. eff.LightEmission = 0.95
  4070. eff.Color = ColorSequence.new(keptcolor.Color)
  4071. eff.Rate = 100
  4072. eff.Lifetime = NumberRange.new(1)
  4073. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  4074. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4075. eff.Speed = NumberRange.new(0,5)
  4076. eff.Rotation = NumberRange.new(-500,500)
  4077. eff.VelocitySpread = 9000
  4078. eff.RotSpeed = NumberRange.new(-10,10)
  4079. local at1 = Instance.new('Attachment',deb2)
  4080. at1.Position = vt(0,15,0)
  4081. local at2 = Instance.new('Attachment',deb2)
  4082. at2.Position = vt(0,-15,0)
  4083. local tl = Instance.new('Trail',deb2)
  4084. tl.Attachment0 = at1
  4085. tl.Attachment1 = at2
  4086. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4087. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  4088. tl.Lifetime = 1
  4089. game:GetService("Debris"):AddItem(deb,30)
  4090. game:GetService("Debris"):AddItem(deb2,30)
  4091. coroutine.resume(coroutine.create(function()
  4092. wait(15)
  4093. eff.Enabled = false
  4094. for i = 0, 49 do
  4095. swait()
  4096. deb.Transparency = deb.Transparency + 0.02
  4097. end
  4098. wait(1)
  4099. deb:Destroy()
  4100. end))
  4101. end
  4102. end
  4103. end))
  4104. for i = 0, 199 do
  4105. swait(1.5)
  4106. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  4107. if v:FindFirstChild('Head') then
  4108. dmg(v)
  4109. end
  4110. end
  4111. 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)
  4112. 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)
  4113. 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)
  4114. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  4115. end
  4116. orb:Destroy()
  4117. end))
  4118. hum.WalkSpeed = storehumanoidWS
  4119. attack = false
  4120. end
  4121.  
  4122. function Beams()
  4123. attack = true
  4124. hum.WalkSpeed = 0
  4125. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  4126. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  4127. bosschatfunc("DETERMINED BEAMS!",MAINRUINCOLOR.Color,2)
  4128. local keptcolor = MAINRUINCOLOR
  4129. coroutine.resume(coroutine.create(function()
  4130. for i = 0, 96 do
  4131. swait(5)
  4132. local orb = Instance.new("Part", char)
  4133. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  4134. orb.BrickColor = keptcolor
  4135. orb.CanCollide = false
  4136. orb.FormFactor = 3
  4137. orb.Name = "Ring"
  4138. orb.Material = "Neon"
  4139. orb.Size = Vector3.new(1, 1, 1)
  4140. orb.Transparency = 0
  4141. orb.TopSurface = 0
  4142. orb.BottomSurface = 0
  4143. orb.Anchored = true
  4144. local orbm = Instance.new("SpecialMesh", orb)
  4145. orbm.MeshType = "Sphere"
  4146. orbm.Name = "SizeMesh"
  4147. orbm.Scale = vt(1.25,1.25,1.25)
  4148. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  4149. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  4150. coroutine.resume(coroutine.create(function()
  4151. wait(0.5)
  4152. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  4153. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  4154. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  4155. orb.Transparency = 1
  4156. local a = Instance.new("Part",char)
  4157. a.Name = "Direction"
  4158. a.Anchored = true
  4159. a.BrickColor = keptcolor
  4160. a.Material = "Neon"
  4161. a.Transparency = 0.25
  4162. a.Shape = "Cylinder"
  4163. local ht = Instance.new("Part",char)
  4164. ht.Name = "DirectionHit"
  4165. ht.Anchored = true
  4166. ht.BrickColor = keptcolor
  4167. ht.CanCollide = false
  4168. ht.Transparency = 1
  4169. ht.Size = vt(0.1,0.1,0.1)
  4170. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  4171. a.CanCollide = false
  4172. local ray = Ray.new(
  4173. orb.CFrame.p, -- origin
  4174. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  4175. )
  4176. local ignore = char
  4177. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4178. a.BottomSurface = 10
  4179. a.TopSurface = 10
  4180. local distance = (orb.CFrame.p - position).magnitude
  4181. a.Size = Vector3.new(distance,1,1)
  4182. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4183. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4184. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  4185. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  4186. MagniDamage(ht, 9, 30,60, 0, "Normal")
  4187. coroutine.resume(coroutine.create(function()
  4188. local eff = Instance.new("ParticleEmitter",ht)
  4189. eff.Texture = "rbxassetid://284205403"
  4190. eff.LightEmission = 0.95
  4191. eff.Color = ColorSequence.new(keptcolor.Color)
  4192. eff.Rate = 500
  4193. eff.Lifetime = NumberRange.new(0.5)
  4194. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  4195. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4196. eff.Speed = NumberRange.new(10,50)
  4197. eff.Drag = 5
  4198. eff.Rotation = NumberRange.new(-500,500)
  4199. eff.VelocitySpread = 9000
  4200. eff.RotSpeed = NumberRange.new(-500,500)
  4201. wait(0.25)
  4202. eff.Enabled = false
  4203. end))
  4204. for i = 0, 4 do
  4205. 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)
  4206. 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)
  4207. local rsiz = math.random(10,30)
  4208. 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)
  4209. end
  4210. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4211. local msh = Instance.new("SpecialMesh",a)
  4212. msh.MeshType = "Cylinder"
  4213. msh.Scale = vt(1,1,1)
  4214. for i = 0, 49 do
  4215. swait()
  4216. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  4217. a.Transparency = a.Transparency + 0.02
  4218. end
  4219. orb:Destroy()
  4220. a:Destroy()
  4221. ht:Destroy()
  4222. end))
  4223. game:GetService("Debris"):AddItem(orb, 10)
  4224. end
  4225. end))
  4226. for i = 0,6,0.1 do
  4227. swait()
  4228. 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)
  4229. 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)
  4230. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  4231. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  4232. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  4233. 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)
  4234. 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)
  4235. end
  4236. hum.WalkSpeed = storehumanoidWS
  4237. attack = false
  4238. end
  4239.  
  4240. function hugg()
  4241. attack = true
  4242. hum.WalkSpeed = 5
  4243. local rsiz = math.random(5,15)
  4244. for i = 0, 2, 0.1 do
  4245. swait()
  4246. 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)
  4247. 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)
  4248. 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)
  4249. 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)
  4250. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  4251. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  4252. end
  4253. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  4254. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  4255. hb.Anchored = true
  4256. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  4257. local huggedperson = nil
  4258. local act = false
  4259. local alreadydid = false
  4260. for i = 0, 3, 0.1 do
  4261. swait()
  4262. if act == false then
  4263. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  4264. if v:FindFirstChild('Head') then
  4265. if alreadydid == false then
  4266. huggedperson = v
  4267. hum.WalkSpeed = 0
  4268. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  4269. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  4270. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  4271. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  4272. local radm = math.random(1,3)
  4273. bosschatfunc("Friend hug!..",MAINRUINCOLOR.Color,1)
  4274. root.Anchored = true
  4275. coroutine.resume(coroutine.create(function()
  4276. huggedperson.Humanoid.WalkSpeed = 0
  4277. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  4278. end))
  4279. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  4280. alreadydid = true
  4281. act = true
  4282. print(huggedperson.Name)
  4283. end
  4284. end
  4285. end
  4286. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  4287. 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)
  4288. elseif act == true then
  4289. coroutine.resume(coroutine.create(function()
  4290. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  4291. end))
  4292. rsiz = math.random(5,15)
  4293. 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)
  4294. 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)
  4295. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  4296. end
  4297. 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)
  4298. 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)
  4299. 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)
  4300. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  4301. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  4302. end
  4303. hb:Destroy()
  4304. if act == true then
  4305. for x = 0, 2 do
  4306. for i = 0, 2, 0.1 do
  4307. swait()
  4308. coroutine.resume(coroutine.create(function()
  4309. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  4310. end))
  4311. rsiz = math.random(5,15)
  4312. 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)
  4313. 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)
  4314. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  4315. 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)
  4316. 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)
  4317. 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)
  4318. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  4319. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  4320. end
  4321. for i = 0, 2, 0.1 do
  4322. swait()
  4323. coroutine.resume(coroutine.create(function()
  4324. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  4325. end))
  4326. rsiz = math.random(5,15)
  4327. 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)
  4328. 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)
  4329. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  4330. 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)
  4331. 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)
  4332. 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)
  4333. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  4334. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  4335. end
  4336. end
  4337. end
  4338. hum.WalkSpeed = storehumanoidWS
  4339. root.Anchored = false
  4340. if act == true then
  4341. coroutine.resume(coroutine.create(function()
  4342. huggedperson.Humanoid.WalkSpeed = 16
  4343. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  4344. end))
  4345. end
  4346. hum.WalkSpeed = storehumanoidWS
  4347. attack = false
  4348. end
  4349.  
  4350. function THE_TRUE_POWER_OF_VIOLENCE()
  4351. attack = true
  4352. hum.WalkSpeed = 0
  4353. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
  4354. for i = 0, 10, 0.1 do
  4355. swait()
  4356. 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)
  4357. 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)
  4358. 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)
  4359. 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)
  4360. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4361. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4362. 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)
  4363. end
  4364. local orb = Instance.new("Part", char)
  4365. orb.BrickColor = MAINRUINCOLOR
  4366. orb.CanCollide = false
  4367. orb.FormFactor = 3
  4368. orb.Name = "Ring"
  4369. orb.Material = "Neon"
  4370. orb.Size = Vector3.new(1, 1, 1)
  4371. orb.Transparency = 0
  4372. orb.TopSurface = 0
  4373. orb.BottomSurface = 0
  4374. orb.CFrame = sorb.CFrame
  4375. local orbm = Instance.new("SpecialMesh", orb)
  4376. orbm.MeshType = "Sphere"
  4377. orbm.Name = "SizeMesh"
  4378. orbm.Scale = vt(0,0,0)
  4379. local sbs = Instance.new("BodyPosition", orb)
  4380. sbs.P = 3000
  4381. sbs.D = 1000
  4382. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4383. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4384. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4385. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4386. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4387. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4388. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4389. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4390. for i = 0, 10, 0.1 do
  4391. swait()
  4392. 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)
  4393. 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)
  4394. 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)
  4395. 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)
  4396. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4397. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4398. 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)
  4399. end
  4400. orb.Anchored = true
  4401. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4402. elocacenter.Anchored = true
  4403. elocacenter.CFrame = orb.CFrame
  4404. elocacenter.Orientation = vt(0,0,0)
  4405. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4406. eloca1.Anchored = true
  4407. eloca1.CFrame = elocacenter.CFrame
  4408. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4409. eloca2.Anchored = true
  4410. eloca2.CFrame = elocacenter.CFrame
  4411. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4412. eloca3.Anchored = true
  4413. eloca3.CFrame = elocacenter.CFrame
  4414. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4415. eloca4.Anchored = true
  4416. eloca4.CFrame = elocacenter.CFrame
  4417. local lookavec = 0
  4418. local speeds = 0
  4419. CameraEnshaking(1,1)
  4420. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4421. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4422. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4423. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4424. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4425. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4426. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4427. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4428. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4429. for i = 0, 99 do
  4430. swait()
  4431. lookavec = lookavec + 2.5
  4432. speeds = speeds + 0.25
  4433. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4434. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4435. 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)
  4436.  
  4437. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4438. 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)
  4439.  
  4440. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4441. 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)
  4442.  
  4443. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4444. 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)
  4445. end
  4446.  
  4447. for i = 0, 149 do
  4448. swait()
  4449. speeds = speeds + 0.25
  4450. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4451. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4452. 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)
  4453.  
  4454. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4455. 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)
  4456.  
  4457. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4458. 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)
  4459.  
  4460. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4461. 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)
  4462. end
  4463. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4464. for i = 0, 99 do
  4465. swait()
  4466. lookavec = lookavec - 2.5
  4467. speeds = speeds + 0.25
  4468. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4469. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4470. 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)
  4471.  
  4472. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4473. 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)
  4474.  
  4475. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4476. 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)
  4477.  
  4478. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4479. 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)
  4480. end
  4481. local scaled = 0.1*75
  4482. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4483. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4484. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4485. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4486. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4487. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4488. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4489. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4490. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4491. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4492. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4493. for i = 0, 10, 0.1 do
  4494. swait()
  4495. scaled = scaled - 0.001*75
  4496. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4497. 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)
  4498. 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)
  4499. 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)
  4500. 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)
  4501. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4502. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4503. 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)
  4504. end
  4505. for x = 0, 4 do
  4506. for i = 0, 9 do
  4507. 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)
  4508. end
  4509. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4510. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4511. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4512. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4513. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4514. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4515. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4516. for i = 0, 5, 0.1 do
  4517. swait()
  4518. 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)
  4519. 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)
  4520. 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)
  4521. 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)
  4522. 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)
  4523. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4524. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4525. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4526. end
  4527. end
  4528. local speedearn = 0
  4529. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4530. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4531. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4532. for i = 0, 30, 0.1 do
  4533. swait()
  4534. scaled = scaled - 0.001*75/10
  4535. speedearn = speedearn + 0.5
  4536. for i = 0, 4 do
  4537. 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)
  4538. end
  4539. 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)
  4540. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4541. 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)
  4542. 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)
  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(0)),.6)
  4546. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4547. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4548. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4549. end
  4550. orb.Transparency = 1
  4551. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4552. if v:FindFirstChild('Head') then
  4553. dmg(v)
  4554. end
  4555. end
  4556. CameraEnshaking(7,30)
  4557. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4558. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4559. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4560. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4561. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4562. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4563. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4564. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4565. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4566. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4567. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4568. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4569. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4570. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4571. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4572. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4573. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4574. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4575. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4576. for i = 0, 99 do
  4577. 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)
  4578. 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)
  4579. end
  4580. for i = 0, 24 do
  4581. 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)
  4582. 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)
  4583. 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)
  4584. 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)
  4585. 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)
  4586. end
  4587. game:GetService("Debris"):AddItem(orb, 10)
  4588. hum.WalkSpeed = storehumanoidWS
  4589. attack = false
  4590. end
  4591.  
  4592. function Judgement()
  4593. attack = true
  4594. judgement = true
  4595. hum.WalkSpeed = 0
  4596. local p = Instance.new("Part",root)
  4597. p.Anchored = true
  4598. p.CanCollide = false
  4599. p.BrickColor = MAINRUINCOLOR
  4600. p.Material = Enum.Material.Neon
  4601. p.Size = Vector3.new(1,1,1)
  4602. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4603. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4604. local m = Instance.new("SpecialMesh",p)
  4605. m.MeshType = "Cylinder"
  4606. m.Scale = Vector3.new(2000,2,2)
  4607. local targ = Instance.new("Part",root)
  4608. targ.Anchored = true
  4609. targ.Transparency = 1
  4610. targ.CanCollide = false
  4611. targ.Size = Vector3.new(1,1,1)
  4612. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4613. local s = Instance.new("Sound",targ)
  4614. s.SoundId = "https://roblox.com/asset/?id=115327352"
  4615. s.Looped = true
  4616. s.Pitch = 1.2
  4617. s.Volume = 3
  4618. spawn(function()
  4619. swait(15)
  4620. s:Play()
  4621. end)
  4622. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  4623. for i = 1,15 do
  4624. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4625. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4626. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4627. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4628. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4629. 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(-20)),.2)
  4630. 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(10),math.rad(20)),.2)
  4631. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  4632. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0)
  4633. m.Scale = m.Scale+Vector3.new(0,1,1)
  4634. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4635. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4636. swait()
  4637. end
  4638. sphereMK(3, 0.2, "Add", targ.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, MAINRUINCOLOR, 0)
  4639. repeat
  4640. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4641. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0)
  4642. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  4643. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4644. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4645. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  4646. swait()
  4647. until judgement == false
  4648. for i =1,15 do
  4649. m.Scale = m.Scale-Vector3.new(1,1,1)
  4650. p.Transparency = i / 15
  4651. s.Pitch = s.Pitch - 0.4
  4652. swait()
  4653. end
  4654. p:Destroy()
  4655. hum.WalkSpeed = storehumanoidWS
  4656. attack = false
  4657. end
  4658.  
  4659. function Starfall()
  4660. attack = true
  4661. hum.WalkSpeed = 0
  4662. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  4663. for i = 0, 5, 0.1 do
  4664. swait()
  4665. 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)
  4666. 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)
  4667. 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)
  4668. 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)
  4669. 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)
  4670. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  4671. 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)
  4672. 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)
  4673. end
  4674. local Overed = false
  4675. CameraEnshaking(2,20)
  4676. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4677. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4678. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  4679. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  4680. local orb = Instance.new("Part", char)
  4681. orb.Anchored = true
  4682. orb.BrickColor = BrickColor.new("Toothpaste")
  4683. orb.CanCollide = false
  4684. orb.FormFactor = 3
  4685. orb.Name = "Remenant"
  4686. orb.Material = "Neon"
  4687. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  4688. orb.Size = Vector3.new(1, 1, 1)
  4689. orb.Transparency = 1
  4690. orb.TopSurface = 0
  4691. orb.BottomSurface = 0
  4692. hum.WalkSpeed = storehumanoidWS
  4693. coroutine.resume(coroutine.create(function()
  4694. for i = 0, 9 do
  4695. swait(10)
  4696. local lb = Instance.new("Part")
  4697. lb.Color = MAINRUINCOLOR.Color
  4698. lb.CanCollide = false
  4699. lb.Material = "Neon"
  4700. lb.Anchored = true
  4701. lb.TopSurface = 0
  4702. lb.BottomSurface = 0
  4703. lb.Transparency = 0
  4704. lb.Size = vt(1,1,1)
  4705. 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)))
  4706. lb.Anchored = false
  4707. lb.Parent = char
  4708. local thingery = Instance.new("SpecialMesh",lb)
  4709. thingery.MeshType = "Sphere"
  4710. thingery.Scale = vt(20,20,20)
  4711. game:GetService("Debris"):AddItem(lb, 10)
  4712. local bv = Instance.new("BodyVelocity")
  4713. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4714. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  4715. bv.Parent = lb
  4716. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  4717. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  4718. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  4719. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  4720. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  4721. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  4722. local hitted = false
  4723. coroutine.resume(coroutine.create(function()
  4724. while true do
  4725. swait(1)
  4726. if lb.Parent ~= nil and hitted == false then
  4727. 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)
  4728. elseif lb.Parent == nil then
  4729. break
  4730. end
  4731. end
  4732. end))
  4733.  
  4734. game:GetService("Debris"):AddItem(a, 0.1)
  4735.  
  4736. coroutine.resume(coroutine.create(function()
  4737. swait(1)
  4738. lb.Touched:connect(function(hit)
  4739. if hitted == false then
  4740. hitted = true
  4741. lb.Transparency = 1
  4742. lb.Anchored = true
  4743. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  4744. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  4745. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  4746. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  4747. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  4748. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  4749. MagniDamage(lb, 45, 45,85, 0, "Normal")
  4750. CameraEnshaking(1,5)
  4751. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4752. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4753. for i = 0, 9 do
  4754. 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)
  4755. end
  4756. for i = 0, 49 do
  4757. swait()
  4758. MagniDamage(lb, 30, 2,4, 0, "Normal")
  4759. 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)
  4760. end
  4761. end
  4762. end)
  4763. end))
  4764. end
  4765. Overed = true
  4766. orb:Destroy()
  4767. end))
  4768.  
  4769. attack = false
  4770. end
  4771.  
  4772.  
  4773. function ViolentRing()
  4774. attack = true
  4775. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4776. for i = 0, 2, 0.1 do
  4777. swait()
  4778. local snap = math.random(1,10)
  4779. if snap == 1 then
  4780. 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)
  4781. end
  4782. 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)
  4783. 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)
  4784. 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)
  4785. 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)
  4786. 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)
  4787. 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)
  4788. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4789. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4790. 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)
  4791. RootPart.CFrame = FaceMouse()[1]
  4792. end
  4793. local orb = Instance.new("Part", char)
  4794. orb.BrickColor = MAINRUINCOLOR
  4795. orb.CanCollide = false
  4796. orb.FormFactor = 3
  4797. orb.Name = "Ring"
  4798. orb.Material = "Neon"
  4799. orb.Size = Vector3.new(1, 1, 1)
  4800. orb.Transparency = 0
  4801. orb.TopSurface = 0
  4802. orb.BottomSurface = 0
  4803. local orbm = Instance.new("SpecialMesh", orb)
  4804. orbm.MeshType = "Sphere"
  4805. orbm.Name = "SizeMesh"
  4806. orbm.Scale = vt(2,2,2)
  4807. orb.CFrame = mouse.Hit
  4808. local bv = Instance.new("BodyVelocity")
  4809. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4810. bv.velocity = orb.CFrame.lookVector*100
  4811. bv.Parent = orb
  4812. local hitted = false
  4813. coroutine.resume(coroutine.create(function()
  4814. game:GetService("Debris"):AddItem(orb, 5)
  4815. orb.Transparency = 1
  4816. orb.Anchored = true
  4817. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4818. elocacenter.Anchored = true
  4819. elocacenter.CFrame = orb.CFrame
  4820. elocacenter.Orientation = vt(0,0,0)
  4821. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4822. eloca1.Anchored = true
  4823. eloca1.CFrame = elocacenter.CFrame
  4824. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4825. eloca2.Anchored = true
  4826. eloca2.CFrame = elocacenter.CFrame
  4827. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4828. eloca3.Anchored = true
  4829. eloca3.CFrame = elocacenter.CFrame
  4830. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4831. eloca4.Anchored = true
  4832. eloca4.CFrame = elocacenter.CFrame
  4833. local lookavec = 0
  4834. local speeds = 0
  4835. CameraEnshaking(1,1)
  4836. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4837. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4838. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4839. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4840. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4841. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4842. for i = 0, 24 do
  4843. swait()
  4844. lookavec = lookavec + 3.5
  4845. speeds = speeds + 1
  4846. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4847. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4848. 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)
  4849.  
  4850. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4851. 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)
  4852.  
  4853. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4854. 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)
  4855.  
  4856. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4857. 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)
  4858. end
  4859.  
  4860. local risen = 0
  4861. for i = 0, 49 do
  4862. swait()
  4863. risen = risen + 0.05
  4864. speeds = speeds + 0.1
  4865. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4866. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4867. 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)
  4868.  
  4869. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4870. 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)
  4871.  
  4872. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4873. 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)
  4874.  
  4875. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4876. 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)
  4877. end
  4878. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4879. if v:FindFirstChild('Head') then
  4880. dmg(v)
  4881. end
  4882. end
  4883. CameraEnshaking(4,10)
  4884. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4885. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4886. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4887. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4888. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4889. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4890. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4891. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4892. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4893. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4894. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4895. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4896. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4897. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4898. for i = 0, 24 do
  4899. 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)
  4900. 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)
  4901. 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)
  4902. 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)
  4903. end
  4904. coroutine.resume(coroutine.create(function()
  4905. wait(10)
  4906. elocacenter:Destroy()
  4907. eloca1:Destroy()
  4908. eloca2:Destroy()
  4909. eloca3:Destroy()
  4910. eloca4:Destroy()
  4911. end))
  4912. end))
  4913. attack = false
  4914. end
  4915.  
  4916. function UniversalCollapse()
  4917. attack = true
  4918. local speedearn = 0
  4919. hum.WalkSpeed = 0
  4920. local sbs = Instance.new("BodyPosition", root)
  4921. sbs.P = 3000
  4922. sbs.D = 1000
  4923. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4924. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4925. CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
  4926. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4927. for i = 0, 110, 0.1 do
  4928. swait()
  4929. speedearn = speedearn + 0.1
  4930. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4931. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4932. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4933. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4934. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4935. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4936. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  4937. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  4938. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4939. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4940. 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)
  4941. 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)
  4942. end
  4943. CameraEnshaking(5,50)
  4944. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4945. for i = 0, 2 do
  4946. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4947. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4948. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4949. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4950. end
  4951. for i = 0, 49 do
  4952. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  4953. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  4954. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  4955. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  4956. end
  4957. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4958. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4959. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4960. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4961. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4962. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4963. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4964. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4965. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4966. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4967. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4968. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4969. for i = 0, 99 do
  4970. PixelBlock(1,math.random(50,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
  4971. PixelBlock(2,math.random(250,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0)
  4972. end
  4973. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4974. if v:FindFirstChild('Head') then
  4975. dmg(v)
  4976. end
  4977. end
  4978. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4979. sbs:Destroy()
  4980. hum.WalkSpeed = storehumanoidWS
  4981. attack = false
  4982. end
  4983.  
  4984.  
  4985. function ChaosEND()
  4986. attack = true
  4987. local speedearn = 0
  4988. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
  4989. for i = 0, 15, 0.1 do
  4990. swait()
  4991. speedearn = speedearn + 0.25
  4992. 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)
  4993. 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)
  4994. 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)
  4995. 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)
  4996. 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)
  4997. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4998. 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)
  4999. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5000. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5001. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  5002. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  5003. end
  5004. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  5005. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  5006. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  5007. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  5008. CameraEnshaking(5,25)
  5009. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  5010. if v:FindFirstChild('Head') then
  5011. dmg(v)
  5012. end
  5013. end
  5014. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  5015. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  5016. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  5017. for i = 0, 3, 0.1 do
  5018. swait()
  5019. 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)
  5020. 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)
  5021. 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)
  5022. 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)
  5023. 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)
  5024. 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)
  5025. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5026. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5027. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  5028. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  5029. end
  5030. attack = false
  5031. end
  5032.  
  5033. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  5034. local orb = Instance.new("Part", char)
  5035. orb.Anchored = true
  5036. orb.BrickColor = color
  5037. orb.CanCollide = false
  5038. orb.FormFactor = 3
  5039. orb.Name = "Ring"
  5040. orb.Material = "Neon"
  5041. orb.Size = Vector3.new(1, 1, 1)
  5042. orb.Transparency = 0
  5043. orb.TopSurface = 0
  5044. orb.BottomSurface = 0
  5045. local orbm = Instance.new("SpecialMesh", orb)
  5046. orbm.MeshType = "Sphere"
  5047. orb.CFrame = positted
  5048. orbm.Name = "SizeMesh"
  5049. orbm.Scale = vt(1,1,1)
  5050. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  5051. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  5052. --[[for i = 0, 2 do
  5053. 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)
  5054. end]]--
  5055. coroutine.resume(coroutine.create(function()
  5056. wait(timer)
  5057. CameraEnshaking(3,ShakePower)
  5058. orb.Transparency = 1
  5059. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  5060. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  5061. --[[for i = 0, 4 do
  5062. 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)
  5063. end]]--
  5064. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  5065. wait(3)
  5066. orb:Destroy()
  5067. end))
  5068. end
  5069.  
  5070. function orb_spawn(positted,timer)
  5071. local randomcol = math.random(1,2)
  5072. local orb = Instance.new("Part", char)
  5073. orb.Anchored = true
  5074. if randomcol == 1 then
  5075. orb.BrickColor = BrickColor.new("White")
  5076. elseif randomcol == 2 then
  5077. orb.BrickColor = BrickColor.new("Really black")
  5078. end
  5079. orb.CanCollide = false
  5080. orb.FormFactor = 3
  5081. orb.Name = "Ring"
  5082. orb.Material = "Neon"
  5083. orb.Size = Vector3.new(1, 1, 1)
  5084. orb.Transparency = 0
  5085. orb.TopSurface = 0
  5086. orb.BottomSurface = 0
  5087. local orbm = Instance.new("SpecialMesh", orb)
  5088. orbm.MeshType = "Sphere"
  5089. orb.CFrame = positted
  5090. orbm.Name = "SizeMesh"
  5091. orbm.Scale = vt(1,1,1)
  5092. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  5093. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  5094. for i = 0, 2 do
  5095. 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)
  5096. end
  5097. coroutine.resume(coroutine.create(function()
  5098. wait(timer)
  5099. CameraEnshaking(3,2)
  5100. orb.Transparency = 1
  5101. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  5102. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  5103. for i = 0, 4 do
  5104. 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)
  5105. end
  5106. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  5107. wait(3)
  5108. orb:Destroy()
  5109. end))
  5110. end
  5111.  
  5112. function scattercorrupt()
  5113. attack = true
  5114. local rot = 0
  5115. local randomrotations = math.random(1,2)
  5116. local lookv = 2.5
  5117. local power = 5
  5118. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  5119. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  5120. for i = 0, 9 do
  5121. 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)
  5122. end
  5123. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  5124. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  5125. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  5126. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  5127. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  5128. local hite = Instance.new("Part", char)
  5129. hite.Anchored = true
  5130. hite.CanCollide = false
  5131. hite.FormFactor = 3
  5132. hite.Name = "Ring"
  5133. hite.Material = "Neon"
  5134. hite.Size = Vector3.new(1, 1, 1)
  5135. hite.Transparency = 1
  5136. hite.TopSurface = 0
  5137. hite.BottomSurface = 0
  5138. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5139. local rem = Instance.new("Part", char)
  5140. rem.Anchored = true
  5141. rem.CanCollide = false
  5142. rem.FormFactor = 3
  5143. rem.Name = "Ring"
  5144. rem.Material = "Neon"
  5145. rem.Size = Vector3.new(1, 1, 1)
  5146. rem.Transparency = 1
  5147. rem.TopSurface = 0
  5148. rem.BottomSurface = 0
  5149. rem.CFrame = hite.CFrame
  5150. local rem2 = rem:Clone()
  5151. rem2.Parent = char
  5152. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5153. local rem3 = rem:Clone()
  5154. rem3.Parent = char
  5155. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5156. local rem4 = rem:Clone()
  5157. rem4.Parent = char
  5158. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5159. hite:Destroy()
  5160. coroutine.resume(coroutine.create(function()
  5161. for i = 0, 24 do
  5162. swait(1)
  5163. if randomrotations == 1 then
  5164. rot = rot + 1
  5165. elseif randomrotations == 2 then
  5166. rot = rot - 1
  5167. end
  5168. power = power + 0.5
  5169. lookv = lookv + 7.5
  5170. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5171. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5172. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5173. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5174. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5175. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5176. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5177. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5178. end
  5179. end))
  5180. attack = false
  5181. end
  5182. function yinyangi()
  5183. attack = true
  5184. for i = 0, 2, 0.1 do
  5185. swait()
  5186. 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)
  5187. 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)
  5188. 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)
  5189. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5190. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5191. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5192. end
  5193. local bv = Instance.new("BodyVelocity")
  5194. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5195. bv.velocity = root.CFrame.lookVector*175
  5196. bv.Parent = root
  5197. for Rotations = 0, 9 do
  5198. for i = 0, 1, 0.5 do
  5199. swait()
  5200. bv.velocity = root.CFrame.lookVector*175
  5201. 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)
  5202. 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)
  5203. 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)
  5204. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5205. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5206. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5207. end
  5208. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5209. for i = 0, 1, 0.5 do
  5210. swait()
  5211. bv.velocity = root.CFrame.lookVector*175
  5212. 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)
  5213. 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)
  5214. 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)
  5215. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5216. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5217. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5218. end
  5219. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5220. for i = 0, 1, 0.5 do
  5221. swait()
  5222. bv.velocity = root.CFrame.lookVector*175
  5223. 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)
  5224. 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)
  5225. 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)
  5226. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5227. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5228. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5229. end
  5230. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5231. for i = 0, 1, 0.5 do
  5232. swait()
  5233. bv.velocity = root.CFrame.lookVector*175
  5234. 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)
  5235. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5236. 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)
  5237. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5238. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5239. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5240. end
  5241. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5242. end
  5243. bv:Destroy()
  5244. attack = false
  5245. end
  5246.  
  5247. function createBGCircle(size,parent,color)
  5248. local bgui = Instance.new("BillboardGui",parent)
  5249. bgui.Size = UDim2.new(size, 0, size, 0)
  5250. local imgc = Instance.new("ImageLabel",bgui)
  5251. imgc.BackgroundTransparency = 1
  5252. imgc.ImageTransparency = 0
  5253. imgc.Size = UDim2.new(1,0,1,0)
  5254. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5255. imgc.ImageColor3 = color
  5256. return bgui,imgc
  5257. end
  5258.  
  5259. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5260. local bgui,imgc = createBGCircle(size,guipar,color)
  5261. bgui.AlwaysOnTop = true
  5262. imgc.Image = "rbxassetid://" ..img
  5263. local rrot = math.random(1,2)
  5264. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5265. coroutine.resume(coroutine.create(function()
  5266. for i = 0, 24*delay do
  5267. swait()
  5268. if rotationenabled == true then
  5269. if rrot == 1 then
  5270. imgc.Rotation = imgc.Rotation + rotsp
  5271. elseif rrot == 2 then
  5272. imgc.Rotation = imgc.Rotation - rotsp
  5273. end
  5274. end
  5275. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5276. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5277. end
  5278. bgui:Destroy()
  5279. end))
  5280. end
  5281. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5282. for i, v in pairs(mw2:GetChildren()) do
  5283. if v:IsA("Part") then
  5284. v.BrickColor = one
  5285. v.Material = "Neon"
  5286. end
  5287. end
  5288. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5289. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5290. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5291. tr1.Color = ColorSequence.new(one.Color)
  5292. tr2.Color = ColorSequence.new(one.Color)
  5293. tr3.Color = ColorSequence.new(one.Color)
  5294. for i, v in pairs(mw1:GetChildren()) do
  5295. if v:IsA("Part") then
  5296. if secondaryenabled == false then
  5297. v.Transparency = 0
  5298. elseif secondaryenabled == true then
  5299. v.Transparency = 0
  5300. end
  5301. v.BrickColor = two
  5302. v.Material = "Neon"
  5303. end
  5304. end
  5305. if secondaryenabled == false then
  5306. tl1.Enabled = false
  5307. tl2.Enabled = false
  5308. tl3.Enabled = false
  5309. elseif secondaryenabled == true then
  5310. tl1.Enabled = true
  5311. tl2.Enabled = true
  5312. tl3.Enabled = true
  5313. end
  5314. tl1.Color = ColorSequence.new(two.Color)
  5315. tl2.Color = ColorSequence.new(two.Color)
  5316. tl3.Color = ColorSequence.new(two.Color)
  5317. for i, v in pairs(m:GetChildren()) do
  5318. if v:IsA("Part") then
  5319. v.BrickColor = three
  5320. v.Material = "Ice"
  5321. end
  5322. end
  5323. for i, v in pairs(m2:GetChildren()) do
  5324. if v:IsA("Part") then
  5325. v.BrickColor = four
  5326. v.Material = "Ice"
  5327. end
  5328. end
  5329. for i, v in pairs(m3:GetChildren()) do
  5330. if v:IsA("Part") then
  5331. v.BrickColor = five
  5332. v.Material = "Neon"
  5333. end
  5334. end
  5335. for i, v in pairs(extrawingmod1:GetChildren()) do
  5336. if v:IsA("Part") then
  5337. v.Transparency = 0.75
  5338. v.BrickColor = BrickColor.new("Royal purple")
  5339. v.Material = "Neon"
  5340. end
  5341. end
  5342. for i, v in pairs(extrawingmod2:GetChildren()) do
  5343. if v:IsA("Part") then
  5344. v.Transparency = 0.75
  5345. v.BrickColor = BrickColor.new("Royal purple")
  5346. v.Material = "Neon"
  5347. end
  5348. end
  5349. end
  5350.  
  5351.  
  5352. function normalmog()
  5353. attack = true
  5354. hum.WalkSpeed = 0
  5355. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5356. for i = 0,6,0.1 do
  5357. swait()
  5358. 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)
  5359. 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)
  5360. 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)
  5361. 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)
  5362. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5363. 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)
  5364. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5365. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5366. end
  5367. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5368. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5369. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5370. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5371. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5372. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5373. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5374. rainbowmode = false
  5375. chaosmode = false
  5376. ModeOfGlitch = 1
  5377. storehumanoidWS = 16
  5378. newTheme("rbxassetid://1537276744",48.6,1,1.25)
  5379. RecolorTextAndRename("STAR",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5380. CameraEnshaking(5,2.5)
  5381. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5382. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5383. for i = 0, 49 do
  5384. 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)
  5385. end
  5386. for i = 0, 24 do
  5387. 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)
  5388. 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"))
  5389. end
  5390. for i = 0,3,0.1 do
  5391. 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)
  5392. end
  5393. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5394. for i = 0,2,0.1 do
  5395. swait()
  5396. 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)
  5397. 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)
  5398. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5399. 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)
  5400. 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)
  5401. 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)
  5402. end
  5403. hum.WalkSpeed = storehumanoidWS
  5404. attack = false
  5405. end
  5406.  
  5407. function attackone()
  5408. attack = true
  5409. local keptcolor = MAINRUINCOLOR
  5410. for i = 0,1,0.1 do
  5411. swait()
  5412. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5413. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5414. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5415. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5416. 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)
  5417. 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)
  5418. end
  5419. local distlook = 5
  5420. coroutine.resume(coroutine.create(function()
  5421. for i = 0, 4 do
  5422. swait(2)
  5423. CameraEnshaking(2,3)
  5424. local hite = Instance.new("Part", char)
  5425. hite.Anchored = true
  5426. hite.CanCollide = false
  5427. hite.FormFactor = 3
  5428. hite.Name = "Ring"
  5429. hite.Material = "Neon"
  5430. hite.Size = Vector3.new(1, 1, 1)
  5431. hite.Transparency = 1
  5432. hite.TopSurface = 0
  5433. hite.BottomSurface = 0
  5434. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5435. 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)
  5436. 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)
  5437. 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)
  5438. 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)
  5439. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5440. for i = 0, 14 do
  5441. local rsiz = math.random(5,20)
  5442. 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)
  5443. end
  5444. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5445. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5446. game:GetService("Debris"):AddItem(hite, 5)
  5447. distlook = distlook + 10
  5448. end
  5449. end))
  5450. for i = 0,1,0.1 do
  5451. swait()
  5452. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5453. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5454. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5455. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5456. 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)
  5457. 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)
  5458. end
  5459. attack = false
  5460. end
  5461.  
  5462. function attacktwo()
  5463. attack = true
  5464. hum.WalkSpeed = 2
  5465. local keptcolor = MAINRUINCOLOR
  5466. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5467. 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)
  5468. 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)
  5469. for i = 0, 14 do
  5470. end
  5471. for i = 0,1,0.1 do
  5472. swait()
  5473. 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)
  5474. 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)
  5475. 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)
  5476. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5477. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5478. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5479. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5480. end
  5481. for i = 0, 1 do
  5482. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5483. for i = 0,1,0.6 do
  5484. swait()
  5485. 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)
  5486. 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)
  5487. 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)
  5488. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5489. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5490. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5491. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5492. end
  5493. for i = 0,1,0.6 do
  5494. swait()
  5495. 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)
  5496. 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)
  5497. 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)
  5498. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5499. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5500. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5501. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5502. end
  5503. for i = 0,1,0.6 do
  5504. swait()
  5505. 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)
  5506. 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)
  5507. 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)
  5508. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5509. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5510. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5511. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5512. end
  5513. for i = 0,1,0.6 do
  5514. swait()
  5515. 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)
  5516. 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)
  5517. 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)
  5518. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5519. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5520. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5521. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5522. end
  5523. local rot = 0
  5524. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5525. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5526. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5527. CreateMesh(dis,"Sphere",10,1,10)
  5528. local at1 = Instance.new("Attachment",dis)
  5529. at1.Position = vt(-5,0,0)
  5530. local at2 = Instance.new("Attachment",dis)
  5531. at2.Position = vt(5,0,0)
  5532. local trl = Instance.new('Trail',wed)
  5533. trl.Attachment0 = at1
  5534. trl.Attachment1 = at2
  5535. trl.Texture = "rbxassetid://1049219073"
  5536. trl.LightEmission = 1
  5537. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5538. trl.Color = ColorSequence.new(dis.Color)
  5539. trl.Lifetime = 0.6
  5540. local a = Instance.new("Part",workspace)
  5541. a.Name = "Direction"
  5542. a.Anchored = true
  5543. a.BrickColor = bc("Bright red")
  5544. a.Material = "Neon"
  5545. a.Transparency = 1
  5546. a.CanCollide = false
  5547. local ray = Ray.new(
  5548. dis.CFrame.p, -- origin
  5549. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5550. )
  5551. local ignore = dis
  5552. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5553. a.BottomSurface = 10
  5554. a.TopSurface = 10
  5555. local distance = (dis.CFrame.p - position).magnitude
  5556. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5557. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5558. dis.CFrame = a.CFrame
  5559. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5560. a:Destroy()
  5561. local bv = Instance.new("BodyVelocity")
  5562. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5563. bv.velocity = dis.CFrame.lookVector*250
  5564. bv.Parent = dis
  5565. game:GetService("Debris"):AddItem(dis, 5)
  5566. local hitted = false
  5567. coroutine.resume(coroutine.create(function()
  5568. dis.Touched:connect(function(hit)
  5569. if hitted == false and hit.Parent ~= char then
  5570. hitted = true
  5571. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5572. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5573. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5574. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5575. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5576. coroutine.resume(coroutine.create(function()
  5577. for i = 0, 9 do
  5578. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5579. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5580. local at1 = Instance.new("Attachment",disr)
  5581. at1.Position = vt(-5,0,0)
  5582. local at2 = Instance.new("Attachment",disr)
  5583. at2.Position = vt(5,0,0)
  5584. local trl = Instance.new('Trail',disr)
  5585. trl.Attachment0 = at1
  5586. trl.FaceCamera = true
  5587. trl.Attachment1 = at2
  5588. trl.Texture = "rbxassetid://2342682798"
  5589. trl.LightEmission = 1
  5590. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5591. trl.Color = ColorSequence.new(keptcolor.Color)
  5592. trl.Lifetime = 0.5
  5593. local bv = Instance.new("BodyVelocity")
  5594. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5595. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5596. bv.Parent = disr
  5597. local val = 0
  5598. coroutine.resume(coroutine.create(function()
  5599. swait(30)
  5600. for i = 0, 9 do
  5601. swait()
  5602. val = val + 0.1
  5603. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5604. end
  5605. game:GetService("Debris"):AddItem(disr, 3)
  5606. end))
  5607. end
  5608. local eff = Instance.new("ParticleEmitter",dis)
  5609. eff.Texture = "rbxassetid://2273224484"
  5610. eff.LightEmission = 1
  5611. eff.Color = ColorSequence.new(keptcolor.Color)
  5612. eff.Rate = 50
  5613. eff.Lifetime = NumberRange.new(0.5,2)
  5614. 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)})
  5615. 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)})
  5616. eff.Speed = NumberRange.new(20,250)
  5617. eff.Drag = 5
  5618. eff.Rotation = NumberRange.new(-500,500)
  5619. eff.VelocitySpread = 9000
  5620. eff.RotSpeed = NumberRange.new(-50,50)
  5621. wait(0.25)
  5622. eff.Enabled = false
  5623. end))
  5624. for i = 0, 9 do
  5625. end
  5626. for i = 0, 19 do
  5627. end
  5628. coroutine.resume(coroutine.create(function()
  5629. for i = 0, 19 do
  5630. swait()
  5631. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5632. end
  5633. hum.CameraOffset = vt(0,0,0)
  5634. end))
  5635. dis.Anchored = true
  5636. dis.Transparency = 1
  5637. wait(8)
  5638. dis:Destroy()
  5639. end
  5640. end)
  5641. end))
  5642. rot = rot - 15
  5643. end
  5644. for i = 0,2,0.1 do
  5645. swait()
  5646. 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)
  5647. 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)
  5648. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5649. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5650. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5651. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5652. end
  5653. attack = false
  5654. hum.WalkSpeed = storehumanoidWS
  5655. end
  5656.  
  5657. function attackthree()
  5658. attack = true
  5659. local keptcolor = MAINRUINCOLOR
  5660. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5661. for i = 0,2,0.1 do
  5662. swait()
  5663. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5664. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5665. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5666. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5667. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5668. 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)
  5669. 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)
  5670. end
  5671. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5672. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5673. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5674. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5675. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5676. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5677. for i = 0, 24 do
  5678. end
  5679. for i = 0,4,0.1 do
  5680. swait()
  5681. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5682. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5683. CreateMesh(dis,"Sphere",1,1,1)
  5684. dis.Anchored = true
  5685. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5686. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5687. coroutine.resume(coroutine.create(function()
  5688. swait(30)
  5689. dis.Transparency = 1
  5690. coroutine.resume(coroutine.create(function()
  5691. for i = 0, 19 do
  5692. swait()
  5693. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5694. end
  5695. hum.CameraOffset = vt(0,0,0)
  5696. end))
  5697. coroutine.resume(coroutine.create(function()
  5698. local eff = Instance.new("ParticleEmitter",dis)
  5699. eff.Texture = "rbxassetid://2273224484"
  5700. eff.LightEmission = 1
  5701. eff.Color = ColorSequence.new(dis.Color)
  5702. eff.Rate = 500000
  5703. eff.Lifetime = NumberRange.new(0.5,2)
  5704. 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)})
  5705. 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)})
  5706. eff.Speed = NumberRange.new(50,450)
  5707. eff.Drag = 5
  5708. eff.Rotation = NumberRange.new(-500,500)
  5709. eff.VelocitySpread = 9000
  5710. eff.RotSpeed = NumberRange.new(-50,50)
  5711. wait(0.125)
  5712. eff.Enabled = false
  5713. end))
  5714. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5715. for i = 0, 2 do
  5716. --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)
  5717. end
  5718. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5719. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5720. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5721. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5722. end))
  5723. game:GetService("Debris"):AddItem(dis, 5)
  5724. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5725. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5726. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5727. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5728. 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)
  5729. 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)
  5730. end
  5731. attack = false
  5732. end
  5733. ----------------------------------- Abilities
  5734.  
  5735. function ExtinctiveHeartbreak()
  5736. local targetted = nil
  5737. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5738. targetted = mouse.Target.Parent
  5739. end
  5740. if targetted ~= nil then
  5741. attack = true
  5742. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5743. for i = 0, 9 do
  5744. --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)
  5745. end
  5746. for i = 0, 24 do
  5747. --
  5748. end
  5749. --sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5750. local originalpos = root.CFrame
  5751. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5752. for i = 0, 9 do
  5753. --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)
  5754. end
  5755. for i = 0, 24 do
  5756. end
  5757. hum.WalkSpeed = 0
  5758. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5759. local radm = math.random(1,3)
  5760. if radm == 1 then
  5761. --bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5762. elseif radm == 2 then
  5763. --bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5764. elseif radm == 3 then
  5765. --bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5766. end
  5767. for i = 0,2,0.1 do
  5768. swait()
  5769. 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)
  5770. 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)
  5771. 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)
  5772. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5773. 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)
  5774. 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)
  5775. end
  5776. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  5777. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  5778. for i = 0,2,0.1 do
  5779. swait()
  5780. coroutine.resume(coroutine.create(function()
  5781. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5782. for i,v in pairs(targetted:GetChildren()) do
  5783. if v:IsA("Part") or v:IsA("MeshPart") then
  5784. v.Velocity = vt(0,0,0)
  5785. end
  5786. end
  5787. end))
  5788. 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)
  5789. 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)
  5790. 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)
  5791. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5792. 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)
  5793. 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)
  5794. end
  5795. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  5796. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  5797. for i = 0, 1 do
  5798. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  5799. end
  5800. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  5801. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5802. for i = 0,4,0.1 do
  5803. swait()
  5804. coroutine.resume(coroutine.create(function()
  5805. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5806. 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)))
  5807. local at1 = Instance.new("Attachment",dis)
  5808. at1.Position = vt(-25000,0,0)
  5809. local at2 = Instance.new("Attachment",dis)
  5810. at2.Position = vt(25000,0,0)
  5811. local trl = Instance.new('Trail',dis)
  5812. trl.Attachment0 = at1
  5813. trl.FaceCamera = true
  5814. trl.Attachment1 = at2
  5815. trl.Texture = "rbxassetid://1049219073"
  5816. trl.LightEmission = 1
  5817. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5818. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5819. trl.Lifetime = 5
  5820. local bv = Instance.new("BodyVelocity")
  5821. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5822. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5823. bv.Parent = dis
  5824. game:GetService("Debris"):AddItem(dis, 5)
  5825. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5826. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5827. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5828. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5829. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5830. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5831. 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)
  5832. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5833. for i = 0, 2 do
  5834. --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"))
  5835. end
  5836. 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)
  5837. for i,v in pairs(targetted:GetChildren()) do
  5838. if v:IsA("Part") or v:IsA("MeshPart") then
  5839. v.Velocity = vt(0,0,0)
  5840. end
  5841. end
  5842. end))
  5843. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5844. 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)
  5845. 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)
  5846. 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)
  5847. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5848. 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)
  5849. 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)
  5850. end
  5851. hum.CameraOffset = vt(0,0,0)
  5852. for i = 0, 49 do
  5853. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5854. 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)))
  5855. local at1 = Instance.new("Attachment",dis)
  5856. at1.Position = vt(-50000,0,0)
  5857. local at2 = Instance.new("Attachment",dis)
  5858. at2.Position = vt(50000,0,0)
  5859. local trl = Instance.new('Trail',dis)
  5860. trl.Attachment0 = at1
  5861. trl.FaceCamera = true
  5862. trl.Attachment1 = at2
  5863. trl.Texture = "rbxassetid://1049219073"
  5864. trl.LightEmission = 1
  5865. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5866. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5867. trl.Lifetime = 5
  5868. local bv = Instance.new("BodyVelocity")
  5869. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5870. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5871. bv.Parent = dis
  5872. game:GetService("Debris"):AddItem(dis, 5)
  5873. end
  5874. for i = 0, 49 do
  5875. 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)
  5876. --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"))
  5877. end
  5878. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5879. for i = 0, 1 do
  5880. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5881. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5882. end
  5883. for i = 0, 4 do
  5884. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5885. end
  5886. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5887. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5888. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5889. dmg(targetted)
  5890. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5891. for i = 0, 9 do
  5892. --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)
  5893. end
  5894. for i = 0, 24 do
  5895. end
  5896. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5897. root.CFrame = originalpos
  5898. for i = 0, 9 do
  5899. --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)
  5900. end
  5901. for i = 0, 24 do
  5902. end
  5903. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5904. attack = false
  5905. hum.WalkSpeed = storehumanoidWS
  5906. end
  5907. end
  5908.  
  5909. function CorruptionEvent()
  5910. attack = true
  5911. hum.WalkSpeed = 0
  5912. bosschatfunc("EVIL STOMP!!",MAINRUINCOLOR.Color,2)
  5913. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5914. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5915. local keptcolor = MAINRUINCOLOR
  5916. for i = 0,4,0.1 do
  5917. swait()
  5918. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5919. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5920. 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)
  5921. 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)
  5922. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5923. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5924. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5925. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5926. end
  5927. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5928. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5929. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5930. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5931. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5932. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5933. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5934. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5935. hum.CameraOffset = vt(0,0,0)
  5936. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5937. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5938. for i = 0, 24 do
  5939. --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"))
  5940. end
  5941. local rrot = 0
  5942. coroutine.resume(coroutine.create(function()
  5943. for i = 0, 4 do
  5944. rrot = rrot + 45
  5945. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5946. xa.Anchored = true
  5947. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5948. xb.Anchored = true
  5949. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5950. xc.Anchored = true
  5951. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5952. xd.Anchored = true
  5953. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5954. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5955. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5956. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5957. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5958. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5959. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5960. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5961. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5962. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5963. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5964. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5965. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5966. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5967. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5968. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5969. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5970. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5971. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5972. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5973. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5974. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5975. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5976. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5977. 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)
  5978. 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)
  5979. 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)
  5980. 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)
  5981. 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))
  5982. 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))
  5983. 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))
  5984. 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))
  5985. game:GetService("Debris"):AddItem(xa, 5)
  5986. game:GetService("Debris"):AddItem(xb, 5)
  5987. game:GetService("Debris"):AddItem(xc, 5)
  5988. game:GetService("Debris"):AddItem(xd, 5)
  5989. coroutine.resume(coroutine.create(function()
  5990. for i = 0, 19 do
  5991. swait()
  5992. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5993. end
  5994. hum.CameraOffset = vt(0,0,0)
  5995. end))
  5996. swait(9)
  5997. end
  5998. end))
  5999. for i = 0,2,0.1 do
  6000. swait()
  6001. 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)
  6002. 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)
  6003. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  6004. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  6005. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  6006. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6007. end
  6008. attack = false
  6009. hum.WalkSpeed = storehumanoidWS
  6010. end
  6011.  
  6012. function EndGROUND()
  6013. attack = true
  6014. hum.WalkSpeed = 0
  6015. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  6016. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  6017. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  6018. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  6019. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  6020. local keptcolor = MAINRUINCOLOR
  6021. for i = 0,4,0.1 do
  6022. swait()
  6023. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6024. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6025. --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"))
  6026. 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)
  6027. 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)
  6028. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  6029. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  6030. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  6031. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  6032. end
  6033. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  6034. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  6035. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  6036. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  6037. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  6038. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  6039. coroutine.resume(coroutine.create(function()
  6040. local shval = 10
  6041. for i = 0, 99 do
  6042. swait()
  6043. shval = shval - 0.1
  6044. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  6045. end
  6046. hum.CameraOffset = vt(0,0,0)
  6047. end))
  6048. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6049. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6050. for i = 0, 24 do
  6051. --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"))
  6052. end
  6053. local rrot = 0
  6054. local xam = 1
  6055. coroutine.resume(coroutine.create(function()
  6056. for i = 0, 14 do
  6057. --swait()
  6058. rrot = rrot + 40*xam
  6059. xam = xam + 0.25
  6060. local bonus = xam
  6061. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  6062. xa.Anchored = true
  6063. xa.Color = Color3.new(0,0,0)
  6064. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  6065. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  6066. local xc = 0
  6067. coroutine.resume(coroutine.create(function()
  6068. for i = 0, 99 do
  6069. swait()
  6070. xc = xc + 0.01
  6071. xa.Color = Color3.new(xc,0,0)
  6072. end
  6073. xa.Transparency = 1
  6074. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  6075. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  6076. for i = 0, 9 do
  6077. --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"))
  6078. end
  6079. 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)
  6080. 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)
  6081. 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))
  6082. game:GetService("Debris"):AddItem(xa, 5)
  6083. coroutine.resume(coroutine.create(function()
  6084. for i = 0, 19 do
  6085. swait()
  6086. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6087. end
  6088. hum.CameraOffset = vt(0,0,0)
  6089. end))
  6090. end))
  6091. end
  6092. end))
  6093. for i = 0,2,0.1 do
  6094. swait()
  6095. 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)
  6096. 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)
  6097. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  6098. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  6099. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  6100. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6101. end
  6102. attack = false
  6103. hum.WalkSpeed = storehumanoidWS
  6104. end
  6105.  
  6106. function HeavenlyDisk()
  6107. attack = true
  6108. hum.WalkSpeed = 2
  6109. local keptcolor = MAINRUINCOLOR
  6110. local radm = math.random(1,3)
  6111. if radm == 1 then
  6112. --bosschatfunc("Don't make this too easy for you.",MAINRUINCOLOR.Color,1)
  6113. elseif radm == 2 then
  6114. --bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  6115. elseif radm == 3 then
  6116. --bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6117. end
  6118. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6119. CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
  6120. for i = 0, 14 do
  6121. --
  6122. end
  6123. for i = 0,2,0.1 do
  6124. swait()
  6125. 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)
  6126. 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)
  6127. 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)
  6128. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6129. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6130. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6131. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6132. end
  6133. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6134. for i = 0,1,0.6 do
  6135. swait()
  6136. 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)
  6137. --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"))
  6138. 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)
  6139. 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)
  6140. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6141. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6142. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6143. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6144. end
  6145. for i = 0,1,0.6 do
  6146. swait()
  6147. 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)
  6148. --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"))
  6149. 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)
  6150. 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)
  6151. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6152. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6153. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6154. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6155. end
  6156. for i = 0,1,0.6 do
  6157. swait()
  6158. 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)
  6159. --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"))
  6160. 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)
  6161. 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)
  6162. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6163. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6164. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6165. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6166. end
  6167. for i = 0,1,0.6 do
  6168. swait()
  6169. 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)
  6170. --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"))
  6171. 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)
  6172. 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)
  6173. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6174. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6175. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6176. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6177. end
  6178. local rot = 15
  6179. for i = 0, 2 do
  6180. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6181. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6182. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6183. CreateMesh(dis,"Sphere",10,1,10)
  6184. local at1 = Instance.new("Attachment",dis)
  6185. at1.Position = vt(-5,0,0)
  6186. local at2 = Instance.new("Attachment",dis)
  6187. at2.Position = vt(5,0,0)
  6188. local trl = Instance.new('Trail',wed)
  6189. trl.Attachment0 = at1
  6190. trl.Attachment1 = at2
  6191. trl.Texture = "rbxassetid://1049219073"
  6192. trl.LightEmission = 1
  6193. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6194. trl.Color = ColorSequence.new(dis.Color)
  6195. trl.Lifetime = 0.6
  6196. local a = Instance.new("Part",workspace)
  6197. a.Name = "Direction"
  6198. a.Anchored = true
  6199. a.BrickColor = bc("Bright red")
  6200. a.Material = "Neon"
  6201. a.Transparency = 1
  6202. a.CanCollide = false
  6203. local ray = Ray.new(
  6204. dis.CFrame.p, -- origin
  6205. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6206. )
  6207. local ignore = dis
  6208. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6209. a.BottomSurface = 10
  6210. a.TopSurface = 10
  6211. local distance = (dis.CFrame.p - position).magnitude
  6212. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6213. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6214. dis.CFrame = a.CFrame
  6215. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6216. a:Destroy()
  6217. local bv = Instance.new("BodyVelocity")
  6218. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6219. bv.velocity = dis.CFrame.lookVector*250
  6220. bv.Parent = dis
  6221. game:GetService("Debris"):AddItem(dis, 5)
  6222. local hitted = false
  6223. coroutine.resume(coroutine.create(function()
  6224. dis.Touched:connect(function(hit)
  6225. if hitted == false and hit.Parent ~= char then
  6226. hitted = true
  6227. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6228. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6229. --sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6230. --sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6231. --sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6232. coroutine.resume(coroutine.create(function()
  6233. for i = 0, 9 do
  6234. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6235. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6236. local at1 = Instance.new("Attachment",disr)
  6237. at1.Position = vt(-2,0,0)
  6238. local at2 = Instance.new("Attachment",disr)
  6239. at2.Position = vt(2,0,0)
  6240. local trl = Instance.new('Trail',disr)
  6241. trl.Attachment0 = at1
  6242. trl.FaceCamera = true
  6243. trl.Attachment1 = at2
  6244. trl.Texture = "rbxassetid://2342682798"
  6245. trl.LightEmission = 1
  6246. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6247. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6248. trl.Lifetime = 0.5
  6249. local bv = Instance.new("BodyVelocity")
  6250. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6251. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6252. bv.Parent = disr
  6253. local val = 0
  6254. coroutine.resume(coroutine.create(function()
  6255. swait(30)
  6256. for i = 0, 9 do
  6257. swait()
  6258. val = val + 0.1
  6259. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6260. end
  6261. game:GetService("Debris"):AddItem(disr, 3)
  6262. end))
  6263. end
  6264. local eff = Instance.new("ParticleEmitter",dis)
  6265. eff.Texture = "rbxassetid://2273224484"
  6266. eff.LightEmission = 1
  6267. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6268. eff.Rate = 500000
  6269. eff.Lifetime = NumberRange.new(0.5,2)
  6270. 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)})
  6271. 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)})
  6272. eff.Speed = NumberRange.new(20,250)
  6273. eff.Drag = 5
  6274. eff.Rotation = NumberRange.new(-500,500)
  6275. eff.VelocitySpread = 9000
  6276. eff.RotSpeed = NumberRange.new(-50,50)
  6277. wait(0.25)
  6278. eff.Enabled = false
  6279. end))
  6280. for i = 0, 9 do
  6281. --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"))
  6282. end
  6283. for i = 0, 19 do
  6284. --
  6285. end
  6286. coroutine.resume(coroutine.create(function()
  6287. for i = 0, 19 do
  6288. swait()
  6289. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6290. end
  6291. hum.CameraOffset = vt(0,0,0)
  6292. end))
  6293. dis.Anchored = true
  6294. dis.Transparency = 1
  6295. wait(8)
  6296. dis:Destroy()
  6297. end
  6298. end)
  6299. end))
  6300. rot = rot - 15
  6301. end
  6302. for i = 0,2,0.1 do
  6303. swait()
  6304. 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)
  6305. 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)
  6306. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6307. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6308. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6309. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6310. end
  6311. attack = false
  6312. hum.WalkSpeed = storehumanoidWS
  6313. end
  6314.  
  6315. function RapidBurst()
  6316. attack = true
  6317. hum.WalkSpeed = 0
  6318. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6319. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6320. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6321. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6322. local keptcolor = MAINRUINCOLOR
  6323. for i = 0,8,0.1 do
  6324. swait()
  6325. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6326. --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())
  6327. 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)
  6328. 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)
  6329. 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)
  6330. 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)
  6331. 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)
  6332. 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)
  6333. 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)
  6334. end
  6335. for i = 0, 99 do
  6336. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6337. 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)))
  6338. local at1 = Instance.new("Attachment",dis)
  6339. at1.Position = vt(-25000,0,0)
  6340. local at2 = Instance.new("Attachment",dis)
  6341. at2.Position = vt(25000,0,0)
  6342. local trl = Instance.new('Trail',dis)
  6343. trl.Attachment0 = at1
  6344. trl.FaceCamera = true
  6345. trl.Attachment1 = at2
  6346. trl.Texture = "rbxassetid://1049219073"
  6347. trl.LightEmission = 1
  6348. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6349. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6350. trl.Lifetime = 5
  6351. local bv = Instance.new("BodyVelocity")
  6352. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6353. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6354. bv.Parent = dis
  6355. game:GetService("Debris"):AddItem(dis, 5)
  6356. end
  6357. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6358. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6359. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6360. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6361. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6362. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6363. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6364. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6365. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6366. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6367. hum.CameraOffset = vt(0,0,0)
  6368. for i = 0, 24 do
  6369. --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())
  6370. end
  6371. local distam = 0
  6372. coroutine.resume(coroutine.create(function()
  6373. for i = 0, 99 do
  6374. wait()
  6375. distam = distam + 1
  6376. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6377. xa.Anchored = true
  6378. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6379. game:GetService("Debris"):AddItem(xa, 5)
  6380. for i = 0, 4 do
  6381. --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())
  6382. end
  6383. coroutine.resume(coroutine.create(function()
  6384. local eff = Instance.new("ParticleEmitter",xa)
  6385. eff.Texture = "rbxassetid://2273224484"
  6386. eff.LightEmission = 1
  6387. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6388. eff.Rate = 500000
  6389. eff.Lifetime = NumberRange.new(1,3)
  6390. 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)})
  6391. 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)})
  6392. eff.Speed = NumberRange.new(50,500)
  6393. eff.Drag = 5
  6394. eff.Rotation = NumberRange.new(-500,500)
  6395. eff.VelocitySpread = 9000
  6396. eff.RotSpeed = NumberRange.new(-50,50)
  6397. wait(0.25)
  6398. eff.Enabled = false
  6399. end))
  6400. coroutine.resume(coroutine.create(function()
  6401. for i = 0, 19 do
  6402. swait()
  6403. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6404. end
  6405. hum.CameraOffset = vt(0,0,0)
  6406. end))
  6407. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6408. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6409. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6410. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6411. end
  6412. end))
  6413. attack = false
  6414. hum.WalkSpeed = storehumanoidWS
  6415. end
  6416.  
  6417.  
  6418. function FallenOrbs()
  6419. attack = true
  6420. hum.WalkSpeed = 2
  6421. local keptcolor = MAINRUINCOLOR
  6422. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
  6423. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
  6424. local radm = math.random(1,3)
  6425. if radm == 1 then
  6426. bosschatfunc("Lets make this a little fun.",MAINRUINCOLOR.Color,1)
  6427. elseif radm == 2 then
  6428. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6429. elseif radm == 3 then
  6430. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6431. end
  6432. coroutine.resume(coroutine.create(function()
  6433. for i = 0, 29 do
  6434. swait(2)
  6435. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6436. dis.Anchored = true
  6437. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6438. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6439. CreateMesh(dis,"Sphere",2,2,2)
  6440. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6441. --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"))
  6442. coroutine.resume(coroutine.create(function()
  6443. wait(0.5)
  6444. dis.Anchored = false
  6445. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  6446. local at1 = Instance.new("Attachment",dis)
  6447. at1.Position = vt(-1,0,0)
  6448. local at2 = Instance.new("Attachment",dis)
  6449. at2.Position = vt(1,0,0)
  6450. local trl = Instance.new('Trail',dis)
  6451. trl.Attachment0 = at1
  6452. trl.FaceCamera = true
  6453. trl.Attachment1 = at2
  6454. trl.Texture = "rbxassetid://1049219073"
  6455. trl.LightEmission = 1
  6456. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6457. trl.Color = ColorSequence.new(dis.Color)
  6458. trl.Lifetime = 0.6
  6459. local a = Instance.new("Part",workspace)
  6460. a.Name = "Direction"
  6461. a.Anchored = true
  6462. a.BrickColor = bc("Bright red")
  6463. a.Material = "Neon"
  6464. a.Transparency = 1
  6465. a.CanCollide = false
  6466. local ray = Ray.new(
  6467. dis.CFrame.p, -- origin
  6468. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6469. )
  6470. local ignore = dis
  6471. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6472. a.BottomSurface = 10
  6473. a.TopSurface = 10
  6474. local distance = (dis.CFrame.p - position).magnitude
  6475. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6476. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6477. dis.CFrame = a.CFrame
  6478. a:Destroy()
  6479. local bv = Instance.new("BodyVelocity")
  6480. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6481. bv.velocity = dis.CFrame.lookVector*500
  6482. bv.Parent = dis
  6483. game:GetService("Debris"):AddItem(dis, 5)
  6484. local hitted = false
  6485. coroutine.resume(coroutine.create(function()
  6486. dis.Touched:connect(function(hit)
  6487. if hitted == false and hit.Parent ~= char then
  6488. hitted = true
  6489. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  6490. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6491. --sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6492. --sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6493. coroutine.resume(coroutine.create(function()
  6494. for i = 0, 4 do
  6495. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6496. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6497. local at1 = Instance.new("Attachment",disr)
  6498. at1.Position = vt(-10,0,0)
  6499. local at2 = Instance.new("Attachment",disr)
  6500. at2.Position = vt(10,0,0)
  6501. local trl = Instance.new('Trail',disr)
  6502. trl.Attachment0 = at1
  6503. trl.FaceCamera = true
  6504. trl.Attachment1 = at2
  6505. trl.Texture = "rbxassetid://2342682798"
  6506. trl.LightEmission = 1
  6507. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6508. trl.Color = ColorSequence.new(disr.Color)
  6509. trl.Lifetime = 0.5
  6510. local bv = Instance.new("BodyVelocity")
  6511. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6512. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6513. bv.Parent = disr
  6514. local val = 0
  6515. coroutine.resume(coroutine.create(function()
  6516. swait(30)
  6517. for i = 0, 9 do
  6518. swait()
  6519. val = val + 0.1
  6520. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6521. end
  6522. game:GetService("Debris"):AddItem(disr, 3)
  6523. end))
  6524. end
  6525. local eff = Instance.new("ParticleEmitter",dis)
  6526. eff.Texture = "rbxassetid://2273224484"
  6527. eff.LightEmission = 1
  6528. eff.Color = ColorSequence.new(dis.Color)
  6529. eff.Rate = 500000
  6530. eff.Lifetime = NumberRange.new(0.5,2)
  6531. 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)})
  6532. 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)})
  6533. eff.Speed = NumberRange.new(20,250)
  6534. eff.Drag = 5
  6535. eff.Rotation = NumberRange.new(-500,500)
  6536. eff.VelocitySpread = 9000
  6537. eff.RotSpeed = NumberRange.new(-50,50)
  6538. wait(0.5)
  6539. eff.Enabled = false
  6540. end))
  6541. for i = 0, 4 do
  6542. --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"))
  6543. end
  6544. coroutine.resume(coroutine.create(function()
  6545. for i = 0, 19 do
  6546. swait()
  6547. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6548. end
  6549. hum.CameraOffset = vt(0,0,0)
  6550. end))
  6551. dis.Anchored = true
  6552. dis.Transparency = 1
  6553. wait(8)
  6554. dis:Destroy()
  6555. end
  6556. end)
  6557. end))
  6558. end))
  6559. end
  6560. end))
  6561. for i = 0,9,0.1 do
  6562. swait()
  6563. 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)
  6564. 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)
  6565. 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)
  6566. 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)
  6567. 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)
  6568. 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)
  6569. 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)
  6570. end
  6571. attack = false
  6572. hum.WalkSpeed = storehumanoidWS
  6573. end
  6574.  
  6575. function EquinoxOrbs()
  6576. hum.WalkSpeed = 0
  6577. attack = true
  6578. for i = 0,1,0.1 do
  6579. swait()
  6580. 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)
  6581. 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)
  6582. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6583. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6584. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6585. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6586. end
  6587. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6588. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6589. for i = 0, 24 do
  6590. --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"))
  6591. end
  6592. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6593. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6594. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6595. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6596. for i = 0,4,0.1 do
  6597. swait()
  6598. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6599. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6600. CreateMesh(dis,"Sphere",1,1,1)
  6601. dis.Anchored = true
  6602. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6603. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6604. CreateMesh(dis2,"Sphere",1,1,1)
  6605. dis2.Anchored = true
  6606. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6607. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6608. --sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6609. coroutine.resume(coroutine.create(function()
  6610. swait(60)
  6611. dis.Transparency = 1
  6612. dis2.Transparency = 1
  6613. coroutine.resume(coroutine.create(function()
  6614. for i = 0, 19 do
  6615. swait()
  6616. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6617. end
  6618. hum.CameraOffset = vt(0,0,0)
  6619. end))
  6620. coroutine.resume(coroutine.create(function()
  6621. local eff = Instance.new("ParticleEmitter",dis)
  6622. eff.Texture = "rbxassetid://2273224484"
  6623. eff.LightEmission = 1
  6624. eff.Color = ColorSequence.new(dis.Color)
  6625. eff.Rate = 500000
  6626. eff.Lifetime = NumberRange.new(0.5,2)
  6627. 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)})
  6628. 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)})
  6629. eff.Speed = NumberRange.new(50,450)
  6630. eff.Drag = 5
  6631. eff.Rotation = NumberRange.new(-500,500)
  6632. eff.VelocitySpread = 9000
  6633. eff.RotSpeed = NumberRange.new(-50,50)
  6634. local eff2 = eff:Clone()
  6635. eff2.Parent = dis2
  6636. eff2.LightEmission = 0
  6637. eff2.Color = ColorSequence.new(dis2.Color)
  6638. wait(0.25)
  6639. eff.Enabled = false
  6640. eff2.Enabled = false
  6641. end))
  6642. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6643. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6644. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6645. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6646. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6647. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6648. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6649. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6650. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6651. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6652. end))
  6653. game:GetService("Debris"):AddItem(dis, 5)
  6654. game:GetService("Debris"):AddItem(dis2, 5)
  6655. 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)
  6656. 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)
  6657. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6658. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6659. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6660. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6661. end
  6662. attack = false
  6663. hum.WalkSpeed = storehumanoidWS
  6664. end
  6665. function FallenDEMISE()
  6666. attack = true
  6667. hum.WalkSpeed = 0
  6668. local keptcolor = MAINRUINCOLOR
  6669. --bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6670. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6671. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6672. for i = 0, 15, 0.1 do
  6673. swait()
  6674. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6675. 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)))
  6676. local at1 = Instance.new("Attachment",dis)
  6677. at1.Position = vt(-25000,0,0)
  6678. local at2 = Instance.new("Attachment",dis)
  6679. at2.Position = vt(25000,0,0)
  6680. local trl = Instance.new('Trail',dis)
  6681. trl.Attachment0 = at1
  6682. trl.FaceCamera = true
  6683. trl.Attachment1 = at2
  6684. trl.Texture = "rbxassetid://1049219073"
  6685. trl.LightEmission = 1
  6686. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6687. trl.Color = ColorSequence.new(dis.Color)
  6688. trl.Lifetime = 5
  6689. local bv = Instance.new("BodyVelocity")
  6690. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6691. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6692. bv.Parent = dis
  6693. game:GetService("Debris"):AddItem(dis, 1)
  6694. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6695. --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"))
  6696. --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"))
  6697. 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)
  6698. 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)
  6699. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6700. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6701. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6702. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6703. end
  6704. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6705. for i = 0, 30, 0.1 do
  6706. swait()
  6707. coroutine.resume(coroutine.create(function()
  6708. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6709. if v:FindFirstChild('Head') then
  6710. dmg(v)
  6711. end
  6712. end
  6713. end))
  6714. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6715. 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)))
  6716. local at1 = Instance.new("Attachment",dis)
  6717. at1.Position = vt(-50000,0,0)
  6718. local at2 = Instance.new("Attachment",dis)
  6719. at2.Position = vt(50000,0,0)
  6720. local trl = Instance.new('Trail',dis)
  6721. trl.Attachment0 = at1
  6722. trl.FaceCamera = true
  6723. trl.Attachment1 = at2
  6724. trl.Texture = "rbxassetid://1049219073"
  6725. trl.LightEmission = 1
  6726. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6727. trl.Color = ColorSequence.new(dis.Color)
  6728. trl.Lifetime = 10
  6729. local bv = Instance.new("BodyVelocity")
  6730. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6731. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6732. bv.Parent = dis
  6733. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6734. --sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6735. --sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6736. --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"))
  6737. --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"))
  6738. --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"))
  6739. --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"))
  6740. for i = 0, 2 do
  6741. --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)
  6742. end
  6743. 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)
  6744. 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)
  6745. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6746. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6747. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6748. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6749. end
  6750. attack = false
  6751. hum.WalkSpeed = storehumanoidWS
  6752. end
  6753. -------------------------------------
  6754.  
  6755. Humanoid.Animator.Parent = nil
  6756.  
  6757. -------------------------------------
  6758.  
  6759. local attacktype = 1
  6760. mouse.Button1Down:connect(function()
  6761. if attack == false and attacktype == 1 then
  6762. attacktype = 2
  6763. attackone()
  6764. elseif attack == false and attacktype == 2 then
  6765. attacktype = 3
  6766. attacktwo()
  6767. elseif attack == false and attacktype == 3 then
  6768. attacktype = 1
  6769. attackthree()
  6770. elseif attack == false and attacktype == 4 then
  6771. attacktype = 1
  6772. --attackfour()
  6773. end
  6774. end)
  6775. mouse.KeyDown:connect(function(k)
  6776. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  6777. --normalmog() ---Disabled due to crashing... only in VSB
  6778. ModeOfGlitch = 1
  6779. storehumanoidWS = 16
  6780. hum.WalkSpeed = 16
  6781. rainbowmode = false
  6782. chaosmode = false
  6783. newTheme("rbxassetid://1537276744",0,1.02,1.25)
  6784. RecolorTextAndRename("STAR",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  6785. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6786. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  6787. end
  6788. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  6789. ModeOfGlitch = 2
  6790. storehumanoidWS = 16
  6791. hum.WalkSpeed = 16
  6792. rainbowmode = false
  6793. chaosmode = false
  6794. RecolorTextAndRename("COLORBLIND_STAR",Color3.new(0,0,0),Color3.new(0,0,0),"Code")
  6795. newTheme("rbxassetid://790661474",0,1,1)
  6796. MAINRUINCOLOR = BrickColor.new("Really black")
  6797. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6798. end
  6799. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  6800. ModeOfGlitch = 3
  6801. storehumanoidWS = 16
  6802. hum.WalkSpeed = 16
  6803. rainbowmode = false
  6804. chaosmode = false
  6805. RecolorTextAndRename("CONTROLLED_STAR",Color3.new(0,0,0),Color3.new(0,0,0.4),"Antique")
  6806. newTheme("rbxassetid://2074863720", 0,0.8,1.5)
  6807. MAINRUINCOLOR = BrickColor.new("Dark red")
  6808. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6809. end
  6810. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  6811. ModeOfGlitch = 4
  6812. storehumanoidWS = 16
  6813. hum.WalkSpeed = 16
  6814. rainbowmode = false
  6815. chaosmode = true
  6816. RecolorTextAndRename("InSaNe StAr",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  6817. newTheme("rbxassetid://623662713",0,1,1)
  6818. MAINRUINCOLOR = BrickColor.new("Black")
  6819. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6820. end
  6821. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  6822. ModeOfGlitch = 5
  6823. storehumanoidWS = 100
  6824. hum.WalkSpeed = 100
  6825. rainbowmode = false
  6826. chaosmode = false
  6827. RecolorTextAndRename("undone star",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  6828. newTheme("rbxassetid://595800581",0,1,1)
  6829. MAINRUINCOLOR = BrickColor.new("Really yellow")
  6830. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6831. end
  6832. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  6833. ModeOfGlitch = 6
  6834. storehumanoidWS = 100
  6835. hum.WalkSpeed = 100
  6836. rainbowmode = false
  6837. chaosmode = false
  6838. RecolorTextAndRename("STAR'S SOLITUDE",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  6839. newTheme("rbxassetid://1564523997",0,1,1)
  6840. MAINRUINCOLOR = BrickColor.new("Really black")
  6841. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6842. end
  6843. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  6844. ModeOfGlitch = 8
  6845. storehumanoidWS = 140
  6846. hum.WalkSpeed = 140
  6847. rainbowmode = false
  6848. chaosmode = false
  6849. RecolorTextAndRename("STAR'S DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  6850. newTheme("rbxassetid://1495032271",0,1.01,1.25)
  6851. MAINRUINCOLOR = BrickColor.new("Alder")
  6852. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6853. end
  6854. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  6855. ModeOfGlitch = 9
  6856. storehumanoidWS = 150
  6857. hum.WalkSpeed = 150
  6858. rainbowmode = false
  6859. chaosmode = false
  6860. RecolorTextAndRename("CORRUPTED_STAR",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  6861. newTheme("rbxassetid://641812804",0,0.8,1.5)
  6862. MAINRUINCOLOR = BrickColor.new("Dark red")
  6863. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark Red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6864. end
  6865. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  6866. ModeOfGlitch = 8889
  6867. storehumanoidWS = 180
  6868. hum.WalkSpeed = 180
  6869. rainbowmode = false
  6870. chaosmode = false
  6871. RecolorTextAndRename("STAR'S CALAMITY",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  6872. newTheme("rbxassetid://1359036559",0,1.01,1.25)
  6873. MAINRUINCOLOR = BrickColor.new("Lilac")
  6874. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6875. end
  6876. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  6877. ModeOfGlitch = 55469696922
  6878. storehumanoidWS = 275
  6879. hum.WalkSpeed = 275
  6880. rainbowmode = false
  6881. chaosmode = false
  6882. RecolorTextAndRename("Friendly star",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  6883. newTheme("rbxassetid://1844782079",0,1.005,1.25)
  6884. MAINRUINCOLOR = BrickColor.new("Navy blue")
  6885. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6886. end
  6887. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  6888. ModeOfGlitch = 4367677813
  6889. storehumanoidWS = 225
  6890. hum.WalkSpeed = 225
  6891. rainbowmode = false
  6892. chaosmode = false
  6893. RecolorTextAndRename("Star's light",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  6894. newTheme("rbxassetid://363284685",0,1.01,1.25)
  6895. MAINRUINCOLOR = BrickColor.new("Baby blue")
  6896. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6897. end
  6898. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  6899. ModeOfGlitch = 9999999921111
  6900. storehumanoidWS = 16
  6901. hum.WalkSpeed = 16
  6902. rainbowmode = false
  6903. chaosmode = false
  6904. RecolorTextAndRename("STAR'S LOST LIGHT",BrickColor.new("Really black").Color,BrickColor.new("Really black").Color,"SciFi")
  6905. newTheme("rbxassetid://1346743822",0,1,1)
  6906. MAINRUINCOLOR = BrickColor.new("Really black")
  6907. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6908. end
  6909. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  6910.  
  6911. ModeOfGlitch = 999999999556
  6912. storehumanoidWS = 250
  6913. hum.WalkSpeed = 250
  6914. rainbowmode = false
  6915. chaosmode = false
  6916. RecolorTextAndRename("STAR'S DETERMANATION",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  6917. newTheme("rbxassetid://453388540",0,1.02,1.25)
  6918. MAINRUINCOLOR = BrickColor.new("Really red")
  6919. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6920. end
  6921. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  6922. ModeOfGlitch = 1264532489
  6923. storehumanoidWS = 250
  6924. hum.WalkSpeed = 250
  6925. rainbowmode = false
  6926. chaosmode = false
  6927. RecolorTextAndRename("STAR'S CORRUPTED CATASTROPHE",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  6928. newTheme("rbxassetid://1504604335",0,0.8,1.5)
  6929. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6930. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6931. end
  6932. if k == "l" and mutedtog == false then
  6933. mutedtog = true
  6934. kan.Volume = 0
  6935. elseif k == "l" and mutedtog == true then
  6936. mutedtog = false
  6937. kan.Volume = 1.25
  6938. end
  6939. if k == "p" and toggleTag == false then
  6940. toggleTag = true
  6941. modet.TextTransparency = 0
  6942. modet.TextStrokeTransparency = 0
  6943. elseif k == "p" and toggleTag == true then
  6944. toggleTag = false
  6945. modet.TextTransparency = 1
  6946. modet.TextStrokeTransparency = 1
  6947. end
  6948. if k == "z" and attack == false and ModeOfGlitch == 1 then
  6949. ExtinctiveHeartbreak()
  6950. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  6951. HeavenlyDisk()
  6952. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  6953. GleamingBeam()
  6954. elseif k == "x" and attack == false and ModeOfGlitch == 999999999556 then
  6955. BeamOfDeath()
  6956. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  6957. Beams()
  6958. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  6959. CorruptionEvent()
  6960. elseif k == "z" and attack == false and ModeOfGlitch == 9999999921111 then
  6961. CorruptionEvent()
  6962. elseif k == "c" and attack == false and ModeOfGlitch == 4 then
  6963. ChaosGroundStrike()
  6964. elseif k == "z" and attack == false and ModeOfGlitch == 9999999921111 then
  6965. ChaosGroundStrike()
  6966. elseif k == "v" and attack == false and ModeOfGlitch == 4 then
  6967. ChaosBegone()
  6968. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  6969. ChaosBegone()
  6970. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  6971. CorruptionEvent()
  6972. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  6973. Starfall()
  6974. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  6975. Judgement()
  6976. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  6977. RapidBurst()
  6978. elseif k == "z" and attack == false and ModeOfGlitch == 55469696922 then
  6979. hugg()
  6980. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  6981. EquinoxOrbs()
  6982. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  6983. FallenOrbs()
  6984. end
  6985. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  6986. FallenDEMISE()
  6987. end
  6988. if k == "x" and attack == false and ModeOfGlitch == 1 then
  6989. EndGROUND()
  6990. end
  6991. end)
  6992.  
  6993. --[[coroutine.resume(coroutine.create(function()
  6994. while true do
  6995. swait(2)
  6996. if chaosmode == true then
  6997. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  6998. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  6999. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7000. RecolorTextAndRename("InSaNe StAr",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  7001. for i, v in pairs(mw1:GetChildren()) do
  7002. if v:IsA("Part") then
  7003. v.Transparency = 0.75
  7004. v.BrickColor = BrickColor.random()
  7005. v.Material = "Neon"
  7006. end
  7007. end
  7008. for i, v in pairs(m2:GetChildren()) do
  7009. if v:IsA("Part") then
  7010. v.BrickColor = BrickColor.random()
  7011. v.Material = "Neon"
  7012. end
  7013. end
  7014. end
  7015. end
  7016. end))]]--
  7017. Humanoid.Name = "STARGLITCHER"
  7018. Humanoid.MaxHealth = math.huge
  7019. Humanoid.Health = math.huge
  7020. Instance.new("ForceField",char).Visible = false
  7021.  
  7022. local bguis = Instance.new("BillboardGui",tors)
  7023. bguis.Size = UDim2.new(25, 0, 25, 0)
  7024. local imgca = Instance.new("ImageLabel",bguis)
  7025. imgca.BackgroundTransparency = 1
  7026. imgca.ImageTransparency = 1
  7027. imgca.Size = UDim2.new(1,0,1,0)
  7028. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  7029. imgca.ImageColor3 = Color3.new(0,0,0)
  7030.  
  7031. idleanim=.4
  7032. while true do
  7033. if mutedtog == false then
  7034. kan.Volume = currentVol
  7035. elseif mutedtog == true then
  7036. kan.Volume = 0
  7037. end
  7038. kan.PlaybackSpeed = currentPitch
  7039. kan.Pitch = currentPitch
  7040. kan.SoundId = currentThemePlaying
  7041. kan.Looped = true
  7042. kan.Parent = char
  7043. kan:Resume()
  7044. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  7045. imgca.ImageTransparency = 1
  7046. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  7047. imgca.ImageColor3 = MAINRUINCOLOR.Color
  7048. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  7049. end
  7050. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  7051. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  7052. coroutine.resume(coroutine.create(function()
  7053. if chaosmode == true then
  7054. for i, v in pairs(mw1:GetChildren()) do
  7055. if v:IsA("Part") then
  7056. v.Transparency = 0
  7057. v.BrickColor = BrickColor.random()
  7058. v.Material = "Neon"
  7059. end
  7060. end
  7061. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7062. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7063. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7064. RecolorTextAndRename("InSaNe StAr",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  7065. end
  7066. end))
  7067. if chaosmode == false then
  7068. modet.Position = UDim2.new(0,0,0,0)
  7069. modet.Rotation = -5 * math.cos(sine / 32)
  7070. techc.Rotation = techc.Rotation + 1
  7071. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  7072. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  7073. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  7074. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  7075. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  7076. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  7077. else
  7078. techc.Rotation = techc.Rotation + 1
  7079. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  7080. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  7081. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  7082. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  7083. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  7084. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  7085. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  7086. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  7087. end
  7088. CameraManager()
  7089. swait()
  7090. lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3)
  7091. lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3)
  7092. lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3)
  7093. 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)
  7094. 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)
  7095. 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)
  7096. 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)
  7097. 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)
  7098. 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)
  7099. 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)
  7100. 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)
  7101. 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)
  7102. sine = sine + change
  7103. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  7104. local velderp=RootPart.Velocity.y
  7105. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  7106. if equipped==true or equipped==false then
  7107. if attack==false then
  7108. idle=idle+1
  7109. else
  7110. idle=0
  7111. end
  7112. if idle>=500 then
  7113. if attack==false then
  7114. --Sheath()
  7115. end
  7116. end
  7117. if RootPart.Velocity.y > 1 and hitfloor==nil then
  7118. Anim="Jump"
  7119. if attack==false then
  7120. 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)
  7121. 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)
  7122. 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)
  7123. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  7124. 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)
  7125. 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)
  7126. end
  7127. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  7128. Anim="Fall"
  7129. if attack==false then
  7130. 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)
  7131. 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)
  7132. 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)
  7133. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  7134. 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)
  7135. 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)
  7136. end
  7137. elseif torvel<1 and hitfloor~=nil then
  7138. Anim="Idle"
  7139. if attack==false then
  7140. if ModeOfGlitch == 1 then
  7141. local snap = math.random(1,10)
  7142. if snap == 1 then
  7143. 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)
  7144. end
  7145. 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)
  7146. 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)
  7147. 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)
  7148. 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)
  7149. 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)
  7150. 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)
  7151. elseif ModeOfGlitch == 2 then
  7152. 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)
  7153. 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)
  7154. 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)
  7155. 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)
  7156. 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)
  7157. 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)
  7158. elseif ModeOfGlitch == 3 then
  7159. local snap = math.random(1,32)
  7160. if snap == 1 then
  7161. 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)
  7162. end
  7163. 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)
  7164. 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)
  7165. 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)
  7166. 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)
  7167. 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)
  7168. 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)
  7169. elseif ModeOfGlitch == 4 then
  7170. local snap = math.random(1,5)
  7171. if snap == 1 then
  7172. 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)
  7173. 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)
  7174. 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)
  7175. end
  7176. 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)
  7177. 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)
  7178. 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)
  7179. 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)
  7180. 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)
  7181. 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)
  7182. elseif ModeOfGlitch == 5 then
  7183. 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)
  7184. 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)
  7185. 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)
  7186. 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)
  7187. 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)
  7188. 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)
  7189. elseif ModeOfGlitch == 6 then
  7190. 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)
  7191. 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)
  7192. 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)
  7193. 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)
  7194. 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)
  7195. 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)
  7196. elseif ModeOfGlitch == 8 then
  7197. 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)
  7198. 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)
  7199. 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)
  7200. 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)
  7201. 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)
  7202. 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)
  7203. elseif ModeOfGlitch == 9 then
  7204. 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)
  7205. 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)
  7206. 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)
  7207. 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)
  7208. 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)
  7209. 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)
  7210. elseif ModeOfGlitch == 8889 then
  7211. 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)
  7212. 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)
  7213. 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)
  7214. 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)
  7215. 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)
  7216. 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)
  7217. elseif ModeOfGlitch == 1264532489 then
  7218. 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)
  7219. 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)
  7220. 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)
  7221. 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)
  7222. 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)
  7223. 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)
  7224. elseif ModeOfGlitch == 9999999921111 then
  7225. 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)
  7226. 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)
  7227. 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)
  7228. 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)
  7229. 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)
  7230. 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)
  7231. elseif ModeOfGlitch == 4367677813 then
  7232. 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)
  7233. 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)
  7234. 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)
  7235. 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)
  7236. 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)
  7237. 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)
  7238. elseif ModeOfGlitch == 55469696922 then
  7239. 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)
  7240. 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)
  7241. 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)
  7242. 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)
  7243. 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)
  7244. 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)
  7245. elseif ModeOfGlitch == 999999999556 then
  7246. 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)
  7247. 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)
  7248. 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)
  7249. 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)
  7250. 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)
  7251. 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)
  7252. end
  7253. end
  7254. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  7255. Anim="Walk"
  7256. if attack==false then
  7257. 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)
  7258. 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)
  7259. 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)
  7260. 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)
  7261. 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)
  7262. 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)
  7263. end
  7264. elseif torvel>=22 and hitfloor~=nil then
  7265. Anim="Run"
  7266. if attack==false then
  7267. 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
  7268. 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)
  7269. 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)
  7270. 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)
  7271. 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)
  7272. 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)
  7273. 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)
  7274. if ModeOfGlitch == 9 then
  7275. --
  7276. end
  7277. elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  7278. 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)
  7279. 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)
  7280. 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)
  7281. 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)
  7282. 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)
  7283. 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)
  7284. end
  7285. end
  7286. end
  7287. end
  7288. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement