Advertisement
XSleepyDemonX_17

whyruhere

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