Azpect

Untitled

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