Advertisement
Zach_script_stealer2

Star Gl1tcher V.2.2

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