Advertisement
Upscalefanatic3

[FE] Velnorum Script (Voidacity)

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