Advertisement
Dasd5755

Spectrum lagging fix beta v1

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