Advertisement
VenomXploitz

hehehhe

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