Advertisement
AOM-GU-PRO

SSV

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