Advertisement
Insanity_Mark

SGREDIT

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