Advertisement
5sdfsadgaq5465

sgr editv9

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