Advertisement
Dasd5755

spectrum lagging fix beta v2

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