Advertisement
Fullgamer309

star idk

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