Advertisement
Dasd5755

spectrum lagging fix beta v3

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