Advertisement
Dasd5755

asf

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