Advertisement
Fullgamer309

Untitled

Jun 23rd, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 325.28 KB | None | 0 0
  1. local Player = game.Players.jh0nd0eone
  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. local Mouse,mouse,UserInputService,ContextActionService
  11. do
  12. local GUID = {}
  13. do
  14. GUID.IDs = {};
  15. function GUID:new(len)
  16. local id;
  17. if(not len)then
  18. id = (tostring(function() end))
  19. id = id:gsub("function: ","")
  20. else
  21. local function genID(len)
  22. local newID = ""
  23. for i = 1,len do
  24. newID = newID..string.char(math.random(48,90))
  25. end
  26. return newID
  27. end
  28. repeat id = genID(len) until not GUID.IDs[id]
  29. local oid = id;
  30. id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
  31. GUID.IDs[oid]=true;
  32. end
  33. return id
  34. end
  35. end
  36.  
  37. local AHB = Instance.new("BindableEvent")
  38.  
  39. local FPS = 30
  40.  
  41. local TimeFrame = 0
  42.  
  43. local LastFrame = tick()
  44. local Frame = 1/FPS
  45.  
  46. game:service'RunService'.Heartbeat:connect(function(s,p)
  47. TimeFrame = TimeFrame + s
  48. if(TimeFrame >= Frame)then
  49. for i = 1,math.floor(TimeFrame/Frame) do
  50. AHB:Fire()
  51. end
  52. LastFrame=tick()
  53. TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
  54. end
  55. end)
  56.  
  57.  
  58. function swait(dur)
  59. if(dur == 0 or typeof(dur) ~= 'number')then
  60. AHB.Event:wait()
  61. else
  62. for i = 1, dur*FPS do
  63. AHB.Event:wait()
  64. end
  65. end
  66. end
  67.  
  68. local loudnesses={}
  69. local CoAS = {Actions={}}
  70. local Event = Instance.new("RemoteEvent")
  71. Event.Name = "UserInputEvent"
  72. Event.Parent = Player.Character
  73. local Func = Instance.new("RemoteFunction")
  74. Func.Name = "GetClientProperty"
  75. Func.Parent = Player.Character
  76. local fakeEvent = function()
  77. local t = {_fakeEvent=true,Waited={}}
  78. t.Connect = function(self,f)
  79. local ft={Disconnected=false;disconnect=function(s) s.Disconnected=true end}
  80. ft.Disconnect=ft.disconnect
  81.  
  82. ft.Func=function(...)
  83. for id,_ in next, t.Waited do
  84. t.Waited[id] = true
  85. end
  86. return f(...)
  87. end;
  88. self.Function=ft;
  89. return ft;
  90. end
  91. t.connect = t.Connect
  92. t.Wait = function()
  93. local guid = GUID:new(25)
  94. local waitingId = guid:Get()
  95. t.Waited[waitingId]=false
  96. repeat swait() until t.Waited[waitingId]==true
  97. t.Waited[waitingId]=nil;
  98. guid:Trash()
  99. end
  100. t.wait = t.Wait
  101. return t
  102. end
  103. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  104. local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  105.  
  106. function CoAS:BindAction(name,fun,touch,...)
  107. CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  108. end
  109. function CoAS:UnbindAction(name)
  110. CoAS.Actions[name] = nil
  111. end
  112. local function te(self,ev,...)
  113. local t = self[ev]
  114. if t and t._fakeEvent and t.Function and t.Function.Func and not t.Function.Disconnected then
  115. t.Function.Func(...)
  116. elseif t and t._fakeEvent and t.Function and t.Function.Func and t.Function.Disconnected then
  117. self[ev].Function=nil
  118. end
  119. end
  120. m.TrigEvent = te
  121. UsIS.TrigEvent = te
  122. Event.OnServerEvent:Connect(function(plr,io)
  123. if plr~=Player then return end
  124. if io.Mouse then
  125. m.Target = io.Target
  126. m.Hit = io.Hit
  127. elseif io.KeyEvent then
  128. print('Key'..io.KeyEvent,io.Key)
  129. m:TrigEvent('Key'..io.KeyEvent,io.Key)
  130. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  131. if io.UserInputState == Enum.UserInputState.Begin then
  132. print'down'
  133. m:TrigEvent("Button1Down")
  134. else
  135. print'up'
  136. m:TrigEvent("Button1Up")
  137. end
  138. end
  139. if(not io.KeyEvent and not io.Mouse)then
  140. for n,t in pairs(CoAS.Actions) do
  141. for _,k in pairs(t.Keys) do
  142. if k==io.KeyCode then
  143. t.Function(t.Name,io.UserInputState,io)
  144. end
  145. end
  146. end
  147. if io.UserInputState == Enum.UserInputState.Begin then
  148. UsIS:TrigEvent("InputBegan",io,false)
  149. else
  150. UsIS:TrigEvent("InputEnded",io,false)
  151. end
  152. end
  153. end)
  154.  
  155. Func.OnServerInvoke = function(plr,inst,play)
  156. if plr~=Player then return end
  157. if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then
  158. loudnesses[inst]=play
  159. end
  160. end
  161.  
  162. function GetClientProperty(inst,prop)
  163. if(prop == 'PlaybackLoudness' and loudnesses[inst])then
  164. return loudnesses[inst]
  165. elseif(prop == 'PlaybackLoudness')then
  166. return Func:InvokeClient(Player,'RegSound',inst)
  167. end
  168. return Func:InvokeClient(Player,inst,prop)
  169. end
  170. Mouse, mouse, UserInputService, ContextActionService = m, m, UsIS, CoAS
  171. end
  172.  
  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. swait()
  333. intensity = intensity - 0.05*Intensity/Length
  334. rotM = rotM - 0.0005*Intensity/Length
  335. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  336. 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)
  337. end
  338. Humanoid.CameraOffset = Vec3(0, 0, 0)
  339. end))
  340. end
  341. CamShake=function(Part,Distan,Power,Times)
  342. local de=Part.Position
  343. for i,v in pairs(workspace:children()) do
  344. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  345. for _,c in pairs(v:children()) do
  346. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  347. local Noob=v.Humanoid
  348. if Noob~=nil then
  349. coroutine.resume(coroutine.create(function()
  350. FV = Instance.new("BoolValue", Noob)
  351. FV.Name = "CameraShake"
  352. for ShakeNum=1,Times do
  353. swait()
  354. local ef=Power
  355. if ef>=1 then
  356. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  357. else
  358. ef=Power*10
  359. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  360. end
  361. end
  362. Humanoid.CameraOffset = Vector3.new(0,0,0)
  363. FV:Destroy()
  364. end))
  365. CameraShake(Times, Power, Noob)
  366. end
  367. end
  368. end
  369. end
  370. end
  371. end
  372.  
  373. local toggleTag = true
  374. local bilguit = Instance.new("BillboardGui", hed)
  375. bilguit.Adornee = nil
  376. bilguit.Name = "ModeName"
  377. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  378. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  379. local modet = Instance.new("TextLabel", bilguit)
  380. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  381. modet.FontSize = "Size8"
  382. modet.TextScaled = true
  383. modet.TextTransparency = 0
  384. modet.BackgroundTransparency = 1
  385. modet.TextTransparency = 0
  386. modet.TextStrokeTransparency = 0
  387. modet.Font = "Antique"
  388. modet.TextStrokeColor3 = Color3.new(1,0,0)
  389. modet.TextColor3 = Color3.new(0.25,0,0)
  390. modet.Text = "STAR"
  391.  
  392.  
  393. function chatfunc(text,color,typet,font,timeex)
  394. local chat = coroutine.wrap(function()
  395. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  396. Character:FindFirstChild("TalkingBillBoard"):destroy()
  397. end
  398. local naeeym2 = Instance.new("BillboardGui",Character)
  399. naeeym2.Size = UDim2.new(0,100,0,40)
  400. naeeym2.StudsOffset = Vector3.new(0,3,0)
  401. naeeym2.Adornee = Character.Head
  402. naeeym2.Name = "TalkingBillBoard"
  403. local tecks2 = Instance.new("TextLabel",naeeym2)
  404. tecks2.BackgroundTransparency = 1
  405. tecks2.BorderSizePixel = 0
  406. tecks2.Text = ""
  407. tecks2.Font = font
  408. tecks2.TextSize = 30
  409. tecks2.TextStrokeTransparency = 0
  410. tecks2.TextColor3 = color
  411. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  412. tecks2.Size = UDim2.new(1,0,0.5,0)
  413. local tecks3 = Instance.new("TextLabel",naeeym2)
  414. tecks3.BackgroundTransparency = 1
  415. tecks3.BorderSizePixel = 0
  416. tecks3.Text = ""
  417. tecks3.Font = font
  418. tecks3.TextSize = 30
  419. tecks3.TextStrokeTransparency = 0
  420. if typet == "Inverted" then
  421. tecks3.TextColor3 = Color3.new(0,0,0)
  422. tecks3.TextStrokeColor3 = color
  423. elseif typet == "Normal" then
  424. tecks3.TextColor3 = color
  425. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  426. end
  427. tecks3.Size = UDim2.new(1,0,0.5,0)
  428. coroutine.resume(coroutine.create(function()
  429. while true do
  430. swait(1)
  431. if chaosmode == true then
  432. tecks2.TextColor3 = BrickColor.random().Color
  433. tecks3.TextStrokeColor3 = BrickColor.random().Color
  434. end
  435. end
  436. end))
  437. modet.TextTransparency = modet.TextTransparency + 1
  438. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  439. for i = 0, 74*timeex do
  440. swait()
  441. modet.TextTransparency = 1
  442. modet.TextStrokeTransparency = 1
  443. tecks2.Text = text
  444. tecks3.Text = text
  445. end
  446. local randomrot = math.random(1,2)
  447. if randomrot == 1 then
  448. for i = 1, 50 do
  449. swait()
  450. tecks2.Text = text
  451. tecks3.Text = text
  452. modet.TextTransparency = modet.TextTransparency - .02
  453. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  454. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  455. tecks2.TextTransparency = tecks2.TextTransparency + .04
  456. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  457. tecks3.TextTransparency = tecks2.TextTransparency + .04
  458. end
  459. elseif randomrot == 2 then
  460. for i = 1, 50 do
  461. swait()
  462. tecks2.Text = text
  463. tecks3.Text = text
  464. modet.TextTransparency = modet.TextTransparency - .02
  465. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  466. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  467. tecks2.TextTransparency = tecks2.TextTransparency + .04
  468. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  469. tecks3.TextTransparency = tecks2.TextTransparency + .04
  470. end
  471. end
  472. modet.TextTransparency = 0
  473. modet.TextStrokeTransparency = 0
  474. if toggleTag == false then
  475. modet.TextTransparency = 1
  476. modet.TextStrokeTransparency = 1
  477. end
  478. naeeym2:Destroy()
  479. end)
  480. chat()
  481. end
  482.  
  483. function bosschatfunc(text,color,watval)
  484. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  485. coroutine.resume(coroutine.create(function()
  486. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  487. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  488. end
  489. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  490. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  491. scrg.Name = "Dialog"
  492. local txtlb = Instance.new("TextLabel",scrg)
  493. txtlb.Text = ""
  494. txtlb.Font = "Bodoni"
  495. txtlb.TextColor3 = Color3.new(0,0,0)
  496. txtlb.TextStrokeTransparency = 0
  497. txtlb.BackgroundTransparency = 0.75
  498. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  499. txtlb.TextStrokeColor3 = color
  500. txtlb.TextScaled = true
  501. txtlb.Size = UDim2.new(1,0,0.25,0)
  502. txtlb.TextXAlignment = "Left"
  503. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  504. local txtlb2 = Instance.new("TextLabel",scrg)
  505. txtlb2.Text = "Star:"
  506. txtlb2.Font = "Arcade"
  507. txtlb2.TextColor3 = Color3.new(0,0,0)
  508. txtlb2.TextStrokeTransparency = 0
  509. txtlb2.BackgroundTransparency = 1
  510. txtlb2.TextStrokeColor3 = color
  511. txtlb2.TextSize = 40
  512. txtlb2.Size = UDim2.new(1,0,0.25,0)
  513. txtlb2.TextXAlignment = "Left"
  514. txtlb2.Position = UDim2.new(0,0,1,0)
  515. local fvalen = 0.55
  516. local fval = -0.49
  517. coroutine.resume(coroutine.create(function()
  518. while true do
  519. swait()
  520. if chaosmode == true then
  521. txtlb.Rotation = math.random(-1,1)
  522. txtlb2.Rotation = math.random(-1,1)
  523. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  524. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  525. txtlb.TextStrokeColor3 = BrickColor.random().Color
  526. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  527. end
  528. end
  529. end))
  530. coroutine.resume(coroutine.create(function()
  531. while true do
  532. swait()
  533. if scrg.Parent ~= nil then
  534. fvalen = fvalen - 0.0001
  535. elseif scrg.Parent == nil then
  536. break
  537. end
  538. end
  539. end))
  540. local flol = 1.75
  541. local flil = 1.6
  542. coroutine.resume(coroutine.create(function()
  543. for i = 0, 9 do
  544. swait()
  545. fval = fval + 0.05
  546. flol = flol - 0.1
  547. flil = flil - 0.1
  548. txtlb.Text = ""
  549. txtlb.Position = UDim2.new(0,0,flol,0)
  550. txtlb2.Position = UDim2.new(0,0,flil,0)
  551. end
  552. txtlb.Text = text
  553. wait(watval)
  554. local valinc = 0
  555. for i = 0, 99 do
  556. swait()
  557. valinc = valinc + 0.0001
  558. flol = flol + valinc
  559. flil = flil + valinc
  560. txtlb.Rotation = txtlb.Rotation + valinc*20
  561. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  562. txtlb.Position = UDim2.new(0,0,flol,0)
  563. txtlb2.Position = UDim2.new(0,0,flil,0)
  564. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  565. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  566. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  567. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  568. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  569. end
  570. scrg:Destroy()
  571. end))
  572. end))
  573. end
  574. end
  575.  
  576.  
  577. local Create = LoadLibrary("RbxUtility").Create
  578.  
  579. CFuncs = {
  580. ["Part"] = {
  581. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  582. local Part = Create("Part"){
  583. Parent = Parent,
  584. Reflectance = Reflectance,
  585. Transparency = Transparency,
  586. CanCollide = false,
  587. Locked = true,
  588. BrickColor = BrickColor.new(tostring(BColor)),
  589. Name = Name,
  590. Size = Size,
  591. Material = Material,
  592. }
  593. RemoveOutlines(Part)
  594. return Part
  595. end;
  596. };
  597.  
  598. ["Mesh"] = {
  599. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  600. local Msh = Create(Mesh){
  601. Parent = Part,
  602. Offset = OffSet,
  603. Scale = Scale,
  604. }
  605. if Mesh == "SpecialMesh" then
  606. Msh.MeshType = MeshType
  607. Msh.MeshId = MeshId
  608. end
  609. return Msh
  610. end;
  611. };
  612.  
  613. ["Mesh"] = {
  614. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  615. local Msh = Create(Mesh){
  616. Parent = Part,
  617. Offset = OffSet,
  618. Scale = Scale,
  619. }
  620. if Mesh == "SpecialMesh" then
  621. Msh.MeshType = MeshType
  622. Msh.MeshId = MeshId
  623. end
  624. return Msh
  625. end;
  626. };
  627.  
  628. ["Weld"] = {
  629. Create = function(Parent, Part0, Part1, C0, C1)
  630. local Weld = Create("Weld"){
  631. Parent = Parent,
  632. Part0 = Part0,
  633. Part1 = Part1,
  634. C0 = C0,
  635. C1 = C1,
  636. }
  637. return Weld
  638. end;
  639. };
  640.  
  641. ["Sound"] = {
  642. Create = function(id, par, vol, pit)
  643. coroutine.resume(coroutine.create(function()
  644. local S = Create("Sound"){
  645. Volume = vol,
  646. Name = "EffectSoundo",
  647. Pitch = pit or 1,
  648. SoundId = id,
  649. Parent = par or workspace,
  650. }
  651. wait()
  652. S:play()
  653. game:GetService("Debris"):AddItem(S, 10)
  654. end))
  655. end;
  656. };
  657.  
  658. ["TimeSound"] = {
  659. Create = function(id, par, vol, pit, timepos)
  660. coroutine.resume(coroutine.create(function()
  661. local S = Create("Sound"){
  662. Volume = vol,
  663. Name = "EffectSoundo",
  664. Pitch = pit or 1,
  665. SoundId = id,
  666. TimePosition = timepos,
  667. Parent = par or workspace,
  668. }
  669. wait()
  670. S:play()
  671. game:GetService("Debris"):AddItem(S, 10)
  672. end))
  673. end;
  674. };
  675. ["EchoSound"] = {
  676. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  677. coroutine.resume(coroutine.create(function()
  678. local Sas = Create("Sound"){
  679. Volume = vol,
  680. Name = "EffectSoundo",
  681. Pitch = pit or 1,
  682. SoundId = id,
  683. TimePosition = timepos,
  684. Parent = par or workspace,
  685. }
  686. local E = Create("EchoSoundEffect"){
  687. Delay = echodelay,
  688. Name = "Echo",
  689. Feedback = fedb,
  690. DryLevel = dryl,
  691. Parent = Sas,
  692. }
  693. wait()
  694. Sas:play()
  695. game:GetService("Debris"):AddItem(Sas, delays)
  696. end))
  697. end;
  698. };
  699.  
  700. ["LongSound"] = {
  701. Create = function(id, par, vol, pit)
  702. coroutine.resume(coroutine.create(function()
  703. local S = Create("Sound"){
  704. Volume = vol,
  705. Pitch = pit or 1,
  706. SoundId = id,
  707. Parent = par or workspace,
  708. }
  709. wait()
  710. S:play()
  711. game:GetService("Debris"):AddItem(S, 60)
  712. end))
  713. end;
  714. };
  715.  
  716. ["ParticleEmitter"] = {
  717. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  718. local fp = Create("ParticleEmitter"){
  719. Parent = Parent,
  720. Color = ColorSequence.new(Color1, Color2),
  721. LightEmission = LightEmission,
  722. Size = Size,
  723. Texture = Texture,
  724. Transparency = Transparency,
  725. ZOffset = ZOffset,
  726. Acceleration = Accel,
  727. Drag = Drag,
  728. LockedToPart = LockedToPart,
  729. VelocityInheritance = VelocityInheritance,
  730. EmissionDirection = EmissionDirection,
  731. Enabled = Enabled,
  732. Lifetime = LifeTime,
  733. Rate = Rate,
  734. Rotation = Rotation,
  735. RotSpeed = RotSpeed,
  736. Speed = Speed,
  737. VelocitySpread = VelocitySpread,
  738. }
  739. return fp
  740. end;
  741. };
  742.  
  743. CreateTemplate = {
  744.  
  745. };
  746. }
  747.  
  748.  
  749.  
  750. New = function(Object, Parent, Name, Data)
  751. local Object = Instance.new(Object)
  752. for Index, Value in pairs(Data or {}) do
  753. Object[Index] = Value
  754. end
  755. Object.Parent = Parent
  756. Object.Name = Name
  757. return Object
  758. end
  759. local halocolor = BrickColor.new("Pastel light blue")
  760. local halocolor2 = BrickColor.new("Cool yellow")
  761. local starcolor = BrickColor.new("Bright yellow")
  762. local lunacolor = BrickColor.new("Navy blue")
  763. local lunacolor2 = BrickColor.new("Bright blue")
  764. local wepcolor = BrickColor.new("Really black")
  765. local maincolor = BrickColor.new("Really black")
  766. local m = Instance.new("Model",char)
  767. local m2 = Instance.new("Model",char)
  768. local m3 = Instance.new("Model",char)
  769. local mw1 = Instance.new("Model",char)
  770. local mw2 = Instance.new("Model",char)
  771.  
  772.  
  773. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  774. local gui = it(GuiType)
  775. gui.Parent = parent
  776. gui.Text = text
  777. gui.BackgroundTransparency = backtrans
  778. gui.BackgroundColor3 = backcol
  779. gui.SizeConstraint = "RelativeXY"
  780. gui.TextXAlignment = "Center"
  781. gui.TextYAlignment = "Center"
  782. gui.Position = pos
  783. gui.Size = size
  784. gui.Font = "SourceSans"
  785. gui.FontSize = "Size14"
  786. gui.TextWrapped = false
  787. gui.TextStrokeTransparency = 0
  788. gui.TextColor = BrickColor.new("White")
  789. return gui
  790. end
  791. --------------------------- GUI STUFF
  792. local basgui = it("GuiMain")
  793. basgui.Parent = plr.PlayerGui
  794. basgui.Name = "VISgui"
  795. local fullscreenz = it("Frame")
  796. fullscreenz.Parent = basgui
  797. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  798. fullscreenz.BackgroundTransparency = 1
  799. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  800. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  801. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  802. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  803. imgl2.BackgroundTransparency = 1
  804. imgl2.BorderSizePixel = 0
  805. imgl2.ImageTransparency = 0.5
  806. imgl2.ImageColor3 = Color3.new(1,0,0)
  807. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  808. imgl2.Size = UDim2.new(0,1000,0,1000)
  809. imgl2.Image = "rbxassetid://2325939897"
  810. local techc = imgl2:Clone()
  811. techc.Parent = fullscreenz
  812. techc.ImageTransparency = 0
  813. techc.Size = UDim2.new(0,900,0,900)
  814. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  815. techc.ImageColor3 = Color3.new(1,0,0)
  816. techc.Image = "rbxassetid://2273224484"
  817. local circl = imgl2:Clone()
  818. circl.Parent = fullscreenz
  819. circl.ImageTransparency = 0
  820. circl.Size = UDim2.new(0,550,0,550)
  821. circl.Position = UDim2.new(0.75,25,0.55,25)
  822. circl.ImageColor3 = Color3.new(0,0,0)
  823. circl.Image = "rbxassetid://2312119891"
  824. local circl2 = imgl2:Clone()
  825. circl2.Parent = fullscreenz
  826. circl2.ImageTransparency = 0
  827. circl2.Size = UDim2.new(0,700,0,700)
  828. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  829. circl2.ImageColor3 = Color3.new(1,0,0)
  830. circl2.Image = "rbxassetid://2312119891"
  831. local imgl2b = imgl2:Clone()
  832. imgl2b.Parent = fullscreenz
  833. imgl2b.ImageTransparency = 0
  834. imgl2b.Size = UDim2.new(0,800,0,800)
  835. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  836. imgl2b.ImageColor3 = Color3.new(0,0,0)
  837. local ned = Instance.new("TextLabel",fullscreenz)
  838. ned.ZIndex = 2
  839. ned.Font = "Arcade"
  840. ned.BackgroundTransparency = 1
  841. ned.BorderSizePixel = 0.65
  842. ned.Size = UDim2.new(0.3,0,0.2,0)
  843. ned.Position = UDim2.new(0.7,0,0.8,0)
  844. ned.TextColor3 = BrickColor.new("Royal purple").Color
  845. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  846. ned.TextScaled = true
  847. ned.TextStrokeTransparency = 0
  848. ned.Text = "STAR"
  849. ned.TextSize = 24
  850. ned.Rotation = 1
  851. ned.TextXAlignment = "Right"
  852. ned.TextYAlignment = "Bottom"
  853.  
  854. local extrawingmod1 = Instance.new("Model",char)
  855. local extrawingmod2 = Instance.new("Model",char)
  856.  
  857. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  858. local p = Instance.new("Part")
  859. p.TopSurface = 0
  860. p.BottomSurface = 0
  861. p.Parent = parent
  862. p.Size = Vector3.new(0.1,0.1,0.1)
  863. p.Transparency = transparency
  864. p.Reflectance = reflectance
  865. p.CanCollide = false
  866. p.Locked = true
  867. p.BrickColor = brickcolor
  868. p.Material = material
  869. return p
  870. end
  871.  
  872. function CreateMesh(parent,meshtype,x1,y1,z1)
  873. local mesh = Instance.new("SpecialMesh",parent)
  874. mesh.MeshType = meshtype
  875. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  876. return mesh
  877. end
  878.  
  879. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  880. local mesh = Instance.new("SpecialMesh",parent)
  881. mesh.MeshType = "FileMesh"
  882. mesh.MeshId = meshid
  883. mesh.Scale = Vector3.new(x1,y1,z1)
  884. return mesh
  885. end
  886.  
  887.  
  888. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  889. local mesh = Instance.new("SpecialMesh",parent)
  890. mesh.MeshType = "FileMesh"
  891. mesh.MeshId = meshid
  892. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  893. mesh.Scale = Vector3.new(x1,y1,z1)
  894. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  895. return mesh
  896. end
  897.  
  898. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  899. local weld = Instance.new("Weld")
  900. weld.Parent = parent
  901. weld.Part0 = part0
  902. weld.Part1 = part1
  903. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  904. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  905. return weld
  906. end
  907.  
  908.  
  909. --------------
  910. --------------
  911. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  912. 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))
  913. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  914. 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))
  915.  
  916. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  917. CreateMesh(handle,"Brick",0,0,0)
  918. 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))
  919. local valuaring = 10
  920. for i = 0, 49 do
  921. valuaring = valuaring + 10
  922. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  923. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  924. 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))
  925. end
  926.  
  927. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  928. CreateMesh(handle,"Brick",0,0,0)
  929. 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))
  930. local valuaring = 10
  931. for i = 0, 49 do
  932. valuaring = valuaring + 10
  933. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  934. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  935. 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))
  936. end
  937.  
  938.  
  939. local handle = CreateParta(m,1,1,"Neon",maincolor)
  940. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  941. 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))
  942.  
  943. --- Left wing.
  944.  
  945. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  946. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  947. 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))
  948.  
  949. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  950. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  951. 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))
  952. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  953. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  954. 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))
  955. A0 = Instance.new('Attachment',wed)
  956. A0.Position = vt(0,0.25,0.25)
  957. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  958. CreateMesh(wed,"Wedge",0.05,0.5,3)
  959. 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))
  960. A1 = Instance.new('Attachment',wed)
  961. A1.Position = vt(0,-0.25,-2)
  962. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  963. CreateMesh(wed,"Wedge",0.05,3,0.5)
  964. 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))
  965.  
  966. tl1 = Instance.new('Trail',wed)
  967. tl1.Attachment0 = A1
  968. tl1.Attachment1 = A0
  969. tl1.Texture = "rbxassetid://2108945559"
  970. tl1.LightEmission = 1
  971. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  972. tl1.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  973. tl1.Lifetime = 0.6
  974.  
  975.  
  976. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  977. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  978. 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))
  979.  
  980. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  981. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  982. 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))
  983. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  984. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  985. 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))
  986. A0 = Instance.new('Attachment',wed)
  987. A0.Position = vt(0,0.25,0.25)
  988. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  989. CreateMesh(wed,"Wedge",0.05,0.5,3)
  990. 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))
  991. A1 = Instance.new('Attachment',wed)
  992. A1.Position = vt(0,-0.25,-2)
  993. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  994. CreateMesh(wed,"Wedge",0.05,3,0.5)
  995. 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))
  996.  
  997. tl2 = Instance.new('Trail',wed)
  998. tl2.Attachment0 = A1
  999. tl2.Attachment1 = A0
  1000. tl2.Texture = "rbxassetid://2108945559"
  1001. tl2.LightEmission = 1
  1002. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1003. tl2.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  1004. tl2.Lifetime = 0.6
  1005.  
  1006. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1007. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1008. 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))
  1009.  
  1010. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1011. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1012. 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))
  1013. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1014. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1015. 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))
  1016. A0 = Instance.new('Attachment',wed)
  1017. A0.Position = vt(0,0.25,0.25)
  1018. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1019. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1020. 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))
  1021. A1 = Instance.new('Attachment',wed)
  1022. A1.Position = vt(0,-0.25,-2)
  1023. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1024. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1025. 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))
  1026.  
  1027. tl3 = Instance.new('Trail',wed)
  1028. tl3.Attachment0 = A1
  1029. tl3.Attachment1 = A0
  1030. tl3.Texture = "rbxassetid://2108945559"
  1031. tl3.LightEmission = 1
  1032. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1033. tl3.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  1034. tl3.Lifetime = 0.6
  1035.  
  1036. tl1.Enabled = false
  1037. tl2.Enabled = false
  1038. tl3.Enabled = false
  1039. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1040. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1041. 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))
  1042.  
  1043. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1044. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1045. 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))
  1046. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1047. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1048. 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))
  1049. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1050. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1051. 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))
  1052. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1053. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1054. 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))
  1055.  
  1056. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1057. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1058. 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))
  1059.  
  1060. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1061. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1062. 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))
  1063. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1064. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1065. 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))
  1066. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1067. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1068. 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))
  1069. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1070. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1071. 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))
  1072.  
  1073. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1074. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1075. 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))
  1076.  
  1077. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1078. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1079. 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))
  1080. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1081. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1082. 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))
  1083. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1084. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1085. 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))
  1086. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1087. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1088. 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))
  1089.  
  1090. -- Right wing.
  1091.  
  1092. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1093. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1094. 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))
  1095.  
  1096. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1097. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1098. 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))
  1099. A0 = Instance.new('Attachment',wed)
  1100. A0.Position = vt(0,0.25,0.25)
  1101. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1102. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1103. 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))
  1104. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1105. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1106. 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))
  1107. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1108. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1109. 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))
  1110. A1 = Instance.new('Attachment',wed)
  1111. A1.Position = vt(0,2,0.25)
  1112.  
  1113. tr1 = Instance.new('Trail',wed)
  1114. tr1.Attachment0 = A1
  1115. tr1.Attachment1 = A0
  1116. tr1.Texture = "rbxassetid://2108945559"
  1117. tr1.LightEmission = 1
  1118. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1119. tr1.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  1120. tr1.Lifetime = 0.6
  1121.  
  1122. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1123. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1124. 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))
  1125.  
  1126. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1127. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1128. 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))
  1129. A0 = Instance.new('Attachment',wed)
  1130. A0.Position = vt(0,0.25,0.25)
  1131. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1132. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1133. 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))
  1134. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1135. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1136. 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))
  1137. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1138. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1139. 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))
  1140. A1 = Instance.new('Attachment',wed)
  1141. A1.Position = vt(0,2,0.25)
  1142.  
  1143. tr2 = Instance.new('Trail',wed)
  1144. tr2.Attachment0 = A1
  1145. tr2.Attachment1 = A0
  1146. tr2.Texture = "rbxassetid://2108945559"
  1147. tr2.LightEmission = 1
  1148. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1149. tr2.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  1150. tr2.Lifetime = 0.6
  1151.  
  1152. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1153. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1154. 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))
  1155.  
  1156. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1157. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1158. 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))
  1159. A0 = Instance.new('Attachment',wed)
  1160. A0.Position = vt(0,0.25,0.25)
  1161. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1162. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1163. 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))
  1164. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1165. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1166. 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))
  1167. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1168. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1169. 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))
  1170. A1 = Instance.new('Attachment',wed)
  1171. A1.Position = vt(0,2,0.25)
  1172.  
  1173. tr3 = Instance.new('Trail',wed)
  1174. tr3.Attachment0 = A1
  1175. tr3.Attachment1 = A0
  1176. tr3.Texture = "rbxassetid://2108945559"
  1177. tr3.LightEmission = 1
  1178. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1179. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1180. tr3.Lifetime = 0.6
  1181.  
  1182.  
  1183. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1184. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1185. 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))
  1186.  
  1187. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1188. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1189. 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))
  1190. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1191. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1192. 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))
  1193. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1194. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1195. 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))
  1196. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1197. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1198. 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))
  1199.  
  1200. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1201. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1202. 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))
  1203.  
  1204. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1205. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1206. 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))
  1207. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1208. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1209. 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))
  1210. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1211. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1212. 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))
  1213. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1214. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1215. 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))
  1216.  
  1217. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1218. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1219. 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))
  1220.  
  1221. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1222. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1223. 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))
  1224. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1225. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1226. 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))
  1227. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1228. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1229. 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))
  1230. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1231. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1232. 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))
  1233.  
  1234. ---- HERES THE RING
  1235.  
  1236.  
  1237. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1238. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1239. 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))
  1240. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1241. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1242. 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))
  1243. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1244. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1245. 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))
  1246.  
  1247.  
  1248. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1249. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1250. 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))
  1251.  
  1252. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1253. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1254. 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))
  1255.  
  1256.  
  1257.  
  1258. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1259. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1260. 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))
  1261.  
  1262. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1263. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1264. 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))
  1265.  
  1266. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1267. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1268. 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))
  1269.  
  1270. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1271. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1272. 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))
  1273. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1274. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1275. 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))
  1276.  
  1277. --- second ring
  1278.  
  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("Royal purple")
  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("Royal purple")
  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("Royal pruple")
  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("Royal pruple")
  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("Royal purple"))
  3911. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
  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("Royal purple"), 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("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3967. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3968. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3969. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), 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("DETERMINED STRIKE!",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://1545630949", char, 1.5, 1)
  4126. coroutine.resume(coroutine.create(function()
  4127. coroutine.resume(coroutine.create(function()
  4128. for i = 0, 399 do
  4129. swait()
  4130. orbm.Scale = orbm.Scale - vt(0.05,0,0.05)
  4131. orb.Transparency = orb.Transparency - 0.0025
  4132. end
  4133. end))
  4134. wait(9)
  4135. coroutine.resume(coroutine.create(function()
  4136. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  4137. if hfr ~= nil then
  4138. for i = 0, 49 do
  4139. local deb = Instance.new("Part", char)
  4140. deb.Anchored = true
  4141. deb.CanCollide = false
  4142. deb.FormFactor = 3
  4143. deb.Name = "Ring"
  4144. deb.Material = hitfloor.Material
  4145. deb.Color = hitfloor.Color
  4146. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  4147. deb.Transparency = 0
  4148. deb.TopSurface = 0
  4149. deb.BottomSurface = 0
  4150. 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)))
  4151. local deb2 = Instance.new("Part", char)
  4152. deb2.CanCollide = false
  4153. deb2.FormFactor = 3
  4154. deb2.Name = "Ring"
  4155. deb2.Material = hitfloor.Material
  4156. deb2.Color = hitfloor.Color
  4157. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  4158. deb2.Transparency = 0
  4159. deb2.TopSurface = 0
  4160. deb2.BottomSurface = 0
  4161. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  4162. 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)))
  4163. local eff = Instance.new("ParticleEmitter",deb)
  4164. eff.Texture = "rbxassetid://363275192"
  4165. eff.LightEmission = 0.95
  4166. eff.Color = ColorSequence.new(keptcolor.Color)
  4167. eff.Rate = 100
  4168. eff.Lifetime = NumberRange.new(1)
  4169. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  4170. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4171. eff.Speed = NumberRange.new(0,5)
  4172. eff.Rotation = NumberRange.new(-500,500)
  4173. eff.VelocitySpread = 9000
  4174. eff.RotSpeed = NumberRange.new(-10,10)
  4175. local at1 = Instance.new('Attachment',deb2)
  4176. at1.Position = vt(0,15,0)
  4177. local at2 = Instance.new('Attachment',deb2)
  4178. at2.Position = vt(0,-15,0)
  4179. local tl = Instance.new('Trail',deb2)
  4180. tl.Attachment0 = at1
  4181. tl.Attachment1 = at2
  4182. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4183. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  4184. tl.Lifetime = 1
  4185. game:GetService("Debris"):AddItem(deb,30)
  4186. game:GetService("Debris"):AddItem(deb2,30)
  4187. coroutine.resume(coroutine.create(function()
  4188. wait(15)
  4189. eff.Enabled = false
  4190. for i = 0, 49 do
  4191. swait()
  4192. deb.Transparency = deb.Transparency + 0.02
  4193. end
  4194. wait(1)
  4195. deb:Destroy()
  4196. end))
  4197. end
  4198. end
  4199. end))
  4200. for i = 0, 199 do
  4201. swait(1.5)
  4202. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  4203. if v:FindFirstChild('Head') then
  4204. dmg(v)
  4205. end
  4206. end
  4207. 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)
  4208. 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)
  4209. 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)
  4210. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  4211. end
  4212. orb:Destroy()
  4213. end))
  4214. hum.WalkSpeed = storehumanoidWS
  4215. attack = false
  4216. end
  4217.  
  4218. function Beams()
  4219. attack = true
  4220. hum.WalkSpeed = 0
  4221. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  4222. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  4223. bosschatfunc("DETERMINED BEAMS!",MAINRUINCOLOR.Color,2)
  4224. local keptcolor = MAINRUINCOLOR
  4225. coroutine.resume(coroutine.create(function()
  4226. for i = 0, 96 do
  4227. swait(5)
  4228. local orb = Instance.new("Part", char)
  4229. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  4230. orb.BrickColor = keptcolor
  4231. orb.CanCollide = false
  4232. orb.FormFactor = 3
  4233. orb.Name = "Ring"
  4234. orb.Material = "Neon"
  4235. orb.Size = Vector3.new(1, 1, 1)
  4236. orb.Transparency = 0
  4237. orb.TopSurface = 0
  4238. orb.BottomSurface = 0
  4239. orb.Anchored = true
  4240. local orbm = Instance.new("SpecialMesh", orb)
  4241. orbm.MeshType = "Sphere"
  4242. orbm.Name = "SizeMesh"
  4243. orbm.Scale = vt(1.25,1.25,1.25)
  4244. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  4245. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  4246. coroutine.resume(coroutine.create(function()
  4247. wait(0.5)
  4248. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  4249. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  4250. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  4251. orb.Transparency = 1
  4252. local a = Instance.new("Part",char)
  4253. a.Name = "Direction"
  4254. a.Anchored = true
  4255. a.BrickColor = keptcolor
  4256. a.Material = "Neon"
  4257. a.Transparency = 0.25
  4258. a.Shape = "Cylinder"
  4259. local ht = Instance.new("Part",char)
  4260. ht.Name = "DirectionHit"
  4261. ht.Anchored = true
  4262. ht.BrickColor = keptcolor
  4263. ht.CanCollide = false
  4264. ht.Transparency = 1
  4265. ht.Size = vt(0.1,0.1,0.1)
  4266. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  4267. a.CanCollide = false
  4268. local ray = Ray.new(
  4269. orb.CFrame.p, -- origin
  4270. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  4271. )
  4272. local ignore = char
  4273. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4274. a.BottomSurface = 10
  4275. a.TopSurface = 10
  4276. local distance = (orb.CFrame.p - position).magnitude
  4277. a.Size = Vector3.new(distance,1,1)
  4278. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4279. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4280. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  4281. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  4282. MagniDamage(ht, 9, 30,60, 0, "Normal")
  4283. coroutine.resume(coroutine.create(function()
  4284. local eff = Instance.new("ParticleEmitter",ht)
  4285. eff.Texture = "rbxassetid://284205403"
  4286. eff.LightEmission = 0.95
  4287. eff.Color = ColorSequence.new(keptcolor.Color)
  4288. eff.Rate = 500
  4289. eff.Lifetime = NumberRange.new(0.5)
  4290. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  4291. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4292. eff.Speed = NumberRange.new(10,50)
  4293. eff.Drag = 5
  4294. eff.Rotation = NumberRange.new(-500,500)
  4295. eff.VelocitySpread = 9000
  4296. eff.RotSpeed = NumberRange.new(-500,500)
  4297. wait(0.25)
  4298. eff.Enabled = false
  4299. end))
  4300. for i = 0, 4 do
  4301. 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)
  4302. 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)
  4303. local rsiz = math.random(10,30)
  4304. 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)
  4305. end
  4306. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4307. local msh = Instance.new("SpecialMesh",a)
  4308. msh.MeshType = "Cylinder"
  4309. msh.Scale = vt(1,1,1)
  4310. for i = 0, 49 do
  4311. swait()
  4312. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  4313. a.Transparency = a.Transparency + 0.02
  4314. end
  4315. orb:Destroy()
  4316. a:Destroy()
  4317. ht:Destroy()
  4318. end))
  4319. game:GetService("Debris"):AddItem(orb, 10)
  4320. end
  4321. end))
  4322. for i = 0,6,0.1 do
  4323. swait()
  4324. 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)
  4325. 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)
  4326. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  4327. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  4328. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  4329. 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)
  4330. 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)
  4331. end
  4332. hum.WalkSpeed = storehumanoidWS
  4333. attack = false
  4334. end
  4335.  
  4336. function hugg()
  4337. attack = true
  4338. hum.WalkSpeed = 5
  4339. local rsiz = math.random(5,15)
  4340. for i = 0, 2, 0.1 do
  4341. swait()
  4342. 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)
  4343. 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)
  4344. 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)
  4345. 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)
  4346. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  4347. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  4348. end
  4349. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  4350. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  4351. hb.Anchored = true
  4352. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  4353. local huggedperson = nil
  4354. local act = false
  4355. local alreadydid = false
  4356. for i = 0, 3, 0.1 do
  4357. swait()
  4358. if act == false then
  4359. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  4360. if v:FindFirstChild('Head') then
  4361. if alreadydid == false then
  4362. huggedperson = v
  4363. hum.WalkSpeed = 0
  4364. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  4365. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  4366. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  4367. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  4368. local radm = math.random(1,3)
  4369. bosschatfunc("Friend hug!..",MAINRUINCOLOR.Color,1)
  4370. root.Anchored = true
  4371. coroutine.resume(coroutine.create(function()
  4372. huggedperson.Humanoid.WalkSpeed = 0
  4373. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  4374. end))
  4375. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  4376. alreadydid = true
  4377. act = true
  4378. print(huggedperson.Name)
  4379. end
  4380. end
  4381. end
  4382. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  4383. 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)
  4384. elseif act == true then
  4385. coroutine.resume(coroutine.create(function()
  4386. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  4387. end))
  4388. rsiz = math.random(5,15)
  4389. 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)
  4390. 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)
  4391. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  4392. end
  4393. 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)
  4394. 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)
  4395. 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)
  4396. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  4397. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  4398. end
  4399. hb:Destroy()
  4400. if act == true then
  4401. for x = 0, 2 do
  4402. for i = 0, 2, 0.1 do
  4403. swait()
  4404. coroutine.resume(coroutine.create(function()
  4405. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  4406. end))
  4407. rsiz = math.random(5,15)
  4408. 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)
  4409. 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)
  4410. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  4411. 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)
  4412. 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)
  4413. 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)
  4414. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  4415. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  4416. end
  4417. for i = 0, 2, 0.1 do
  4418. swait()
  4419. coroutine.resume(coroutine.create(function()
  4420. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  4421. end))
  4422. rsiz = math.random(5,15)
  4423. 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)
  4424. 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)
  4425. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  4426. 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)
  4427. 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)
  4428. 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)
  4429. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  4430. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  4431. end
  4432. end
  4433. end
  4434. hum.WalkSpeed = storehumanoidWS
  4435. root.Anchored = false
  4436. if act == true then
  4437. coroutine.resume(coroutine.create(function()
  4438. huggedperson.Humanoid.WalkSpeed = 16
  4439. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  4440. end))
  4441. end
  4442. hum.WalkSpeed = storehumanoidWS
  4443. attack = false
  4444. end
  4445.  
  4446. function THE_TRUE_POWER_OF_VIOLENCE()
  4447. attack = true
  4448. hum.WalkSpeed = 0
  4449. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
  4450. for i = 0, 10, 0.1 do
  4451. swait()
  4452. 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)
  4453. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  4454. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.4)
  4455. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(40)),.4)
  4456. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4457. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4458. 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)
  4459. end
  4460. local orb = Instance.new("Part", char)
  4461. orb.BrickColor = MAINRUINCOLOR
  4462. orb.CanCollide = false
  4463. orb.FormFactor = 3
  4464. orb.Name = "Ring"
  4465. orb.Material = "Neon"
  4466. orb.Size = Vector3.new(1, 1, 1)
  4467. orb.Transparency = 0
  4468. orb.TopSurface = 0
  4469. orb.BottomSurface = 0
  4470. orb.CFrame = sorb.CFrame
  4471. local orbm = Instance.new("SpecialMesh", orb)
  4472. orbm.MeshType = "Sphere"
  4473. orbm.Name = "SizeMesh"
  4474. orbm.Scale = vt(0,0,0)
  4475. local sbs = Instance.new("BodyPosition", orb)
  4476. sbs.P = 3000
  4477. sbs.D = 1000
  4478. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4479. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4480. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4481. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4482. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4483. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4484. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4485. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4486. for i = 0, 10, 0.1 do
  4487. swait()
  4488. 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)
  4489. 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)
  4490. 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)
  4491. 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)
  4492. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4493. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4494. 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)
  4495. end
  4496. orb.Anchored = true
  4497. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4498. elocacenter.Anchored = true
  4499. elocacenter.CFrame = orb.CFrame
  4500. elocacenter.Orientation = vt(0,0,0)
  4501. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4502. eloca1.Anchored = true
  4503. eloca1.CFrame = elocacenter.CFrame
  4504. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4505. eloca2.Anchored = true
  4506. eloca2.CFrame = elocacenter.CFrame
  4507. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4508. eloca3.Anchored = true
  4509. eloca3.CFrame = elocacenter.CFrame
  4510. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4511. eloca4.Anchored = true
  4512. eloca4.CFrame = elocacenter.CFrame
  4513. local lookavec = 0
  4514. local speeds = 0
  4515. CameraEnshaking(1,1)
  4516. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4517. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4518. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4519. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4520. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4521. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4522. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4523. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4524. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4525. for i = 0, 99 do
  4526. swait()
  4527. lookavec = lookavec + 2.5
  4528. speeds = speeds + 0.25
  4529. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4530. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4531. 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)
  4532.  
  4533. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4534. 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)
  4535.  
  4536. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4537. 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)
  4538.  
  4539. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4540. 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)
  4541. end
  4542.  
  4543. for i = 0, 149 do
  4544. swait()
  4545. speeds = speeds + 0.25
  4546. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4547. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4548. 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)
  4549.  
  4550. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4551. 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)
  4552.  
  4553. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4554. 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)
  4555.  
  4556. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4557. 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)
  4558. end
  4559. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4560. for i = 0, 99 do
  4561. swait()
  4562. lookavec = lookavec - 2.5
  4563. speeds = speeds + 0.25
  4564. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4565. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4566. 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)
  4567.  
  4568. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4569. 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)
  4570.  
  4571. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4572. 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)
  4573.  
  4574. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4575. 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)
  4576. end
  4577. local scaled = 0.1*75
  4578. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4579. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4580. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4581. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4582. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4583. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4584. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4585. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4586. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4587. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4588. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4589. for i = 0, 10, 0.1 do
  4590. swait()
  4591. scaled = scaled - 0.001*75
  4592. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4593. 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)
  4594. 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)
  4595. 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)
  4596. 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)
  4597. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4598. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4599. 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)
  4600. end
  4601. for x = 0, 4 do
  4602. for i = 0, 9 do
  4603. 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)
  4604. end
  4605. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4606. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4607. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4608. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4609. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4610. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4611. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4612. for i = 0, 5, 0.1 do
  4613. swait()
  4614. 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)
  4615. 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)
  4616. 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)
  4617. 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)
  4618. 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)
  4619. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4620. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4621. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4622. end
  4623. end
  4624. local speedearn = 0
  4625. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4626. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4627. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4628. for i = 0, 30, 0.1 do
  4629. swait()
  4630. scaled = scaled - 0.001*75/10
  4631. speedearn = speedearn + 0.5
  4632. for i = 0, 4 do
  4633. 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)
  4634. end
  4635. 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)
  4636. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4637. 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)
  4638. 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)
  4639. 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)
  4640. 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)
  4641. 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)
  4642. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4643. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4644. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4645. end
  4646. orb.Transparency = 1
  4647. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4648. if v:FindFirstChild('Head') then
  4649. dmg(v)
  4650. end
  4651. end
  4652. CameraEnshaking(7,30)
  4653. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4654. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4655. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4656. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4657. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4658. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4659. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4660. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4661. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4662. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4663. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4664. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4665. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4666. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4667. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4668. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4669. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4670. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4671. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4672. for i = 0, 99 do
  4673. 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)
  4674. 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)
  4675. end
  4676. for i = 0, 24 do
  4677. 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)
  4678. 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)
  4679. 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)
  4680. 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)
  4681. 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)
  4682. end
  4683. game:GetService("Debris"):AddItem(orb, 10)
  4684. hum.WalkSpeed = storehumanoidWS
  4685. attack = false
  4686. end
  4687.  
  4688. function Judgement()
  4689. attack = true
  4690. judgement = true
  4691. hum.WalkSpeed = 0
  4692. local p = Instance.new("Part",root)
  4693. p.Anchored = true
  4694. p.CanCollide = false
  4695. p.BrickColor = MAINRUINCOLOR
  4696. p.Material = Enum.Material.Neon
  4697. p.Size = Vector3.new(1,1,1)
  4698. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4699. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4700. local m = Instance.new("SpecialMesh",p)
  4701. m.MeshType = "Cylinder"
  4702. m.Scale = Vector3.new(2000,2,2)
  4703. local targ = Instance.new("Part",root)
  4704. targ.Anchored = true
  4705. targ.Transparency = 1
  4706. targ.CanCollide = false
  4707. targ.Size = Vector3.new(1,1,1)
  4708. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4709. local s = Instance.new("Sound",targ)
  4710. s.SoundId = "https://roblox.com/asset/?id=115327352"
  4711. s.Looped = true
  4712. s.Pitch = 1.2
  4713. s.Volume = 3
  4714. spawn(function()
  4715. swait(15)
  4716. s:Play()
  4717. end)
  4718. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  4719. for i = 1,15 do
  4720. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4721. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4722. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4723. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4724. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4725. 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)
  4726. 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)
  4727. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  4728. 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)
  4729. m.Scale = m.Scale+Vector3.new(0,1,1)
  4730. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4731. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4732. swait()
  4733. end
  4734. 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)
  4735. repeat
  4736. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4737. 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)
  4738. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  4739. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4740. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4741. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  4742. swait()
  4743. until judgement == false
  4744. for i =1,15 do
  4745. m.Scale = m.Scale-Vector3.new(1,1,1)
  4746. p.Transparency = i / 15
  4747. s.Pitch = s.Pitch - 0.4
  4748. swait()
  4749. end
  4750. p:Destroy()
  4751. hum.WalkSpeed = storehumanoidWS
  4752. attack = false
  4753. end
  4754.  
  4755. function Starfall()
  4756. attack = true
  4757. hum.WalkSpeed = 0
  4758. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  4759. for i = 0, 5, 0.1 do
  4760. swait()
  4761. 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)
  4762. 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)
  4763. 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)
  4764. 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)
  4765. 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)
  4766. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  4767. 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)
  4768. 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)
  4769. end
  4770. local Overed = false
  4771. CameraEnshaking(2,20)
  4772. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4773. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4774. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  4775. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  4776. local orb = Instance.new("Part", char)
  4777. orb.Anchored = true
  4778. orb.BrickColor = BrickColor.new("Toothpaste")
  4779. orb.CanCollide = false
  4780. orb.FormFactor = 3
  4781. orb.Name = "Remenant"
  4782. orb.Material = "Neon"
  4783. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  4784. orb.Size = Vector3.new(1, 1, 1)
  4785. orb.Transparency = 1
  4786. orb.TopSurface = 0
  4787. orb.BottomSurface = 0
  4788. hum.WalkSpeed = storehumanoidWS
  4789. coroutine.resume(coroutine.create(function()
  4790. for i = 0, 9 do
  4791. swait(10)
  4792. local lb = Instance.new("Part")
  4793. lb.Color = MAINRUINCOLOR.Color
  4794. lb.CanCollide = false
  4795. lb.Material = "Neon"
  4796. lb.Anchored = true
  4797. lb.TopSurface = 0
  4798. lb.BottomSurface = 0
  4799. lb.Transparency = 0
  4800. lb.Size = vt(1,1,1)
  4801. 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)))
  4802. lb.Anchored = false
  4803. lb.Parent = char
  4804. local thingery = Instance.new("SpecialMesh",lb)
  4805. thingery.MeshType = "Sphere"
  4806. thingery.Scale = vt(20,20,20)
  4807. game:GetService("Debris"):AddItem(lb, 10)
  4808. local bv = Instance.new("BodyVelocity")
  4809. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4810. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  4811. bv.Parent = lb
  4812. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  4813. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  4814. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  4815. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  4816. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  4817. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  4818. local hitted = false
  4819. coroutine.resume(coroutine.create(function()
  4820. while true do
  4821. swait(1)
  4822. if lb.Parent ~= nil and hitted == false then
  4823. 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)
  4824. elseif lb.Parent == nil then
  4825. break
  4826. end
  4827. end
  4828. end))
  4829.  
  4830. game:GetService("Debris"):AddItem(a, 0.1)
  4831.  
  4832. coroutine.resume(coroutine.create(function()
  4833. swait(1)
  4834. lb.Touched:connect(function(hit)
  4835. if hitted == false then
  4836. hitted = true
  4837. lb.Transparency = 1
  4838. lb.Anchored = true
  4839. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  4840. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  4841. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  4842. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  4843. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  4844. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  4845. MagniDamage(lb, 45, 45,85, 0, "Normal")
  4846. CameraEnshaking(1,5)
  4847. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4848. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4849. for i = 0, 9 do
  4850. 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)
  4851. end
  4852. for i = 0, 49 do
  4853. swait()
  4854. MagniDamage(lb, 30, 2,4, 0, "Normal")
  4855. 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)
  4856. end
  4857. end
  4858. end)
  4859. end))
  4860. end
  4861. Overed = true
  4862. orb:Destroy()
  4863. end))
  4864.  
  4865. attack = false
  4866. end
  4867.  
  4868.  
  4869. function ViolentRing()
  4870. attack = true
  4871. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4872. for i = 0, 2, 0.1 do
  4873. swait()
  4874. local snap = math.random(1,10)
  4875. if snap == 1 then
  4876. 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)
  4877. end
  4878. 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)
  4879. 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)
  4880. 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)
  4881. 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)
  4882. 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)
  4883. 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)
  4884. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4885. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4886. 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)
  4887. RootPart.CFrame = FaceMouse()[1]
  4888. end
  4889. local orb = Instance.new("Part", char)
  4890. orb.BrickColor = MAINRUINCOLOR
  4891. orb.CanCollide = false
  4892. orb.FormFactor = 3
  4893. orb.Name = "Ring"
  4894. orb.Material = "Neon"
  4895. orb.Size = Vector3.new(1, 1, 1)
  4896. orb.Transparency = 0
  4897. orb.TopSurface = 0
  4898. orb.BottomSurface = 0
  4899. local orbm = Instance.new("SpecialMesh", orb)
  4900. orbm.MeshType = "Sphere"
  4901. orbm.Name = "SizeMesh"
  4902. orbm.Scale = vt(2,2,2)
  4903. orb.CFrame = mouse.Hit
  4904. local bv = Instance.new("BodyVelocity")
  4905. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4906. bv.velocity = orb.CFrame.lookVector*100
  4907. bv.Parent = orb
  4908. local hitted = false
  4909. coroutine.resume(coroutine.create(function()
  4910. game:GetService("Debris"):AddItem(orb, 5)
  4911. orb.Transparency = 1
  4912. orb.Anchored = true
  4913. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4914. elocacenter.Anchored = true
  4915. elocacenter.CFrame = orb.CFrame
  4916. elocacenter.Orientation = vt(0,0,0)
  4917. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4918. eloca1.Anchored = true
  4919. eloca1.CFrame = elocacenter.CFrame
  4920. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4921. eloca2.Anchored = true
  4922. eloca2.CFrame = elocacenter.CFrame
  4923. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4924. eloca3.Anchored = true
  4925. eloca3.CFrame = elocacenter.CFrame
  4926. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4927. eloca4.Anchored = true
  4928. eloca4.CFrame = elocacenter.CFrame
  4929. local lookavec = 0
  4930. local speeds = 0
  4931. CameraEnshaking(1,1)
  4932. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4933. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4934. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4935. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4936. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4937. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4938. for i = 0, 24 do
  4939. swait()
  4940. lookavec = lookavec + 3.5
  4941. speeds = speeds + 1
  4942. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4943. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4944. 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)
  4945.  
  4946. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4947. 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)
  4948.  
  4949. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4950. 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)
  4951.  
  4952. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4953. 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)
  4954. end
  4955.  
  4956. local risen = 0
  4957. for i = 0, 49 do
  4958. swait()
  4959. risen = risen + 0.05
  4960. speeds = speeds + 0.1
  4961. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4962. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4963. 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)
  4964.  
  4965. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4966. 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)
  4967.  
  4968. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4969. 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)
  4970.  
  4971. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4972. 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)
  4973. end
  4974. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4975. if v:FindFirstChild('Head') then
  4976. dmg(v)
  4977. end
  4978. end
  4979. CameraEnshaking(4,10)
  4980. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4981. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4982. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4983. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4984. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4985. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4986. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4987. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4988. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4989. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4990. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4991. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4992. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4993. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4994. for i = 0, 24 do
  4995. 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)
  4996. 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)
  4997. 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)
  4998. 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)
  4999. end
  5000. coroutine.resume(coroutine.create(function()
  5001. wait(10)
  5002. elocacenter:Destroy()
  5003. eloca1:Destroy()
  5004. eloca2:Destroy()
  5005. eloca3:Destroy()
  5006. eloca4:Destroy()
  5007. end))
  5008. end))
  5009. attack = false
  5010. end
  5011.  
  5012. function UniversalCollapse()
  5013. attack = true
  5014. local speedearn = 0
  5015. hum.WalkSpeed = 0
  5016. local sbs = Instance.new("BodyPosition", root)
  5017. sbs.P = 3000
  5018. sbs.D = 1000
  5019. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  5020. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  5021. CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
  5022. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  5023. for i = 0, 110, 0.1 do
  5024. swait()
  5025. speedearn = speedearn + 0.1
  5026. 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)
  5027. 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)
  5028. 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)
  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. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  5032. 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)
  5033. 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)
  5034. 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)
  5035. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5036. 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)
  5037. 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)
  5038. end
  5039. CameraEnshaking(5,50)
  5040. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  5041. for i = 0, 2 do
  5042. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  5043. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  5044. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  5045. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  5046. end
  5047. for i = 0, 49 do
  5048. 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)
  5049. 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)
  5050. 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)
  5051. 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)
  5052. end
  5053. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5054. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5055. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5056. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5057. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5058. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5059. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5060. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5061. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5062. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5063. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5064. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5065. for i = 0, 99 do
  5066. 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)
  5067. 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)
  5068. end
  5069. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  5070. if v:FindFirstChild('Head') then
  5071. dmg(v)
  5072. end
  5073. end
  5074. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  5075. sbs:Destroy()
  5076. hum.WalkSpeed = storehumanoidWS
  5077. attack = false
  5078. end
  5079.  
  5080.  
  5081. function ChaosEND()
  5082. attack = true
  5083. local speedearn = 0
  5084. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
  5085. for i = 0, 15, 0.1 do
  5086. swait()
  5087. speedearn = speedearn + 0.25
  5088. 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)
  5089. 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)
  5090. 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)
  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. 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)
  5094. 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)
  5095. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5096. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5097. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  5098. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  5099. end
  5100. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  5101. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  5102. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  5103. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  5104. CameraEnshaking(5,25)
  5105. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  5106. if v:FindFirstChild('Head') then
  5107. dmg(v)
  5108. end
  5109. end
  5110. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  5111. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  5112. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  5113. for i = 0, 3, 0.1 do
  5114. swait()
  5115. 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)
  5116. 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)
  5117. 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)
  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. 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)
  5120. 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)
  5121. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5122. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5123. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  5124. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  5125. end
  5126. attack = false
  5127. end
  5128.  
  5129. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  5130. local orb = Instance.new("Part", char)
  5131. orb.Anchored = true
  5132. orb.BrickColor = color
  5133. orb.CanCollide = false
  5134. orb.FormFactor = 3
  5135. orb.Name = "Ring"
  5136. orb.Material = "Neon"
  5137. orb.Size = Vector3.new(1, 1, 1)
  5138. orb.Transparency = 0
  5139. orb.TopSurface = 0
  5140. orb.BottomSurface = 0
  5141. local orbm = Instance.new("SpecialMesh", orb)
  5142. orbm.MeshType = "Sphere"
  5143. orb.CFrame = positted
  5144. orbm.Name = "SizeMesh"
  5145. orbm.Scale = vt(1,1,1)
  5146. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  5147. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  5148. --[[for i = 0, 2 do
  5149. 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)
  5150. end]]--
  5151. coroutine.resume(coroutine.create(function()
  5152. wait(timer)
  5153. CameraEnshaking(3,ShakePower)
  5154. orb.Transparency = 1
  5155. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  5156. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  5157. --[[for i = 0, 4 do
  5158. 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)
  5159. end]]--
  5160. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  5161. wait(3)
  5162. orb:Destroy()
  5163. end))
  5164. end
  5165.  
  5166. function orb_spawn(positted,timer)
  5167. local randomcol = math.random(1,2)
  5168. local orb = Instance.new("Part", char)
  5169. orb.Anchored = true
  5170. if randomcol == 1 then
  5171. orb.BrickColor = BrickColor.new("White")
  5172. elseif randomcol == 2 then
  5173. orb.BrickColor = BrickColor.new("Really black")
  5174. end
  5175. orb.CanCollide = false
  5176. orb.FormFactor = 3
  5177. orb.Name = "Ring"
  5178. orb.Material = "Neon"
  5179. orb.Size = Vector3.new(1, 1, 1)
  5180. orb.Transparency = 0
  5181. orb.TopSurface = 0
  5182. orb.BottomSurface = 0
  5183. local orbm = Instance.new("SpecialMesh", orb)
  5184. orbm.MeshType = "Sphere"
  5185. orb.CFrame = positted
  5186. orbm.Name = "SizeMesh"
  5187. orbm.Scale = vt(1,1,1)
  5188. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  5189. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  5190. for i = 0, 2 do
  5191. 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)
  5192. end
  5193. coroutine.resume(coroutine.create(function()
  5194. wait(timer)
  5195. CameraEnshaking(3,2)
  5196. orb.Transparency = 1
  5197. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  5198. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  5199. for i = 0, 4 do
  5200. 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)
  5201. end
  5202. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  5203. wait(3)
  5204. orb:Destroy()
  5205. end))
  5206. end
  5207.  
  5208. function scattercorrupt()
  5209. attack = true
  5210. local rot = 0
  5211. local randomrotations = math.random(1,2)
  5212. local lookv = 2.5
  5213. local power = 5
  5214. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  5215. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  5216. for i = 0, 9 do
  5217. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0)
  5218. end
  5219. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  5220. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  5221. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  5222. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  5223. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  5224. local hite = Instance.new("Part", char)
  5225. hite.Anchored = true
  5226. hite.CanCollide = false
  5227. hite.FormFactor = 3
  5228. hite.Name = "Ring"
  5229. hite.Material = "Neon"
  5230. hite.Size = Vector3.new(1, 1, 1)
  5231. hite.Transparency = 1
  5232. hite.TopSurface = 0
  5233. hite.BottomSurface = 0
  5234. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5235. local rem = Instance.new("Part", char)
  5236. rem.Anchored = true
  5237. rem.CanCollide = false
  5238. rem.FormFactor = 3
  5239. rem.Name = "Ring"
  5240. rem.Material = "Neon"
  5241. rem.Size = Vector3.new(1, 1, 1)
  5242. rem.Transparency = 1
  5243. rem.TopSurface = 0
  5244. rem.BottomSurface = 0
  5245. rem.CFrame = hite.CFrame
  5246. local rem2 = rem:Clone()
  5247. rem2.Parent = char
  5248. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5249. local rem3 = rem:Clone()
  5250. rem3.Parent = char
  5251. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5252. local rem4 = rem:Clone()
  5253. rem4.Parent = char
  5254. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5255. hite:Destroy()
  5256. coroutine.resume(coroutine.create(function()
  5257. for i = 0, 24 do
  5258. swait(1)
  5259. if randomrotations == 1 then
  5260. rot = rot + 1
  5261. elseif randomrotations == 2 then
  5262. rot = rot - 1
  5263. end
  5264. power = power + 0.5
  5265. lookv = lookv + 7.5
  5266. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5267. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5268. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5269. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5270. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5271. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5272. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5273. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  5274. end
  5275. end))
  5276. attack = false
  5277. end
  5278. function yinyangi()
  5279. attack = true
  5280. for i = 0, 2, 0.1 do
  5281. swait()
  5282. 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)
  5283. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  5284. 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)
  5285. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5286. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5287. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5288. end
  5289. local bv = Instance.new("BodyVelocity")
  5290. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5291. bv.velocity = root.CFrame.lookVector*175
  5292. bv.Parent = root
  5293. for Rotations = 0, 9 do
  5294. for i = 0, 1, 0.5 do
  5295. swait()
  5296. bv.velocity = root.CFrame.lookVector*175
  5297. 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)
  5298. 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)
  5299. 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)
  5300. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5301. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5302. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5303. end
  5304. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5305. for i = 0, 1, 0.5 do
  5306. swait()
  5307. bv.velocity = root.CFrame.lookVector*175
  5308. 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)
  5309. 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)
  5310. 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)
  5311. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5312. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5313. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5314. end
  5315. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5316. for i = 0, 1, 0.5 do
  5317. swait()
  5318. bv.velocity = root.CFrame.lookVector*175
  5319. 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)
  5320. 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)
  5321. 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)
  5322. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5323. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5324. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5325. end
  5326. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5327. for i = 0, 1, 0.5 do
  5328. swait()
  5329. bv.velocity = root.CFrame.lookVector*175
  5330. 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)
  5331. 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)
  5332. 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)
  5333. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5334. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5335. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5336. end
  5337. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5338. end
  5339. bv:Destroy()
  5340. attack = false
  5341. end
  5342.  
  5343. function createBGCircle(size,parent,color)
  5344. local bgui = Instance.new("BillboardGui",parent)
  5345. bgui.Size = UDim2.new(size, 0, size, 0)
  5346. local imgc = Instance.new("ImageLabel",bgui)
  5347. imgc.BackgroundTransparency = 1
  5348. imgc.ImageTransparency = 0
  5349. imgc.Size = UDim2.new(1,0,1,0)
  5350. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5351. imgc.ImageColor3 = color
  5352. return bgui,imgc
  5353. end
  5354.  
  5355. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5356. local bgui,imgc = createBGCircle(size,guipar,color)
  5357. bgui.AlwaysOnTop = true
  5358. imgc.Image = "rbxassetid://" ..img
  5359. local rrot = math.random(1,2)
  5360. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5361. coroutine.resume(coroutine.create(function()
  5362. for i = 0, 24*delay do
  5363. swait()
  5364. if rotationenabled == true then
  5365. if rrot == 1 then
  5366. imgc.Rotation = imgc.Rotation + rotsp
  5367. elseif rrot == 2 then
  5368. imgc.Rotation = imgc.Rotation - rotsp
  5369. end
  5370. end
  5371. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5372. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5373. end
  5374. bgui:Destroy()
  5375. end))
  5376. end
  5377. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5378. for i, v in pairs(mw2:GetChildren()) do
  5379. if v:IsA("Part") then
  5380. v.BrickColor = one
  5381. v.Material = "Neon"
  5382. end
  5383. end
  5384. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5385. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5386. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5387. tr1.Color = ColorSequence.new(one.Color)
  5388. tr2.Color = ColorSequence.new(one.Color)
  5389. tr3.Color = ColorSequence.new(one.Color)
  5390. for i, v in pairs(mw1:GetChildren()) do
  5391. if v:IsA("Part") then
  5392. if secondaryenabled == false then
  5393. v.Transparency = 0
  5394. elseif secondaryenabled == true then
  5395. v.Transparency = 0
  5396. end
  5397. v.BrickColor = two
  5398. v.Material = "Neon"
  5399. end
  5400. end
  5401. if secondaryenabled == false then
  5402. tl1.Enabled = false
  5403. tl2.Enabled = false
  5404. tl3.Enabled = false
  5405. elseif secondaryenabled == true then
  5406. tl1.Enabled = true
  5407. tl2.Enabled = true
  5408. tl3.Enabled = true
  5409. end
  5410. tl1.Color = ColorSequence.new(two.Color)
  5411. tl2.Color = ColorSequence.new(two.Color)
  5412. tl3.Color = ColorSequence.new(two.Color)
  5413. for i, v in pairs(m:GetChildren()) do
  5414. if v:IsA("Part") then
  5415. v.BrickColor = three
  5416. v.Material = "Ice"
  5417. end
  5418. end
  5419. for i, v in pairs(m2:GetChildren()) do
  5420. if v:IsA("Part") then
  5421. v.BrickColor = four
  5422. v.Material = "Ice"
  5423. end
  5424. end
  5425. for i, v in pairs(m3:GetChildren()) do
  5426. if v:IsA("Part") then
  5427. v.BrickColor = five
  5428. v.Material = "Neon"
  5429. end
  5430. end
  5431. for i, v in pairs(extrawingmod1:GetChildren()) do
  5432. if v:IsA("Part") then
  5433. v.Transparency = 0.75
  5434. v.BrickColor = BrickColor.new("Royal purple")
  5435. v.Material = "Neon"
  5436. end
  5437. end
  5438. for i, v in pairs(extrawingmod2:GetChildren()) do
  5439. if v:IsA("Part") then
  5440. v.Transparency = 0.75
  5441. v.BrickColor = BrickColor.new("Royal purple")
  5442. v.Material = "Neon"
  5443. end
  5444. end
  5445. end
  5446.  
  5447.  
  5448. function normalmog()
  5449. attack = true
  5450. hum.WalkSpeed = 0
  5451. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5452. for i = 0,6,0.1 do
  5453. swait()
  5454. 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)
  5455. 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)
  5456. 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)
  5457. 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)
  5458. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5459. 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)
  5460. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5461. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5462. end
  5463. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5464. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5465. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5466. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5467. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5468. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5469. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5470. rainbowmode = false
  5471. chaosmode = false
  5472. ModeOfGlitch = 1
  5473. storehumanoidWS = 16
  5474. newTheme("rbxassetid://1537276744",48.6,1,1.25)
  5475. RecolorTextAndRename("STAR",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5476. CameraEnshaking(5,2.5)
  5477. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5478. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5479. for i = 0, 49 do
  5480. 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)
  5481. end
  5482. for i = 0, 24 do
  5483. 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)
  5484. 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"))
  5485. end
  5486. for i = 0,3,0.1 do
  5487. 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)
  5488. end
  5489. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5490. for i = 0,2,0.1 do
  5491. swait()
  5492. 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)
  5493. 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)
  5494. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5495. 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)
  5496. 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)
  5497. 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)
  5498. end
  5499. hum.WalkSpeed = storehumanoidWS
  5500. attack = false
  5501. end
  5502.  
  5503. function attackone()
  5504. attack = true
  5505. local keptcolor = MAINRUINCOLOR
  5506. for i = 0,1,0.1 do
  5507. swait()
  5508. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5509. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5510. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5511. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5512. 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)
  5513. 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)
  5514. end
  5515. local distlook = 5
  5516. coroutine.resume(coroutine.create(function()
  5517. for i = 0, 4 do
  5518. swait(2)
  5519. CameraEnshaking(2,3)
  5520. local hite = Instance.new("Part", char)
  5521. hite.Anchored = true
  5522. hite.CanCollide = false
  5523. hite.FormFactor = 3
  5524. hite.Name = "Ring"
  5525. hite.Material = "Neon"
  5526. hite.Size = Vector3.new(1, 1, 1)
  5527. hite.Transparency = 1
  5528. hite.TopSurface = 0
  5529. hite.BottomSurface = 0
  5530. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5531. 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)
  5532. 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)
  5533. 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)
  5534. 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)
  5535. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5536. for i = 0, 14 do
  5537. local rsiz = math.random(5,20)
  5538. 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)
  5539. end
  5540. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5541. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5542. game:GetService("Debris"):AddItem(hite, 5)
  5543. distlook = distlook + 10
  5544. end
  5545. end))
  5546. for i = 0,1,0.1 do
  5547. swait()
  5548. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5549. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5550. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5551. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5552. 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)
  5553. 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)
  5554. end
  5555. attack = false
  5556. end
  5557.  
  5558. function attacktwo()
  5559. attack = true
  5560. hum.WalkSpeed = 2
  5561. local keptcolor = MAINRUINCOLOR
  5562. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5563. 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)
  5564. 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)
  5565. for i = 0, 14 do
  5566. end
  5567. for i = 0,1,0.1 do
  5568. swait()
  5569. 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)
  5570. 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)
  5571. 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)
  5572. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5573. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5574. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5575. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5576. end
  5577. for i = 0, 1 do
  5578. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5579. for i = 0,1,0.6 do
  5580. swait()
  5581. 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)
  5582. 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)
  5583. 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)
  5584. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5585. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5586. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5587. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5588. end
  5589. for i = 0,1,0.6 do
  5590. swait()
  5591. 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)
  5592. 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)
  5593. 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)
  5594. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5595. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5596. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5597. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5598. end
  5599. for i = 0,1,0.6 do
  5600. swait()
  5601. 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)
  5602. 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)
  5603. 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)
  5604. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5605. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5606. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5607. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5608. end
  5609. for i = 0,1,0.6 do
  5610. swait()
  5611. 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)
  5612. 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)
  5613. 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)
  5614. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5615. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5616. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5617. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5618. end
  5619. local rot = 0
  5620. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5621. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5622. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5623. CreateMesh(dis,"Sphere",10,1,10)
  5624. local at1 = Instance.new("Attachment",dis)
  5625. at1.Position = vt(-5,0,0)
  5626. local at2 = Instance.new("Attachment",dis)
  5627. at2.Position = vt(5,0,0)
  5628. local trl = Instance.new('Trail',wed)
  5629. trl.Attachment0 = at1
  5630. trl.Attachment1 = at2
  5631. trl.Texture = "rbxassetid://1049219073"
  5632. trl.LightEmission = 1
  5633. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5634. trl.Color = ColorSequence.new(dis.Color)
  5635. trl.Lifetime = 0.6
  5636. local a = Instance.new("Part",workspace)
  5637. a.Name = "Direction"
  5638. a.Anchored = true
  5639. a.BrickColor = bc("Bright red")
  5640. a.Material = "Neon"
  5641. a.Transparency = 1
  5642. a.CanCollide = false
  5643. local ray = Ray.new(
  5644. dis.CFrame.p, -- origin
  5645. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5646. )
  5647. local ignore = dis
  5648. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5649. a.BottomSurface = 10
  5650. a.TopSurface = 10
  5651. local distance = (dis.CFrame.p - position).magnitude
  5652. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5653. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5654. dis.CFrame = a.CFrame
  5655. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5656. a:Destroy()
  5657. local bv = Instance.new("BodyVelocity")
  5658. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5659. bv.velocity = dis.CFrame.lookVector*250
  5660. bv.Parent = dis
  5661. game:GetService("Debris"):AddItem(dis, 5)
  5662. local hitted = false
  5663. coroutine.resume(coroutine.create(function()
  5664. dis.Touched:connect(function(hit)
  5665. if hitted == false and hit.Parent ~= char then
  5666. hitted = true
  5667. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5668. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5669. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5670. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5671. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5672. coroutine.resume(coroutine.create(function()
  5673. for i = 0, 9 do
  5674. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5675. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5676. local at1 = Instance.new("Attachment",disr)
  5677. at1.Position = vt(-5,0,0)
  5678. local at2 = Instance.new("Attachment",disr)
  5679. at2.Position = vt(5,0,0)
  5680. local trl = Instance.new('Trail',disr)
  5681. trl.Attachment0 = at1
  5682. trl.FaceCamera = true
  5683. trl.Attachment1 = at2
  5684. trl.Texture = "rbxassetid://2342682798"
  5685. trl.LightEmission = 1
  5686. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5687. trl.Color = ColorSequence.new(keptcolor.Color)
  5688. trl.Lifetime = 0.5
  5689. local bv = Instance.new("BodyVelocity")
  5690. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5691. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5692. bv.Parent = disr
  5693. local val = 0
  5694. coroutine.resume(coroutine.create(function()
  5695. swait(30)
  5696. for i = 0, 9 do
  5697. swait()
  5698. val = val + 0.1
  5699. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5700. end
  5701. game:GetService("Debris"):AddItem(disr, 3)
  5702. end))
  5703. end
  5704. local eff = Instance.new("ParticleEmitter",dis)
  5705. eff.Texture = "rbxassetid://2273224484"
  5706. eff.LightEmission = 1
  5707. eff.Color = ColorSequence.new(keptcolor.Color)
  5708. eff.Rate = 50
  5709. eff.Lifetime = NumberRange.new(0.5,2)
  5710. 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)})
  5711. 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)})
  5712. eff.Speed = NumberRange.new(20,250)
  5713. eff.Drag = 5
  5714. eff.Rotation = NumberRange.new(-500,500)
  5715. eff.VelocitySpread = 9000
  5716. eff.RotSpeed = NumberRange.new(-50,50)
  5717. wait(0.25)
  5718. eff.Enabled = false
  5719. end))
  5720. for i = 0, 9 do
  5721. end
  5722. for i = 0, 19 do
  5723. end
  5724. coroutine.resume(coroutine.create(function()
  5725. for i = 0, 19 do
  5726. swait()
  5727. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5728. end
  5729. hum.CameraOffset = vt(0,0,0)
  5730. end))
  5731. dis.Anchored = true
  5732. dis.Transparency = 1
  5733. wait(8)
  5734. dis:Destroy()
  5735. end
  5736. end)
  5737. end))
  5738. rot = rot - 15
  5739. end
  5740. for i = 0,2,0.1 do
  5741. swait()
  5742. 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)
  5743. 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)
  5744. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5745. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5746. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5747. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5748. end
  5749. attack = false
  5750. hum.WalkSpeed = storehumanoidWS
  5751. end
  5752.  
  5753. function attackthree()
  5754. attack = true
  5755. local keptcolor = MAINRUINCOLOR
  5756. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5757. for i = 0,2,0.1 do
  5758. swait()
  5759. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5760. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5761. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5762. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5763. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5764. 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)
  5765. 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)
  5766. end
  5767. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5768. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5769. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5770. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5771. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5772. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5773. for i = 0, 24 do
  5774. end
  5775. for i = 0,4,0.1 do
  5776. swait()
  5777. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5778. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5779. CreateMesh(dis,"Sphere",1,1,1)
  5780. dis.Anchored = true
  5781. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5782. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5783. coroutine.resume(coroutine.create(function()
  5784. swait(30)
  5785. dis.Transparency = 1
  5786. coroutine.resume(coroutine.create(function()
  5787. for i = 0, 19 do
  5788. swait()
  5789. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5790. end
  5791. hum.CameraOffset = vt(0,0,0)
  5792. end))
  5793. coroutine.resume(coroutine.create(function()
  5794. local eff = Instance.new("ParticleEmitter",dis)
  5795. eff.Texture = "rbxassetid://2273224484"
  5796. eff.LightEmission = 1
  5797. eff.Color = ColorSequence.new(dis.Color)
  5798. eff.Rate = 500000
  5799. eff.Lifetime = NumberRange.new(0.5,2)
  5800. 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)})
  5801. 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)})
  5802. eff.Speed = NumberRange.new(50,450)
  5803. eff.Drag = 5
  5804. eff.Rotation = NumberRange.new(-500,500)
  5805. eff.VelocitySpread = 9000
  5806. eff.RotSpeed = NumberRange.new(-50,50)
  5807. wait(0.125)
  5808. eff.Enabled = false
  5809. end))
  5810. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5811. for i = 0, 2 do
  5812. --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)
  5813. end
  5814. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5815. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5816. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5817. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5818. end))
  5819. game:GetService("Debris"):AddItem(dis, 5)
  5820. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5821. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5822. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5823. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5824. 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)
  5825. 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)
  5826. end
  5827. attack = false
  5828. end
  5829. ----------------------------------- Abilities
  5830.  
  5831. function ExtinctiveHeartbreak()
  5832. local targetted = nil
  5833. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5834. targetted = mouse.Target.Parent
  5835. end
  5836. if targetted ~= nil then
  5837. attack = true
  5838. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5839. for i = 0, 9 do
  5840. --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)
  5841. end
  5842. for i = 0, 24 do
  5843. --
  5844. end
  5845. --sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5846. local originalpos = root.CFrame
  5847. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5848. for i = 0, 9 do
  5849. --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)
  5850. end
  5851. for i = 0, 24 do
  5852. end
  5853. hum.WalkSpeed = 0
  5854. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5855. local radm = math.random(1,3)
  5856. if radm == 1 then
  5857. --bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5858. elseif radm == 2 then
  5859. --bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5860. elseif radm == 3 then
  5861. --bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5862. end
  5863. for i = 0,2,0.1 do
  5864. swait()
  5865. 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)
  5866. 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)
  5867. 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)
  5868. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5869. 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)
  5870. 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)
  5871. end
  5872. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  5873. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  5874. for i = 0,2,0.1 do
  5875. swait()
  5876. coroutine.resume(coroutine.create(function()
  5877. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5878. for i,v in pairs(targetted:GetChildren()) do
  5879. if v:IsA("Part") or v:IsA("MeshPart") then
  5880. v.Velocity = vt(0,0,0)
  5881. end
  5882. end
  5883. end))
  5884. 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)
  5885. 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)
  5886. 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)
  5887. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5888. 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)
  5889. 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)
  5890. end
  5891. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  5892. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  5893. for i = 0, 1 do
  5894. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  5895. end
  5896. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  5897. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5898. for i = 0,4,0.1 do
  5899. swait()
  5900. coroutine.resume(coroutine.create(function()
  5901. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5902. 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)))
  5903. local at1 = Instance.new("Attachment",dis)
  5904. at1.Position = vt(-25000,0,0)
  5905. local at2 = Instance.new("Attachment",dis)
  5906. at2.Position = vt(25000,0,0)
  5907. local trl = Instance.new('Trail',dis)
  5908. trl.Attachment0 = at1
  5909. trl.FaceCamera = true
  5910. trl.Attachment1 = at2
  5911. trl.Texture = "rbxassetid://1049219073"
  5912. trl.LightEmission = 1
  5913. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5914. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5915. trl.Lifetime = 5
  5916. local bv = Instance.new("BodyVelocity")
  5917. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5918. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5919. bv.Parent = dis
  5920. game:GetService("Debris"):AddItem(dis, 5)
  5921. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5922. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5923. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5924. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5925. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5926. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5927. 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)
  5928. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5929. for i = 0, 2 do
  5930. --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"))
  5931. end
  5932. 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)
  5933. for i,v in pairs(targetted:GetChildren()) do
  5934. if v:IsA("Part") or v:IsA("MeshPart") then
  5935. v.Velocity = vt(0,0,0)
  5936. end
  5937. end
  5938. end))
  5939. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5940. 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)
  5941. 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)
  5942. 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)
  5943. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5944. 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)
  5945. 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)
  5946. end
  5947. hum.CameraOffset = vt(0,0,0)
  5948. for i = 0, 49 do
  5949. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5950. 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)))
  5951. local at1 = Instance.new("Attachment",dis)
  5952. at1.Position = vt(-50000,0,0)
  5953. local at2 = Instance.new("Attachment",dis)
  5954. at2.Position = vt(50000,0,0)
  5955. local trl = Instance.new('Trail',dis)
  5956. trl.Attachment0 = at1
  5957. trl.FaceCamera = true
  5958. trl.Attachment1 = at2
  5959. trl.Texture = "rbxassetid://1049219073"
  5960. trl.LightEmission = 1
  5961. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5962. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5963. trl.Lifetime = 5
  5964. local bv = Instance.new("BodyVelocity")
  5965. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5966. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5967. bv.Parent = dis
  5968. game:GetService("Debris"):AddItem(dis, 5)
  5969. end
  5970. for i = 0, 49 do
  5971. 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)
  5972. --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"))
  5973. end
  5974. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5975. for i = 0, 1 do
  5976. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5977. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5978. end
  5979. for i = 0, 4 do
  5980. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5981. end
  5982. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5983. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5984. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5985. dmg(targetted)
  5986. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5987. for i = 0, 9 do
  5988. --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)
  5989. end
  5990. for i = 0, 24 do
  5991. end
  5992. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5993. root.CFrame = originalpos
  5994. for i = 0, 9 do
  5995. --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)
  5996. end
  5997. for i = 0, 24 do
  5998. end
  5999. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  6000. attack = false
  6001. hum.WalkSpeed = storehumanoidWS
  6002. end
  6003. end
  6004.  
  6005. function CorruptionEvent()
  6006. attack = true
  6007. hum.WalkSpeed = 0
  6008. bosschatfunc("EVIL STOMP!!",MAINRUINCOLOR.Color,2)
  6009. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  6010. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  6011. local keptcolor = MAINRUINCOLOR
  6012. for i = 0,4,0.1 do
  6013. swait()
  6014. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6015. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6016. 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)
  6017. 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)
  6018. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  6019. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  6020. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  6021. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  6022. end
  6023. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  6024. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  6025. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  6026. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  6027. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  6028. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  6029. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  6030. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  6031. hum.CameraOffset = vt(0,0,0)
  6032. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6033. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6034. for i = 0, 24 do
  6035. --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"))
  6036. end
  6037. local rrot = 0
  6038. coroutine.resume(coroutine.create(function()
  6039. for i = 0, 4 do
  6040. rrot = rrot + 45
  6041. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6042. xa.Anchored = true
  6043. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6044. xb.Anchored = true
  6045. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6046. xc.Anchored = true
  6047. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6048. xd.Anchored = true
  6049. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  6050. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  6051. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  6052. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  6053. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  6054. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  6055. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  6056. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  6057. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  6058. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  6059. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  6060. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  6061. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  6062. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  6063. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  6064. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  6065. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6066. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6067. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6068. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6069. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6070. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6071. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6072. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6073. 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)
  6074. 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)
  6075. 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)
  6076. 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)
  6077. 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))
  6078. 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))
  6079. 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))
  6080. 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))
  6081. game:GetService("Debris"):AddItem(xa, 5)
  6082. game:GetService("Debris"):AddItem(xb, 5)
  6083. game:GetService("Debris"):AddItem(xc, 5)
  6084. game:GetService("Debris"):AddItem(xd, 5)
  6085. coroutine.resume(coroutine.create(function()
  6086. for i = 0, 19 do
  6087. swait()
  6088. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6089. end
  6090. hum.CameraOffset = vt(0,0,0)
  6091. end))
  6092. swait(9)
  6093. end
  6094. end))
  6095. for i = 0,2,0.1 do
  6096. swait()
  6097. 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)
  6098. 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)
  6099. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  6100. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  6101. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  6102. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6103. end
  6104. attack = false
  6105. hum.WalkSpeed = storehumanoidWS
  6106. end
  6107.  
  6108. function EndGROUND()
  6109. attack = true
  6110. hum.WalkSpeed = 0
  6111. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  6112. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  6113. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  6114. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  6115. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  6116. local keptcolor = MAINRUINCOLOR
  6117. for i = 0,4,0.1 do
  6118. swait()
  6119. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6120. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6121. --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"))
  6122. 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)
  6123. 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)
  6124. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  6125. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  6126. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  6127. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  6128. end
  6129. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  6130. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  6131. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  6132. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  6133. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  6134. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  6135. coroutine.resume(coroutine.create(function()
  6136. local shval = 10
  6137. for i = 0, 99 do
  6138. swait()
  6139. shval = shval - 0.1
  6140. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  6141. end
  6142. hum.CameraOffset = vt(0,0,0)
  6143. end))
  6144. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6145. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6146. for i = 0, 24 do
  6147. --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"))
  6148. end
  6149. local rrot = 0
  6150. local xam = 1
  6151. coroutine.resume(coroutine.create(function()
  6152. for i = 0, 14 do
  6153. --swait()
  6154. rrot = rrot + 40*xam
  6155. xam = xam + 0.25
  6156. local bonus = xam
  6157. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  6158. xa.Anchored = true
  6159. xa.Color = Color3.new(0,0,0)
  6160. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  6161. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  6162. local xc = 0
  6163. coroutine.resume(coroutine.create(function()
  6164. for i = 0, 99 do
  6165. swait()
  6166. xc = xc + 0.01
  6167. xa.Color = Color3.new(xc,0,0)
  6168. end
  6169. xa.Transparency = 1
  6170. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  6171. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  6172. for i = 0, 9 do
  6173. --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"))
  6174. end
  6175. 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)
  6176. 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)
  6177. 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))
  6178. game:GetService("Debris"):AddItem(xa, 5)
  6179. coroutine.resume(coroutine.create(function()
  6180. for i = 0, 19 do
  6181. swait()
  6182. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6183. end
  6184. hum.CameraOffset = vt(0,0,0)
  6185. end))
  6186. end))
  6187. end
  6188. end))
  6189. for i = 0,2,0.1 do
  6190. swait()
  6191. 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)
  6192. 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)
  6193. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  6194. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  6195. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  6196. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6197. end
  6198. attack = false
  6199. hum.WalkSpeed = storehumanoidWS
  6200. end
  6201.  
  6202. function HeavenlyDisk()
  6203. attack = true
  6204. hum.WalkSpeed = 2
  6205. local keptcolor = MAINRUINCOLOR
  6206. local radm = math.random(1,3)
  6207. if radm == 1 then
  6208. --bosschatfunc("Don't make this too easy for you.",MAINRUINCOLOR.Color,1)
  6209. elseif radm == 2 then
  6210. --bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  6211. elseif radm == 3 then
  6212. --bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6213. end
  6214. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6215. CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
  6216. for i = 0, 14 do
  6217. --
  6218. end
  6219. for i = 0,2,0.1 do
  6220. swait()
  6221. 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)
  6222. 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)
  6223. 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)
  6224. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6225. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6226. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6227. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6228. end
  6229. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6230. for i = 0,1,0.6 do
  6231. swait()
  6232. 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)
  6233. --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"))
  6234. 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)
  6235. 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)
  6236. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6237. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6238. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6239. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6240. end
  6241. for i = 0,1,0.6 do
  6242. swait()
  6243. 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)
  6244. --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"))
  6245. 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)
  6246. 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)
  6247. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6248. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6249. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6250. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6251. end
  6252. for i = 0,1,0.6 do
  6253. swait()
  6254. 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)
  6255. --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"))
  6256. 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)
  6257. 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)
  6258. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6259. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6260. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6261. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6262. end
  6263. for i = 0,1,0.6 do
  6264. swait()
  6265. 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)
  6266. --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"))
  6267. 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)
  6268. 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)
  6269. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6270. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6271. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6272. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6273. end
  6274. local rot = 15
  6275. for i = 0, 2 do
  6276. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6277. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6278. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6279. CreateMesh(dis,"Sphere",10,1,10)
  6280. local at1 = Instance.new("Attachment",dis)
  6281. at1.Position = vt(-5,0,0)
  6282. local at2 = Instance.new("Attachment",dis)
  6283. at2.Position = vt(5,0,0)
  6284. local trl = Instance.new('Trail',wed)
  6285. trl.Attachment0 = at1
  6286. trl.Attachment1 = at2
  6287. trl.Texture = "rbxassetid://1049219073"
  6288. trl.LightEmission = 1
  6289. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6290. trl.Color = ColorSequence.new(dis.Color)
  6291. trl.Lifetime = 0.6
  6292. local a = Instance.new("Part",workspace)
  6293. a.Name = "Direction"
  6294. a.Anchored = true
  6295. a.BrickColor = bc("Bright red")
  6296. a.Material = "Neon"
  6297. a.Transparency = 1
  6298. a.CanCollide = false
  6299. local ray = Ray.new(
  6300. dis.CFrame.p, -- origin
  6301. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6302. )
  6303. local ignore = dis
  6304. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6305. a.BottomSurface = 10
  6306. a.TopSurface = 10
  6307. local distance = (dis.CFrame.p - position).magnitude
  6308. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6309. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6310. dis.CFrame = a.CFrame
  6311. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6312. a:Destroy()
  6313. local bv = Instance.new("BodyVelocity")
  6314. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6315. bv.velocity = dis.CFrame.lookVector*250
  6316. bv.Parent = dis
  6317. game:GetService("Debris"):AddItem(dis, 5)
  6318. local hitted = false
  6319. coroutine.resume(coroutine.create(function()
  6320. dis.Touched:connect(function(hit)
  6321. if hitted == false and hit.Parent ~= char then
  6322. hitted = true
  6323. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6324. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6325. --sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6326. --sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6327. --sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6328. coroutine.resume(coroutine.create(function()
  6329. for i = 0, 9 do
  6330. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6331. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6332. local at1 = Instance.new("Attachment",disr)
  6333. at1.Position = vt(-2,0,0)
  6334. local at2 = Instance.new("Attachment",disr)
  6335. at2.Position = vt(2,0,0)
  6336. local trl = Instance.new('Trail',disr)
  6337. trl.Attachment0 = at1
  6338. trl.FaceCamera = true
  6339. trl.Attachment1 = at2
  6340. trl.Texture = "rbxassetid://2342682798"
  6341. trl.LightEmission = 1
  6342. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6343. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6344. trl.Lifetime = 0.5
  6345. local bv = Instance.new("BodyVelocity")
  6346. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6347. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6348. bv.Parent = disr
  6349. local val = 0
  6350. coroutine.resume(coroutine.create(function()
  6351. swait(30)
  6352. for i = 0, 9 do
  6353. swait()
  6354. val = val + 0.1
  6355. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6356. end
  6357. game:GetService("Debris"):AddItem(disr, 3)
  6358. end))
  6359. end
  6360. local eff = Instance.new("ParticleEmitter",dis)
  6361. eff.Texture = "rbxassetid://2273224484"
  6362. eff.LightEmission = 1
  6363. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6364. eff.Rate = 500000
  6365. eff.Lifetime = NumberRange.new(0.5,2)
  6366. 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)})
  6367. 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)})
  6368. eff.Speed = NumberRange.new(20,250)
  6369. eff.Drag = 5
  6370. eff.Rotation = NumberRange.new(-500,500)
  6371. eff.VelocitySpread = 9000
  6372. eff.RotSpeed = NumberRange.new(-50,50)
  6373. wait(0.25)
  6374. eff.Enabled = false
  6375. end))
  6376. for i = 0, 9 do
  6377. --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"))
  6378. end
  6379. for i = 0, 19 do
  6380. --
  6381. end
  6382. coroutine.resume(coroutine.create(function()
  6383. for i = 0, 19 do
  6384. swait()
  6385. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6386. end
  6387. hum.CameraOffset = vt(0,0,0)
  6388. end))
  6389. dis.Anchored = true
  6390. dis.Transparency = 1
  6391. wait(8)
  6392. dis:Destroy()
  6393. end
  6394. end)
  6395. end))
  6396. rot = rot - 15
  6397. end
  6398. for i = 0,2,0.1 do
  6399. swait()
  6400. 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)
  6401. 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)
  6402. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6403. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6404. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6405. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6406. end
  6407. attack = false
  6408. hum.WalkSpeed = storehumanoidWS
  6409. end
  6410.  
  6411. function RapidBurst()
  6412. attack = true
  6413. hum.WalkSpeed = 0
  6414. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6415. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6416. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6417. bosschatfunc("SHATTER!!",MAINRUINCOLOR.Color,2)
  6418. local keptcolor = MAINRUINCOLOR
  6419. for i = 0,8,0.1 do
  6420. swait()
  6421. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6422. --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())
  6423. 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)
  6424. 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)
  6425. 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)
  6426. 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)
  6427. 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)
  6428. 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)
  6429. 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)
  6430. end
  6431. for i = 0, 99 do
  6432. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6433. 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)))
  6434. local at1 = Instance.new("Attachment",dis)
  6435. at1.Position = vt(-25000,0,0)
  6436. local at2 = Instance.new("Attachment",dis)
  6437. at2.Position = vt(25000,0,0)
  6438. local trl = Instance.new('Trail',dis)
  6439. trl.Attachment0 = at1
  6440. trl.FaceCamera = true
  6441. trl.Attachment1 = at2
  6442. trl.Texture = "rbxassetid://1049219073"
  6443. trl.LightEmission = 1
  6444. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6445. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6446. trl.Lifetime = 5
  6447. local bv = Instance.new("BodyVelocity")
  6448. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6449. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6450. bv.Parent = dis
  6451. game:GetService("Debris"):AddItem(dis, 5)
  6452. end
  6453. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6454. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6455. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6456. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6457. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6458. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6459. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6460. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6461. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6462. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6463. hum.CameraOffset = vt(0,0,0)
  6464. for i = 0, 24 do
  6465. --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())
  6466. end
  6467. local distam = 0
  6468. coroutine.resume(coroutine.create(function()
  6469. for i = 0, 99 do
  6470. wait()
  6471. distam = distam + 1
  6472. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6473. xa.Anchored = true
  6474. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6475. game:GetService("Debris"):AddItem(xa, 5)
  6476. for i = 0, 4 do
  6477. --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())
  6478. end
  6479. coroutine.resume(coroutine.create(function()
  6480. local eff = Instance.new("ParticleEmitter",xa)
  6481. eff.Texture = "rbxassetid://2273224484"
  6482. eff.LightEmission = 1
  6483. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6484. eff.Rate = 500000
  6485. eff.Lifetime = NumberRange.new(1,3)
  6486. 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)})
  6487. 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)})
  6488. eff.Speed = NumberRange.new(50,500)
  6489. eff.Drag = 5
  6490. eff.Rotation = NumberRange.new(-500,500)
  6491. eff.VelocitySpread = 9000
  6492. eff.RotSpeed = NumberRange.new(-50,50)
  6493. wait(0.25)
  6494. eff.Enabled = false
  6495. end))
  6496. coroutine.resume(coroutine.create(function()
  6497. for i = 0, 19 do
  6498. swait()
  6499. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6500. end
  6501. hum.CameraOffset = vt(0,0,0)
  6502. end))
  6503. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6504. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6505. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6506. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6507. end
  6508. end))
  6509. attack = false
  6510. hum.WalkSpeed = storehumanoidWS
  6511. end
  6512.  
  6513.  
  6514. function FallenOrbs()
  6515. attack = true
  6516. hum.WalkSpeed = 2
  6517. local keptcolor = MAINRUINCOLOR
  6518. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
  6519. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
  6520. local radm = math.random(1,3)
  6521. if radm == 1 then
  6522. bosschatfunc("Lets make this a little fun.",MAINRUINCOLOR.Color,1)
  6523. elseif radm == 2 then
  6524. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6525. elseif radm == 3 then
  6526. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6527. end
  6528. coroutine.resume(coroutine.create(function()
  6529. for i = 0, 29 do
  6530. swait(2)
  6531. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6532. dis.Anchored = true
  6533. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6534. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6535. CreateMesh(dis,"Sphere",2,2,2)
  6536. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6537. --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"))
  6538. coroutine.resume(coroutine.create(function()
  6539. wait(0.5)
  6540. dis.Anchored = false
  6541. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  6542. local at1 = Instance.new("Attachment",dis)
  6543. at1.Position = vt(-1,0,0)
  6544. local at2 = Instance.new("Attachment",dis)
  6545. at2.Position = vt(1,0,0)
  6546. local trl = Instance.new('Trail',dis)
  6547. trl.Attachment0 = at1
  6548. trl.FaceCamera = true
  6549. trl.Attachment1 = at2
  6550. trl.Texture = "rbxassetid://1049219073"
  6551. trl.LightEmission = 1
  6552. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6553. trl.Color = ColorSequence.new(dis.Color)
  6554. trl.Lifetime = 0.6
  6555. local a = Instance.new("Part",workspace)
  6556. a.Name = "Direction"
  6557. a.Anchored = true
  6558. a.BrickColor = bc("Bright red")
  6559. a.Material = "Neon"
  6560. a.Transparency = 1
  6561. a.CanCollide = false
  6562. local ray = Ray.new(
  6563. dis.CFrame.p, -- origin
  6564. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6565. )
  6566. local ignore = dis
  6567. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6568. a.BottomSurface = 10
  6569. a.TopSurface = 10
  6570. local distance = (dis.CFrame.p - position).magnitude
  6571. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6572. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6573. dis.CFrame = a.CFrame
  6574. a:Destroy()
  6575. local bv = Instance.new("BodyVelocity")
  6576. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6577. bv.velocity = dis.CFrame.lookVector*500
  6578. bv.Parent = dis
  6579. game:GetService("Debris"):AddItem(dis, 5)
  6580. local hitted = false
  6581. coroutine.resume(coroutine.create(function()
  6582. dis.Touched:connect(function(hit)
  6583. if hitted == false and hit.Parent ~= char then
  6584. hitted = true
  6585. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  6586. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6587. --sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6588. --sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6589. coroutine.resume(coroutine.create(function()
  6590. for i = 0, 4 do
  6591. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6592. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6593. local at1 = Instance.new("Attachment",disr)
  6594. at1.Position = vt(-10,0,0)
  6595. local at2 = Instance.new("Attachment",disr)
  6596. at2.Position = vt(10,0,0)
  6597. local trl = Instance.new('Trail',disr)
  6598. trl.Attachment0 = at1
  6599. trl.FaceCamera = true
  6600. trl.Attachment1 = at2
  6601. trl.Texture = "rbxassetid://2342682798"
  6602. trl.LightEmission = 1
  6603. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6604. trl.Color = ColorSequence.new(disr.Color)
  6605. trl.Lifetime = 0.5
  6606. local bv = Instance.new("BodyVelocity")
  6607. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6608. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6609. bv.Parent = disr
  6610. local val = 0
  6611. coroutine.resume(coroutine.create(function()
  6612. swait(30)
  6613. for i = 0, 9 do
  6614. swait()
  6615. val = val + 0.1
  6616. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6617. end
  6618. game:GetService("Debris"):AddItem(disr, 3)
  6619. end))
  6620. end
  6621. local eff = Instance.new("ParticleEmitter",dis)
  6622. eff.Texture = "rbxassetid://2273224484"
  6623. eff.LightEmission = 1
  6624. eff.Color = ColorSequence.new(dis.Color)
  6625. eff.Rate = 500000
  6626. eff.Lifetime = NumberRange.new(0.5,2)
  6627. 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)})
  6628. 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)})
  6629. eff.Speed = NumberRange.new(20,250)
  6630. eff.Drag = 5
  6631. eff.Rotation = NumberRange.new(-500,500)
  6632. eff.VelocitySpread = 9000
  6633. eff.RotSpeed = NumberRange.new(-50,50)
  6634. wait(0.5)
  6635. eff.Enabled = false
  6636. end))
  6637. for i = 0, 4 do
  6638. --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"))
  6639. end
  6640. coroutine.resume(coroutine.create(function()
  6641. for i = 0, 19 do
  6642. swait()
  6643. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6644. end
  6645. hum.CameraOffset = vt(0,0,0)
  6646. end))
  6647. dis.Anchored = true
  6648. dis.Transparency = 1
  6649. wait(8)
  6650. dis:Destroy()
  6651. end
  6652. end)
  6653. end))
  6654. end))
  6655. end
  6656. end))
  6657. for i = 0,9,0.1 do
  6658. swait()
  6659. 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)
  6660. 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)
  6661. 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)
  6662. 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)
  6663. 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)
  6664. 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)
  6665. 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)
  6666. end
  6667. attack = false
  6668. hum.WalkSpeed = storehumanoidWS
  6669. end
  6670.  
  6671. function EquinoxOrbs()
  6672. hum.WalkSpeed = 0
  6673. attack = true
  6674. for i = 0,1,0.1 do
  6675. swait()
  6676. 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)
  6677. 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)
  6678. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6679. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6680. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6681. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6682. end
  6683. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6684. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6685. for i = 0, 24 do
  6686. --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"))
  6687. end
  6688. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6689. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6690. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6691. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6692. for i = 0,4,0.1 do
  6693. swait()
  6694. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6695. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6696. CreateMesh(dis,"Sphere",1,1,1)
  6697. dis.Anchored = true
  6698. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6699. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6700. CreateMesh(dis2,"Sphere",1,1,1)
  6701. dis2.Anchored = true
  6702. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6703. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6704. --sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6705. coroutine.resume(coroutine.create(function()
  6706. swait(60)
  6707. dis.Transparency = 1
  6708. dis2.Transparency = 1
  6709. coroutine.resume(coroutine.create(function()
  6710. for i = 0, 19 do
  6711. swait()
  6712. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6713. end
  6714. hum.CameraOffset = vt(0,0,0)
  6715. end))
  6716. coroutine.resume(coroutine.create(function()
  6717. local eff = Instance.new("ParticleEmitter",dis)
  6718. eff.Texture = "rbxassetid://2273224484"
  6719. eff.LightEmission = 1
  6720. eff.Color = ColorSequence.new(dis.Color)
  6721. eff.Rate = 500000
  6722. eff.Lifetime = NumberRange.new(0.5,2)
  6723. 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)})
  6724. 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)})
  6725. eff.Speed = NumberRange.new(50,450)
  6726. eff.Drag = 5
  6727. eff.Rotation = NumberRange.new(-500,500)
  6728. eff.VelocitySpread = 9000
  6729. eff.RotSpeed = NumberRange.new(-50,50)
  6730. local eff2 = eff:Clone()
  6731. eff2.Parent = dis2
  6732. eff2.LightEmission = 0
  6733. eff2.Color = ColorSequence.new(dis2.Color)
  6734. wait(0.25)
  6735. eff.Enabled = false
  6736. eff2.Enabled = false
  6737. end))
  6738. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6739. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6740. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6741. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6742. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6743. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6744. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6745. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6746. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6747. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6748. end))
  6749. game:GetService("Debris"):AddItem(dis, 5)
  6750. game:GetService("Debris"):AddItem(dis2, 5)
  6751. 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)
  6752. 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)
  6753. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6754. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6755. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6756. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6757. end
  6758. attack = false
  6759. hum.WalkSpeed = storehumanoidWS
  6760. end
  6761. function FallenDEMISE()
  6762. attack = true
  6763. hum.WalkSpeed = 0
  6764. local keptcolor = MAINRUINCOLOR
  6765. --bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6766. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6767. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6768. for i = 0, 15, 0.1 do
  6769. swait()
  6770. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6771. 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)))
  6772. local at1 = Instance.new("Attachment",dis)
  6773. at1.Position = vt(-25000,0,0)
  6774. local at2 = Instance.new("Attachment",dis)
  6775. at2.Position = vt(25000,0,0)
  6776. local trl = Instance.new('Trail',dis)
  6777. trl.Attachment0 = at1
  6778. trl.FaceCamera = true
  6779. trl.Attachment1 = at2
  6780. trl.Texture = "rbxassetid://1049219073"
  6781. trl.LightEmission = 1
  6782. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6783. trl.Color = ColorSequence.new(dis.Color)
  6784. trl.Lifetime = 5
  6785. local bv = Instance.new("BodyVelocity")
  6786. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6787. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6788. bv.Parent = dis
  6789. game:GetService("Debris"):AddItem(dis, 1)
  6790. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6791. --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"))
  6792. --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"))
  6793. 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)
  6794. 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)
  6795. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6796. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6797. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6798. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6799. end
  6800. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6801. for i = 0, 30, 0.1 do
  6802. swait()
  6803. coroutine.resume(coroutine.create(function()
  6804. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6805. if v:FindFirstChild('Head') then
  6806. dmg(v)
  6807. end
  6808. end
  6809. end))
  6810. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6811. 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)))
  6812. local at1 = Instance.new("Attachment",dis)
  6813. at1.Position = vt(-50000,0,0)
  6814. local at2 = Instance.new("Attachment",dis)
  6815. at2.Position = vt(50000,0,0)
  6816. local trl = Instance.new('Trail',dis)
  6817. trl.Attachment0 = at1
  6818. trl.FaceCamera = true
  6819. trl.Attachment1 = at2
  6820. trl.Texture = "rbxassetid://1049219073"
  6821. trl.LightEmission = 1
  6822. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6823. trl.Color = ColorSequence.new(dis.Color)
  6824. trl.Lifetime = 10
  6825. local bv = Instance.new("BodyVelocity")
  6826. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6827. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6828. bv.Parent = dis
  6829. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6830. --sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6831. --sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6832. --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"))
  6833. --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"))
  6834. --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"))
  6835. --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"))
  6836. for i = 0, 2 do
  6837. --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)
  6838. end
  6839. 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)
  6840. 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)
  6841. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6842. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6843. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6844. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6845. end
  6846. attack = false
  6847. hum.WalkSpeed = storehumanoidWS
  6848. end
  6849. -------------------------------------
  6850.  
  6851. Humanoid.Animator.Parent = nil
  6852.  
  6853. -------------------------------------
  6854.  
  6855. local attacktype = 1
  6856. mouse.Button1Down:connect(function()
  6857. if attack == false and attacktype == 1 then
  6858. attacktype = 2
  6859. attackone()
  6860. elseif attack == false and attacktype == 2 then
  6861. attacktype = 3
  6862. attacktwo()
  6863. elseif attack == false and attacktype == 3 then
  6864. attacktype = 1
  6865. attackthree()
  6866. elseif attack == false and attacktype == 4 then
  6867. attacktype = 1
  6868. --attackfour()
  6869. end
  6870. end)
  6871. mouse.KeyDown:connect(function(k)
  6872. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  6873. --normalmog() ---Disabled due to crashing... only in VSB
  6874. ModeOfGlitch = 1
  6875. storehumanoidWS = 16
  6876. hum.WalkSpeed = 16
  6877. rainbowmode = false
  6878. chaosmode = false
  6879. newTheme("rbxassetid://1537276744",0,1.02,1.25)
  6880. RecolorTextAndRename("STAR",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  6881. MAINRUINCOLOR = BrickColor.new("Royal purple")
  6882. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  6883. end
  6884. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  6885. ModeOfGlitch = 2
  6886. storehumanoidWS = 16
  6887. hum.WalkSpeed = 16
  6888. rainbowmode = false
  6889. chaosmode = false
  6890. RecolorTextAndRename("COLORBLIND_STAR",Color3.new(0,0,0),Color3.new(0,0,0),"Code")
  6891. newTheme("rbxassetid://790661474",0,1,1)
  6892. MAINRUINCOLOR = BrickColor.new("Really black")
  6893. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6894. end
  6895. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  6896. ModeOfGlitch = 3
  6897. storehumanoidWS = 16
  6898. hum.WalkSpeed = 16
  6899. rainbowmode = false
  6900. chaosmode = false
  6901. RecolorTextAndRename("CONTROLLED_STAR",Color3.new(0,0,0),Color3.new(0,0,0.4),"Antique")
  6902. newTheme("rbxassetid://2074863720", 0,0.8,1.5)
  6903. MAINRUINCOLOR = BrickColor.new("Dark red")
  6904. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6905. end
  6906. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  6907. ModeOfGlitch = 4
  6908. storehumanoidWS = 16
  6909. hum.WalkSpeed = 16
  6910. rainbowmode = false
  6911. chaosmode = true
  6912. RecolorTextAndRename("InSaNe StAr",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  6913. newTheme("rbxassetid://623662713",0,1,1)
  6914. MAINRUINCOLOR = BrickColor.new("Black")
  6915. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6916. end
  6917. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  6918. ModeOfGlitch = 5
  6919. storehumanoidWS = 100
  6920. hum.WalkSpeed = 100
  6921. rainbowmode = false
  6922. chaosmode = false
  6923. RecolorTextAndRename("undone star",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  6924. newTheme("rbxassetid://443932126",1,1,10)
  6925. MAINRUINCOLOR = BrickColor.new("Really yellow")
  6926. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6927. end
  6928. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  6929. ModeOfGlitch = 6
  6930. storehumanoidWS = 100
  6931. hum.WalkSpeed = 100
  6932. rainbowmode = false
  6933. chaosmode = false
  6934. RecolorTextAndRename("STAR'S SOLITUDE",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  6935. newTheme("rbxassetid://1564523997",0,1,1)
  6936. MAINRUINCOLOR = BrickColor.new("Really black")
  6937. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6938. end
  6939. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  6940. ModeOfGlitch = 8
  6941. storehumanoidWS = 140
  6942. hum.WalkSpeed = 140
  6943. rainbowmode = false
  6944. chaosmode = false
  6945. RecolorTextAndRename("STAR'S DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  6946. newTheme("rbxassetid://1495032271",0,1.01,1.25)
  6947. MAINRUINCOLOR = BrickColor.new("Alder")
  6948. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6949. end
  6950. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  6951. ModeOfGlitch = 9
  6952. storehumanoidWS = 150
  6953. hum.WalkSpeed = 150
  6954. rainbowmode = true
  6955. chaosmode = false
  6956. RecolorTextAndRename("Master of Tides",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  6957. newTheme("rbxassetid://945682825",0,0.8,1.5)
  6958. MAINRUINCOLOR = BrickColor.new("Dark red")
  6959. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark Red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6960. end
  6961. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  6962. ModeOfGlitch = 8889
  6963. storehumanoidWS = 180
  6964. hum.WalkSpeed = 180
  6965. rainbowmode = false
  6966. chaosmode = false
  6967. RecolorTextAndRename("STAR'S CALAMITY",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  6968. newTheme("rbxassetid://1359036559",0,1.01,1.25)
  6969. MAINRUINCOLOR = BrickColor.new("Lilac")
  6970. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6971. end
  6972. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  6973. ModeOfGlitch = 55469696922
  6974. storehumanoidWS = 275
  6975. hum.WalkSpeed = 275
  6976. rainbowmode = false
  6977. chaosmode = false
  6978. RecolorTextAndRename("Unknown",Color3.new(0.25,0,0.1),BrickColor.new("Ghost grey").Color,"Antique")
  6979. newTheme("rbxassetid://1475980354",0,1.005,1.25)
  6980. MAINRUINCOLOR = BrickColor.new("Navy blue")
  6981. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6982. end
  6983. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  6984. ModeOfGlitch = 4367677813
  6985. storehumanoidWS = 225
  6986. hum.WalkSpeed = 225
  6987. rainbowmode = false
  6988. chaosmode = false
  6989. RecolorTextAndRename("Star's light",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  6990. newTheme("rbxassetid://363284685",0,1.01,1.25)
  6991. MAINRUINCOLOR = BrickColor.new("Baby blue")
  6992. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6993. end
  6994. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  6995. ModeOfGlitch = 9999999921111
  6996. storehumanoidWS = 16
  6997. hum.WalkSpeed = 16
  6998. rainbowmode = false
  6999. chaosmode = false
  7000. RecolorTextAndRename("STAR'S LOST LIGHT",BrickColor.new("Really black").Color,BrickColor.new("Really black").Color,"SciFi")
  7001. newTheme("rbxassetid://1346743822",0,1,1)
  7002. MAINRUINCOLOR = BrickColor.new("Really black")
  7003. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7004. end
  7005. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  7006.  
  7007. ModeOfGlitch = 999999999556
  7008. storehumanoidWS = 250
  7009. hum.WalkSpeed = 250
  7010. rainbowmode = false
  7011. chaosmode = false
  7012. RecolorTextAndRename("STAR'S DETERMANATION",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
  7013. newTheme("rbxassetid://186942568",0,1.02,1.25)
  7014. MAINRUINCOLOR = BrickColor.new("Really red")
  7015. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7016. end
  7017. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  7018. ModeOfGlitch = 1264532489
  7019. storehumanoidWS = 250
  7020. hum.WalkSpeed = 250
  7021. rainbowmode = false
  7022. chaosmode = false
  7023. RecolorTextAndRename("STAR'S CORRUPTED CATASTROPHE",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  7024. newTheme("rbxassetid://1504604335",0,0.8,1.5)
  7025. MAINRUINCOLOR = BrickColor.new("Royal purple")
  7026. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7027. end
  7028. if k == "l" and mutedtog == false then
  7029. mutedtog = true
  7030. kan.Volume = 0
  7031. elseif k == "l" and mutedtog == true then
  7032. mutedtog = false
  7033. kan.Volume = 1.25
  7034. end
  7035. if k == "p" and toggleTag == false then
  7036. toggleTag = true
  7037. modet.TextTransparency = 0
  7038. modet.TextStrokeTransparency = 0
  7039. elseif k == "p" and toggleTag == true then
  7040. toggleTag = false
  7041. modet.TextTransparency = 1
  7042. modet.TextStrokeTransparency = 1
  7043. end
  7044. if k == "z" and attack == false and ModeOfGlitch == 1 then
  7045. ExtinctiveHeartbreak()
  7046. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  7047. HeavenlyDisk()
  7048. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  7049. GleamingBeam()
  7050. elseif k == "x" and attack == false and ModeOfGlitch == 999999999556 then
  7051. BeamOfDeath()
  7052. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  7053. Beams()
  7054. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  7055. CorruptionEvent()
  7056. elseif k == "z" and attack == false and ModeOfGlitch == 9999999921111 then
  7057. CorruptionEvent()
  7058. elseif k == "c" and attack == false and ModeOfGlitch == 4 then
  7059. ChaosGroundStrike()
  7060. elseif k == "z" and attack == false and ModeOfGlitch == 9999999921111 then
  7061. ChaosGroundStrike()
  7062. elseif k == "v" and attack == false and ModeOfGlitch == 4 then
  7063. ChaosBegone()
  7064. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  7065. ChaosBegone()
  7066. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  7067. CorruptionEvent()
  7068. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  7069. Starfall()
  7070. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  7071. Judgement()
  7072. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  7073. RapidBurst()
  7074. elseif k == "z" and attack == false and ModeOfGlitch == 55469696922 then
  7075. hugg()
  7076. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  7077. EquinoxOrbs()
  7078. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  7079. FallenOrbs()
  7080. end
  7081. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  7082. FallenDEMISE()
  7083. end
  7084. if k == "x" and attack == false and ModeOfGlitch == 1 then
  7085. EndGROUND()
  7086. end
  7087. end)
  7088.  
  7089. --[[coroutine.resume(coroutine.create(function()
  7090. while true do
  7091. swait(2)
  7092. if chaosmode == true then
  7093. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7094. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7095. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7096. RecolorTextAndRename("InSaNe StAr",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  7097. for i, v in pairs(mw1:GetChildren()) do
  7098. if v:IsA("Part") then
  7099. v.Transparency = 0.75
  7100. v.BrickColor = BrickColor.random()
  7101. v.Material = "Neon"
  7102. end
  7103. end
  7104. for i, v in pairs(m2:GetChildren()) do
  7105. if v:IsA("Part") then
  7106. v.BrickColor = BrickColor.random()
  7107. v.Material = "Neon"
  7108. end
  7109. end
  7110. end
  7111. end
  7112. end))]]--
  7113. Humanoid.Name = "STARGLITCHER"
  7114. Humanoid.MaxHealth = math.huge
  7115. Humanoid.Health = math.huge
  7116. Instance.new("ForceField",char).Visible = false
  7117.  
  7118. local bguis = Instance.new("BillboardGui",tors)
  7119. bguis.Size = UDim2.new(25, 0, 25, 0)
  7120. local imgca = Instance.new("ImageLabel",bguis)
  7121. imgca.BackgroundTransparency = 1
  7122. imgca.ImageTransparency = 1
  7123. imgca.Size = UDim2.new(1,0,1,0)
  7124. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  7125. imgca.ImageColor3 = Color3.new(0,0,0)
  7126.  
  7127. idleanim=.4
  7128. while true do
  7129. if mutedtog == false then
  7130. kan.Volume = currentVol
  7131. elseif mutedtog == true then
  7132. kan.Volume = 0
  7133. end
  7134. kan.PlaybackSpeed = currentPitch
  7135. kan.Pitch = currentPitch
  7136. kan.SoundId = currentThemePlaying
  7137. kan.Looped = true
  7138. kan.Parent = char
  7139. kan:Resume()
  7140. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  7141. imgca.ImageTransparency = 1
  7142. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  7143. imgca.ImageColor3 = MAINRUINCOLOR.Color
  7144. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  7145. end
  7146. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  7147. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  7148. coroutine.resume(coroutine.create(function()
  7149. if chaosmode == true then
  7150. for i, v in pairs(mw1:GetChildren()) do
  7151. if v:IsA("Part") then
  7152. v.Transparency = 0
  7153. v.BrickColor = BrickColor.random()
  7154. v.Material = "Neon"
  7155. end
  7156. end
  7157. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7158. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7159. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7160. RecolorTextAndRename("InSaNe StAr",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  7161. end
  7162. end))
  7163. if chaosmode == false then
  7164. modet.Position = UDim2.new(0,0,0,0)
  7165. modet.Rotation = -5 * math.cos(sine / 32)
  7166. techc.Rotation = techc.Rotation + 1
  7167. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  7168. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  7169. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  7170. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  7171. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  7172. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  7173. else
  7174. techc.Rotation = techc.Rotation + 1
  7175. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  7176. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  7177. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  7178. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  7179. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  7180. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  7181. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  7182. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  7183. end
  7184. CameraManager()
  7185. swait()
  7186. 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)
  7187. 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)
  7188. 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)
  7189. 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)
  7190. 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)
  7191. 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)
  7192. 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)
  7193. 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)
  7194. 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)
  7195. 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)
  7196. 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)
  7197. 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)
  7198. sine = sine + change
  7199. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  7200. local velderp=RootPart.Velocity.y
  7201. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  7202. if equipped==true or equipped==false then
  7203. if attack==false then
  7204. idle=idle+1
  7205. else
  7206. idle=0
  7207. end
  7208. if idle>=500 then
  7209. if attack==false then
  7210. --Sheath()
  7211. end
  7212. end
  7213. if RootPart.Velocity.y > 1 and hitfloor==nil then
  7214. Anim="Jump"
  7215. if attack==false then
  7216. 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)
  7217. 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)
  7218. 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)
  7219. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  7220. 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)
  7221. 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)
  7222. end
  7223. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  7224. Anim="Fall"
  7225. if attack==false then
  7226. 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)
  7227. 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)
  7228. 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)
  7229. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  7230. 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)
  7231. 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)
  7232. end
  7233. elseif torvel<1 and hitfloor~=nil then
  7234. Anim="Idle"
  7235. if attack==false then
  7236. if ModeOfGlitch == 1 then
  7237. local snap = math.random(1,10)
  7238. if snap == 1 then
  7239. 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)
  7240. end
  7241. 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)
  7242. 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)
  7243. 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)
  7244. 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)
  7245. 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)
  7246. 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)
  7247. elseif ModeOfGlitch == 2 then
  7248. 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)
  7249. 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)
  7250. 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)
  7251. 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)
  7252. 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)
  7253. 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)
  7254. elseif ModeOfGlitch == 3 then
  7255. local snap = math.random(1,32)
  7256. if snap == 1 then
  7257. 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)
  7258. end
  7259. 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)
  7260. 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)
  7261. 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)
  7262. 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)
  7263. 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)
  7264. 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)
  7265. elseif ModeOfGlitch == 4 then
  7266. local snap = math.random(1,5)
  7267. if snap == 1 then
  7268. 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)
  7269. 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)
  7270. 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)
  7271. end
  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(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(25 - 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(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-25 + 2 * math.cos(sine / 32))),.1)
  7274. 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)
  7275. 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)
  7276. 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)
  7277. 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)
  7278. elseif ModeOfGlitch == 5 then
  7279. 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)
  7280. 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)
  7281. 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)
  7282. 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)
  7283. 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)
  7284. 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)
  7285. elseif ModeOfGlitch == 6 then
  7286. 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)
  7287. 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)
  7288. 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)
  7289. 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)
  7290. 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)
  7291. 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)
  7292. elseif ModeOfGlitch == 8 then
  7293. 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)
  7294. 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)
  7295. 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)
  7296. 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)
  7297. 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)
  7298. 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)
  7299. elseif ModeOfGlitch == 9 then
  7300. 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)
  7301. 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)
  7302. 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)
  7303. 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)
  7304. 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)
  7305. 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)
  7306. elseif ModeOfGlitch == 8889 then
  7307. 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)
  7308. 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)
  7309. 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)
  7310. 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)
  7311. 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)
  7312. 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)
  7313. elseif ModeOfGlitch == 1264532489 then
  7314. 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)
  7315. 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)
  7316. 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)
  7317. 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)
  7318. 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)
  7319. 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)
  7320. elseif ModeOfGlitch == 9999999921111 then
  7321. 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)
  7322. 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)
  7323. 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)
  7324. 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)
  7325. 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)
  7326. 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)
  7327. elseif ModeOfGlitch == 4367677813 then
  7328. 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)
  7329. 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)
  7330. 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)
  7331. 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)
  7332. 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)
  7333. 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)
  7334. elseif ModeOfGlitch == 55469696922 then
  7335. 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)
  7336. 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)
  7337. 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)
  7338. 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)
  7339. 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)
  7340. 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)
  7341. elseif ModeOfGlitch == 999999999556 then
  7342. 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)
  7343. 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)
  7344. 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)
  7345. 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)
  7346. 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)
  7347. 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)
  7348. end
  7349. end
  7350. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  7351. Anim="Walk"
  7352. if attack==false then
  7353. 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)
  7354. 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)
  7355. 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)
  7356. 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)
  7357. 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)
  7358. 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)
  7359. end
  7360. elseif torvel>=22 and hitfloor~=nil then
  7361. Anim="Run"
  7362. if attack==false then
  7363. 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
  7364. 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)
  7365. 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)
  7366. 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)
  7367. 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)
  7368. 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)
  7369. 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)
  7370. if ModeOfGlitch == 9 then
  7371. --
  7372. end
  7373. 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
  7374. 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)
  7375. 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)
  7376. 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)
  7377. 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)
  7378. 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)
  7379. 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)
  7380. end
  7381. end
  7382. end
  7383. end
  7384. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement