Advertisement
Fullgamer309

Untitled

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