Advertisement
Dasd5755

not work fix sgre

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