Advertisement
Guest User

Untitled

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