Advertisement
doryna2281337

Untitled

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