Advertisement
Dasd5755

Star glitcher rework 0.2

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