Advertisement
DarkScriptZEditors

Sincere Glitcher Fixed v2

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