Advertisement
Guest User

Please NO

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