Advertisement
Zach_script_stealer2

Star Gl1tcher V.2.3

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