Advertisement
Otsakuseed

X Glitcher V7

Apr 4th, 2019
6,445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 499.32 KB | None | 0 0
  1. --DO NOT LEAK!
  2. if game:GetService("RunService"):IsClient() then error("For this script to work, you must use h/ instead of hl/.") end
  3. local Player = owner
  4. local Mouse,mouse,UserInputService,ContextActionService
  5. do
  6. script.Parent = TimmyTurney
  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([[X Glitcher Loade
  93. Kx3x3 has awoken once again.
  94. He's ready to kill those heroes again.
  95. Kx3x3 will take over the world!
  96.  
  97. Created, Reworked by NoobyGames12. Heavily edited by RhiBel00351.
  98. This ISN'T the regular Star Glitcher Rework.
  99. It's an edit of SGR.
  100. So if you want the regular, go find it yourself.
  101. And YES, I DO KNOW NoobyGames12.
  102. HEY! Make sure you don't abuse this!
  103. ]])
  104.  
  105.  
  106. ------------- ORIGINAL WIELDER OC: Velnorum
  107. print([[Moves:
  108. ?????? ]])
  109. warn([[Update Log:
  110. N - ???
  111. Extra modes:
  112. ???
  113. Info from RhiBel00351:
  114. Edit this if you want, I don't really care.
  115. Note:
  116. Lots of hard work on this. I won't be making this again if this gets deleted.
  117. DarkEccentric is gay
  118. Also just a reminder: That THIS script is FAR from completion, so expect some things not finished.]])
  119. --- its obs smooth af do not touch
  120. ---- Sources and functions might be taken from others
  121. plr = owner
  122. char = plr.Character
  123. hum = char.Humanoid
  124. local cam = game.Workspace.CurrentCamera
  125. Camera = cam
  126. local CamInterrupt = false
  127. local TwoD = false
  128. local TargetInfo = {nil, nil}
  129. cam.CameraType = "Custom"
  130. t = char.Torso
  131. h = char.Head
  132. ra = char["Right Arm"]
  133. la = char["Left Arm"]
  134. rl = char["Right Leg"]
  135. ll = char["Left Leg"]
  136. tors = char.Torso
  137. lleg = char["Left Leg"]
  138. root = char.HumanoidRootPart
  139. hed = char.Head
  140. rleg = char["Right Leg"]
  141. rarm = char["Right Arm"]
  142. larm = char["Left Arm"]
  143. radian = math.rad
  144. random = math.random
  145. Vec3 = Vector3.new
  146. Inst = Instance.new
  147. cFrame = CFrame.new
  148. Euler = CFrame.fromEulerAnglesXYZ
  149. vt = Vector3.new
  150. bc = BrickColor.new
  151. br = BrickColor.random
  152. it = Instance.new
  153. cf = CFrame.new
  154.  
  155. local Booleans = {
  156. CamFollow = true,
  157. GyroUse = true
  158. }
  159.  
  160. function lerp(object, newCFrame, alpha)
  161. return object:lerp(newCFrame, alpha)
  162. end
  163.  
  164. local Directer = Inst("BodyGyro", root)
  165. Directer.MaxTorque = Vec3(0, 0, 0)
  166. Directer.P = 600000
  167. local CPart = Inst("Part")
  168. CPart.Anchored = true
  169. CPart.CanCollide = false
  170. CPart.Locked = true
  171. CPart.Transparency = 1
  172.  
  173. local rainbowmode = false
  174. local chaosmode = false
  175.  
  176. local kan = Instance.new("Sound",char)
  177. kan.Volume = 1.25
  178. kan.TimePosition = 0
  179. kan.PlaybackSpeed = 1
  180. kan.Pitch = 1
  181. kan.SoundId = "rbxassetid://614032233"
  182. kan.Name = "wrecked"
  183. kan.Looped = true
  184. kan:Play()
  185.  
  186. local currentThemePlaying = kan.SoundId
  187. local currentPitch = kan.Pitch
  188. local currentVol = kan.Volume
  189. function newTheme(ID,timepos,pitch,vol)
  190. local kanz = kan
  191. --kanz:Stop()
  192. kanz.Volume = vol
  193. --kanz.TimePosition = timepos
  194. kanz.PlaybackSpeed = pitch
  195. kanz.Pitch = pitch
  196. kanz.SoundId = ID
  197. kanz.Name = "wrecked"
  198. kanz.Looped = true
  199. currentThemePlaying = kanz.SoundId
  200. currentVol = kanz.Volume
  201. currentPitch = kanz.Pitch
  202. --kanz:Play()
  203. --coroutine.resume(coroutine.create(function()
  204. --wait(0.05)
  205. --end))
  206. end
  207.  
  208.  
  209. function newThemeCust(ID,timepos,pitch,vol)
  210. local kanz = kan
  211. kanz:Stop()
  212. kanz.Volume = vol
  213. kanz.TimePosition = timepos
  214. kanz.PlaybackSpeed = pitch
  215. kanz.Pitch = pitch
  216. kanz.SoundId = ID
  217. kanz.Name = "wrecked"
  218. kanz.Looped = true
  219. currentThemePlaying = kanz.SoundId
  220. currentVol = kanz.Volume
  221. currentPitch = kanz.Pitch
  222. kanz:Play()
  223. coroutine.resume(coroutine.create(function()
  224. wait(0.05)
  225. end))
  226. end
  227.  
  228. local mutedtog = false
  229.  
  230. function CameraEnshaking(Length,Intensity)
  231. coroutine.resume(coroutine.create(function()
  232. local intensity = 1*Intensity
  233. local rotM = 0.01*Intensity
  234. for i = 0, Length, 0.1 do
  235. swait()
  236. intensity = intensity - 0.05*Intensity/Length
  237. rotM = rotM - 0.0005*Intensity/Length
  238. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  239. 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)
  240. end
  241. Humanoid.CameraOffset = Vec3(0, 0, 0)
  242. end))
  243. end
  244. CamShake=function(Part,Distan,Power,Times)
  245. local de=Part.Position
  246. for i,v in pairs(workspace:children()) do
  247. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  248. for _,c in pairs(v:children()) do
  249. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  250. local Noob=v.Humanoid
  251. if Noob~=nil then
  252. coroutine.resume(coroutine.create(function()
  253. FV = Instance.new("BoolValue", Noob)
  254. FV.Name = "CameraShake"
  255. for ShakeNum=1,Times do
  256. swait()
  257. local ef=Power
  258. if ef>=1 then
  259. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  260. else
  261. ef=Power*10
  262. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  263. end
  264. end
  265. Humanoid.CameraOffset = Vector3.new(0,0,0)
  266. FV:Destroy()
  267. end))
  268. CameraShake(Times, Power, Noob)
  269. end
  270. end
  271. end
  272. end
  273. end
  274. end
  275.  
  276. local toggleTag = true
  277. local bilguit = Instance.new("BillboardGui", hed)
  278. bilguit.Adornee = nil
  279. bilguit.Name = "ModeName"
  280. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  281. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  282. local modet = Instance.new("TextLabel", bilguit)
  283. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  284. modet.FontSize = "Size8"
  285. modet.TextScaled = true
  286. modet.TextTransparency = 0
  287. modet.BackgroundTransparency = 1
  288. modet.TextTransparency = 0
  289. modet.TextStrokeTransparency = 0
  290. modet.Font = "Antique"
  291. modet.TextStrokeColor3 = Color3.new(1,0,0)
  292. modet.TextColor3 = Color3.new(0.25,0,0)
  293. modet.Text = "MAYHEM X"
  294.  
  295.  
  296. function chatfunc(text,color,typet,font,timeex)
  297. local chat = coroutine.wrap(function()
  298. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  299. Character:FindFirstChild("TalkingBillBoard"):destroy()
  300. end
  301. local naeeym2 = Instance.new("BillboardGui",Character)
  302. naeeym2.Size = UDim2.new(0,100,0,40)
  303. naeeym2.StudsOffset = Vector3.new(0,3,0)
  304. naeeym2.Adornee = Character.Head
  305. naeeym2.Name = "TalkingBillBoard"
  306. local tecks2 = Instance.new("TextLabel",naeeym2)
  307. tecks2.BackgroundTransparency = 1
  308. tecks2.BorderSizePixel = 0
  309. tecks2.Text = ""
  310. tecks2.Font = font
  311. tecks2.TextSize = 30
  312. tecks2.TextStrokeTransparency = 0
  313. tecks2.TextColor3 = color
  314. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  315. tecks2.Size = UDim2.new(1,0,0.5,0)
  316. local tecks3 = Instance.new("TextLabel",naeeym2)
  317. tecks3.BackgroundTransparency = 1
  318. tecks3.BorderSizePixel = 0
  319. tecks3.Text = ""
  320. tecks3.Font = font
  321. tecks3.TextSize = 30
  322. tecks3.TextStrokeTransparency = 0
  323. if typet == "Inverted" then
  324. tecks3.TextColor3 = Color3.new(0,0,0)
  325. tecks3.TextStrokeColor3 = color
  326. elseif typet == "Normal" then
  327. tecks3.TextColor3 = color
  328. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  329. end
  330. tecks3.Size = UDim2.new(1,0,0.5,0)
  331. coroutine.resume(coroutine.create(function()
  332. while true do
  333. swait(1)
  334. if chaosmode == true then
  335. tecks2.TextColor3 = BrickColor.random().Color
  336. tecks3.TextStrokeColor3 = BrickColor.random().Color
  337. end
  338. end
  339. end))
  340. modet.TextTransparency = modet.TextTransparency + 1
  341. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  342. for i = 0, 74*timeex do
  343. swait()
  344. modet.TextTransparency = 1
  345. modet.TextStrokeTransparency = 1
  346. tecks2.Text = text
  347. tecks3.Text = text
  348. end
  349. local randomrot = math.random(1,2)
  350. if randomrot == 1 then
  351. for i = 1, 50 do
  352. swait()
  353. tecks2.Text = text
  354. tecks3.Text = text
  355. modet.TextTransparency = modet.TextTransparency - .02
  356. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  357. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  358. tecks2.TextTransparency = tecks2.TextTransparency + .04
  359. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  360. tecks3.TextTransparency = tecks2.TextTransparency + .04
  361. end
  362. elseif randomrot == 2 then
  363. for i = 1, 50 do
  364. swait()
  365. tecks2.Text = text
  366. tecks3.Text = text
  367. modet.TextTransparency = modet.TextTransparency - .02
  368. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  369. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  370. tecks2.TextTransparency = tecks2.TextTransparency + .04
  371. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  372. tecks3.TextTransparency = tecks2.TextTransparency + .04
  373. end
  374. end
  375. modet.TextTransparency = 0
  376. modet.TextStrokeTransparency = 0
  377. if toggleTag == false then
  378. modet.TextTransparency = 1
  379. modet.TextStrokeTransparency = 1
  380. end
  381. naeeym2:Destroy()
  382. end)
  383. chat()
  384. end
  385. function warnedpeople(text,represfont,color,color2)
  386. if disably ~= true then
  387. CFuncs["Sound"].Create("rbxassetid://534859368", char, 1.25,1)
  388. CFuncs["Sound"].Create("rbxassetid://963718869", char, 0.8,1)
  389. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  390. coroutine.resume(coroutine.create(function()
  391. if v.PlayerGui:FindFirstChild("Spinny")~= nil then
  392. v.PlayerGui:FindFirstChild("Spinny"):destroy()
  393. end
  394. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  395. scrg.Name = "Spinny"
  396. local frm = Instance.new("Frame",scrg)
  397. frm.BackgroundTransparency = 0.25
  398. frm.BackgroundColor3 = color
  399. frm.BorderSizePixel = 0
  400. frm.Rotation = 45
  401. frm.Size = UDim2.new(3,0,0,100)
  402. frm.Position = UDim2.new(-4,0,0,0)
  403. local frm2 = frm:Clone()
  404. frm2.Parent = scrg
  405. frm2.BackgroundColor3 = color2
  406. frm2.Position = UDim2.new(-4.05,0,0,0)
  407. local imlb = Instance.new("ImageLabel",scrg)
  408. imlb.BackgroundTransparency = 1
  409. imlb.BackgroundColor3 = Color3.new(0,0,0)
  410. imlb.Image = "rbxassetid://2344851144"
  411. imlb.Size = UDim2.new(0,750,0,750)
  412. imlb.ImageColor3 = color2
  413. imlb.ImageTransparency = 0.25
  414. imlb.Position = UDim2.new(-2.5,0,-2.5,0)
  415. local imlb2 = imlb:Clone()
  416. imlb2.Image = "rbxassetid://2076458450"
  417. imlb2.Size = UDim2.new(1,0,1,0)
  418. imlb2.ImageColor3 = color
  419. imlb2.ImageTransparency = 0
  420. imlb2.Position = UDim2.new(0,0,0,0)
  421. local imlb3 = imlb:Clone()
  422. imlb3.Image = "rbxassetid://2312119891"
  423. imlb3.Size = UDim2.new(1,0,1,0)
  424. imlb3.ImageColor3 = color2
  425. imlb3.ImageTransparency = 0
  426. imlb3.Position = UDim2.new(0,0,0,0)
  427. local imlb4 = imlb:Clone()
  428. imlb4.Image = "rbxassetid://2092248396"
  429. imlb4.Size = UDim2.new(3,0,3,0)
  430. imlb3.ImageColor3 = color
  431. imlb4.ImageTransparency = 0
  432. imlb4.Position = UDim2.new(-1,0,-1,0)
  433. local imlb5 = imlb:Clone()
  434. imlb5.Image = "rbxassetid://2344870656"
  435. imlb5.Size = UDim2.new(10,0,10,0)
  436. imlb5.ImageColor3 = color2
  437. imlb5.ImageTransparency = 0
  438. imlb5.Position = UDim2.new(-4.5,0,-4.5,0)
  439. imlb2.Parent = imlb
  440. imlb3.Parent = imlb
  441. imlb4.Parent = imlb
  442. imlb5.Parent = imlb
  443. local txtlb2 = Instance.new("TextLabel",imlb)
  444. txtlb2.Text = text
  445. coroutine.resume(coroutine.create(function()
  446. while true do
  447. swait()
  448. if ASTRA == true then
  449. txtlb2.Text = est[math.random(1,5)]
  450. elseif dragon == true then
  451. txtlb2.Text = nobreak[math.random(1,3)]
  452. end
  453. end
  454. end))
  455. txtlb2.Font = represfont
  456. txtlb2.TextColor3 = color
  457. txtlb2.TextStrokeTransparency = 0
  458. txtlb2.BackgroundTransparency = 1
  459. txtlb2.TextStrokeColor3 = color2
  460. txtlb2.TextScaled = true
  461. txtlb2.Size = UDim2.new(1,0,1,0)
  462. txtlb2.Position = UDim2.new(0,0,0,0)
  463. local fvalen = 0.55
  464. local fval = -0.49
  465.  
  466. coroutine.resume(coroutine.create(function()
  467. while true do
  468. swait()
  469. if rainbowmode == true then
  470. imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  471. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  472. txtlb2.TextStrokeColor3 = Color3.new(r/255,g/255,b/255)
  473. txtlb2.TextColor3 = Color3.new(r/255,g/255,b/255)
  474. imlb.ImageColor3 = Color3.new(r/255,g/255,b/255)
  475. frm.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
  476. frm2.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
  477. txtlb2.TextStrokeColor3 = Color3.new(1,1,1)
  478. txtlb2.TextColor3 = Color3.new(r/255,g/255,b/255)
  479. imlb.ImageColor3 = Color3.new(r/255,g/255,b/255)
  480. imlb3.ImageColor3 = Color3.new(r/255,g/255,b/255)
  481. imgl2b.ImageColor3 = Color3.new(r/255,g/255,b/255)
  482. frm.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
  483. frm2.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
  484. end
  485. end
  486. end))
  487. coroutine.resume(coroutine.create(function()
  488. while true do
  489. swait()
  490. if Error == true then
  491. imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  492. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  493. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  494. txtlb2.TextStrokeColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  495. txtlb2.TextColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  496. imlb.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  497. imlb2.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  498. imlb3.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  499. imlb4.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  500. imlb5.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  501. imgl2b.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  502. frm.BackgroundColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  503. frm2.BackgroundColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  504. text = est[math.random(1,17)]
  505. end
  506. end
  507. end))
  508. coroutine.resume(coroutine.create(function()
  509. while true do
  510. swait()
  511. if CRAZED == true then
  512. txtlb2.Rotation = math.random(-1,1)
  513. imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  514. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  515. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  516. txtlb2.TextStrokeColor3 = Color3.new(0,0,math.random(0.1,1))
  517. txtlb2.TextColor3 = Color3.new(0,0,math.random(0,0.2))
  518. imlb.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
  519. imlb2.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
  520. imlb3.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
  521. imlb4.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
  522. imlb5.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
  523. imgl2b.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
  524. frm.BackgroundColor3 = Color3.new(0,0,math.random(0.1,1))
  525. frm2.BackgroundColor3 = Color3.new(0,0,math.random(0.1,1))
  526. end
  527. end
  528. end))
  529. coroutine.resume(coroutine.create(function()
  530. while true do
  531. swait()
  532. if chaosmode == true then
  533. txtlb2.Rotation = math.random(-1,1)
  534. imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  535. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  536. imlb.ImageColor3 = BrickColor.random().Color
  537. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  538. end
  539. end
  540. end))
  541. coroutine.resume(coroutine.create(function()
  542. while true do
  543. swait()
  544. if scrg.Parent ~= nil then
  545. fvalen = fvalen - 0.0001
  546. elseif scrg.Parent == nil then
  547. break
  548. end
  549. end
  550. end))
  551. local flol = -5
  552. local flil = 1.6
  553. coroutine.resume(coroutine.create(function()
  554. for i = 0, 49 do
  555. swait()
  556. flol = flol + 0.125
  557. flil = flil - 0.1
  558. frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
  559. frm.Rotation = frm.Rotation - 0.25
  560. frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
  561. frm2.Rotation = frm.Rotation + 0.325
  562. imlb3.Rotation = imlb3.Rotation - 10
  563. imlb2.Rotation = imlb.Rotation + 7.5
  564. imlb.Rotation = imlb.Rotation + 5
  565. if Error == false then
  566. txtlb2.Rotation = txtlb2.Rotation - 5.125
  567. elseif Error == true then
  568. txtlb2.Rotation = txtlb2.Rotation - 5.125 + math.random(-6,6)
  569. end
  570. imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0)
  571. end
  572. for i = 0, 99 do
  573. swait()
  574. fval = fval + 0.05
  575. flol = flol + 0.005
  576. frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
  577. frm.Rotation = frm.Rotation - 0.075
  578. frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
  579. frm2.Rotation = frm2.Rotation + 0.125
  580. imlb3.Rotation = imlb3.Rotation - 2
  581. imlb2.Rotation = imlb.Rotation + 1.5
  582. imlb.Rotation = imlb.Rotation + 1
  583. if Error == false then
  584. txtlb2.Rotation = txtlb2.Rotation - 1.125
  585. elseif Error == true then
  586. txtlb2.Rotation = txtlb2.Rotation - 1.125 + math.random(-6,6)
  587. end
  588. imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0)
  589. end
  590. local valinc = 0
  591. local vinc2 = 1
  592. for i = 0, 99 do
  593. swait()
  594. vinc2 = vinc2 + 0.25
  595. valinc = valinc + 0.0001
  596. flol = flol + valinc
  597. flil = flil + valinc
  598. txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
  599. imlb3.Rotation = imlb3.Rotation - 2*vinc2
  600. imlb.Rotation = imlb.Rotation + 1*vinc2
  601. imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0)
  602. frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
  603. frm.Rotation = frm.Rotation + 0.1*vinc2
  604. frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
  605. frm2.Rotation = frm2.Rotation + 0.225*vinc2
  606. frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
  607. frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
  608. imlb.ImageTransparency = imlb.ImageTransparency + 0.005
  609. imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01
  610. imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01
  611. imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01
  612. imlb5.ImageTransparency = imlb4.ImageTransparency + 0.01
  613. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  614. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  615. end
  616. scrg:Destroy()
  617. end))
  618. end))
  619. end
  620. end
  621. end
  622.  
  623. function bosschatfunc(text,color,watval)
  624. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  625. coroutine.resume(coroutine.create(function()
  626. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  627. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  628. end
  629. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  630. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  631. scrg.Name = "Dialog"
  632. local txtlb = Instance.new("TextLabel",scrg)
  633. txtlb.Text = ""
  634. txtlb.Font = "Bodoni"
  635. txtlb.TextColor3 = Color3.new(0,0,0)
  636. txtlb.TextStrokeTransparency = 0
  637. txtlb.BackgroundTransparency = 0.75
  638. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  639. txtlb.TextStrokeColor3 = color
  640. txtlb.TextScaled = true
  641. txtlb.Size = UDim2.new(1,0,0.25,0)
  642. txtlb.TextXAlignment = "Left"
  643. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  644. local txtlb2 = Instance.new("TextLabel",scrg)
  645. txtlb2.Text = "Star X User:"
  646. txtlb2.Font = "Arcade"
  647. txtlb2.TextColor3 = Color3.new(0,0,0)
  648. txtlb2.TextStrokeTransparency = 0
  649. txtlb2.BackgroundTransparency = 1
  650. txtlb2.TextStrokeColor3 = color
  651. txtlb2.TextSize = 40
  652. txtlb2.Size = UDim2.new(1,0,0.25,0)
  653. txtlb2.TextXAlignment = "Left"
  654. txtlb2.Position = UDim2.new(0,0,1,0)
  655. local fvalen = 0.55
  656. local fval = -0.49
  657. coroutine.resume(coroutine.create(function()
  658. while true do
  659. swait()
  660. if chaosmode == true then
  661. txtlb.Rotation = math.random(-1,1)
  662. txtlb2.Rotation = math.random(-1,1)
  663. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  664. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  665. txtlb.TextStrokeColor3 = BrickColor.random().Color
  666. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  667. end
  668. end
  669. end))
  670. coroutine.resume(coroutine.create(function()
  671. while true do
  672. swait()
  673. if scrg.Parent ~= nil then
  674. fvalen = fvalen - 0.0001
  675. elseif scrg.Parent == nil then
  676. break
  677. end
  678. end
  679. end))
  680. local flol = 1.75
  681. local flil = 1.6
  682. coroutine.resume(coroutine.create(function()
  683. for i = 0, 9 do
  684. swait()
  685. fval = fval + 0.05
  686. flol = flol - 0.1
  687. flil = flil - 0.1
  688. txtlb.Text = ""
  689. txtlb.Position = UDim2.new(0,0,flol,0)
  690. txtlb2.Position = UDim2.new(0,0,flil,0)
  691. end
  692. txtlb.Text = text
  693. wait(watval)
  694. local valinc = 0
  695. for i = 0, 99 do
  696. swait()
  697. valinc = valinc + 0.0001
  698. flol = flol + valinc
  699. flil = flil + valinc
  700. txtlb.Rotation = txtlb.Rotation + valinc*20
  701. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  702. txtlb.Position = UDim2.new(0,0,flol,0)
  703. txtlb2.Position = UDim2.new(0,0,flil,0)
  704. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  705. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  706. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  707. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  708. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  709. end
  710. scrg:Destroy()
  711. end))
  712. end))
  713. end
  714. end
  715.  
  716.  
  717. local Create = LoadLibrary("RbxUtility").Create
  718.  
  719. CFuncs = {
  720. ["Part"] = {
  721. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  722. local Part = Create("Part"){
  723. Parent = Parent,
  724. Reflectance = Reflectance,
  725. Transparency = Transparency,
  726. CanCollide = false,
  727. Locked = true,
  728. BrickColor = BrickColor.new(tostring(BColor)),
  729. Name = Name,
  730. Size = Size,
  731. Material = Material,
  732. }
  733. RemoveOutlines(Part)
  734. return Part
  735. end;
  736. };
  737.  
  738. ["Mesh"] = {
  739. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  740. local Msh = Create(Mesh){
  741. Parent = Part,
  742. Offset = OffSet,
  743. Scale = Scale,
  744. }
  745. if Mesh == "SpecialMesh" then
  746. Msh.MeshType = MeshType
  747. Msh.MeshId = MeshId
  748. end
  749. return Msh
  750. end;
  751. };
  752.  
  753. ["Mesh"] = {
  754. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  755. local Msh = Create(Mesh){
  756. Parent = Part,
  757. Offset = OffSet,
  758. Scale = Scale,
  759. }
  760. if Mesh == "SpecialMesh" then
  761. Msh.MeshType = MeshType
  762. Msh.MeshId = MeshId
  763. end
  764. return Msh
  765. end;
  766. };
  767.  
  768. ["Weld"] = {
  769. Create = function(Parent, Part0, Part1, C0, C1)
  770. local Weld = Create("Weld"){
  771. Parent = Parent,
  772. Part0 = Part0,
  773. Part1 = Part1,
  774. C0 = C0,
  775. C1 = C1,
  776. }
  777. return Weld
  778. end;
  779. };
  780.  
  781. ["Sound"] = {
  782. Create = function(id, par, vol, pit)
  783. coroutine.resume(coroutine.create(function()
  784. local S = Create("Sound"){
  785. Volume = vol,
  786. Name = "EffectSoundo",
  787. Pitch = pit or 1,
  788. SoundId = id,
  789. Parent = par or workspace,
  790. }
  791. wait()
  792. S:play()
  793. game:GetService("Debris"):AddItem(S, 10)
  794. end))
  795. end;
  796. };
  797.  
  798. ["TimeSound"] = {
  799. Create = function(id, par, vol, pit, timepos)
  800. coroutine.resume(coroutine.create(function()
  801. local S = Create("Sound"){
  802. Volume = vol,
  803. Name = "EffectSoundo",
  804. Pitch = pit or 1,
  805. SoundId = id,
  806. TimePosition = timepos,
  807. Parent = par or workspace,
  808. }
  809. wait()
  810. S:play()
  811. game:GetService("Debris"):AddItem(S, 10)
  812. end))
  813. end;
  814. };
  815. ["EchoSound"] = {
  816. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  817. coroutine.resume(coroutine.create(function()
  818. local Sas = Create("Sound"){
  819. Volume = vol,
  820. Name = "EffectSoundo",
  821. Pitch = pit or 1,
  822. SoundId = id,
  823. TimePosition = timepos,
  824. Parent = par or workspace,
  825. }
  826. local E = Create("EchoSoundEffect"){
  827. Delay = echodelay,
  828. Name = "Echo",
  829. Feedback = fedb,
  830. DryLevel = dryl,
  831. Parent = Sas,
  832. }
  833. wait()
  834. Sas:play()
  835. game:GetService("Debris"):AddItem(Sas, delays)
  836. end))
  837. end;
  838. };
  839.  
  840. ["LongSound"] = {
  841. Create = function(id, par, vol, pit)
  842. coroutine.resume(coroutine.create(function()
  843. local S = Create("Sound"){
  844. Volume = vol,
  845. Pitch = pit or 1,
  846. SoundId = id,
  847. Parent = par or workspace,
  848. }
  849. wait()
  850. S:play()
  851. game:GetService("Debris"):AddItem(S, 60)
  852. end))
  853. end;
  854. };
  855.  
  856. ["ParticleEmitter"] = {
  857. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  858. local fp = Create("ParticleEmitter"){
  859. Parent = Parent,
  860. Color = ColorSequence.new(Color1, Color2),
  861. LightEmission = LightEmission,
  862. Size = Size,
  863. Texture = Texture,
  864. Transparency = Transparency,
  865. ZOffset = ZOffset,
  866. Acceleration = Accel,
  867. Drag = Drag,
  868. LockedToPart = LockedToPart,
  869. VelocityInheritance = VelocityInheritance,
  870. EmissionDirection = EmissionDirection,
  871. Enabled = Enabled,
  872. Lifetime = LifeTime,
  873. Rate = Rate,
  874. Rotation = Rotation,
  875. RotSpeed = RotSpeed,
  876. Speed = Speed,
  877. VelocitySpread = VelocitySpread,
  878. }
  879. return fp
  880. end;
  881. };
  882.  
  883. CreateTemplate = {
  884.  
  885. };
  886. }
  887.  
  888.  
  889.  
  890. New = function(Object, Parent, Name, Data)
  891. local Object = Instance.new(Object)
  892. for Index, Value in pairs(Data or {}) do
  893. Object[Index] = Value
  894. end
  895. Object.Parent = Parent
  896. Object.Name = Name
  897. return Object
  898. end
  899. local halocolor = BrickColor.new("Pastel light blue")
  900. local halocolor2 = BrickColor.new("Cool yellow")
  901. local starcolor = BrickColor.new("Bright yellow")
  902. local lunacolor = BrickColor.new("Navy blue")
  903. local lunacolor2 = BrickColor.new("Bright blue")
  904. local wepcolor = BrickColor.new("Really black")
  905. local maincolor = BrickColor.new("Really black")
  906. local m = Instance.new("Model",char)
  907. local m2 = Instance.new("Model",char)
  908. local m3 = Instance.new("Model",char)
  909. local mw1 = Instance.new("Model",char)
  910. local mw2 = Instance.new("Model",char)
  911.  
  912.  
  913. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  914. local gui = it(GuiType)
  915. gui.Parent = parent
  916. gui.Text = text
  917. gui.BackgroundTransparency = backtrans
  918. gui.BackgroundColor3 = backcol
  919. gui.SizeConstraint = "RelativeXY"
  920. gui.TextXAlignment = "Center"
  921. gui.TextYAlignment = "Center"
  922. gui.Position = pos
  923. gui.Size = size
  924. gui.Font = "SciFi"
  925. gui.FontSize = "Size14"
  926. gui.TextWrapped = false
  927. gui.TextStrokeTransparency = 0
  928. gui.TextColor = BrickColor.new("White")
  929. return gui
  930. end
  931. --------------------------- GUI STUFF
  932. local basgui = it("GuiMain")
  933. basgui.Parent = plr.PlayerGui
  934. basgui.Name = "VISgui"
  935. local fullscreenz = it("Frame")
  936. fullscreenz.Parent = basgui
  937. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  938. fullscreenz.BackgroundTransparency = 1
  939. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  940. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  941. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  942. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  943. imgl2.BackgroundTransparency = 1
  944. imgl2.BorderSizePixel = 0
  945. imgl2.ImageTransparency = 0.5
  946. imgl2.ImageColor3 = Color3.new(1,0,0)
  947. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  948. imgl2.Size = UDim2.new(0,1000,0,1000)
  949. imgl2.Image = "rbxassetid://2325939897"
  950. local techc = imgl2:Clone()
  951. techc.Parent = fullscreenz
  952. techc.ImageTransparency = 0
  953. techc.Size = UDim2.new(0,900,0,900)
  954. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  955. techc.ImageColor3 = Color3.new(1,0,0)
  956. techc.Image = "rbxassetid://2273224484"
  957. local circl = imgl2:Clone()
  958. circl.Parent = fullscreenz
  959. circl.ImageTransparency = 0
  960. circl.Size = UDim2.new(0,550,0,550)
  961. circl.Position = UDim2.new(0.75,25,0.55,25)
  962. circl.ImageColor3 = Color3.new(0,0,0)
  963. circl.Image = "rbxassetid://2312119891"
  964. local circl2 = imgl2:Clone()
  965. circl2.Parent = fullscreenz
  966. circl2.ImageTransparency = 0
  967. circl2.Size = UDim2.new(0,700,0,700)
  968. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  969. circl2.ImageColor3 = Color3.new(1,0,0)
  970. circl2.Image = "rbxassetid://2312119891"
  971. local imgl2b = imgl2:Clone()
  972. imgl2b.Parent = fullscreenz
  973. imgl2b.ImageTransparency = 0
  974. imgl2b.Size = UDim2.new(0,800,0,800)
  975. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  976. imgl2b.ImageColor3 = Color3.new(0,0,0)
  977. local ned = Instance.new("TextLabel",fullscreenz)
  978. ned.ZIndex = 2
  979. ned.Font = "Arcade"
  980. ned.BackgroundTransparency = 1
  981. ned.BorderSizePixel = 0.65
  982. ned.Size = UDim2.new(0.3,0,0.2,0)
  983. ned.Position = UDim2.new(0.7,0,0.8,0)
  984. ned.TextColor3 = BrickColor.new("Really red").Color
  985. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  986. ned.TextScaled = true
  987. ned.TextStrokeTransparency = 0
  988. ned.Text = "MAYHEM X"
  989. ned.TextSize = 24
  990. ned.Rotation = 1
  991. ned.TextXAlignment = "Right"
  992. ned.TextYAlignment = "Bottom"
  993.  
  994. local extrawingmod1 = Instance.new("Model",char)
  995. local extrawingmod2 = Instance.new("Model",char)
  996.  
  997. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  998. local p = Instance.new("Part")
  999. p.TopSurface = 0
  1000. p.BottomSurface = 0
  1001. p.Parent = parent
  1002. p.Size = Vector3.new(0.1,0.1,0.1)
  1003. p.Transparency = transparency
  1004. p.Reflectance = reflectance
  1005. p.CanCollide = false
  1006. p.Locked = true
  1007. p.BrickColor = brickcolor
  1008. p.Material = material
  1009. return p
  1010. end
  1011.  
  1012. function CreateMesh(parent,meshtype,x1,y1,z1)
  1013. local mesh = Instance.new("SpecialMesh",parent)
  1014. mesh.MeshType = meshtype
  1015. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  1016. return mesh
  1017. end
  1018.  
  1019. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  1020. local mesh = Instance.new("SpecialMesh",parent)
  1021. mesh.MeshType = "FileMesh"
  1022. mesh.MeshId = meshid
  1023. mesh.Scale = Vector3.new(x1,y1,z1)
  1024. return mesh
  1025. end
  1026.  
  1027.  
  1028. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  1029. local mesh = Instance.new("SpecialMesh",parent)
  1030. mesh.MeshType = "FileMesh"
  1031. mesh.MeshId = meshid
  1032. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  1033. mesh.Scale = Vector3.new(x1,y1,z1)
  1034. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  1035. return mesh
  1036. end
  1037.  
  1038. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  1039. local weld = Instance.new("Weld")
  1040. weld.Parent = parent
  1041. weld.Part0 = part0
  1042. weld.Part1 = part1
  1043. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  1044. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  1045. return weld
  1046. end
  1047.  
  1048.  
  1049. --------------
  1050. --------------
  1051. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1052. 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))
  1053. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1054. 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))
  1055.  
  1056. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  1057. CreateMesh(handle,"Brick",0,0,0)
  1058. 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))
  1059. local valuaring = 10
  1060. for i = 0, 49 do
  1061. valuaring = valuaring + 10
  1062. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  1063. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  1064. 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))
  1065. end
  1066.  
  1067. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  1068. CreateMesh(handle,"Brick",0,0,0)
  1069. 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))
  1070. local valuaring = 10
  1071. for i = 0, 49 do
  1072. valuaring = valuaring + 10
  1073. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1074. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  1075. 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))
  1076. end
  1077.  
  1078.  
  1079. local handle = CreateParta(m,1,1,"Neon",maincolor)
  1080. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1081. 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))
  1082.  
  1083. --- Left wing.
  1084.  
  1085. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1086. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1087. 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))
  1088.  
  1089. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1090. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1091. 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))
  1092. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1093. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1094. 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))
  1095. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1096. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1097. CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1098. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1099. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1100. CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1101. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1102. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1103. CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1104. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1105. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1106. CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1107. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1108. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  1109. 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))
  1110. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1111. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  1112. 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))
  1113. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1114. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  1115. CreateWeld(wed,lwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1116. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1117. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  1118. CreateWeld(wed,lwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1119.  
  1120. tl1 = Instance.new('Trail',wed)
  1121. tl1.Attachment0 = A1
  1122. tl1.Attachment1 = A0
  1123. tl1.Texture = "rbxassetid://2108945559"
  1124. tl1.LightEmission = 1
  1125. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1126. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1127. tl1.Lifetime = 0.6
  1128.  
  1129. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1130. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1131. 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))
  1132.  
  1133. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1134. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1135. 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))
  1136. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1137. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1138. 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))
  1139. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1140. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1141. CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1142. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1143. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1144. CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1145. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1146. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1147. CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1148. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1149. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1150. CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1151. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1152. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  1153. 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))
  1154. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1155. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  1156. 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))
  1157. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1158. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  1159. CreateWeld(wed,lwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1160. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1161. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  1162. CreateWeld(wed,lwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1163.  
  1164. tl2 = Instance.new('Trail',wed)
  1165. tl2.Attachment0 = A1
  1166. tl2.Attachment1 = A0
  1167. tl2.Texture = "rbxassetid://2108945559"
  1168. tl2.LightEmission = 1
  1169. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1170. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1171. tl2.Lifetime = 0.6
  1172.  
  1173. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1174. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1175. 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))
  1176.  
  1177. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1178. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1179. 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))
  1180. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1181. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1182. 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))
  1183. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1184. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1185. CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1186. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1187. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1188. CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1189. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1190. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1191. CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1192. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1193. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1194. CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1195. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1196. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  1197. 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))
  1198. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1199. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  1200. 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))
  1201. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1202. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  1203. CreateWeld(wed,lwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1204. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1205. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  1206. CreateWeld(wed,lwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1207.  
  1208. tl3 = Instance.new('Trail',wed)
  1209. tl3.Attachment0 = A1
  1210. tl3.Attachment1 = A0
  1211. tl3.Texture = "rbxassetid://2108945559"
  1212. tl3.LightEmission = 1
  1213. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1214. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1215. tl3.Lifetime = 0.6
  1216.  
  1217. tl1.Enabled = true
  1218. tl2.Enabled = true
  1219. tl3.Enabled = true
  1220. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1221. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1222. 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))
  1223.  
  1224. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1225. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1226. 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))
  1227. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1228. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1229. 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))
  1230. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1231. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1232. 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))
  1233. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1234. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1235. 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))
  1236.  
  1237. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1238. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1239. 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))
  1240.  
  1241. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1242. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1243. 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))
  1244. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1245. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1246. 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))
  1247. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1248. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1249. 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))
  1250. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1251. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1252. 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))
  1253.  
  1254. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1255. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1256. 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))
  1257.  
  1258. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1259. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1260. 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))
  1261. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1262. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1263. 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))
  1264. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1265. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1266. 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))
  1267. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1268. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1269. 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))
  1270.  
  1271. -- Right wing.
  1272.  
  1273. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1274. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1275. 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))
  1276.  
  1277. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1278. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1279. 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))
  1280. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1281. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1282. 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))
  1283. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1284. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1285. CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1286. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1287. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1288. CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1289. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1290. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1291. CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1292. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1293. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1294. CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1295. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1296. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  1297. 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))
  1298. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1299. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  1300. 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))
  1301. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1302. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  1303. CreateWeld(wed,rwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1304. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1305. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  1306. CreateWeld(wed,rwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1307.  
  1308. tr1 = Instance.new('Trail',wed)
  1309. tr1.Attachment0 = A1
  1310. tr1.Attachment1 = A0
  1311. tr1.Texture = "rbxassetid://2108945559"
  1312. tr1.LightEmission = 1
  1313. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1314. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1315. tr1.Lifetime = 0.6
  1316.  
  1317. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1318. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1319. 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))
  1320.  
  1321. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1322. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1323. 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))
  1324. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1325. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1326. 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))
  1327. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1328. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1329. CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1330. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1331. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1332. CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1333. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1334. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1335. CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1336. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1337. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1338. CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1339. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1340. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  1341. 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))
  1342. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1343. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  1344. 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))
  1345. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1346. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  1347. CreateWeld(wed,rwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1348. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1349. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  1350. CreateWeld(wed,rwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1351.  
  1352. tr2 = Instance.new('Trail',wed)
  1353. tr2.Attachment0 = A1
  1354. tr2.Attachment1 = A0
  1355. tr2.Texture = "rbxassetid://2108945559"
  1356. tr2.LightEmission = 1
  1357. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1358. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1359. tr2.Lifetime = 0.6
  1360.  
  1361. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1362. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1363. 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))
  1364.  
  1365.  
  1366. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1367. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1368. 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))
  1369. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1370. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1371. 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))
  1372. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1373. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1374. CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1375. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1376. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1377. CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1378. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1379. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1380. CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1381. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1382. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1383. CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1384. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1385. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  1386. 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))
  1387. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1388. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  1389. 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))
  1390. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1391. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  1392. CreateWeld(wed,rwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1393. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1394. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  1395. CreateWeld(wed,rwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1396.  
  1397. tr3 = Instance.new('Trail',wed)
  1398. tr3.Attachment0 = A1
  1399. tr3.Attachment1 = A0
  1400. tr3.Texture = "rbxassetid://2108945559"
  1401. tr3.LightEmission = 1
  1402. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1403. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1404. tr3.Lifetime = 0.6
  1405.  
  1406. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1407. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1408. 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))
  1409.  
  1410. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1411. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1412. 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))
  1413. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1414. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1415. 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))
  1416. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1417. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1418. 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))
  1419. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1420. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1421. 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))
  1422.  
  1423. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1424. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1425. 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))
  1426.  
  1427. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1428. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1429. 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))
  1430. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1431. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1432. 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))
  1433. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1434. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1435. 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))
  1436. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1437. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1438. 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))
  1439.  
  1440. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1441. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1442. 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))
  1443.  
  1444. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1445. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1446. 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))
  1447. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1448. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1449. 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))
  1450. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1451. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1452. 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))
  1453. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1454. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1455. 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))
  1456.  
  1457.  
  1458. ---- HERES THE RING
  1459.  
  1460.  
  1461. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1462. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1463. 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))
  1464. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1465. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1466. 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))
  1467. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1468. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1469. 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))
  1470.  
  1471.  
  1472. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1473. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1474. 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))
  1475.  
  1476. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1477. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1478. 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))
  1479.  
  1480.  
  1481.  
  1482. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1483. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1484. 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))
  1485.  
  1486. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1487. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1488. 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))
  1489.  
  1490. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1491. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1492. 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))
  1493.  
  1494. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1495. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1496. 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))
  1497. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1498. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1499. 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))
  1500.  
  1501. --- second ring
  1502.  
  1503. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1504. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1505. 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))
  1506. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1507. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1508. 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))
  1509. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1510. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1511. 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))
  1512.  
  1513. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1514. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1515. 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))
  1516.  
  1517. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1518. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1519. 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))
  1520.  
  1521.  
  1522.  
  1523. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1524. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1525. 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))
  1526.  
  1527. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1528. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1529. 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))
  1530.  
  1531. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1532. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1533. 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))
  1534.  
  1535. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1536. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1537. 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))
  1538. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1539. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1540. 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))]]--
  1541.  
  1542.  
  1543.  
  1544. for i, v in pairs(m:GetChildren()) do
  1545. if v:IsA("Part") then
  1546. v.BrickColor = BrickColor.new("Really black")
  1547. v.Material = "Glass"
  1548. end
  1549. end
  1550. for i, v in pairs(m2:GetChildren()) do
  1551. if v:IsA("Part") then
  1552. v.BrickColor = BrickColor.new("Crimson")
  1553. v.Material = "Granite"
  1554. end
  1555. end
  1556. for i, v in pairs(m3:GetChildren()) do
  1557. if v:IsA("Part") then
  1558. v.BrickColor = BrickColor.new("Really red")
  1559. v.Material = "Neon"
  1560. end
  1561. end
  1562. for i, v in pairs(mw2:GetChildren()) do
  1563. if v:IsA("Part") then
  1564. v.BrickColor = BrickColor.new("Really red")
  1565. v.Material = "Neon"
  1566. end
  1567. end
  1568. for i, v in pairs(mw1:GetChildren()) do
  1569. if v:IsA("Part") then
  1570. v.Transparency = 1
  1571. v.BrickColor = BrickColor.new("Really red")
  1572. v.Material = "Neon"
  1573. end
  1574. end
  1575. for i, v in pairs(extrawingmod1:GetChildren()) do
  1576. if v:IsA("Part") then
  1577. v.Transparency = 1
  1578. v.BrickColor = BrickColor.new("White")
  1579. v.Material = "Neon"
  1580. end
  1581. end
  1582. for i, v in pairs(extrawingmod2:GetChildren()) do
  1583. if v:IsA("Part") then
  1584. v.Transparency = 1
  1585. v.BrickColor = BrickColor.new("White")
  1586. v.Material = "Neon"
  1587. end
  1588. end
  1589. local MAINRUINCOLOR = BrickColor.new("Really red")
  1590. ------
  1591.  
  1592.  
  1593. function RemoveOutlines(part)
  1594. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1595. end
  1596. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1597. local Part = Create("Part")({
  1598. Parent = Parent,
  1599. Reflectance = Reflectance,
  1600. Transparency = Transparency,
  1601. CanCollide = false,
  1602. Locked = true,
  1603. BrickColor = BrickColor.new(tostring(BColor)),
  1604. Name = Name,
  1605. Size = Size,
  1606. Material = Material
  1607. })
  1608. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1609. RemoveOutlines(Part)
  1610. return Part
  1611. end
  1612. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1613. local Msh = Create(Mesh)({
  1614. Parent = Part,
  1615. Offset = OffSet,
  1616. Scale = Scale
  1617. })
  1618. if Mesh == "SpecialMesh" then
  1619. Msh.MeshType = MeshType
  1620. Msh.MeshId = MeshId
  1621. end
  1622. return Msh
  1623. end
  1624. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1625. local Weld = Create("Weld")({
  1626. Parent = Parent,
  1627. Part0 = Part0,
  1628. Part1 = Part1,
  1629. C0 = C0,
  1630. C1 = C1
  1631. })
  1632. return Weld
  1633. end
  1634.  
  1635. Character=Player.Character
  1636. PlayerGui=Player.PlayerGui
  1637. Backpack=Player.Backpack
  1638. Torso=Character.Torso
  1639. Head=Character.Head
  1640. Humanoid=Character.Humanoid
  1641. m=Instance.new('Model',Character)
  1642. LeftArm=Character["Left Arm"]
  1643. LeftLeg=Character["Left Leg"]
  1644. RightArm=Character["Right Arm"]
  1645. RightLeg=Character["Right Leg"]
  1646. LS=Torso["Left Shoulder"]
  1647. LH=Torso["Left Hip"]
  1648. RS=Torso["Right Shoulder"]
  1649. RH=Torso["Right Hip"]
  1650. Face = Head.face
  1651. Neck=Torso.Neck
  1652. it=Instance.new
  1653. attacktype=1
  1654. vt=Vector3.new
  1655. cf=CFrame.new
  1656. euler=CFrame.fromEulerAnglesXYZ
  1657. angles=CFrame.Angles
  1658. cloaked=false
  1659. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1660. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1661. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1662. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1663. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1664. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1665. RootPart=Character.HumanoidRootPart
  1666. RootJoint=RootPart.RootJoint
  1667. RootCF=euler(-1.57,0,3.14)
  1668. attack = false
  1669. attackdebounce = false
  1670. deb=false
  1671. equipped=true
  1672. hand=false
  1673. combo=0
  1674. mana=0
  1675. trispeed=.2
  1676. attackmode='none'
  1677. local idle=0
  1678. local Anim="Idle"
  1679. local Effects={}
  1680. local gun=false
  1681. local shoot=false
  1682. local sine = 0
  1683. local change = 1
  1684.  
  1685. function RecolorTextAndRename(name,col1,col2,font)
  1686. modet.TextStrokeColor3 = col2
  1687. modet.TextColor3 = col1
  1688. modet.Font = font
  1689. modet.Text = name
  1690. techc.ImageColor3 = col2
  1691. circl.ImageColor3 = col2
  1692. circl2.ImageColor3 = col1
  1693. imgl2.ImageColor3 = col1
  1694. imgl2b.ImageColor3 = col2
  1695. ned.Text = name
  1696. ned.TextColor3 = col1
  1697. ned.TextStrokeColor3 = col2
  1698. end
  1699. --save shoulders
  1700. RSH, LSH=nil, nil
  1701. --welds
  1702. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1703. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1704. LH=Torso["Left Hip"]
  1705. RH=Torso["Right Hip"]
  1706. TorsoColor=Torso.BrickColor
  1707. function NoOutline(Part)
  1708. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1709. end
  1710. ch=Character
  1711. RSH=ch.Torso["Right Shoulder"]
  1712. LSH=ch.Torso["Left Shoulder"]
  1713. --
  1714. RSH.Parent=nil
  1715. LSH.Parent=nil
  1716. --
  1717. RW.Name="Right Shoulder"
  1718. RW.Part0=ch.Torso
  1719. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1720. RW.C1=cf(0, 0.5, 0)
  1721. RW.Part1=ch["Right Arm"]
  1722. RW.Parent=ch.Torso
  1723. --
  1724. LW.Name="Left Shoulder"
  1725. LW.Part0=ch.Torso
  1726. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1727. LW.C1=cf(0, 0.5, 0)
  1728. LW.Part1=ch["Left Arm"]
  1729. LW.Parent=ch.Torso
  1730.  
  1731. local Stats=Instance.new("BoolValue")
  1732. Stats.Name="Stats"
  1733. Stats.Parent=Character
  1734. local Atk=Instance.new("NumberValue")
  1735. Atk.Name="Damage"
  1736. Atk.Parent=Stats
  1737. Atk.Value=1
  1738. local Def=Instance.new("NumberValue")
  1739. Def.Name="Defense"
  1740. Def.Parent=Stats
  1741. Def.Value=1
  1742. local Speed=Instance.new("NumberValue")
  1743. Speed.Name="Speed"
  1744. Speed.Parent=Stats
  1745. Speed.Value=1
  1746. local Mvmt=Instance.new("NumberValue")
  1747. Mvmt.Name="Movement"
  1748. Mvmt.Parent=Stats
  1749. Mvmt.Value=1
  1750.  
  1751. local donum=0
  1752.  
  1753.  
  1754. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1755. local fp=it("Part")
  1756. fp.formFactor=formfactor
  1757. fp.Parent=parent
  1758. fp.Reflectance=reflectance
  1759. fp.Transparency=transparency
  1760. fp.CanCollide=false
  1761. fp.Locked=true
  1762. fp.BrickColor=brickcolor
  1763. fp.Name=name
  1764. fp.Size=size
  1765. fp.Position=Torso.Position
  1766. NoOutline(fp)
  1767. fp.Material="SmoothPlastic"
  1768. fp:BreakJoints()
  1769. return fp
  1770. end
  1771.  
  1772. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1773. local mesh=it(Mesh)
  1774. mesh.Parent=part
  1775. if Mesh=="SpecialMesh" then
  1776. mesh.MeshType=meshtype
  1777. if meshid~="nil" then
  1778. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1779. end
  1780. end
  1781. mesh.Offset=offset
  1782. mesh.Scale=scale
  1783. return mesh
  1784. end
  1785.  
  1786. function weld(parent,part0,part1,c0)
  1787. local weld=it("Weld")
  1788. weld.Parent=parent
  1789. weld.Part0=part0
  1790. weld.Part1=part1
  1791. weld.C0=c0
  1792. return weld
  1793. end
  1794.  
  1795. local Color1=Torso.BrickColor
  1796.  
  1797. local bodvel=Instance.new("BodyVelocity")
  1798. local bg=Instance.new("BodyGyro")
  1799.  
  1800. --------- SazEreno's Artificial HB --------------
  1801. ArtificialHB = Instance.new("BindableEvent", script)
  1802. ArtificialHB.Name = "ArtificialHB"
  1803.  
  1804. script:WaitForChild("ArtificialHB")
  1805. Frame_Speed = 1 / 60
  1806. frame = Frame_Speed
  1807. tf = 0
  1808. allowframeloss = false
  1809. tossremainder = false
  1810. lastframe = tick()
  1811. script.ArtificialHB:Fire()
  1812.  
  1813. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1814. tf = tf + s
  1815. if tf >= frame then
  1816. if allowframeloss then
  1817. script.ArtificialHB:Fire()
  1818. lastframe = tick()
  1819. else
  1820. for i = 1, math.floor(tf / frame) do
  1821. script.ArtificialHB:Fire()
  1822. end
  1823. lastframe = tick()
  1824. end
  1825. if tossremainder then
  1826. tf = 0
  1827. else
  1828. tf = tf - frame * math.floor(tf / frame)
  1829. end
  1830. end
  1831. end)
  1832.  
  1833. ------------------
  1834. function swait(num)
  1835. function swait(num)
  1836. if num==0 or num==nil then
  1837. game:service'RunService'.Stepped:wait(0)
  1838. else
  1839. for i=0,num do
  1840. game:service'RunService'.Stepped:wait(0)
  1841. end
  1842. end
  1843. end
  1844. end
  1845.  
  1846. -------- RAINBOW LEAVE IT TO ME
  1847. local r = 255
  1848. local g = 0
  1849. local b = 0
  1850. coroutine.resume(coroutine.create(function()
  1851. while wait() do
  1852. for i = 0, 254/5 do
  1853. swait()
  1854. g = g + 5
  1855. end
  1856. for i = 0, 254/5 do
  1857. swait()
  1858. r = r - 5
  1859. end
  1860. for i = 0, 254/5 do
  1861. swait()
  1862. b = b + 5
  1863. end
  1864. for i = 0, 254/5 do
  1865. swait()
  1866. g = g - 5
  1867. end
  1868. for i = 0, 254/5 do
  1869. swait()
  1870. r = r + 5
  1871. end
  1872. for i = 0, 254/5 do
  1873. swait()
  1874. b = b - 5
  1875. end
  1876. end
  1877. end))
  1878.  
  1879.  
  1880. so = function(id,par,vol,pit)
  1881. coroutine.resume(coroutine.create(function()
  1882. local sou = Instance.new("Sound",par or workspace)
  1883. sou.Volume=vol
  1884. sou.Pitch=pit or 1
  1885. sou.SoundId=id
  1886. swait()
  1887. sou:play()
  1888. game:GetService("Debris"):AddItem(sou,6)
  1889. end))
  1890. end
  1891.  
  1892. function clerp(a,b,t)
  1893. local qa = {QuaternionFromCFrame(a)}
  1894. local qb = {QuaternionFromCFrame(b)}
  1895. local ax, ay, az = a.x, a.y, a.z
  1896. local bx, by, bz = b.x, b.y, b.z
  1897. local _t = 1-t
  1898. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1899. end
  1900.  
  1901. function QuaternionFromCFrame(cf)
  1902. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1903. local trace = m00 + m11 + m22
  1904. if trace > 0 then
  1905. local s = math.sqrt(1 + trace)
  1906. local recip = 0.5/s
  1907. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1908. else
  1909. local i = 0
  1910. if m11 > m00 then
  1911. i = 1
  1912. end
  1913. if m22 > (i == 0 and m00 or m11) then
  1914. i = 2
  1915. end
  1916. if i == 0 then
  1917. local s = math.sqrt(m00-m11-m22+1)
  1918. local recip = 0.5/s
  1919. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1920. elseif i == 1 then
  1921. local s = math.sqrt(m11-m22-m00+1)
  1922. local recip = 0.5/s
  1923. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1924. elseif i == 2 then
  1925. local s = math.sqrt(m22-m00-m11+1)
  1926. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1927. end
  1928. end
  1929. end
  1930.  
  1931. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1932. local xs, ys, zs = x + x, y + y, z + z
  1933. local wx, wy, wz = w*xs, w*ys, w*zs
  1934. local xx = x*xs
  1935. local xy = x*ys
  1936. local xz = x*zs
  1937. local yy = y*ys
  1938. local yz = y*zs
  1939. local zz = z*zs
  1940. 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))
  1941. end
  1942.  
  1943. function QuaternionSlerp(a, b, t)
  1944. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1945. local startInterp, finishInterp;
  1946. if cosTheta >= 0.0001 then
  1947. if (1 - cosTheta) > 0.0001 then
  1948. local theta = math.acos(cosTheta)
  1949. local invSinTheta = 1/math.sin(theta)
  1950. startInterp = math.sin((1-t)*theta)*invSinTheta
  1951. finishInterp = math.sin(t*theta)*invSinTheta
  1952. else
  1953. startInterp = 1-t
  1954. finishInterp = t
  1955. end
  1956. else
  1957. if (1+cosTheta) > 0.0001 then
  1958. local theta = math.acos(-cosTheta)
  1959. local invSinTheta = 1/math.sin(theta)
  1960. startInterp = math.sin((t-1)*theta)*invSinTheta
  1961. finishInterp = math.sin(t*theta)*invSinTheta
  1962. else
  1963. startInterp = t-1
  1964. finishInterp = t
  1965. end
  1966. end
  1967. 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
  1968. end
  1969.  
  1970. local function CFrameFromTopBack(at, top, back)
  1971. local right = top:Cross(back)
  1972. return CFrame.new(at.x, at.y, at.z,
  1973. right.x, top.x, back.x,
  1974. right.y, top.y, back.y,
  1975. right.z, top.z, back.z)
  1976. end
  1977.  
  1978. function Triangle(a, b, c)
  1979. local edg1 = (c-a):Dot((b-a).unit)
  1980. local edg2 = (a-b):Dot((c-b).unit)
  1981. local edg3 = (b-c):Dot((a-c).unit)
  1982. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1983. a, b, c = a, b, c
  1984. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1985. a, b, c = b, c, a
  1986. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1987. a, b, c = c, a, b
  1988. else
  1989. assert(false, "unreachable")
  1990. end
  1991.  
  1992. local len1 = (c-a):Dot((b-a).unit)
  1993. local len2 = (b-a).magnitude - len1
  1994. local width = (a + (b-a).unit*len1 - c).magnitude
  1995.  
  1996. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1997.  
  1998. local list = {}
  1999.  
  2000. if len1 > 0.01 then
  2001. local w1 = Instance.new('WedgePart', m)
  2002. game:GetService("Debris"):AddItem(w1,5)
  2003. w1.Material = "SmoothPlastic"
  2004. w1.FormFactor = 'Custom'
  2005. w1.BrickColor = BrickColor.new("Really red")
  2006. w1.Transparency = 0
  2007. w1.Reflectance = 0
  2008. w1.Material = "SmoothPlastic"
  2009. w1.CanCollide = false
  2010. local l1 = Instance.new("PointLight",w1)
  2011. l1.Color = Color3.new(170,0,0)
  2012. NoOutline(w1)
  2013. local sz = Vector3.new(0.2, width, len1)
  2014. w1.Size = sz
  2015. local sp = Instance.new("SpecialMesh",w1)
  2016. sp.MeshType = "Wedge"
  2017. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  2018. w1:BreakJoints()
  2019. w1.Anchored = true
  2020. w1.Parent = workspace
  2021. w1.Transparency = 0.7
  2022. table.insert(Effects,{w1,"Disappear",.01})
  2023. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2024. table.insert(list,w1)
  2025. end
  2026.  
  2027. if len2 > 0.01 then
  2028. local w2 = Instance.new('WedgePart', m)
  2029. game:GetService("Debris"):AddItem(w2,5)
  2030. w2.Material = "SmoothPlastic"
  2031. w2.FormFactor = 'Custom'
  2032. w2.BrickColor = BrickColor.new("Really red")
  2033. w2.Transparency = 0
  2034. w2.Reflectance = 0
  2035. w2.Material = "SmoothPlastic"
  2036. w2.CanCollide = false
  2037. local l2 = Instance.new("PointLight",w2)
  2038. l2.Color = Color3.new(170,0,0)
  2039. NoOutline(w2)
  2040. local sz = Vector3.new(0.2, width, len2)
  2041. w2.Size = sz
  2042. local sp = Instance.new("SpecialMesh",w2)
  2043. sp.MeshType = "Wedge"
  2044. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  2045. w2:BreakJoints()
  2046. w2.Anchored = true
  2047. w2.Parent = workspace
  2048. w2.Transparency = 0.7
  2049. table.insert(Effects,{w2,"Disappear",.01})
  2050. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2051. table.insert(list,w2)
  2052. end
  2053. return unpack(list)
  2054. end
  2055.  
  2056.  
  2057. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  2058. if hit.Parent == nil then
  2059. return
  2060. end
  2061. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  2062. for _, v in pairs(hit.Parent:children()) do
  2063. if v:IsA("Humanoid") then
  2064. h = v
  2065. end
  2066. end
  2067. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  2068. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2069. return
  2070. end
  2071. local c = Create("ObjectValue")({
  2072. Name = "creator",
  2073. Value = game:GetService("Players").LocalPlayer,
  2074. Parent = h
  2075. })
  2076. game:GetService("Debris"):AddItem(c, 0.5)
  2077. if HitSound ~= nil and HitPitch ~= nil then
  2078. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  2079. end
  2080. local Damage = math.random(minim, maxim)
  2081. local blocked = false
  2082. local block = hit.Parent:findFirstChild("Block")
  2083. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  2084. blocked = true
  2085. block.Value = block.Value - 1
  2086. print(block.Value)
  2087. end
  2088. if blocked == false then
  2089. HitHealth = h.Health
  2090. h.MaxHealth = 100
  2091. h.Health = h.Health - Damage
  2092. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  2093. print("gained kill")
  2094. dmg(h.Parent)
  2095. end
  2096. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  2097. else
  2098. h.Health = h.Health - Damage / 2
  2099. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  2100. end
  2101. if Type == "Knockdown" then
  2102. local hum = hit.Parent.Humanoid
  2103. hum.PlatformStand = true
  2104. coroutine.resume(coroutine.create(function(HHumanoid)
  2105. swait(1)
  2106. HHumanoid.PlatformStand = false
  2107. end), hum)
  2108. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2109. local bodvol = Create("BodyVelocity")({
  2110. velocity = angle * knockback,
  2111. P = 5000,
  2112. maxForce = Vector3.new(8000, 8000, 8000),
  2113. Parent = hit
  2114. })
  2115. local rl = Create("BodyAngularVelocity")({
  2116. P = 3000,
  2117. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  2118. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  2119. Parent = hit
  2120. })
  2121. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2122. game:GetService("Debris"):AddItem(rl, 0.5)
  2123. elseif Type == "Normal" then
  2124. local vp = Create("BodyVelocity")({
  2125. P = 500,
  2126. maxForce = Vector3.new(math.huge, 0, math.huge),
  2127. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2128. })
  2129. if knockback > 0 then
  2130. vp.Parent = hit.Parent.Head
  2131. end
  2132. game:GetService("Debris"):AddItem(vp, 0.5)
  2133. elseif Type == "Up" then
  2134. local bodyVelocity = Create("BodyVelocity")({
  2135. velocity = Vector3.new(0, 20, 0),
  2136. P = 5000,
  2137. maxForce = Vector3.new(8000, 8000, 8000),
  2138. Parent = hit
  2139. })
  2140. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2141. local bodyVelocity = Create("BodyVelocity")({
  2142. velocity = Vector3.new(0, 20, 0),
  2143. P = 5000,
  2144. maxForce = Vector3.new(8000, 8000, 8000),
  2145. Parent = hit
  2146. })
  2147. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2148. elseif Type == "Leech" then
  2149. local hum = hit.Parent.Humanoid
  2150. if hum ~= nil then
  2151. for i = 0, 2 do
  2152. 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)
  2153. end
  2154. Humanoid.Health = Humanoid.Health + 10
  2155. end
  2156. elseif Type == "UpKnock" then
  2157. local hum = hit.Parent.Humanoid
  2158. hum.PlatformStand = true
  2159. if hum ~= nil then
  2160. hitr = true
  2161. end
  2162. coroutine.resume(coroutine.create(function(HHumanoid)
  2163. swait(5)
  2164. HHumanoid.PlatformStand = false
  2165. hitr = false
  2166. end), hum)
  2167. local bodyVelocity = Create("BodyVelocity")({
  2168. velocity = Vector3.new(0, 20, 0),
  2169. P = 5000,
  2170. maxForce = Vector3.new(8000, 8000, 8000),
  2171. Parent = hit
  2172. })
  2173. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2174. local bodyVelocity = Create("BodyVelocity")({
  2175. velocity = Vector3.new(0, 20, 0),
  2176. P = 5000,
  2177. maxForce = Vector3.new(8000, 8000, 8000),
  2178. Parent = hit
  2179. })
  2180. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2181. elseif Type == "Snare" then
  2182. local bp = Create("BodyPosition")({
  2183. P = 2000,
  2184. D = 100,
  2185. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2186. position = hit.Parent.Torso.Position,
  2187. Parent = hit.Parent.Torso
  2188. })
  2189. game:GetService("Debris"):AddItem(bp, 1)
  2190. elseif Type == "Slashnare" then
  2191. 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)
  2192. for i = 1, math.random(4, 5) do
  2193. 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)
  2194. end
  2195. local bp = Create("BodyPosition")({
  2196. P = 2000,
  2197. D = 100,
  2198. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2199. position = hit.Parent.Torso.Position,
  2200. Parent = hit.Parent.Torso
  2201. })
  2202. game:GetService("Debris"):AddItem(bp, 1)
  2203. elseif Type == "Spike" then
  2204. CreateBigIceSword(hit.Parent.Torso.CFrame)
  2205. local bp = Create("BodyPosition")({
  2206. P = 2000,
  2207. D = 100,
  2208. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2209. position = hit.Parent.Torso.Position,
  2210. Parent = hit.Parent.Torso
  2211. })
  2212. game:GetService("Debris"):AddItem(bp, 1)
  2213. elseif Type == "Freeze" then
  2214. local BodPos = Create("BodyPosition")({
  2215. P = 50000,
  2216. D = 1000,
  2217. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2218. position = hit.Parent.Torso.Position,
  2219. Parent = hit.Parent.Torso
  2220. })
  2221. local BodGy = Create("BodyGyro")({
  2222. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  2223. P = 20000,
  2224. Parent = hit.Parent.Torso,
  2225. cframe = hit.Parent.Torso.CFrame
  2226. })
  2227. hit.Parent.Torso.Anchored = true
  2228. coroutine.resume(coroutine.create(function(Part)
  2229. swait(1.5)
  2230. Part.Anchored = false
  2231. end), hit.Parent.Torso)
  2232. game:GetService("Debris"):AddItem(BodPos, 3)
  2233. game:GetService("Debris"):AddItem(BodGy, 3)
  2234. end
  2235. local debounce = Create("BoolValue")({
  2236. Name = "DebounceHit",
  2237. Parent = hit.Parent,
  2238. Value = true
  2239. })
  2240. game:GetService("Debris"):AddItem(debounce, Delay)
  2241. c = Instance.new("ObjectValue")
  2242. c.Name = "creator"
  2243. c.Value = Player
  2244. c.Parent = h
  2245. game:GetService("Debris"):AddItem(c, 0.5)
  2246. end
  2247. end
  2248. function ShowDamage(Pos, Text, Time, Color)
  2249. local Rate = 0.03333333333333333
  2250. local Pos = Pos or Vector3.new(0, 0, 0)
  2251. local Text = Text or ""
  2252. local Time = Time or 2
  2253. local Color = Color or Color3.new(1, 0, 1)
  2254. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2255. EffectPart.Anchored = true
  2256. local BillboardGui = Create("BillboardGui")({
  2257. Size = UDim2.new(3, 0, 3, 0),
  2258. Adornee = EffectPart,
  2259. Parent = EffectPart
  2260. })
  2261. local TextLabel = Create("TextLabel")({
  2262. BackgroundTransparency = 1,
  2263. Size = UDim2.new(1, 0, 1, 0),
  2264. Text = Text,
  2265. TextColor3 = Color,
  2266. TextScaled = true,
  2267. Font = Enum.Font.ArialBold,
  2268. Parent = BillboardGui
  2269. })
  2270. game.Debris:AddItem(EffectPart, Time + 0.1)
  2271. EffectPart.Parent = game:GetService("Workspace")
  2272. delay(0, function()
  2273. local Frames = Time / Rate
  2274. for Frame = 1, Frames do
  2275. wait(Rate)
  2276. local Percent = Frame / Frames
  2277. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2278. TextLabel.TextTransparency = Percent
  2279. end
  2280. if EffectPart and EffectPart.Parent then
  2281. EffectPart:Destroy()
  2282. end
  2283. end)
  2284. end
  2285. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2286. for _, c in pairs(workspace:children()) do
  2287. local hum = c:findFirstChildOfClass("Humanoid")
  2288. if hum ~= nil then
  2289. local head = c:findFirstChild("Head")
  2290. if head ~= nil then
  2291. local targ = head.Position - Part.Position
  2292. local mag = targ.magnitude
  2293. if magni >= mag and c.Name ~= Player.Name then
  2294. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2295. end
  2296. end
  2297. end
  2298. end
  2299. end
  2300.  
  2301. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2302. for _, c in pairs(workspace:children()) do
  2303. local hum = c:findFirstChild("Humanoid")
  2304. if hum ~= nil then
  2305. local head = c:findFirstChild("Torso")
  2306. if head ~= nil then
  2307. local targ = head.Position - Part.Position
  2308. local mag = targ.magnitude
  2309. if magni >= mag and c.Name ~= Player.Name then
  2310. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2311. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2312. end
  2313. end
  2314. end
  2315. end
  2316. end
  2317.  
  2318. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2319. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2320. end
  2321.  
  2322. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2323. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2324. prt.Anchored=true
  2325. prt.CFrame=cframe
  2326. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2327. --http://www.roblox.com/asset/?id=4770560
  2328. game:GetService("Debris"):AddItem(prt,2)
  2329. CF=prt.CFrame
  2330. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2331. for i=0,1,0.2 do
  2332. wait()
  2333. Part.CFrame=CF*cf(0,0,-0.4)
  2334. end
  2335. for i=0,1,delay do
  2336. wait()
  2337. --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)
  2338. Mesh.Scale=Mesh.Scale
  2339. end
  2340. for i=0,1,0.1 do
  2341. wait()
  2342. Part.Transparency=i
  2343. end
  2344. Part.Parent=nil
  2345. end),prt,msh,CF)
  2346. end
  2347.  
  2348. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2349. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2350. prt.Anchored=true
  2351. prt.Material = "Neon"
  2352. prt.CFrame=cframe
  2353. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2354. msh=mesh("BlockMesh",prt,"","",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. swait()
  2359. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  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 MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2368. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2369. prt.Anchored=true
  2370. prt.Material = "Neon"
  2371. prt.CFrame=cframe
  2372. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2373. game:GetService("Debris"):AddItem(prt,5)
  2374. coroutine.resume(coroutine.create(function(Part,Mesh)
  2375. local rtype = rottype
  2376. for i=0,1,delay do
  2377. swait()
  2378. if rtype == 1 then
  2379. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2380. elseif rtype == 2 then
  2381. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2382. end
  2383. Part.Transparency=i
  2384. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2385. end
  2386. Part.Parent=nil
  2387. end),prt,msh)
  2388. end
  2389.  
  2390. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2391. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2392. prt.Anchored=true
  2393. prt.CFrame=cframe
  2394. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2395. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2396. game:GetService("Debris"):AddItem(prt,5)
  2397. coroutine.resume(coroutine.create(function(Part,Mesh)
  2398. for i=0,1,delay do
  2399. wait()
  2400. Part.Transparency=i
  2401. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2402. end
  2403. Part.Parent=nil
  2404. end),prt,msh)
  2405. end
  2406.  
  2407. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2408. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2409. prt.Anchored=true
  2410. prt.Material = "Neon"
  2411. prt.CFrame=cframe
  2412. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2413. game:GetService("Debris"):AddItem(prt,5)
  2414. coroutine.resume(coroutine.create(function(Part,Mesh)
  2415. local rtype = rottype
  2416. for i=0,1,delay do
  2417. swait()
  2418. if rtype == 1 then
  2419. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2420. elseif rtype == 2 then
  2421. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2422. end
  2423. Part.Transparency=i
  2424. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2425. end
  2426. Part.Parent=nil
  2427. end),prt,msh)
  2428. end
  2429.  
  2430. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2431. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2432. prt.Anchored=true
  2433. prt.Material = "Neon"
  2434. prt.CFrame=cframe
  2435. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2436. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2437. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2438. game:GetService("Debris"):AddItem(prt,5)
  2439. coroutine.resume(coroutine.create(function(Part,Mesh)
  2440. local rtype = rottype
  2441. for i=0,1,delay do
  2442. swait()
  2443. if rtype == 1 then
  2444. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2445. elseif rtype == 2 then
  2446. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2447. end
  2448. dec.Transparency=i
  2449. dec2.Transparency=i
  2450. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2451. end
  2452. Part.Parent=nil
  2453. end),prt,msh)
  2454. end
  2455.  
  2456. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2457. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2458. prt.Anchored=true
  2459. prt.Material = "Neon"
  2460. prt.CFrame=cframe
  2461. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2462. game:GetService("Debris"):AddItem(prt,5)
  2463. coroutine.resume(coroutine.create(function(Part,Mesh)
  2464. local rtype = rottype
  2465. for i=0,1,delay do
  2466. swait()
  2467. if rtype == 1 then
  2468. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2469. elseif rtype == 2 then
  2470. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2471. end
  2472. prt.Transparency=i
  2473. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2474. end
  2475. Part.Parent=nil
  2476. end),prt,msh)
  2477. end
  2478.  
  2479. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2480. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2481. prt.Anchored=true
  2482. prt.Material = "Neon"
  2483. prt.CFrame=cframe
  2484. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2485. game:GetService("Debris"):AddItem(prt,5)
  2486. coroutine.resume(coroutine.create(function(Part,Mesh)
  2487. local rtype = rottype
  2488. for i=0,1,delay do
  2489. swait()
  2490. if rtype == 1 then
  2491. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2492. elseif rtype == 2 then
  2493. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2494. end
  2495. prt.Transparency=i
  2496. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2497. end
  2498. Part.Parent=nil
  2499. end),prt,msh)
  2500. end
  2501.  
  2502. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2503. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2504. prt.Anchored=true
  2505. prt.Material = "Neon"
  2506. prt.CFrame=cframe
  2507. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2508. game:GetService("Debris"):AddItem(prt,5)
  2509. coroutine.resume(coroutine.create(function(Part,Mesh)
  2510. local rtype = rottype
  2511. for i=0,1,delay do
  2512. swait()
  2513. if rtype == 1 then
  2514. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2515. elseif rtype == 2 then
  2516. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2517. end
  2518. prt.Transparency=i
  2519. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2520. end
  2521. Part.Parent=nil
  2522. end),prt,msh)
  2523. end
  2524.  
  2525. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2526. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2527. prt.Anchored=true
  2528. prt.Material = "Neon"
  2529. prt.CFrame=cframe
  2530. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2531. game:GetService("Debris"):AddItem(prt,5)
  2532. coroutine.resume(coroutine.create(function(Part,Mesh)
  2533. local rtype = rottype
  2534. for i=0,1,delay do
  2535. swait()
  2536. if rtype == 1 then
  2537. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2538. elseif rtype == 2 then
  2539. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2540. end
  2541. prt.Transparency=i
  2542. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2543. end
  2544. Part.Parent=nil
  2545. end),prt,msh)
  2546. end
  2547.  
  2548. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2549. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2550. prt.Anchored=false
  2551. prt.CFrame=cframe
  2552. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2553. local wld=weld(prt,prt,Parent,cframe)
  2554. game:GetService("Debris"):AddItem(prt,5)
  2555. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2556. for i=0,1,delay do
  2557. wait()
  2558. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2559. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2560. Part.Transparency=i
  2561. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2562. end
  2563. Part.Parent=nil
  2564. end),prt,msh,wld)
  2565. end
  2566.  
  2567. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2568. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2569. prt.Anchored=false
  2570. prt.CFrame=cframe
  2571. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2572. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2573. game:GetService("Debris"):AddItem(prt,5)
  2574. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2575. for i=0,1,delay do
  2576. wait()
  2577. Weld.C0=euler(i*20,0,0)
  2578. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2579. Part.Transparency=i
  2580. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2581. end
  2582. Part.Parent=nil
  2583. end),prt,msh,wld)
  2584. end
  2585.  
  2586. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2587. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2588. prt.Anchored=true
  2589. prt.CFrame=cframe
  2590. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2591. game:GetService("Debris"):AddItem(prt,2)
  2592. coroutine.resume(coroutine.create(function(Part,Mesh)
  2593. for i=0,1,delay do
  2594. wait()
  2595. Part.CFrame=Part.CFrame
  2596. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2597. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2598. prt2.Anchored=true
  2599. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2600. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2601. game:GetService("Debris"):AddItem(prt2,2)
  2602. coroutine.resume(coroutine.create(function(Part,Mesh)
  2603. for i=0,1,0.1 do
  2604. wait()
  2605. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2606. end
  2607. Part.Parent=nil
  2608. end),prt2,msh2)
  2609. end
  2610. for i=0,1,delay*2 do
  2611. wait()
  2612. Part.CFrame=Part.CFrame
  2613. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2614. end
  2615. Part.Parent=nil
  2616. end),prt,msh)
  2617. end
  2618.  
  2619. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2620. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2621. prt.Anchored=true
  2622. prt.CFrame=cframe
  2623. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2624. game:GetService("Debris"):AddItem(prt,2)
  2625. coroutine.resume(coroutine.create(function(Part,Mesh)
  2626. for i=0,1,delay do
  2627. wait()
  2628. Part.CFrame=Part.CFrame
  2629. Part.Transparency=i
  2630. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2631. end
  2632. Part.Parent=nil
  2633. end),prt,msh)
  2634. end
  2635.  
  2636. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2637. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2638. prt.Anchored=true
  2639. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2640. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2641. game:GetService("Debris"):AddItem(prt,2)
  2642. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2643. CF=Part.CFrame
  2644. Numbb=0
  2645. randnumb=math.random()/10
  2646. rand1=math.random()/10
  2647. for i=0,1,rand1 do
  2648. wait()
  2649. CF=CF*cf(0,math.random()/2,0)
  2650. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2651. Part.CFrame=CF*euler(Numbb,0,0)
  2652. Part.Transparency=i
  2653. Numbb=Numbb+randnumb
  2654. end
  2655. Part.Parent=nil
  2656. end),prt,CF,Numbb,randnumb)
  2657. end
  2658.  
  2659. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2660. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2661. prt.Anchored=true
  2662. prt.CFrame=cframe
  2663. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2664. game:GetService("Debris"):AddItem(prt,5)
  2665. coroutine.resume(coroutine.create(function(Part,Mesh)
  2666. for i=0,1,delay do
  2667. wait()
  2668. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2669. Part.Transparency=i
  2670. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2671. end
  2672. Part.Parent=nil
  2673. end),prt,msh)
  2674. end
  2675.  
  2676. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2677. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2678. prt.Anchored=true
  2679. prt.CFrame=cframe
  2680. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2681. game:GetService("Debris"):AddItem(prt,2)
  2682. coroutine.resume(coroutine.create(function(Part,Mesh)
  2683. for i=0,1,delay do
  2684. wait()
  2685. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2686. Part.Transparency=i
  2687. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2688. end
  2689. Part.Parent=nil
  2690. end),prt,msh)
  2691. end
  2692.  
  2693. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2694. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2695. prt.Anchored=true
  2696. prt.CFrame=cframe*cf(x,y,z)
  2697. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2698. game:GetService("Debris"):AddItem(prt,5)
  2699. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2700. local num=math.random()
  2701. local num2=math.random(-3,2)+math.random()
  2702. local numm=0
  2703. for i=0,1,delay*2 do
  2704. swait()
  2705. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2706. Part.Transparency=i
  2707. numm=numm+0.01
  2708. end
  2709. Part.Parent=nil
  2710. Mesh.Parent=nil
  2711. end),prt,msh,x,y,z)
  2712. end
  2713.  
  2714. function dmgstart(dmg,what)
  2715. hitcon = what.Touched:connect(function(hit)
  2716. local hum = hit.Parent:FindFirstChild("Humanoid")
  2717. if hum and not hum:IsDescendantOf(Character) then
  2718. hum:TakeDamage(dmg)
  2719. end
  2720. end)
  2721. end
  2722.  
  2723. function dmgstop()
  2724. hitcon:disconnect()
  2725. end
  2726.  
  2727. function Cloak()
  2728. Face.Parent=nil
  2729. cloaked=true
  2730. for _,v in pairs(Torso.Parent:children()) do
  2731. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2732. coroutine.resume(coroutine.create(function()
  2733. for i=0,1,0.2 do
  2734. wait()
  2735. v.Transparency=i
  2736. end
  2737. v.Transparency=1
  2738. end))
  2739. end
  2740. if v.className=="Hat" then
  2741. hatp=v.Handle
  2742. coroutine.resume(coroutine.create(function(derp)
  2743. for i=0,1,0.2 do
  2744. wait()
  2745. derp.Transparency=i
  2746. end
  2747. derp.Transparency=1
  2748. end),hatp)
  2749. end
  2750. end
  2751. for _,v in pairs(m:children()) do
  2752. if v.className=="Part" then
  2753. coroutine.resume(coroutine.create(function()
  2754. for i=0,1,0.2 do
  2755. wait()
  2756. v.Transparency=i
  2757. end
  2758. v.Transparency=1
  2759. end))
  2760. end
  2761. end
  2762. end
  2763.  
  2764. function UnCloak()
  2765. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2766. Face.Parent=Head
  2767. cloaked=false
  2768. for _,v in pairs(Torso.Parent:children()) do
  2769. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2770. coroutine.resume(coroutine.create(function()
  2771. for i=0,1,0.1 do
  2772. wait()
  2773. v.Transparency=v.Transparency-0.1
  2774. end
  2775. v.Transparency=0
  2776. end))
  2777. end
  2778. if v.className=="Hat" then
  2779. hatp=v.Handle
  2780. coroutine.resume(coroutine.create(function(derp)
  2781. for i=0,1,0.1 do
  2782. wait()
  2783. derp.Transparency=derp.Transparency-0.1
  2784. end
  2785. derp.Transparency=0
  2786. end),hatp)
  2787. end
  2788. end
  2789. for _,v in pairs(m:children()) do
  2790. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2791. coroutine.resume(coroutine.create(function()
  2792. for i=0,1,0.1 do
  2793. wait()
  2794. v.Transparency=v.Transparency-0.1
  2795. end
  2796. v.Transparency=0
  2797. end))
  2798. v.Transparency=0
  2799. end
  2800. end
  2801. end
  2802.  
  2803. local origcolor = BrickColor.new("Pastel light blue")
  2804. ---- This section of explosions.
  2805.  
  2806. ----
  2807.  
  2808.  
  2809. function ring(type,pos,scale,value)
  2810. local type = type
  2811. local rng = Instance.new("Part", char)
  2812. rng.Anchored = true
  2813. rng.BrickColor = origcolor
  2814. rng.CanCollide = false
  2815. rng.FormFactor = 3
  2816. rng.Name = "Ring"
  2817. rng.Size = Vector3.new(1, 1, 1)
  2818. rng.Transparency = 0
  2819. rng.TopSurface = 0
  2820. rng.BottomSurface = 0
  2821. rng.CFrame = pos
  2822. local rngm = Instance.new("SpecialMesh", rng)
  2823. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2824. rngm.Scale = scale
  2825. local scaler2 = 1
  2826. if type == "Add" then
  2827. scaler2 = 1*value
  2828. elseif type == "Divide" then
  2829. scaler2 = 1/value
  2830. end
  2831. coroutine.resume(coroutine.create(function()
  2832. for i = 0,10,0.1 do
  2833. swait()
  2834. if type == "Add" then
  2835. scaler2 = scaler2 - 0.01*value
  2836. elseif type == "Divide" then
  2837. scaler2 = scaler2 - 0.01/value
  2838. end
  2839. rng.Transparency = rng.Transparency + 0.01
  2840. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2841. end
  2842. rng:Destroy()
  2843. end))
  2844. end
  2845.  
  2846.  
  2847. function wave(type,pos,scale,value)
  2848. local type = type
  2849. local rng = Instance.new("Part", char)
  2850. rng.Anchored = true
  2851. rng.BrickColor = origcolor
  2852. rng.CanCollide = false
  2853. rng.FormFactor = 3
  2854. rng.Name = "Ring"
  2855. rng.Size = Vector3.new(1, 1, 1)
  2856. rng.Transparency = 0
  2857. rng.TopSurface = 0
  2858. rng.BottomSurface = 0
  2859. rng.CFrame = pos
  2860. local rngm = Instance.new("SpecialMesh", rng)
  2861. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2862. rngm.Scale = scale
  2863. local scaler2 = 1
  2864. if type == "Add" then
  2865. scaler2 = 1*value
  2866. elseif type == "Divide" then
  2867. scaler2 = 1/value
  2868. end
  2869. coroutine.resume(coroutine.create(function()
  2870. for i = 0,10,0.1 do
  2871. swait()
  2872. if type == "Add" then
  2873. scaler2 = scaler2 - 0.01*value
  2874. elseif type == "Divide" then
  2875. scaler2 = scaler2 - 0.01/value
  2876. end
  2877. rng.Transparency = rng.Transparency + 0.01
  2878. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2879. end
  2880. rng:Destroy()
  2881. end))
  2882. end
  2883.  
  2884. function wind(type,pos,scale,value,speed)
  2885. local type = type
  2886. local rng = Instance.new("Part", char)
  2887. rng.Anchored = true
  2888. rng.BrickColor = origcolor
  2889. rng.CanCollide = false
  2890. rng.FormFactor = 3
  2891. rng.Name = "Ring"
  2892. rng.Size = Vector3.new(1, 1, 1)
  2893. rng.Transparency = 0
  2894. rng.TopSurface = 0
  2895. rng.BottomSurface = 0
  2896. rng.CFrame = pos
  2897. local rngm = Instance.new("SpecialMesh", rng)
  2898. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2899. rngm.Scale = scale
  2900. local scaler2 = 1
  2901. if type == "Add" then
  2902. scaler2 = 1*value
  2903. elseif type == "Divide" then
  2904. scaler2 = 1/value
  2905. end
  2906. coroutine.resume(coroutine.create(function()
  2907. for i = 0,10,0.1 do
  2908. swait()
  2909. if type == "Add" then
  2910. scaler2 = scaler2 - 0.01*value
  2911. elseif type == "Divide" then
  2912. scaler2 = scaler2 - 0.01/value
  2913. end
  2914. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2915. rng.Transparency = rng.Transparency + 0.01
  2916. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2917. end
  2918. rng:Destroy()
  2919. end))
  2920. end
  2921.  
  2922. function groundwind(type,pos,scale,value,speed)
  2923. local type = type
  2924. local rng = Instance.new("Part", char)
  2925. rng.Anchored = true
  2926. rng.BrickColor = origcolor
  2927. rng.CanCollide = false
  2928. rng.FormFactor = 3
  2929. rng.Name = "Ring"
  2930. rng.Size = Vector3.new(1, 1, 1)
  2931. rng.Transparency = 0
  2932. rng.TopSurface = 0
  2933. rng.BottomSurface = 0
  2934. rng.CFrame = pos
  2935. local rngm = Instance.new("SpecialMesh", rng)
  2936. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2937. rngm.Scale = scale
  2938. local scaler2 = 1
  2939. if type == "Add" then
  2940. scaler2 = 1*value
  2941. elseif type == "Divide" then
  2942. scaler2 = 1/value
  2943. end
  2944. coroutine.resume(coroutine.create(function()
  2945. for i = 0,10,0.1 do
  2946. swait()
  2947. if type == "Add" then
  2948. scaler2 = scaler2 - 0.01*value
  2949. elseif type == "Divide" then
  2950. scaler2 = scaler2 - 0.01/value
  2951. end
  2952. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2953. rng.Transparency = rng.Transparency + 0.01
  2954. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2955. end
  2956. rng:Destroy()
  2957. end))
  2958. end
  2959.  
  2960. function CameraManager()
  2961. if TwoD and not CamInterrupt then
  2962. if Humanoid.Health > 0 then
  2963. Camera.CameraSubject = Humanoid
  2964. Camera.CameraType = "Scriptable"
  2965. Humanoid.AutoRotate = false
  2966. if Booleans.GyroUse then
  2967. Directer.MaxTorque = Vec3(0, huge, 0)
  2968. else
  2969. Directer.MaxTorque = Vec3(0, 0, 0)
  2970. end
  2971. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2972. if Booleans.CamFollow then
  2973. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2974. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2975. else
  2976. CPart.Position = RootPart.Position
  2977. end
  2978. else
  2979. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2980. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2981. end
  2982. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2983. else
  2984. Camera.CameraSubject = Humanoid
  2985. Camera.CameraType = "Custom"
  2986. Controller.Disabled = false
  2987. end
  2988. end
  2989. end
  2990.  
  2991. function ring(type,pos,scale,value)
  2992. local type = type
  2993. local rng = Instance.new("Part", char)
  2994. rng.Anchored = true
  2995. rng.BrickColor = origcolor
  2996. rng.CanCollide = false
  2997. rng.FormFactor = 3
  2998. rng.Name = "Ring"
  2999. rng.Size = Vector3.new(1, 1, 1)
  3000. rng.Transparency = 0
  3001. rng.TopSurface = 0
  3002. rng.BottomSurface = 0
  3003. rng.CFrame = pos
  3004. local rngm = Instance.new("SpecialMesh", rng)
  3005. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3006. rngm.Scale = scale
  3007. local scaler2 = 1
  3008. if type == "Add" then
  3009. scaler2 = 1*value
  3010. elseif type == "Divide" then
  3011. scaler2 = 1/value
  3012. end
  3013. coroutine.resume(coroutine.create(function()
  3014. for i = 0,10,0.1 do
  3015. swait()
  3016. if type == "Add" then
  3017. scaler2 = scaler2 - 0.01*value
  3018. elseif type == "Divide" then
  3019. scaler2 = scaler2 - 0.01/value
  3020. end
  3021. rng.Transparency = rng.Transparency + 0.01
  3022. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  3023. end
  3024. rng:Destroy()
  3025. end))
  3026. end
  3027.  
  3028.  
  3029. function wave(type,pos,scale,value)
  3030. local type = type
  3031. local rng = Instance.new("Part", char)
  3032. rng.Anchored = true
  3033. rng.BrickColor = origcolor
  3034. rng.CanCollide = false
  3035. rng.FormFactor = 3
  3036. rng.Name = "Ring"
  3037. rng.Size = Vector3.new(1, 1, 1)
  3038. rng.Transparency = 0
  3039. rng.TopSurface = 0
  3040. rng.BottomSurface = 0
  3041. rng.CFrame = pos
  3042. local rngm = Instance.new("SpecialMesh", rng)
  3043. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3044. rngm.Scale = scale
  3045. local scaler2 = 1
  3046. if type == "Add" then
  3047. scaler2 = 1*value
  3048. elseif type == "Divide" then
  3049. scaler2 = 1/value
  3050. end
  3051. coroutine.resume(coroutine.create(function()
  3052. for i = 0,10,0.1 do
  3053. swait()
  3054. if type == "Add" then
  3055. scaler2 = scaler2 - 0.01*value
  3056. elseif type == "Divide" then
  3057. scaler2 = scaler2 - 0.01/value
  3058. end
  3059. rng.Transparency = rng.Transparency + 0.01
  3060. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  3061. end
  3062. rng:Destroy()
  3063. end))
  3064. end
  3065.  
  3066. function sphere(bonuspeed,type,pos,scale,value,color)
  3067. local type = type
  3068. local rng = Instance.new("Part", char)
  3069. rng.Anchored = true
  3070. if ModeOfGlitch ~= 9 then
  3071. rng.BrickColor = color
  3072. elseif ModeOfGlitch == 9 then
  3073. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3074. end
  3075. rng.CanCollide = false
  3076. rng.FormFactor = 3
  3077. rng.Name = "Ring"
  3078. rng.Material = "Neon"
  3079. rng.Size = Vector3.new(1, 1, 1)
  3080. rng.Transparency = 0
  3081. rng.TopSurface = 0
  3082. rng.BottomSurface = 0
  3083. rng.CFrame = pos
  3084. local rngm = Instance.new("SpecialMesh", rng)
  3085. rngm.MeshType = "Sphere"
  3086. rngm.Scale = scale
  3087. if rainbowmode == true then
  3088. rng.Color = Color3.new(r/255,g/255,b/255)
  3089. end
  3090. if ModeOfGlitch == 9 then
  3091. coroutine.resume(coroutine.create(function()
  3092. while true do
  3093. swait()
  3094. if rng.Parent ~= nil then
  3095. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3096. else
  3097. break
  3098. end
  3099. end
  3100. end))
  3101. end
  3102. local scaler2 = 1
  3103. if type == "Add" then
  3104. scaler2 = 1*value
  3105. elseif type == "Divide" then
  3106. scaler2 = 1/value
  3107. end
  3108. coroutine.resume(coroutine.create(function()
  3109. for i = 0,10/bonuspeed,0.1 do
  3110. swait()
  3111. if rainbowmode == true then
  3112. rng.Color = Color3.new(r/255,g/255,b/255)
  3113. end
  3114. if type == "Add" then
  3115. scaler2 = scaler2 - 0.01*value/bonuspeed
  3116. elseif type == "Divide" then
  3117. scaler2 = scaler2 - 0.01/value*bonuspeed
  3118. end
  3119. if chaosmode == true then
  3120. rng.BrickColor = BrickColor.random()
  3121. end
  3122. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3123. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3124. end
  3125. rng:Destroy()
  3126. end))
  3127. end
  3128.  
  3129. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  3130. local type = type
  3131. local rng = Instance.new("Part", char)
  3132. rng.Anchored = true
  3133. if ModeOfGlitch ~= 9 then
  3134. rng.BrickColor = color
  3135. elseif ModeOfGlitch == 9 then
  3136. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3137. end
  3138. rng.CanCollide = false
  3139. rng.FormFactor = 3
  3140. rng.Name = "Ring"
  3141. rng.Material = "Neon"
  3142. rng.Size = Vector3.new(1, 1, 1)
  3143. rng.Transparency = 0
  3144. rng.TopSurface = 0
  3145. rng.BottomSurface = 0
  3146. rng.CFrame = pos
  3147. local rngm = Instance.new("SpecialMesh", rng)
  3148. rngm.MeshType = "Sphere"
  3149. rngm.Scale = scale
  3150. local scaler2 = 1
  3151. local scaler2b = 1
  3152. local scaler2c = 1
  3153. if type == "Add" then
  3154. scaler2 = 1*value
  3155. scaler2b = 1*value2
  3156. scaler2c = 1*value3
  3157. elseif type == "Divide" then
  3158. scaler2 = 1/value
  3159. scaler2b = 1/value2
  3160. scaler2c = 1/value3
  3161. end
  3162. if ModeOfGlitch == 9 then
  3163. coroutine.resume(coroutine.create(function()
  3164. while true do
  3165. swait()
  3166. if rng.Parent ~= nil then
  3167. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3168. else
  3169. break
  3170. end
  3171. end
  3172. end))
  3173. end
  3174. coroutine.resume(coroutine.create(function()
  3175. for i = 0,10/bonuspeed,0.1 do
  3176. swait()
  3177. if type == "Add" then
  3178. scaler2 = scaler2 - 0.01*value/bonuspeed
  3179. scaler2b = scaler2b - 0.01*value/bonuspeed
  3180. scaler2c = scaler2c - 0.01*value/bonuspeed
  3181. elseif type == "Divide" then
  3182. scaler2 = scaler2 - 0.01/value*bonuspeed
  3183. scaler2b = scaler2b - 0.01/value*bonuspeed
  3184. scaler2c = scaler2c - 0.01/value*bonuspeed
  3185. end
  3186. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3187. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3188. end
  3189. rng:Destroy()
  3190. end))
  3191. end
  3192.  
  3193. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  3194. local type = type
  3195. local rotenable = rotatingop
  3196. local rng = Instance.new("Part", char)
  3197. rng.Anchored = true
  3198. rng.BrickColor = color
  3199. rng.CanCollide = false
  3200. rng.FormFactor = 3
  3201. rng.Name = "Ring"
  3202. rng.Material = "Neon"
  3203. rng.Size = Vector3.new(1, 1, 1)
  3204. rng.Transparency = 0
  3205. if typeoftrans == "In" then
  3206. rng.Transparency = 1
  3207. end
  3208. rng.TopSurface = 0
  3209. rng.BottomSurface = 0
  3210. rng.CFrame = pos
  3211. local rngm = Instance.new("SpecialMesh", rng)
  3212. rngm.MeshType = "FileMesh"
  3213. if typeofshape == "Normal" then
  3214. rngm.MeshId = "rbxassetid://662586858"
  3215. elseif typeofshape == "Round" then
  3216. rngm.MeshId = "rbxassetid://662585058"
  3217. end
  3218. rngm.Scale = scale
  3219. local scaler2 = 1/10
  3220. if type == "Add" then
  3221. scaler2 = 1*value/10
  3222. elseif type == "Divide" then
  3223. scaler2 = 1/value/10
  3224. end
  3225. local randomrot = math.random(1,2)
  3226. coroutine.resume(coroutine.create(function()
  3227. for i = 0,10/bonuspeed,0.1 do
  3228. swait()
  3229. if type == "Add" then
  3230. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  3231. elseif type == "Divide" then
  3232. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  3233. end
  3234. if rotenable == true then
  3235. if randomrot == 1 then
  3236. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  3237. elseif randomrot == 2 then
  3238. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  3239. end
  3240. end
  3241. if typeoftrans == "Out" then
  3242. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3243. elseif typeoftrans == "In" then
  3244. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3245. end
  3246. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  3247. end
  3248. rng:Destroy()
  3249. end))
  3250. end
  3251.  
  3252. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3253. local type = type
  3254. local rng = Instance.new("Part", char)
  3255. rng.Anchored = true
  3256. rng.BrickColor = color
  3257. rng.CanCollide = false
  3258. rng.FormFactor = 3
  3259. rng.Name = "Ring"
  3260. rng.Material = "Neon"
  3261. rng.Size = Vector3.new(1, 1, 1)
  3262. rng.Transparency = 0
  3263. rng.TopSurface = 0
  3264. rng.BottomSurface = 0
  3265. rng.CFrame = pos
  3266. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3267. local rngm = Instance.new("SpecialMesh", rng)
  3268. rngm.MeshType = "Brick"
  3269. rngm.Scale = vt(x1,y1,z1)
  3270. if rainbowmode == true then
  3271. rng.Color = Color3.new(r/255,g/255,b/255)
  3272. end
  3273. local scaler2 = 1
  3274. local speeder = FastSpeed/10
  3275. if type == "Add" then
  3276. scaler2 = 1*value
  3277. elseif type == "Divide" then
  3278. scaler2 = 1/value
  3279. end
  3280. coroutine.resume(coroutine.create(function()
  3281. for i = 0,10/bonuspeed,0.1 do
  3282. swait()
  3283. if rainbowmode == true then
  3284. rng.Color = Color3.new(r/255,g/255,b/255)
  3285. end
  3286. if type == "Add" then
  3287. scaler2 = scaler2 - 0.01*value/bonuspeed
  3288. elseif type == "Divide" then
  3289. scaler2 = scaler2 - 0.01/value*bonuspeed
  3290. end
  3291. if chaosmode == true then
  3292. rng.BrickColor = BrickColor.random()
  3293. end
  3294. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3295. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3296. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3297. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3298. end
  3299. rng:Destroy()
  3300. end))
  3301. end
  3302.  
  3303. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3304. local type = type
  3305. local rng = Instance.new("Part", char)
  3306. rng.Anchored = true
  3307. rng.BrickColor = color
  3308. rng.CanCollide = false
  3309. rng.FormFactor = 3
  3310. rng.Name = "Ring"
  3311. rng.Material = "Neon"
  3312. rng.Size = Vector3.new(1, 1, 1)
  3313. rng.Transparency = 0
  3314. rng.TopSurface = 0
  3315. rng.BottomSurface = 0
  3316. rng.CFrame = pos
  3317. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3318. local rngm = Instance.new("SpecialMesh", rng)
  3319. rngm.MeshType = "Brick"
  3320. rngm.Scale = vt(x1,y1,z1)
  3321. if rainbowmode == true then
  3322. rng.Color = Color3.new(r/255,g/255,b/255)
  3323. end
  3324. local scaler2 = 1
  3325. local speeder = FastSpeed/10
  3326. if type == "Add" then
  3327. scaler2 = 1*value
  3328. elseif type == "Divide" then
  3329. scaler2 = 1/value
  3330. end
  3331. coroutine.resume(coroutine.create(function()
  3332. for i = 0,10/bonuspeed,0.1 do
  3333. swait()
  3334. if rainbowmode == true then
  3335. rng.Color = Color3.new(r/255,g/255,b/255)
  3336. end
  3337. if type == "Add" then
  3338. scaler2 = scaler2 - 0.01*value/bonuspeed
  3339. elseif type == "Divide" then
  3340. scaler2 = scaler2 - 0.01/value*bonuspeed
  3341. end
  3342. if chaosmode == true then
  3343. rng.BrickColor = BrickColor.random()
  3344. end
  3345. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3346. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3347. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3348. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3349. end
  3350. rng:Destroy()
  3351. end))
  3352. end
  3353.  
  3354. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3355. local type = type
  3356. local rng = Instance.new("Part", char)
  3357. rng.Anchored = true
  3358. rng.BrickColor = color
  3359. rng.CanCollide = false
  3360. rng.FormFactor = 3
  3361. rng.Name = "Ring"
  3362. rng.Material = "Neon"
  3363. rng.Size = Vector3.new(1, 1, 1)
  3364. rng.Transparency = 0
  3365. rng.TopSurface = 0
  3366. rng.BottomSurface = 0
  3367. rng.CFrame = pos
  3368. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3369. local rngm = Instance.new("SpecialMesh", rng)
  3370. rngm.MeshType = "Brick"
  3371. rngm.Scale = vt(x1,y1,z1)
  3372. if rainbowmode == true then
  3373. rng.Color = Color3.new(r/255,g/255,b/255)
  3374. end
  3375. local scaler2 = 0
  3376. local speeder = FastSpeed/10
  3377. if type == "Add" then
  3378. scaler2 = 1*value
  3379. elseif type == "Divide" then
  3380. scaler2 = 1/value
  3381. end
  3382. coroutine.resume(coroutine.create(function()
  3383. for i = 0,10/bonuspeed,0.1 do
  3384. swait()
  3385. if rainbowmode == true then
  3386. rng.Color = Color3.new(r/255,g/255,b/255)
  3387. end
  3388. if type == "Add" then
  3389. scaler2 = scaler2 - 0.01*value/bonuspeed
  3390. elseif type == "Divide" then
  3391. scaler2 = scaler2 - 0.01/value*bonuspeed
  3392. end
  3393. if chaosmode == true then
  3394. rng.BrickColor = BrickColor.random()
  3395. end
  3396. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3397. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3398. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3399. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3400. end
  3401. rng:Destroy()
  3402. end))
  3403. end
  3404.  
  3405. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3406. local type = type
  3407. local rng = Instance.new("Part", char)
  3408. rng.Anchored = true
  3409. rng.BrickColor = color
  3410. rng.Color = color3
  3411. rng.CanCollide = false
  3412. rng.FormFactor = 3
  3413. rng.Name = "Ring"
  3414. rng.Material = "Neon"
  3415. rng.Size = Vector3.new(1, 1, 1)
  3416. rng.Transparency = 0
  3417. rng.TopSurface = 0
  3418. rng.BottomSurface = 0
  3419. rng.CFrame = pos
  3420. local rngm = Instance.new("SpecialMesh", rng)
  3421. rngm.MeshType = "Brick"
  3422. rngm.Scale = scale
  3423. local scaler2 = 1
  3424. local scaler2b = 1
  3425. local scaler2c = 1
  3426. if type == "Add" then
  3427. scaler2 = 1*value
  3428. scaler2b = 1*value2
  3429. scaler2c = 1*value3
  3430. elseif type == "Divide" then
  3431. scaler2 = 1/value
  3432. scaler2b = 1/value2
  3433. scaler2c = 1/value3
  3434. end
  3435. coroutine.resume(coroutine.create(function()
  3436. for i = 0,10/bonuspeed,0.1 do
  3437. swait()
  3438. if type == "Add" then
  3439. scaler2 = scaler2 - 0.01*value/bonuspeed
  3440. scaler2b = scaler2b - 0.01*value/bonuspeed
  3441. scaler2c = scaler2c - 0.01*value/bonuspeed
  3442. elseif type == "Divide" then
  3443. scaler2 = scaler2 - 0.01/value*bonuspeed
  3444. scaler2b = scaler2b - 0.01/value*bonuspeed
  3445. scaler2c = scaler2c - 0.01/value*bonuspeed
  3446. end
  3447. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3448. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3449. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3450. end
  3451. rng:Destroy()
  3452. end))
  3453. end
  3454.  
  3455. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3456. local type = type
  3457. local rng = Instance.new("Part", char)
  3458. rng.Anchored = true
  3459. if ModeOfGlitch ~= 9 then
  3460. rng.BrickColor = color
  3461. elseif ModeOfGlitch == 9 then
  3462. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3463. end
  3464. rng.CanCollide = false
  3465. rng.FormFactor = 3
  3466. rng.Name = "Ring"
  3467. rng.Material = "Neon"
  3468. rng.Size = Vector3.new(1, 1, 1)
  3469. rng.Transparency = 0
  3470. rng.TopSurface = 0
  3471. rng.BottomSurface = 0
  3472. rng.CFrame = pos
  3473. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3474. local rngm = Instance.new("SpecialMesh", rng)
  3475. rngm.MeshType = "Sphere"
  3476. rngm.Scale = vt(x1,y1,z1)
  3477. if rainbowmode == true then
  3478. rng.Color = Color3.new(r/255,g/255,b/255)
  3479. end
  3480. if ModeOfGlitch == 9 then
  3481. coroutine.resume(coroutine.create(function()
  3482. while true do
  3483. swait()
  3484. if rng.Parent ~= nil then
  3485. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3486. else
  3487. break
  3488. end
  3489. end
  3490. end))
  3491. end
  3492. local scaler2 = 1
  3493. local speeder = FastSpeed
  3494. if type == "Add" then
  3495. scaler2 = 1*value
  3496. elseif type == "Divide" then
  3497. scaler2 = 1/value
  3498. end
  3499. coroutine.resume(coroutine.create(function()
  3500. for i = 0,10/bonuspeed,0.1 do
  3501. swait()
  3502. if rainbowmode == true then
  3503. rng.Color = Color3.new(r/255,g/255,b/255)
  3504. end
  3505. if type == "Add" then
  3506. scaler2 = scaler2 - 0.01*value/bonuspeed
  3507. elseif type == "Divide" then
  3508. scaler2 = scaler2 - 0.01/value*bonuspeed
  3509. end
  3510. if chaosmode == true then
  3511. rng.BrickColor = BrickColor.random()
  3512. end
  3513. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3514. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3515. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3516. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3517. end
  3518. rng:Destroy()
  3519. end))
  3520. end
  3521.  
  3522.  
  3523. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3524. local type = type
  3525. local rng = Instance.new("Part", char)
  3526. rng.Anchored = true
  3527. if ModeOfGlitch ~= 9 then
  3528. rng.BrickColor = color
  3529. elseif ModeOfGlitch == 9 then
  3530. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3531. end
  3532. rng.CanCollide = false
  3533. rng.FormFactor = 3
  3534. rng.Name = "Ring"
  3535. rng.Material = "Neon"
  3536. rng.Size = Vector3.new(1, 1, 1)
  3537. rng.Transparency = 1
  3538. rng.TopSurface = 0
  3539. rng.BottomSurface = 0
  3540. rng.CFrame = pos
  3541. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3542. local rngm = Instance.new("SpecialMesh", rng)
  3543. rngm.MeshType = "Sphere"
  3544. rngm.Scale = vt(x1,y1,z1)
  3545. if rainbowmode == true then
  3546. rng.Color = Color3.new(r/255,g/255,b/255)
  3547. end
  3548. if ModeOfGlitch == 9 then
  3549. coroutine.resume(coroutine.create(function()
  3550. while true do
  3551. swait()
  3552. if rng.Parent ~= nil then
  3553. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3554. else
  3555. break
  3556. end
  3557. end
  3558. end))
  3559. end
  3560. local scaler2 = 1
  3561. local speeder = FastSpeed
  3562. if type == "Add" then
  3563. scaler2 = 1*value
  3564. elseif type == "Divide" then
  3565. scaler2 = 1/value
  3566. end
  3567. coroutine.resume(coroutine.create(function()
  3568. for i = 0,10/bonuspeed,0.1 do
  3569. swait()
  3570. if rainbowmode == true then
  3571. rng.Color = Color3.new(r/255,g/255,b/255)
  3572. end
  3573. if type == "Add" then
  3574. scaler2 = scaler2 - 0.01*value/bonuspeed
  3575. elseif type == "Divide" then
  3576. scaler2 = scaler2 - 0.01/value*bonuspeed
  3577. end
  3578. if chaosmode == true then
  3579. rng.BrickColor = BrickColor.random()
  3580. end
  3581. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3582. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3583. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3584. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3585. end
  3586. rng:Destroy()
  3587. end))
  3588. end
  3589.  
  3590. function dmg(dude)
  3591. if dude.Name ~= Character then
  3592. local keptcolor = MAINRUINCOLOR
  3593. local bgf = Instance.new("BodyGyro",dude.Head)
  3594. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3595. --[[local val = Instance.new("BoolValue",dude)
  3596. val.Name = "IsHit"]]--
  3597. local ds = coroutine.wrap(function()
  3598. dude:WaitForChild("Head"):BreakJoints()
  3599. for i, v in pairs(dude:GetChildren()) do
  3600. if v:IsA("Part") or v:IsA("MeshPart") then
  3601. v.Name = "DEMINISHED"
  3602. end
  3603. end
  3604. wait(0.5)
  3605. targetted = nil
  3606. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3607. coroutine.resume(coroutine.create(function()
  3608. for i, v in pairs(dude:GetChildren()) do
  3609. if v:IsA("Accessory") then
  3610. v:Destroy()
  3611. end
  3612. if v:IsA("Humanoid") then
  3613. v:Destroy()
  3614. end
  3615. if v:IsA("CharacterMesh") then
  3616. v:Destroy()
  3617. end
  3618. if v:IsA("Model") then
  3619. v:Destroy()
  3620. end
  3621. if v:IsA("Part") or v:IsA("MeshPart") then
  3622. for x, o in pairs(v:GetChildren()) do
  3623. if o:IsA("Decal") then
  3624. o:Destroy()
  3625. end
  3626. end
  3627. coroutine.resume(coroutine.create(function()
  3628. v.Material = "Neon"
  3629. v.CanCollide = false
  3630. v.Anchored = false
  3631. local bld = Instance.new("ParticleEmitter",v)
  3632. bld.LightEmission = 0.75
  3633. bld.Texture = "rbxassetid://363275192" ---284205403
  3634. bld.Color = ColorSequence.new(keptcolor.Color)
  3635. bld.Rate = 500
  3636. bld.Lifetime = NumberRange.new(1)
  3637. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3638. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3639. bld.Speed = NumberRange.new(2,5)
  3640. bld.VelocitySpread = 50000
  3641. bld.Rotation = NumberRange.new(-500,500)
  3642. bld.RotSpeed = NumberRange.new(-500,500)
  3643. local sbs = Instance.new("BodyPosition", v)
  3644. sbs.P = 3000
  3645. sbs.D = 1000
  3646. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3647. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3648. v.Color = keptcolor.Color
  3649. coroutine.resume(coroutine.create(function()
  3650. for i = 0, 49 do
  3651. swait(1)
  3652. v:BreakJoints()
  3653. v.Transparency = v.Transparency + 0.02
  3654. end
  3655. v:BreakJoints()
  3656. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3657. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3658. bld.Speed = NumberRange.new(10,25)
  3659. bld.Drag = 5
  3660. bld.Acceleration = vt(0,2,0)
  3661. wait(0.5)
  3662. bld.Enabled = false
  3663. wait(8)
  3664. v:Destroy()
  3665. dude:Destroy()
  3666. end))
  3667. end))
  3668. end
  3669. end
  3670. end))
  3671. end)
  3672. ds()
  3673. end
  3674. end
  3675.  
  3676.  
  3677. function FindNearestHead(Position, Distance, SinglePlayer)
  3678. if SinglePlayer then
  3679. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3680. end
  3681. local List = {}
  3682. for i, v in pairs(workspace:GetChildren()) do
  3683. if v:IsA("Model") then
  3684. if v:findFirstChild("Head") then
  3685. if v ~= Character then
  3686. if (v.Head.Position - Position).magnitude <= Distance then
  3687. table.insert(List, v)
  3688. end
  3689. end
  3690. end
  3691. end
  3692. end
  3693. return List
  3694. end
  3695.  
  3696. function FaceMouse()
  3697. Cam = workspace.CurrentCamera
  3698. return {
  3699. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3700. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3701. }
  3702. end
  3703.  
  3704. function FaceMouse2()
  3705. Cam = workspace.CurrentCamera
  3706. return {
  3707. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3708. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3709. }
  3710. end
  3711.  
  3712. local ModeOfGlitch = 1
  3713. -- Functions are ready.
  3714. local storehumanoidWS = 16
  3715.  
  3716. function CorruptBlink()
  3717. for i = 0, 14 do
  3718. 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)
  3719. end
  3720. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3721. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3722. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3723. CameraEnshaking(2,10)
  3724. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3725. if v:FindFirstChild('Head') then
  3726. dmg(v)
  3727. end
  3728. end
  3729. for i = 0, 14 do
  3730. 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)
  3731. end
  3732. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3733. end
  3734.  
  3735. function PureBomb()
  3736. attack = true
  3737. CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
  3738. CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
  3739. bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
  3740. local orb = Instance.new("Part", char)
  3741. orb.Anchored = true
  3742. orb.BrickColor = BrickColor.new("Toothpaste")
  3743. orb.CanCollide = false
  3744. orb.FormFactor = 3
  3745. orb.Name = "Ring"
  3746. orb.Material = "Neon"
  3747. orb.Size = Vector3.new(1, 1, 1)
  3748. orb.Transparency = 0
  3749. orb.TopSurface = 0
  3750. orb.BottomSurface = 0
  3751. local orbm = Instance.new("SpecialMesh", orb)
  3752. orbm.MeshType = "Sphere"
  3753. orbm.Name = "SizeMesh"
  3754. orbm.Scale = vt(0,0,0)
  3755. local scaled = 0.1
  3756. local posid = 0
  3757. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
  3758. for i = 0, 5, 0.1 do
  3759. swait()
  3760. scaled = scaled - 0.001
  3761. posid = posid - scaled
  3762. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3763. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3764. 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)
  3765. 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)
  3766. 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)
  3767. 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)
  3768. 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)
  3769. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3770. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3771. 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)
  3772. end
  3773. for i = 0, 2, 0.1 do
  3774. swait()
  3775. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3776. 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)
  3777. 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)
  3778. 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)
  3779. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3780. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3781. 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)
  3782. end
  3783. CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
  3784. CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
  3785. bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
  3786. coroutine.resume(coroutine.create(function()
  3787. orb.Anchored = false
  3788. CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
  3789. local a = Instance.new("Part",workspace)
  3790. a.Name = "Direction"
  3791. a.Anchored = true
  3792. a.BrickColor = bc("Bright red")
  3793. a.Material = "Neon"
  3794. a.Transparency = 1
  3795. a.CanCollide = false
  3796. local ray = Ray.new(
  3797. orb.CFrame.p, -- origin
  3798. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3799. )
  3800. local ignore = orb
  3801. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3802. a.BottomSurface = 10
  3803. a.TopSurface = 10
  3804. local distance = (orb.CFrame.p - position).magnitude
  3805. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3806. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3807. orb.CFrame = a.CFrame
  3808. a:Destroy()
  3809. local bv = Instance.new("BodyVelocity")
  3810. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3811. bv.velocity = orb.CFrame.lookVector*125
  3812. bv.Parent = orb
  3813. local hitted = false
  3814. game:GetService("Debris"):AddItem(orb, 15)
  3815. wait()
  3816. local hit =orb.Touched:connect(function(hit)
  3817. if hitted == false then
  3818. hitted = true
  3819. CameraEnshaking(10,2.5)
  3820. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3821. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3822. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3823. for i = 0, 49 do
  3824. 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)
  3825. end
  3826. local eff = Instance.new("ParticleEmitter",orb)
  3827. eff.Texture = "rbxassetid://2273224484"
  3828. eff.LightEmission = 1
  3829. eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
  3830. eff.Rate = 500000
  3831. eff.Lifetime = NumberRange.new(0.5,2)
  3832. 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)})
  3833. 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)})
  3834. eff.Speed = NumberRange.new(20,250)
  3835. eff.Drag = 5
  3836. eff.Rotation = NumberRange.new(-500,500)
  3837. eff.VelocitySpread = 9000
  3838. eff.RotSpeed = NumberRange.new(-50,50)
  3839. coroutine.resume(coroutine.create(function()
  3840. wait(0.25)
  3841. eff.Enabled = false
  3842. end))
  3843. CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
  3844. for i = 0, 9 do
  3845. 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)
  3846. 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)
  3847. end
  3848. orb.Anchored = true
  3849. orb.Transparency = 1
  3850. local eff = Instance.new("ParticleEmitter",orb)
  3851. eff.Texture = "rbxassetid://2273224484"
  3852. eff.LightEmission = 1
  3853. eff.Color = ColorSequence.new(Color3.new(M))
  3854. eff.Rate = 500000
  3855. eff.Lifetime = NumberRange.new(0.5,2)
  3856. 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)})
  3857. 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)})
  3858. eff.Speed = NumberRange.new(20,250)
  3859. eff.Drag = 5
  3860. eff.Rotation = NumberRange.new(-500,500)
  3861. eff.VelocitySpread = 9000
  3862. eff.RotSpeed = NumberRange.new(-50,50)
  3863. coroutine.resume(coroutine.create(function()
  3864. wait(1)
  3865. eff.Enabled = false
  3866. end))
  3867. wait(8)
  3868. orb:Destroy()
  3869. end
  3870. end)
  3871. end))
  3872. for i = 0, 1, 0.1 do
  3873. swait()
  3874. 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)
  3875. 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)
  3876. 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)
  3877. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3878. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3879. 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)
  3880. end
  3881. attack = false
  3882. end
  3883.  
  3884. function BanishingOrb()
  3885. attack = true
  3886. hum.WalkSpeed = 0
  3887. local radm = math.random(1,3)
  3888. if radm == 1 then
  3889. bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
  3890. elseif radm == 2 then
  3891. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  3892. elseif radm == 3 then
  3893. bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
  3894. end
  3895. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
  3896. CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
  3897. local orb = Instance.new("Part", char)
  3898. orb.Anchored = true
  3899. orb.BrickColor = BrickColor.new("Lime green")
  3900. orb.CanCollide = false
  3901. orb.FormFactor = 3
  3902. orb.Name = "Ring"
  3903. orb.Material = "Neon"
  3904. orb.Size = Vector3.new(1, 1, 1)
  3905. orb.Transparency = 0
  3906. orb.TopSurface = 0
  3907. orb.BottomSurface = 0
  3908. local orbm = Instance.new("SpecialMesh", orb)
  3909. orbm.MeshType = "Sphere"
  3910. orbm.Name = "SizeMesh"
  3911. orbm.Scale = vt(0,0,0)
  3912. local scaled = 0.1
  3913. local posid = 0
  3914. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3915. for i = 0, 5, 0.1 do
  3916. swait()
  3917. scaled = scaled - 0.001
  3918. posid = posid - scaled
  3919. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3920. local scaled = 0.1
  3921. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3922. 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("Cool yellow"),10)
  3923. 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)
  3924. 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)
  3925. 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)
  3926. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3927. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3928. 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)
  3929. end
  3930. for i = 0, 2, 0.1 do
  3931. swait()
  3932. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3933. 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)
  3934. 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)
  3935. 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)
  3936. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3937. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3938. 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)
  3939. end
  3940. coroutine.resume(coroutine.create(function()
  3941. orb.Anchored = false
  3942. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3943. local a = Instance.new("Part",workspace)
  3944. a.Name = "Direction"
  3945. a.Anchored = true
  3946. a.BrickColor = bc("Lime green")
  3947. a.Material = "Neon"
  3948. a.Transparency = 1
  3949. a.CanCollide = false
  3950. local ray = Ray.new(
  3951. orb.CFrame.p, -- origin
  3952. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3953. )
  3954. local ignore = orb
  3955. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3956. a.BottomSurface = 10
  3957. a.TopSurface = 10
  3958. local distance = (orb.CFrame.p - position).magnitude
  3959. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3960. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3961. orb.CFrame = a.CFrame
  3962. a:Destroy()
  3963. local bv = Instance.new("BodyVelocity")
  3964. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3965. bv.velocity = orb.CFrame.lookVector*0
  3966. bv.Parent = orb
  3967. local hitted = false
  3968. local rate = 0
  3969. coroutine.resume(coroutine.create(function()
  3970. for i = 0, 24 do
  3971. wait(0.1)
  3972. rate = rate + 0.25
  3973. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3974. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3975. if v:FindFirstChild('Head') then
  3976. dmg(v)
  3977. end
  3978. end
  3979. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3980. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
  3981. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3982. end
  3983. orb.Anchored = true
  3984. orb.Transparency = 1
  3985. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3986. if v:FindFirstChild('Head') then
  3987. dmg(v)
  3988. end
  3989. end
  3990. local eff = Instance.new("ParticleEmitter",orb)
  3991. eff.Texture = "rbxassetid://296874871"
  3992. eff.LightEmission = 0.95
  3993. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3994. eff.Rate = 1000000000
  3995. eff.Lifetime = NumberRange.new(3)
  3996. 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)})
  3997. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3998. eff.Speed = NumberRange.new(30)
  3999. eff.Acceleration = vt(0,-15,0)
  4000. eff.Rotation = NumberRange.new(-500,500)
  4001. eff.VelocitySpread = 100000
  4002. eff.RotSpeed = NumberRange.new(-500,500)
  4003. coroutine.resume(coroutine.create(function()
  4004. wait(0.6)
  4005. eff.Enabled = false
  4006. end))
  4007. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  4008. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  4009. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
  4010. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4011. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  4012. game:GetService("Debris"):AddItem(orb, 15)
  4013. end))
  4014. end))
  4015. for i = 0, 1, 0.1 do
  4016. swait()
  4017. 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)
  4018. 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)
  4019. 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)
  4020. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  4021. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  4022. 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)
  4023. end
  4024. hum.WalkSpeed = storehumanoidWS
  4025. attack = false
  4026. end
  4027.  
  4028.  
  4029. function ChaosGroundStrike()
  4030. attack = true
  4031. for i = 0, 2, 0.1 do
  4032. swait()
  4033. 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)
  4034. 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)
  4035. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4036. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4037. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4038. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4039. end
  4040. bosschatfunc("DIE!",MAINRUINCOLOR.Color,1)
  4041. CFuncs["EchoSound"].Create("rbxassetid://207155717", root, 7.5,1)
  4042. CFuncs["EchoSound"].Create("rbxassetid://207155717", root, 7.5,1)
  4043. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  4044. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  4045. CFuncs["Sound"].Create("rbxassetid://2556945475", root, 2, 1)
  4046. CameraEnshaking(4,12)
  4047. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  4048. if v:FindFirstChild('Head') then
  4049. dmg(v)
  4050. end
  4051. end
  4052. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  4053. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  4054. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  4055. for i = 0, 2, 0.1 do
  4056. swait()
  4057. 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)
  4058. 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)
  4059. 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)
  4060. 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)
  4061. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4062. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4063. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4064. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4065. end
  4066. attack = false
  4067. end
  4068.  
  4069. function Starfall()
  4070. attack = true
  4071. hum.WalkSpeed = 0
  4072. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  4073. for i = 0, 5, 0.1 do
  4074. swait()
  4075. 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)
  4076. 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)
  4077. 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)
  4078. 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)
  4079. 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)
  4080. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  4081. 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)
  4082. 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)
  4083. end
  4084. local Overed = false
  4085. CameraEnshaking(2,20)
  4086. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4087. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4088. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  4089. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  4090. local orb = Instance.new("Part", char)
  4091. orb.Anchored = true
  4092. orb.BrickColor = BrickColor.new("Toothpaste")
  4093. orb.CanCollide = false
  4094. orb.FormFactor = 3
  4095. orb.Name = "Remenant"
  4096. orb.Material = "Neon"
  4097. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  4098. orb.Size = Vector3.new(1, 1, 1)
  4099. orb.Transparency = 1
  4100. orb.TopSurface = 0
  4101. orb.BottomSurface = 0
  4102. hum.WalkSpeed = storehumanoidWS
  4103. coroutine.resume(coroutine.create(function()
  4104. for i = 0, 9 do
  4105. swait(10)
  4106. local lb = Instance.new("Part")
  4107. lb.Color = MAINRUINCOLOR.Color
  4108. lb.CanCollide = false
  4109. lb.Material = "Neon"
  4110. lb.Anchored = true
  4111. lb.TopSurface = 0
  4112. lb.BottomSurface = 0
  4113. lb.Transparency = 0
  4114. lb.Size = vt(1,1,1)
  4115. 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)))
  4116. lb.Anchored = false
  4117. lb.Parent = char
  4118. local thingery = Instance.new("SpecialMesh",lb)
  4119. thingery.MeshType = "Sphere"
  4120. thingery.Scale = vt(20,20,20)
  4121. game:GetService("Debris"):AddItem(lb, 10)
  4122. local bv = Instance.new("BodyVelocity")
  4123. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4124. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  4125. bv.Parent = lb
  4126. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  4127. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  4128. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  4129. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  4130. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  4131. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  4132. local hitted = false
  4133. coroutine.resume(coroutine.create(function()
  4134. while true do
  4135. swait(1)
  4136. if lb.Parent ~= nil and hitted == false then
  4137. 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)
  4138. elseif lb.Parent == nil then
  4139. break
  4140. end
  4141. end
  4142. end))
  4143.  
  4144. game:GetService("Debris"):AddItem(a, 0.1)
  4145.  
  4146. coroutine.resume(coroutine.create(function()
  4147. swait(1)
  4148. lb.Touched:connect(function(hit)
  4149. if hitted == false then
  4150. hitted = true
  4151. lb.Transparency = 1
  4152. lb.Anchored = true
  4153. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  4154. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  4155. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  4156. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  4157. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  4158. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  4159. MagniDamage(lb, 45, 45,85, 0, "Normal")
  4160. CameraEnshaking(1,5)
  4161. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4162. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4163. for i = 0, 9 do
  4164. 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)
  4165. end
  4166. for i = 0, 49 do
  4167. swait()
  4168. MagniDamage(lb, 30, 2,4, 0, "Normal")
  4169. 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)
  4170. end
  4171. end
  4172. end)
  4173. end))
  4174. end
  4175. Overed = true
  4176. orb:Destroy()
  4177. end))
  4178.  
  4179. attack = false
  4180. end
  4181.  
  4182. function StarfallEX()
  4183. attack = true
  4184. hum.WalkSpeed = 0
  4185. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  4186. for i = 0, 10, 0.1 do
  4187. swait()
  4188. 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)
  4189. 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)
  4190. 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)
  4191. 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)
  4192. 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)
  4193. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  4194. 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)
  4195. 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)
  4196. end
  4197. local Overed = false
  4198. CameraEnshaking(2,20)
  4199. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  4200. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  4201. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  4202. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  4203. local orb = Instance.new("Part", char)
  4204. orb.Anchored = true
  4205. orb.BrickColor = BrickColor.new("Toothpaste")
  4206. orb.CanCollide = false
  4207. orb.FormFactor = 3
  4208. orb.Name = "Remenant"
  4209. orb.Material = "Neon"
  4210. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  4211. orb.Size = Vector3.new(1, 1, 1)
  4212. orb.Transparency = 1
  4213. orb.TopSurface = 0
  4214. orb.BottomSurface = 0
  4215. hum.WalkSpeed = storehumanoidWS
  4216. coroutine.resume(coroutine.create(function()
  4217. for i = 0, 4 do
  4218. swait(15)
  4219. local lb = Instance.new("Part")
  4220. lb.Color = MAINRUINCOLOR.Color
  4221. lb.CanCollide = false
  4222. lb.Material = "Neon"
  4223. lb.Anchored = true
  4224. lb.TopSurface = 0
  4225. lb.BottomSurface = 0
  4226. lb.Transparency = 0
  4227. lb.Size = vt(1,1,1)
  4228. 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)))
  4229. lb.Anchored = false
  4230. lb.Parent = char
  4231. local thingery = Instance.new("SpecialMesh",lb)
  4232. thingery.MeshType = "Sphere"
  4233. thingery.Scale = vt(50,50,50)
  4234. game:GetService("Debris"):AddItem(lb, 10)
  4235. local bv = Instance.new("BodyVelocity")
  4236. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4237. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  4238. bv.Parent = lb
  4239. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  4240. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  4241. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  4242. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  4243. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  4244. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  4245. local hitted = false
  4246. coroutine.resume(coroutine.create(function()
  4247. while true do
  4248. swait(1)
  4249. if lb.Parent ~= nil and hitted == false then
  4250. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),25,25,25,0.25,MAINRUINCOLOR,-2)
  4251. elseif lb.Parent == nil then
  4252. break
  4253. end
  4254. end
  4255. end))
  4256.  
  4257. game:GetService("Debris"):AddItem(a, 0.1)
  4258.  
  4259. coroutine.resume(coroutine.create(function()
  4260. swait(1)
  4261. lb.Touched:connect(function(hit)
  4262. if hitted == false then
  4263. hitted = true
  4264. lb.Transparency = 1
  4265. lb.Anchored = true
  4266. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  4267. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  4268. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  4269. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  4270. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  4271. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  4272. MagniDamage(lb, 50, 60,99, 0, "Normal")
  4273. CameraEnshaking(1,5)
  4274. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  4275. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  4276. for i = 0, 9 do
  4277. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,100,-0.1,MAINRUINCOLOR,0)
  4278. end
  4279. for i = 0, 99 do
  4280. swait()
  4281. MagniDamage(lb, 30, 6,18, 0, "Normal")
  4282. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),32,32,32,0.32,MAINRUINCOLOR,0)
  4283. end
  4284. end
  4285. end)
  4286. end))
  4287. end
  4288. Overed = true
  4289. orb:Destroy()
  4290. end))
  4291.  
  4292. attack = false
  4293. end
  4294.  
  4295. function DivineBlast()
  4296. attack = true
  4297. bosschatfunc("I WILL END YOU!",MAINRUINCOLOR.Color,0.7)
  4298. hum.WalkSpeed = 0
  4299. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  4300. elocacenter.Anchored = true
  4301. elocacenter.CFrame = sorb.CFrame
  4302. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4303. eloca1.Anchored = true
  4304. eloca1.CFrame = elocacenter.CFrame
  4305. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4306. eloca2.Anchored = true
  4307. eloca2.CFrame = elocacenter.CFrame
  4308. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4309. eloca3.Anchored = true
  4310. eloca3.CFrame = elocacenter.CFrame
  4311. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  4312. eloca4.Anchored = true
  4313. eloca4.CFrame = elocacenter.CFrame
  4314. local lookavec = 0
  4315. local speeds = 0
  4316. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  4317. for i = 0, 3, 0.1 do
  4318. swait()
  4319. ---
  4320. lookavec = lookavec + 0.1
  4321. speeds = speeds + 10
  4322. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4323. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4324. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4325.  
  4326. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4327. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4328.  
  4329. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4330. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4331.  
  4332. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4333. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4334. ---
  4335. root.CFrame = FaceMouse()[1]
  4336. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4337. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4338. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4339. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  4340. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4341. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4342. end
  4343. for i = 0, 3, 0.1 do
  4344. swait()
  4345. ---
  4346. speeds = speeds + 10
  4347. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4348. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4349. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4350.  
  4351. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4352. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4353.  
  4354. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4355. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4356.  
  4357. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4358. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4359. ---
  4360. root.CFrame = FaceMouse()[1]
  4361. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4362. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4363. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4364. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  4365. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4366. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4367. end
  4368. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4369. CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
  4370. for i = 0, 3, 0.1 do
  4371. swait()
  4372. ---
  4373. speeds = speeds + 10
  4374. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4375. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4376. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4377.  
  4378. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4379. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4380.  
  4381. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4382. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4383.  
  4384. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4385. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4386. ---
  4387. root.CFrame = FaceMouse()[1]
  4388. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4389. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4390. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
  4391. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-40)),.1)
  4392. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4393. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4394. end
  4395. coroutine.resume(coroutine.create(function()
  4396. local a = Instance.new("Part",Character)
  4397. a.Name = "Direction"
  4398. a.Anchored = true
  4399. a.BrickColor = bc("White")
  4400. a.Material = "Neon"
  4401. a.Transparency = 0
  4402. a.Shape = "Cylinder"
  4403. a.CanCollide = false
  4404. local a2 = Instance.new("Part",Character)
  4405. a2.Name = "Direction"
  4406. a2.Anchored = true
  4407. a2.BrickColor = bc("Bright yellow")
  4408. a2.Material = "Neon"
  4409. a2.Transparency = 0
  4410. a2.Shape = "Cylinder"
  4411. a2.CanCollide = false
  4412. local b = Instance.new("Part",Character)
  4413. b.Name = "HitDirect"
  4414. b.Anchored = true
  4415. b.BrickColor = bc("Cool yellow")
  4416. b.Material = "Neon"
  4417. b.Transparency = 1
  4418. b.CanCollide = false
  4419. local ray = Ray.new(
  4420. elocacenter.CFrame.p, -- origin
  4421. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4422. )
  4423. local ignore = Character
  4424. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4425. a.BottomSurface = 10
  4426. a.TopSurface = 10
  4427. a2.BottomSurface = 10
  4428. a2.TopSurface = 10
  4429. local distance = (elocacenter.CFrame.p - position).magnitude
  4430. a.Size = Vector3.new(distance, 1, 1)
  4431. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4432. a2.Size = Vector3.new(distance, 1, 1)
  4433. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4434. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4435. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4436. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4437. game:GetService("Debris"):AddItem(a, 10)
  4438. game:GetService("Debris"):AddItem(a2, 10)
  4439. game:GetService("Debris"):AddItem(b, 10)
  4440. local eff = Instance.new("ParticleEmitter",b)
  4441. eff.Texture = "rbxassetid://2273224484"
  4442. eff.LightEmission = 1
  4443. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  4444. eff.Rate = 500000
  4445. eff.Lifetime = NumberRange.new(0.5,2)
  4446. 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)})
  4447. 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)})
  4448. eff.Speed = NumberRange.new(20,250)
  4449. eff.Drag = 5
  4450. eff.Rotation = NumberRange.new(-500,500)
  4451. eff.VelocitySpread = 9000
  4452. eff.RotSpeed = NumberRange.new(-50,50)
  4453. coroutine.resume(coroutine.create(function()
  4454. wait(0.25)
  4455. eff.Enabled = false
  4456. end))
  4457. local msh = Instance.new("SpecialMesh",a)
  4458. msh.MeshType = "Cylinder"
  4459. msh.Scale = vt(1,2,2)
  4460. local msh2 = Instance.new("SpecialMesh",a2)
  4461. msh2.MeshType = "Cylinder"
  4462. msh2.Scale = vt(1,2.5,2.5)
  4463. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4464. coroutine.resume(coroutine.create(function()
  4465. for i = 0,10,0.1 do
  4466. swait()
  4467. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4468. a.Transparency = a.Transparency + 0.025
  4469. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4470. a2.Transparency = a2.Transparency + 0.05
  4471. end
  4472. a:Destroy()
  4473. a2:Destroy()
  4474. end))
  4475. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4476. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4477. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4478. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4479. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4480. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4481. MagniDamage(b, 25, 40,65, 0, "Normal")
  4482. for i = 0, 49 do
  4483. PixelBlock(2,math.random(10,20),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.04,BrickColor.new("Bright yellow"),0)
  4484. PixelBlock(1,math.random(1,10),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Bright yellow"),0)
  4485. end
  4486. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4487. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4488. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4489. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4490. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4491. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4492. end))
  4493. game:GetService("Debris"):AddItem(elocacenter, 5)
  4494. hum.WalkSpeed = storehumanoidWS
  4495. attack = false
  4496. end
  4497.  
  4498.  
  4499. function StarDivision()
  4500. attack = true
  4501. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4502. for i = 0, 2, 0.1 do
  4503. swait()
  4504. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4505. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4506. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4507. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  4508. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4509. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4510. end
  4511. local orb = Instance.new("Part", char)
  4512. orb.BrickColor = MAINRUINCOLOR
  4513. orb.CanCollide = false
  4514. orb.FormFactor = 3
  4515. orb.Name = "Ring"
  4516. orb.Material = "Neon"
  4517. orb.Size = Vector3.new(1, 1, 1)
  4518. orb.Transparency = 0
  4519. orb.TopSurface = 0
  4520. orb.BottomSurface = 0
  4521. local orbm = Instance.new("SpecialMesh", orb)
  4522. orbm.MeshType = "Sphere"
  4523. orbm.Name = "SizeMesh"
  4524. orbm.Scale = vt(2,2,2)
  4525. local a = Instance.new("Part",workspace)
  4526. a.Name = "Direction"
  4527. a.Anchored = true
  4528. a.BrickColor = bc("Bright red")
  4529. a.Material = "Neon"
  4530. a.Transparency = 1
  4531. a.CanCollide = false
  4532. local ray = Ray.new(
  4533. sorb.CFrame.p, -- origin
  4534. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4535. )
  4536. local ignore = sorb
  4537. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4538. a.BottomSurface = 10
  4539. a.TopSurface = 10
  4540. local distance = (sorb.CFrame.p - position).magnitude
  4541. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4542. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4543. orb.CFrame = a.CFrame
  4544. a:Destroy()
  4545. local bv = Instance.new("BodyVelocity")
  4546. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4547. bv.velocity = orb.CFrame.lookVector*100
  4548. bv.Parent = orb
  4549. local hitted = false
  4550. game:GetService("Debris"):AddItem(orb, 10)
  4551. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4552. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4553. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4554. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4555. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4556. coroutine.resume(coroutine.create(function()
  4557. while true do
  4558. swait(1)
  4559. if orb.Parent ~= nil and hitted == false then
  4560. PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2)
  4561. elseif orb.Parent == nil then
  4562. break
  4563. end
  4564. end
  4565. end))
  4566. coroutine.resume(coroutine.create(function()
  4567. swait(1)
  4568. orb.Touched:connect(function(hit)
  4569. if hitted == false then
  4570. hitted = true
  4571. game:GetService("Debris"):AddItem(orb, 5)
  4572. orb.Transparency = 1
  4573. orb.Anchored = true
  4574. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4575. elocacenter.Anchored = true
  4576. elocacenter.CFrame = orb.CFrame
  4577. elocacenter.Orientation = vt(0,0,0)
  4578. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4579. eloca1.Anchored = true
  4580. eloca1.CFrame = elocacenter.CFrame
  4581. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4582. eloca2.Anchored = true
  4583. eloca2.CFrame = elocacenter.CFrame
  4584. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4585. eloca3.Anchored = true
  4586. eloca3.CFrame = elocacenter.CFrame
  4587. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4588. eloca4.Anchored = true
  4589. eloca4.CFrame = elocacenter.CFrame
  4590. local lookavec = 0
  4591. local speeds = 0
  4592. CameraEnshaking(1,1)
  4593. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4594. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4595. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4596. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4597. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4598. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4599. for i = 0, 99 do
  4600. swait()
  4601. lookavec = lookavec + 1
  4602. speeds = speeds + 0.1
  4603. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4604. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4605. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4606.  
  4607. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4608. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4609.  
  4610. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4611. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4612.  
  4613. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4614. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4615. end
  4616.  
  4617. for i = 0, 149 do
  4618. swait()
  4619. speeds = speeds + 0.1
  4620. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4621. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4622. 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)
  4623.  
  4624. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4625. 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)
  4626.  
  4627. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4628. 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)
  4629.  
  4630. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4631. 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)
  4632. end
  4633. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4634. if v:FindFirstChild('Head') then
  4635. dmg(v)
  4636. end
  4637. end
  4638. CameraEnshaking(7,30)
  4639. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4640. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4641. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4642. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4643. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4644. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4645. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4646. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4647. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4648. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4649. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4650. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4651. for i = 0, 24 do
  4652. 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)
  4653. 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)
  4654. 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)
  4655. 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)
  4656. end
  4657. coroutine.resume(coroutine.create(function()
  4658. for i = 0, 499 do
  4659. swait(1)
  4660. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4661. PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5)
  4662. end
  4663. elocacenter:Destroy()
  4664. eloca1:Destroy()
  4665. eloca2:Destroy()
  4666. eloca3:Destroy()
  4667. eloca4:Destroy()
  4668. end))
  4669. end
  4670. end)
  4671. end))
  4672. attack = false
  4673. end
  4674.  
  4675.  
  4676. function THE_TRUE_POWER_OF_VIOLENCE()
  4677. attack = true
  4678. hum.WalkSpeed = 0
  4679. bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
  4680. for i = 0, 10, 0.1 do
  4681. swait()
  4682. 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)
  4683. 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)
  4684. 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)
  4685. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(40)),.4)
  4686. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4687. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4688. 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)
  4689. end
  4690. local orb = Instance.new("Part", char)
  4691. orb.BrickColor = MAINRUINCOLOR
  4692. orb.CanCollide = false
  4693. orb.FormFactor = 3
  4694. orb.Name = "Ring"
  4695. orb.Material = "Neon"
  4696. orb.Size = Vector3.new(1, 1, 1)
  4697. orb.Transparency = 0
  4698. orb.TopSurface = 0
  4699. orb.BottomSurface = 0
  4700. orb.CFrame = sorb.CFrame
  4701. local orbm = Instance.new("SpecialMesh", orb)
  4702. orbm.MeshType = "Sphere"
  4703. orbm.Name = "SizeMesh"
  4704. orbm.Scale = vt(0,0,0)
  4705. local sbs = Instance.new("BodyPosition", orb)
  4706. sbs.P = 3000
  4707. sbs.D = 1000
  4708. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4709. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4710. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4711. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4712. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4713. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4714. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4715. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4716. for i = 0, 10, 0.1 do
  4717. swait()
  4718. 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)
  4719. 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)
  4720. 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)
  4721. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4722. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4723. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4724. 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)
  4725. end
  4726. orb.Anchored = true
  4727. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4728. elocacenter.Anchored = true
  4729. elocacenter.CFrame = orb.CFrame
  4730. elocacenter.Orientation = vt(0,0,0)
  4731. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4732. eloca1.Anchored = true
  4733. eloca1.CFrame = elocacenter.CFrame
  4734. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4735. eloca2.Anchored = true
  4736. eloca2.CFrame = elocacenter.CFrame
  4737. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4738. eloca3.Anchored = true
  4739. eloca3.CFrame = elocacenter.CFrame
  4740. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4741. eloca4.Anchored = true
  4742. eloca4.CFrame = elocacenter.CFrame
  4743. local lookavec = 0
  4744. local speeds = 0
  4745. CameraEnshaking(1,1)
  4746. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4747. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4748. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4749. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4750. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4751. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4752. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4753. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4754. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4755. for i = 0, 99 do
  4756. swait()
  4757. lookavec = lookavec + 2.5
  4758. speeds = speeds + 0.25
  4759. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4760. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4761. 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)
  4762.  
  4763. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4764. 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)
  4765.  
  4766. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4767. 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)
  4768.  
  4769. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4770. 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)
  4771. end
  4772.  
  4773. for i = 0, 149 do
  4774. swait()
  4775. speeds = speeds + 0.25
  4776. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4777. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4778. 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)
  4779.  
  4780. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4781. 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)
  4782.  
  4783. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4784. 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)
  4785.  
  4786. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4787. 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)
  4788. end
  4789. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4790. for i = 0, 99 do
  4791. swait()
  4792. lookavec = lookavec - 2.5
  4793. speeds = speeds + 0.25
  4794. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4795. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4796. 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)
  4797.  
  4798. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4799. 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)
  4800.  
  4801. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4802. 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)
  4803.  
  4804. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4805. 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)
  4806. end
  4807. local scaled = 0.1*75
  4808. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4809. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4810. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4811. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4812. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4813. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4814. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4815. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4816. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4817. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4818. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4819.  
  4820. for i = 0, 10, 0.1 do
  4821. swait()
  4822. scaled = scaled - 0.001*75
  4823. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4824. 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)
  4825. 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)
  4826. 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)
  4827. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4828. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4829. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4830. 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)
  4831. end
  4832. bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
  4833. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
  4834. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
  4835. for x = 0, 4 do
  4836. for i = 0, 9 do
  4837. 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)
  4838. end
  4839. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4840. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4841. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4842. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4843. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4844. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4845. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4846. for i = 0, 5, 0.1 do
  4847. swait()
  4848. 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)
  4849. 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)
  4850. 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)
  4851. 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)
  4852. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4853. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4854. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4855. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4856. end
  4857. end
  4858. local speedearn = 0
  4859. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4860. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4861. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4862. for i = 0, 30, 0.1 do
  4863. swait()
  4864. scaled = scaled - 0.001*75/10
  4865. speedearn = speedearn + 0.5
  4866. for i = 0, 4 do
  4867. 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)
  4868. end
  4869. 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)
  4870. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4871. 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)
  4872. 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)
  4873. 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)
  4874. 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)
  4875. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  4876. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4877. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4878. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4879. end
  4880. orb.Transparency = 1
  4881. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4882. if v:FindFirstChild('Head') then
  4883. dmg(v)
  4884. end
  4885. end
  4886. CameraEnshaking(7,30)
  4887. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4888. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4889. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4890. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4891. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4892. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4893. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4894. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4895. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4896. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4897. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4898. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4899. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4900. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4901. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4902. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4903. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4904. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4905. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4906. for i = 0, 99 do
  4907. 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)
  4908. 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)
  4909. end
  4910. for i = 0, 24 do
  4911. 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)
  4912. 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)
  4913. 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)
  4914. 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)
  4915. 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)
  4916. end
  4917. game:GetService("Debris"):AddItem(orb, 10)
  4918. hum.WalkSpeed = storehumanoidWS
  4919. attack = false
  4920. end
  4921.  
  4922.  
  4923. function ViolentRing()
  4924. attack = true
  4925. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4926. bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
  4927. CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
  4928. CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
  4929. for i = 0, 2, 0.1 do
  4930. swait()
  4931. local snap = math.random(1,10)
  4932. if snap == 1 then
  4933. 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)
  4934. end
  4935. 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)
  4936. 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)
  4937. 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)
  4938. 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)
  4939. 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)
  4940. 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)
  4941. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4942. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4943. 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)
  4944. RootPart.CFrame = FaceMouse()[1]
  4945. end
  4946. local orb = Instance.new("Part", char)
  4947. orb.BrickColor = MAINRUINCOLOR
  4948. orb.CanCollide = false
  4949. orb.FormFactor = 3
  4950. orb.Name = "Ring"
  4951. orb.Material = "Neon"
  4952. orb.Size = Vector3.new(1, 1, 1)
  4953. orb.Transparency = 0
  4954. orb.TopSurface = 0
  4955. orb.BottomSurface = 0
  4956. local orbm = Instance.new("SpecialMesh", orb)
  4957. orbm.MeshType = "Sphere"
  4958. orbm.Name = "SizeMesh"
  4959. orbm.Scale = vt(2,2,2)
  4960. orb.CFrame = mouse.Hit
  4961. local bv = Instance.new("BodyVelocity")
  4962. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4963. bv.velocity = orb.CFrame.lookVector*100
  4964. bv.Parent = orb
  4965. local hitted = false
  4966. coroutine.resume(coroutine.create(function()
  4967. game:GetService("Debris"):AddItem(orb, 5)
  4968. orb.Transparency = 1
  4969. orb.Anchored = true
  4970. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4971. elocacenter.Anchored = true
  4972. elocacenter.CFrame = orb.CFrame
  4973. elocacenter.Orientation = vt(0,0,0)
  4974. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4975. eloca1.Anchored = true
  4976. eloca1.CFrame = elocacenter.CFrame
  4977. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4978. eloca2.Anchored = true
  4979. eloca2.CFrame = elocacenter.CFrame
  4980. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4981. eloca3.Anchored = true
  4982. eloca3.CFrame = elocacenter.CFrame
  4983. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4984. eloca4.Anchored = true
  4985. eloca4.CFrame = elocacenter.CFrame
  4986. local lookavec = 0
  4987. local speeds = 0
  4988. CameraEnshaking(1,1)
  4989. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4990. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4991. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4992. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4993. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4994. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4995. for i = 0, 24 do
  4996. swait()
  4997. lookavec = lookavec + 3.5
  4998. speeds = speeds + 1
  4999. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  5000. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  5001. 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)
  5002.  
  5003. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  5004. 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)
  5005.  
  5006. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  5007. 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)
  5008.  
  5009. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  5010. 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)
  5011. end
  5012.  
  5013. local risen = 0
  5014. for i = 0, 49 do
  5015. swait()
  5016. risen = risen + 0.05
  5017. speeds = speeds + 0.1
  5018. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  5019. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  5020. 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)
  5021.  
  5022. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  5023. 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)
  5024.  
  5025. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  5026. 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)
  5027.  
  5028. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  5029. 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)
  5030. end
  5031. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  5032. if v:FindFirstChild('Head') then
  5033. dmg(v)
  5034. end
  5035. end
  5036. CameraEnshaking(4,10)
  5037. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  5038. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  5039. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  5040. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  5041. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  5042. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  5043. local eff = Instance.new("ParticleEmitter",elocacenter)
  5044. eff.Texture = "rbxassetid://2273224484"
  5045. eff.LightEmission = 1
  5046. eff.Color = ColorSequence.new(Color3.new(1,1,0))
  5047. eff.Rate = 1000000
  5048. eff.Lifetime = NumberRange.new(0.5,2)
  5049. 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)})
  5050. 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)})
  5051. eff.Speed = NumberRange.new(20,250)
  5052. eff.Drag = 5
  5053. eff.Rotation = NumberRange.new(-500,500)
  5054. eff.VelocitySpread = 5000000
  5055. eff.RotSpeed = NumberRange.new(-50,50)
  5056. coroutine.resume(coroutine.create(function()
  5057. wait(1)
  5058. eff.Enabled = false
  5059. end))
  5060. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  5061. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  5062. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5063. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5064. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5065. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5066. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5067. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  5068. for i = 0, 24 do
  5069. 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)
  5070. 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)
  5071. 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)
  5072. 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)
  5073. end
  5074. coroutine.resume(coroutine.create(function()
  5075. wait(10)
  5076. elocacenter:Destroy()
  5077. eloca1:Destroy()
  5078. eloca2:Destroy()
  5079. eloca3:Destroy()
  5080. eloca4:Destroy()
  5081. end))
  5082. end))
  5083. attack = false
  5084. end
  5085.  
  5086. function UniversalCollapse()
  5087. attack = true
  5088. local speedearn = 0
  5089. hum.WalkSpeed = 0
  5090. local sbs = Instance.new("BodyPosition", root)
  5091. sbs.P = 3000
  5092. sbs.D = 1000
  5093. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  5094. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  5095. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  5096. for i = 0, 85, 0.1 do
  5097. swait()
  5098. speedearn = speedearn + 0.1
  5099. 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)
  5100. 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)
  5101. 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)
  5102. 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)
  5103. 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)
  5104. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  5105. 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)
  5106. 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)
  5107. 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)
  5108. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5109. 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)
  5110. 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)
  5111. end
  5112. bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
  5113. CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
  5114. CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
  5115. for i = 0, 25, 0.1 do
  5116. swait()
  5117. speedearn = speedearn + 0.1
  5118. 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)
  5119. 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)
  5120. 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)
  5121. 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)
  5122. 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)
  5123. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  5124. 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)
  5125. 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)
  5126. 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)
  5127. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5128. 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)
  5129. 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)
  5130. end
  5131. bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
  5132. CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
  5133. CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
  5134. CameraEnshaking(5,50)
  5135. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  5136. for i = 0, 2 do
  5137. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  5138. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  5139. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  5140. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  5141. end
  5142. for i = 0, 49 do
  5143. 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)
  5144. 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)
  5145. 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)
  5146. 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)
  5147. end
  5148. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5149. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5150. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5151. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5152. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5153. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5154. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5155. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5156. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5157. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5158. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5159. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5160. for i = 0, 99 do
  5161. 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)
  5162. 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)
  5163. end
  5164. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  5165. if v:FindFirstChild('Head') then
  5166. dmg(v)
  5167. end
  5168. end
  5169. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  5170. sbs:Destroy()
  5171. hum.WalkSpeed = storehumanoidWS
  5172. attack = false
  5173. end
  5174.  
  5175. function ChaosEND()
  5176. attack = true
  5177. local speedearn = 0
  5178. bosschatfunc("THIS IS...",MAINRUINCOLOR.Color,1)
  5179. CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
  5180. CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
  5181. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  5182. CFuncs["Sound"].Create("rbxassetid://2556945475", root, 5, 1)
  5183. for i = 0, 15, 0.1 do
  5184. swait()
  5185. speedearn = speedearn + 0.25
  5186. 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)
  5187. 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)
  5188. 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)
  5189. 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)
  5190. 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)
  5191. 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)
  5192. 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)
  5193. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5194. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5195. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  5196. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  5197. end
  5198. CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
  5199. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
  5200. bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,1)
  5201. CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
  5202. CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
  5203. CameraEnshaking(5,25)
  5204. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  5205. if v:FindFirstChild('Head') then
  5206. dmg(v)
  5207. end
  5208. end
  5209. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  5210. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  5211. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  5212. for i = 0, 3, 0.1 do
  5213. swait()
  5214. 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)
  5215. 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)
  5216. 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)
  5217. 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)
  5218. 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)
  5219. 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)
  5220. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5221. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5222. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  5223. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  5224. end
  5225. attack = false
  5226. end
  5227.  
  5228. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  5229. local orb = Instance.new("Part", char)
  5230. orb.Anchored = true
  5231. orb.BrickColor = color
  5232. orb.CanCollide = false
  5233. orb.FormFactor = 3
  5234. orb.Name = "Ring"
  5235. orb.Material = "Neon"
  5236. orb.Size = Vector3.new(1, 1, 1)
  5237. orb.Transparency = 0
  5238. orb.TopSurface = 0
  5239. orb.BottomSurface = 0
  5240. local orbm = Instance.new("SpecialMesh", orb)
  5241. orbm.MeshType = "Sphere"
  5242. orb.CFrame = positted
  5243. orbm.Name = "SizeMesh"
  5244. orbm.Scale = vt(1,1,1)
  5245. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  5246. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  5247. --[[for i = 0, 2 do
  5248. 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)
  5249. end]]--
  5250. coroutine.resume(coroutine.create(function()
  5251. wait(timer)
  5252. CameraEnshaking(3,ShakePower)
  5253. orb.Transparency = 1
  5254. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  5255. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  5256. --[[for i = 0, 4 do
  5257. 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)
  5258. end]]--
  5259. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  5260. wait(3)
  5261. orb:Destroy()
  5262. end))
  5263. end
  5264.  
  5265. function orb_spawn(positted,timer)
  5266. local randomcol = math.random(1,2)
  5267. local orb = Instance.new("Part", char)
  5268. orb.Anchored = true
  5269. if randomcol == 1 then
  5270. orb.BrickColor = BrickColor.new("White")
  5271. elseif randomcol == 2 then
  5272. orb.BrickColor = BrickColor.new("Really black")
  5273. end
  5274. orb.CanCollide = false
  5275. orb.FormFactor = 3
  5276. orb.Name = "Ring"
  5277. orb.Material = "Neon"
  5278. orb.Size = Vector3.new(1, 1, 1)
  5279. orb.Transparency = 0
  5280. orb.TopSurface = 0
  5281. orb.BottomSurface = 0
  5282. local orbm = Instance.new("SpecialMesh", orb)
  5283. orbm.MeshType = "Sphere"
  5284. orb.CFrame = positted
  5285. orbm.Name = "SizeMesh"
  5286. orbm.Scale = vt(1,1,1)
  5287. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  5288. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  5289. for i = 0, 2 do
  5290. 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)
  5291. end
  5292. coroutine.resume(coroutine.create(function()
  5293. wait(timer)
  5294. CameraEnshaking(3,2)
  5295. orb.Transparency = 1
  5296. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  5297. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  5298. for i = 0, 4 do
  5299. 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)
  5300. end
  5301. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  5302. wait(3)
  5303. orb:Destroy()
  5304. end))
  5305. end
  5306.  
  5307. function scattercorrupt()
  5308. attack = true
  5309. hum.WalkSpeed = 0
  5310. for i = 0, 2, 0.1 do
  5311. swait()
  5312. 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(0)),.2)
  5313. 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(0)),.2)
  5314. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  5315. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5316. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  5317. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  5318. end
  5319. local rot = 0
  5320. local randomrotations = math.random(1,2)
  5321. local lookv = 2.5
  5322. local power = 7
  5323. local radm = math.random(1,3)
  5324. if radm == 1 then
  5325. bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
  5326. elseif radm == 2 then
  5327. bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
  5328. elseif radm == 3 then
  5329. bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
  5330. end
  5331. CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
  5332. for i = 0, 1, 0.1 do
  5333. swait()
  5334. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(15),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  5335. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(15),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  5336. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
  5337. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
  5338. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
  5339. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
  5340. end
  5341. CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
  5342. CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
  5343. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  5344. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  5345. for i = 0, 9 do
  5346. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0)
  5347. end
  5348. local hite = Instance.new("Part", char)
  5349. hite.Anchored = true
  5350. hite.CanCollide = false
  5351. hite.FormFactor = 3
  5352. hite.Name = "Ring"
  5353. hite.Material = "Neon"
  5354. hite.Size = Vector3.new(1, 1, 1)
  5355. hite.Transparency = 1
  5356. hite.TopSurface = 0
  5357. hite.BottomSurface = 0
  5358. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5359. local rem = Instance.new("Part", char)
  5360. rem.Anchored = true
  5361. rem.CanCollide = false
  5362. rem.FormFactor = 3
  5363. rem.Name = "Ring"
  5364. rem.Material = "Neon"
  5365. rem.Size = Vector3.new(1, 1, 1)
  5366. rem.Transparency = 1
  5367. rem.TopSurface = 0
  5368. rem.BottomSurface = 0
  5369. rem.CFrame = hite.CFrame
  5370. local rem2 = rem:Clone()
  5371. rem2.Parent = char
  5372. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5373. local rem3 = rem:Clone()
  5374. rem3.Parent = char
  5375. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5376. local rem4 = rem:Clone()
  5377. rem4.Parent = char
  5378. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5379. hite:Destroy()
  5380. coroutine.resume(coroutine.create(function()
  5381. for i = 0, 24 do
  5382. swait(1)
  5383. if randomrotations == 1 then
  5384. rot = rot + 1
  5385. elseif randomrotations == 2 then
  5386. rot = rot - 1
  5387. end
  5388. power = power + 0.5
  5389. lookv = lookv + 7.5
  5390. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5391. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5392. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5393. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5394. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5395. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5396. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5397. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
  5398. end
  5399. end))
  5400. wait(2)
  5401. hum.WalkSpeed = storehumanoidWS
  5402. attack = false
  5403. end
  5404.  
  5405. function yinyangi()
  5406. attack = true
  5407. for i = 0, 2, 0.1 do
  5408. swait()
  5409. bosschatfunc("YAAAAAHHHHHHH!",MAINRUINCOLOR.Color,1)
  5410. CFuncs["Sound"].Create("rbxassetid://430315987", root, 1, 1,0,10,0.25,0.25,1)
  5411. 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)
  5412. 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)
  5413. 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)
  5414. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5415. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5416. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5417. end
  5418. local bv = Instance.new("BodyVelocity")
  5419. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5420. bv.velocity = root.CFrame.lookVector*175
  5421. bv.Parent = root
  5422. for Rotations = 0, 9 do
  5423. for i = 0, 1, 0.5 do
  5424. swait()
  5425. bv.velocity = root.CFrame.lookVector*175
  5426. 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)
  5427. 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)
  5428. 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)
  5429. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5430. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5431. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5432. end
  5433. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5434. for i = 0, 1, 0.5 do
  5435. swait()
  5436. bv.velocity = root.CFrame.lookVector*175
  5437. 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)
  5438. 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)
  5439. 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)
  5440. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5441. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5442. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5443. end
  5444. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5445. for i = 0, 1, 0.5 do
  5446. swait()
  5447. bv.velocity = root.CFrame.lookVector*175
  5448. 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)
  5449. 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)
  5450. 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)
  5451. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5452. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5453. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5454. end
  5455. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5456. for i = 0, 1, 0.5 do
  5457. swait()
  5458. bv.velocity = root.CFrame.lookVector*175
  5459. 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)
  5460. 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)
  5461. 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)
  5462. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5463. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5464. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5465. end
  5466. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5467. end
  5468. bv:Destroy()
  5469. attack = false
  5470. end
  5471.  
  5472. function createBGCircle(size,parent,color)
  5473. local bgui = Instance.new("BillboardGui",parent)
  5474. bgui.Size = UDim2.new(size, 0, size, 0)
  5475. local imgc = Instance.new("ImageLabel",bgui)
  5476. imgc.BackgroundTransparency = 1
  5477. imgc.ImageTransparency = 0
  5478. imgc.Size = UDim2.new(1,0,1,0)
  5479. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5480. imgc.ImageColor3 = color
  5481. return bgui,imgc
  5482. end
  5483.  
  5484. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5485. local bgui,imgc = createBGCircle(size,guipar,color)
  5486. bgui.AlwaysOnTop = true
  5487. imgc.Image = "rbxassetid://" ..img
  5488. local rrot = math.random(1,2)
  5489. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5490. coroutine.resume(coroutine.create(function()
  5491. for i = 0, 24*delay do
  5492. swait()
  5493. if rotationenabled == true then
  5494. if rrot == 1 then
  5495. imgc.Rotation = imgc.Rotation + rotsp
  5496. elseif rrot == 2 then
  5497. imgc.Rotation = imgc.Rotation - rotsp
  5498. end
  5499. end
  5500. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5501. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5502. end
  5503. bgui:Destroy()
  5504. end))
  5505. end
  5506. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5507. for i, v in pairs(mw2:GetChildren()) do
  5508. if v:IsA("Part") then
  5509. v.BrickColor = one
  5510. v.Material = "Neon"
  5511. end
  5512. end
  5513. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5514. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5515. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5516. tr1.Color = ColorSequence.new(one.Color)
  5517. tr2.Color = ColorSequence.new(one.Color)
  5518. tr3.Color = ColorSequence.new(one.Color)
  5519. for i, v in pairs(mw1:GetChildren()) do
  5520. if v:IsA("Part") then
  5521. if secondaryenabled == false then
  5522. v.Transparency = 1
  5523. elseif secondaryenabled == true then
  5524. v.Transparency = 0
  5525. end
  5526. v.BrickColor = two
  5527. v.Material = "Neon"
  5528. end
  5529. end
  5530. if secondaryenabled == false then
  5531. tl1.Enabled = false
  5532. tl2.Enabled = false
  5533. tl3.Enabled = false
  5534. elseif secondaryenabled == true then
  5535. tl1.Enabled = true
  5536. tl2.Enabled = true
  5537. tl3.Enabled = true
  5538. end
  5539. tl1.Color = ColorSequence.new(two.Color)
  5540. tl2.Color = ColorSequence.new(two.Color)
  5541. tl3.Color = ColorSequence.new(two.Color)
  5542. for i, v in pairs(m:GetChildren()) do
  5543. if v:IsA("Part") then
  5544. v.BrickColor = three
  5545. v.Material = "Ice"
  5546. end
  5547. end
  5548. for i, v in pairs(m2:GetChildren()) do
  5549. if v:IsA("Part") then
  5550. v.BrickColor = four
  5551. v.Material = "Ice"
  5552. end
  5553. end
  5554. for i, v in pairs(m3:GetChildren()) do
  5555. if v:IsA("Part") then
  5556. v.BrickColor = five
  5557. v.Material = "Neon"
  5558. end
  5559. end
  5560. for i, v in pairs(extrawingmod1:GetChildren()) do
  5561. if v:IsA("Part") then
  5562. v.Transparency = exonetran
  5563. v.BrickColor = exone
  5564. v.Material = "Neon"
  5565. end
  5566. end
  5567. for i, v in pairs(extrawingmod2:GetChildren()) do
  5568. if v:IsA("Part") then
  5569. v.Transparency = extwotran
  5570. v.BrickColor = extwo
  5571. v.Material = "Neon"
  5572. end
  5573. end
  5574. end
  5575.  
  5576.  
  5577. function normalmog()
  5578. attack = true
  5579. hum.WalkSpeed = 0
  5580. CFuncs["Sound"].Create("rbxassetid://2556945475", root, 35, 1.25)
  5581. bosschatfunc("YOUR EXISTANCE IS WASTED!!!!!!",MAINRUINCOLOR.Color,1)
  5582. for i = 0,6,0.1 do
  5583. swait()
  5584. 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)
  5585. 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)
  5586. 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)
  5587. 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)
  5588. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5589. 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)
  5590. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5591. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5592. end
  5593. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5594. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5595. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5596. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5597. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5598. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5599. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5600. rainbowmode = false
  5601. chaosmode = false
  5602. ModeOfGlitch = 1
  5603. storehumanoidWS = 16
  5604. newTheme("rbxassetid://614032233",48.6,1,1.25)
  5605. RecolorTextAndRename("MAYHEM X",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5606. CameraEnshaking(5,2.5)
  5607. MAINRUINCOLOR = BrickColor.new("Really red")
  5608. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5609. for i = 0, 49 do
  5610. 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)
  5611. end
  5612. for i = 0, 24 do
  5613. 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)
  5614. 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"))
  5615. end
  5616. for i = 0,3,0.1 do
  5617. 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)
  5618. end
  5619. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5620. for i = 0,2,0.1 do
  5621. swait()
  5622. 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)
  5623. 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)
  5624. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5625. 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)
  5626. 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)
  5627. 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)
  5628. end
  5629. hum.WalkSpeed = storehumanoidWS
  5630. attack = false
  5631. end
  5632.  
  5633. function attackone()
  5634. attack = true
  5635. for i = 0,1,0.1 do
  5636. swait()
  5637. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  5638. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  5639. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  5640. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5641. 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(0)),.3)
  5642. 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(0)),.3)
  5643. end
  5644. local distlook = 5
  5645. for i = 0, 4 do
  5646. swait(2)
  5647. CameraEnshaking(2,3)
  5648. local hite = Instance.new("Part", char)
  5649. hite.Anchored = true
  5650. hite.CanCollide = false
  5651. hite.FormFactor = 3
  5652. hite.Name = "Ring"
  5653. hite.Material = "Neon"
  5654. hite.Size = Vector3.new(1, 1, 1)
  5655. hite.Transparency = 1
  5656. hite.TopSurface = 0
  5657. hite.BottomSurface = 0
  5658. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  5659. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  5660. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  5661. MagniDamage(hite, 10, 15,35, 0, "Normal")
  5662. for i = 0, 2 do
  5663. sphereMK(2,0.2,"Add",rarm.CFrame*CFrame.Angles(math.rad(-90+math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  5664. sphereMK(3,0.2,"Add",hite.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)
  5665. sphereMK(6,0.35,"Add",hite.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)
  5666. end
  5667. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  5668. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  5669. game:GetService("Debris"):AddItem(hite, 5)
  5670. distlook = distlook + 10
  5671. end
  5672. attack = false
  5673. end
  5674.  
  5675. function attacktwo()
  5676. attack = true
  5677. for i = 0,1,0.1 do
  5678. swait()
  5679. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  5680. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  5681. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  5682. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  5683. 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(-1.5),math.rad(0),math.rad(10)),.3)
  5684. 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)),.3)
  5685. end
  5686. CameraEnshaking(3,4)
  5687. MagniDamage(root, 12, 15,30, 0, "Normal")
  5688. sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  5689. sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  5690. sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  5691. coroutine.resume(coroutine.create(function()
  5692. local eff = Instance.new("ParticleEmitter",root)
  5693. eff.Texture = "rbxassetid://363275192"
  5694. eff.LightEmission = 0.95
  5695. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5696. eff.Rate = 10000
  5697. eff.Lifetime = NumberRange.new(1)
  5698. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  5699. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  5700. eff.Speed = NumberRange.new(10,125)
  5701. eff.Drag = 5
  5702. eff.Rotation = NumberRange.new(-500,500)
  5703. eff.VelocitySpread = 9000
  5704. eff.RotSpeed = NumberRange.new(-50,50)
  5705. local eff2 = eff:Clone()
  5706. eff2.Parent = root
  5707. eff2.Texture = "rbxassetid://284205403"
  5708. eff2.Rate = 10000
  5709. eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  5710. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  5711. eff2.Drag = 5
  5712. eff2.Speed = NumberRange.new(10,50)
  5713. eff2.Rotation = NumberRange.new(-500,500)
  5714. eff2.VelocitySpread = 9000
  5715. wait(0.25)
  5716. eff2.Enabled = false
  5717. eff.Enabled = false
  5718. wait(3)
  5719. eff2:Destroy()
  5720. eff:Destroy()
  5721. end))
  5722. for i = 0, 9 do
  5723. sphere2(7.5,"Add",root.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.0025,1,-0.0025,MAINRUINCOLOR)
  5724. end
  5725. for i = 0, 24 do
  5726. local rsiz = math.random(5,20)
  5727. sphereMK(math.random(1,5),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0)
  5728. end
  5729. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  5730. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  5731. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  5732. for i = 0,2,0.1 do
  5733. swait()
  5734. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  5735. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  5736. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  5737. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  5738. 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(-1.5),math.rad(0),math.rad(-10)),.3)
  5739. 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)),.3)
  5740. end
  5741. attack = false
  5742. end
  5743.  
  5744. function attackthree()
  5745. attack = true
  5746. local keptcolor = MAINRUINCOLOR
  5747. CFuncs["Sound"].Create("rbxassetid://1042700914", root, 2, 1.75)
  5748. for i = 0,1,0.1 do
  5749. swait()
  5750. sphere2(6,"Add",root.CFrame + root.CFrame.lookVector*2.5,vt(3,3,3),0.01,0.01,0.01,MAINRUINCOLOR)
  5751. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5)
  5752. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5)
  5753. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(-40)), 0.5)
  5754. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.5)
  5755. 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(-1.5),math.rad(0),math.rad(0)),.5)
  5756. 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)),.5)
  5757. end
  5758. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 1.5, 0.9)
  5759. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 0.9)
  5760. local angle = -25
  5761. coroutine.resume(coroutine.create(function()
  5762. for i = 0, 2 do
  5763. local orb = Instance.new("Part", char)
  5764. orb.BrickColor = MAINRUINCOLOR
  5765. orb.CanCollide = false
  5766. orb.FormFactor = 3
  5767. orb.Name = "Ring"
  5768. orb.Material = "Neon"
  5769. orb.Size = Vector3.new(1, 1, 1)
  5770. orb.Transparency = 0.5
  5771. orb.TopSurface = 0
  5772. orb.BottomSurface = 0
  5773. local orbm = Instance.new("SpecialMesh", orb)
  5774. orbm.MeshType = "Sphere"
  5775. orbm.Name = "SizeMesh"
  5776. orbm.Scale = vt(3,3,3)
  5777. orb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(angle),0) + root.CFrame.lookVector*2.5
  5778. local bv = Instance.new("BodyVelocity")
  5779. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5780. bv.velocity = orb.CFrame.lookVector*100
  5781. bv.Parent = orb
  5782. game:GetService("Debris"):AddItem(orb, 10)
  5783. sphere2(6,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  5784. sphere2(9,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  5785. coroutine.resume(coroutine.create(function()
  5786. MagniDamage(orb, 6, 8,15, 0, "Normal")
  5787. for i = 0, 7 do
  5788. swait(2.5)
  5789. CameraEnshaking(1,2)
  5790. MagniDamage(orb, 6, 8,15, 0, "Normal")
  5791. CFuncs["Sound"].Create("rbxassetid://1042693018", orb, 1.5, 1.5)
  5792. for i = 0, 4 do
  5793. local rsiz = math.random(5,10)
  5794. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,1,0.5),-0.0025,0.25,-0.0025,keptcolor)
  5795. sphereMK(math.random(2,6),0.15,"Add",orb.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)
  5796. end
  5797. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  5798. sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  5799. end
  5800. orb.Transparency = 1
  5801. orb.Anchored = false
  5802. wait(10)
  5803. orb:Destroy()
  5804. end))
  5805. angle = angle + 25
  5806. end
  5807. end))
  5808. for i = 0,1,0.1 do
  5809. swait()
  5810. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  5811. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  5812. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.3)
  5813. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.3)
  5814. 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(-1.5),math.rad(0),math.rad(-10)),.3)
  5815. 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)),.3)
  5816. end
  5817. attack = false
  5818. end
  5819. ----------------------------------- Abilities
  5820.  
  5821. function ExtinctiveHeartbreak()
  5822. local targetted = nil
  5823. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5824. targetted = mouse.Target.Parent
  5825. end
  5826. if targetted ~= nil then
  5827. attack = true
  5828. bosschatfunc("I AM THE MIGHTIEST!!",MAINRUINCOLOR.Color,1)
  5829. CFuncs["EchoSound"].Create("rbxassetid://357202141", char, 1.5, 1,0,10,0.15,0.5,1)
  5830. CFuncs["EchoSound"].Create("rbxassetid://357202141", root, 10, 1,0,10,0.15,0.5,1)
  5831. CFuncs["Sound"].Create("rbxassetid://2556945475", root, 2.5,1)
  5832. for i = 0, 9 do
  5833. 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)
  5834. end
  5835. for i = 0, 24 do
  5836. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  5837. end
  5838. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5839. local originalpos = root.CFrame
  5840. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5841. for i = 0, 9 do
  5842. 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)
  5843. end
  5844. for i = 0, 24 do
  5845. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  5846. end
  5847. hum.WalkSpeed = 0
  5848. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5849. local radm = math.random(1,3)
  5850. if radm == 1 then
  5851. bosschatfunc("I AM THE MIGHTIEST!!!",MAINRUINCOLOR.Color,2)
  5852. elseif radm == 2 then
  5853. bosschatfunc("I AM THE MIGHTIEST!!!",MAINRUINCOLOR.Color,2)
  5854. elseif radm == 3 then
  5855. bosschatfunc("I AM THE MIGHTIEST!!!",MAINRUINCOLOR.Color,2)
  5856. end
  5857. for i = 0,2,0.1 do
  5858. swait()
  5859. 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)
  5860. 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)
  5861. 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)
  5862. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5863. 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)
  5864. 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)
  5865. end
  5866. CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
  5867. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
  5868. for i = 0,2,0.1 do
  5869. swait()
  5870. coroutine.resume(coroutine.create(function()
  5871. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5872. for i,v in pairs(targetted:GetChildren()) do
  5873. if v:IsA("Part") or v:IsA("MeshPart") then
  5874. v.Velocity = vt(0,0,0)
  5875. end
  5876. end
  5877. end))
  5878. 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)
  5879. 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)
  5880. 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)
  5881. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5882. 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)
  5883. 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)
  5884. end
  5885. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
  5886. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
  5887. for i = 0, 1 do
  5888. CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
  5889. end
  5890. CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
  5891. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5892. for i = 0,4,0.1 do
  5893. swait()
  5894. coroutine.resume(coroutine.create(function()
  5895. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5896. 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)))
  5897. local at1 = Instance.new("Attachment",dis)
  5898. at1.Position = vt(-25000,0,0)
  5899. local at2 = Instance.new("Attachment",dis)
  5900. at2.Position = vt(25000,0,0)
  5901. local trl = Instance.new('Trail',dis)
  5902. trl.Attachment0 = at1
  5903. trl.FaceCamera = true
  5904. trl.Attachment1 = at2
  5905. trl.Texture = "rbxassetid://1049219073"
  5906. trl.LightEmission = 1
  5907. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5908. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5909. trl.Lifetime = 5
  5910. local bv = Instance.new("BodyVelocity")
  5911. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5912. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5913. bv.Parent = dis
  5914. game:GetService("Debris"):AddItem(dis, 5)
  5915. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5916. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5917. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5918. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5919. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5920. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5921. 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)
  5922. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5923. for i = 0, 2 do
  5924. 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"))
  5925. end
  5926. 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)
  5927. for i,v in pairs(targetted:GetChildren()) do
  5928. if v:IsA("Part") or v:IsA("MeshPart") then
  5929. v.Velocity = vt(0,0,0)
  5930. end
  5931. end
  5932. end))
  5933. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5934. 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)
  5935. 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)
  5936. 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)
  5937. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5938. 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)
  5939. 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)
  5940. end
  5941. hum.CameraOffset = vt(0,0,0)
  5942. for i = 0, 49 do
  5943. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5944. 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)))
  5945. local at1 = Instance.new("Attachment",dis)
  5946. at1.Position = vt(-50000,0,0)
  5947. local at2 = Instance.new("Attachment",dis)
  5948. at2.Position = vt(50000,0,0)
  5949. local trl = Instance.new('Trail',dis)
  5950. trl.Attachment0 = at1
  5951. trl.FaceCamera = true
  5952. trl.Attachment1 = at2
  5953. trl.Texture = "rbxassetid://1049219073"
  5954. trl.LightEmission = 1
  5955. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5956. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5957. trl.Lifetime = 5
  5958. local bv = Instance.new("BodyVelocity")
  5959. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5960. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5961. bv.Parent = dis
  5962. game:GetService("Debris"):AddItem(dis, 5)
  5963. end
  5964. for i = 0, 49 do
  5965. 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)
  5966. 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"))
  5967. end
  5968. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5969. for i = 0, 1 do
  5970. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5971. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5972. end
  5973. for i = 0, 4 do
  5974. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5975. end
  5976. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5977. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5978. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5979. dmg(targetted)
  5980. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5981. for i = 0, 9 do
  5982. 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)
  5983. end
  5984. for i = 0, 24 do
  5985. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  5986. end
  5987. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5988. root.CFrame = originalpos
  5989. for i = 0, 9 do
  5990. 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)
  5991. end
  5992. for i = 0, 24 do
  5993. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  5994. end
  5995. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5996. attack = false
  5997. hum.WalkSpeed = storehumanoidWS
  5998. end
  5999. end
  6000.  
  6001. function CorruptionEvent()
  6002. attack = true
  6003. hum.WalkSpeed = 0
  6004. bosschatfunc("I'LL CRUSH YOU!",MAINRUINCOLOR.Color,1)
  6005. CFuncs["EchoSound"].Create("rbxassetid://358080519", char, 1.5, 1,0,10,0.15,0.5,1)
  6006. CFuncs["EchoSound"].Create("rbxassetid://358080519", root, 10, 1,0,10,0.15,0.5,1)
  6007. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  6008. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  6009. local keptcolor = MAINRUINCOLOR
  6010. for i = 0,4,0.1 do
  6011. swait()
  6012. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6013. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6014. 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)
  6015. 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)
  6016. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  6017. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  6018. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  6019. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  6020. end
  6021. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  6022. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  6023. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  6024. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  6025. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  6026. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  6027. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  6028. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  6029. hum.CameraOffset = vt(0,0,0)
  6030. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6031. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6032. for i = 0, 24 do
  6033. 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"))
  6034. end
  6035. local rrot = 0
  6036. coroutine.resume(coroutine.create(function()
  6037. for i = 0, 4 do
  6038. rrot = rrot + 45
  6039. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6040. xa.Anchored = true
  6041. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6042. xb.Anchored = true
  6043. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6044. xc.Anchored = true
  6045. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6046. xd.Anchored = true
  6047. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  6048. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  6049. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  6050. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  6051. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  6052. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  6053. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  6054. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  6055. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  6056. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  6057. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  6058. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  6059. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  6060. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  6061. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  6062. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  6063. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6064. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6065. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6066. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6067. for i = 0, 9 do
  6068. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  6069. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xb.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  6070. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xc.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  6071. slash(math.random(15,50)/10,5,true,"Round","Add","Out",xd.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
  6072. end
  6073. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6074. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6075. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6076. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6077. 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)
  6078. 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)
  6079. 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)
  6080. 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)
  6081. 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))
  6082. 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))
  6083. 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))
  6084. 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))
  6085. game:GetService("Debris"):AddItem(xa, 5)
  6086. game:GetService("Debris"):AddItem(xb, 5)
  6087. game:GetService("Debris"):AddItem(xc, 5)
  6088. game:GetService("Debris"):AddItem(xd, 5)
  6089. coroutine.resume(coroutine.create(function()
  6090. for i = 0, 19 do
  6091. swait()
  6092. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6093. end
  6094. hum.CameraOffset = vt(0,0,0)
  6095. end))
  6096. swait(9)
  6097. end
  6098. end))
  6099. for i = 0,2,0.1 do
  6100. swait()
  6101. 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)
  6102. 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)
  6103. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  6104. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  6105. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  6106. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6107. end
  6108. attack = false
  6109. hum.WalkSpeed = storehumanoidWS
  6110. end
  6111.  
  6112. function EndGROUND()
  6113. attack = true
  6114. hum.WalkSpeed = 0
  6115. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  6116. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  6117. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  6118. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  6119. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  6120. local keptcolor = MAINRUINCOLOR
  6121. for i = 0,4,0.1 do
  6122. swait()
  6123. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6124. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6125. 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"))
  6126. 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)
  6127. 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)
  6128. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  6129. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  6130. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  6131. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  6132. end
  6133. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  6134. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  6135. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  6136. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  6137. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  6138. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  6139. coroutine.resume(coroutine.create(function()
  6140. local shval = 10
  6141. for i = 0, 99 do
  6142. swait()
  6143. shval = shval - 0.1
  6144. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  6145. end
  6146. hum.CameraOffset = vt(0,0,0)
  6147. end))
  6148. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6149. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6150. for i = 0, 24 do
  6151. 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"))
  6152. end
  6153. local rrot = 0
  6154. local xam = 1
  6155. coroutine.resume(coroutine.create(function()
  6156. for i = 0, 14 do
  6157. --swait()
  6158. rrot = rrot + 40*xam
  6159. xam = xam + 0.25
  6160. local bonus = xam
  6161. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  6162. xa.Anchored = true
  6163. xa.Color = Color3.new(0,0,0)
  6164. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  6165. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  6166. local xc = 0
  6167. coroutine.resume(coroutine.create(function()
  6168. for i = 0, 99 do
  6169. swait()
  6170. xc = xc + 0.01
  6171. xa.Color = Color3.new(xc,0,0)
  6172. end
  6173. xa.Transparency = 1
  6174. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  6175. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  6176. for i = 0, 9 do
  6177. 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"))
  6178. end
  6179. 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)
  6180. 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)
  6181. 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))
  6182. game:GetService("Debris"):AddItem(xa, 5)
  6183. coroutine.resume(coroutine.create(function()
  6184. for i = 0, 19 do
  6185. swait()
  6186. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6187. end
  6188. hum.CameraOffset = vt(0,0,0)
  6189. end))
  6190. end))
  6191. end
  6192. end))
  6193. for i = 0,2,0.1 do
  6194. swait()
  6195. 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)
  6196. 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)
  6197. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  6198. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  6199. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  6200. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6201. end
  6202. attack = false
  6203. hum.WalkSpeed = storehumanoidWS
  6204. end
  6205.  
  6206.  
  6207. function HeavenlyDisk()
  6208. attack = true
  6209. hum.WalkSpeed = 2
  6210. local keptcolor = MAINRUINCOLOR
  6211. local radm = math.random(1,3)
  6212. if radm == 1 then
  6213. bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
  6214. elseif radm == 2 then
  6215. bosschatfunc("I really don't have a choice...",MAINRUINCOLOR.Color,1)
  6216. elseif radm == 3 then
  6217. bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6218. end
  6219. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6220. CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 4, 1,0,10,0.15,0.5,1)
  6221. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6222. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
  6223. for i = 0, 14 do
  6224. PixelBlock(1,math.random(1,3),"Add",larm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,BrickColor.new(MULTIRUINCOLOR),0)
  6225. end
  6226. for i = 0,2,0.1 do
  6227. swait()
  6228. 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)
  6229. 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)
  6230. 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)
  6231. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6232. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6233. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6234. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6235. end
  6236. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6237. for i = 0,1,0.6 do
  6238. swait()
  6239. 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)
  6240. 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"))
  6241. 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)
  6242. 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)
  6243. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6244. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6245. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6246. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6247. end
  6248. for i = 0,1,0.6 do
  6249. swait()
  6250. 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)
  6251. 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"))
  6252. 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)
  6253. 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)
  6254. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6255. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6256. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6257. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6258. end
  6259. for i = 0,1,0.6 do
  6260. swait()
  6261. 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)
  6262. 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"))
  6263. 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)
  6264. 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)
  6265. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6266. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6267. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6268. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6269. end
  6270. for i = 0,1,0.6 do
  6271. swait()
  6272. 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)
  6273. 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"))
  6274. 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)
  6275. 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)
  6276. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6277. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6278. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6279. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6280. end
  6281. local rot = 15
  6282. for i = 0, 2 do
  6283. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new(MULTIRUINCOLOR))
  6284. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6285. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6286. CreateMesh(dis,"Sphere",10,1,10)
  6287. local at1 = Instance.new("Attachment",dis)
  6288. at1.Position = vt(-5,0,0)
  6289. local at2 = Instance.new("Attachment",dis)
  6290. at2.Position = vt(5,0,0)
  6291. local trl = Instance.new('Trail',wed)
  6292. trl.Attachment0 = at1
  6293. trl.Attachment1 = at2
  6294. trl.Texture = "rbxassetid://1049219073"
  6295. trl.LightEmission = 1
  6296. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6297. trl.Color = ColorSequence.new(dis.Color)
  6298. trl.Lifetime = 0.6
  6299. local a = Instance.new("Part",workspace)
  6300. a.Name = "Direction"
  6301. a.Anchored = true
  6302. a.BrickColor = bc("Bright red")
  6303. a.Material = "Neon"
  6304. a.Transparency = 1
  6305. a.CanCollide = false
  6306. local ray = Ray.new(
  6307. dis.CFrame.p, -- origin
  6308. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6309. )
  6310. local ignore = dis
  6311. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6312. a.BottomSurface = 10
  6313. a.TopSurface = 10
  6314. local distance = (dis.CFrame.p - position).magnitude
  6315. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6316. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6317. dis.CFrame = a.CFrame
  6318. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6319. a:Destroy()
  6320. local bv = Instance.new("BodyVelocity")
  6321. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6322. bv.velocity = dis.CFrame.lookVector*250
  6323. bv.Parent = dis
  6324. game:GetService("Debris"):AddItem(dis, 5)
  6325. local hitted = false
  6326. coroutine.resume(coroutine.create(function()
  6327. dis.Touched:connect(function(hit)
  6328. if hitted == false and hit.Parent ~= char then
  6329. hitted = true
  6330. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6331. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6332. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6333. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6334. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6335. coroutine.resume(coroutine.create(function()
  6336. for i = 0, 9 do
  6337. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6338. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6339. local at1 = Instance.new("Attachment",disr)
  6340. at1.Position = vt(-2,0,0)
  6341. local at2 = Instance.new("Attachment",disr)
  6342. at2.Position = vt(2,0,0)
  6343. local trl = Instance.new('Trail',disr)
  6344. trl.Attachment0 = at1
  6345. trl.FaceCamera = true
  6346. trl.Attachment1 = at2
  6347. trl.Texture = "rbxassetid://2342682798"
  6348. trl.LightEmission = 1
  6349. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6350. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6351. trl.Lifetime = 0.5
  6352. local bv = Instance.new("BodyVelocity")
  6353. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6354. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6355. bv.Parent = disr
  6356. local val = 0
  6357. coroutine.resume(coroutine.create(function()
  6358. swait(30)
  6359. for i = 0, 9 do
  6360. swait()
  6361. val = val + 0.1
  6362. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6363. end
  6364. game:GetService("Debris"):AddItem(disr, 3)
  6365. end))
  6366. end
  6367. local eff = Instance.new("ParticleEmitter",dis)
  6368. eff.Texture = "rbxassetid://2273224484"
  6369. eff.LightEmission = 1
  6370. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6371. eff.Rate = 500000
  6372. eff.Lifetime = NumberRange.new(0.5,2)
  6373. 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)})
  6374. 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)})
  6375. eff.Speed = NumberRange.new(20,250)
  6376. eff.Drag = 5
  6377. eff.Rotation = NumberRange.new(-500,500)
  6378. eff.VelocitySpread = 9000
  6379. eff.RotSpeed = NumberRange.new(-50,50)
  6380. wait(0.25)
  6381. eff.Enabled = false
  6382. end))
  6383. for i = 0, 9 do
  6384. 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"))
  6385. end
  6386. for i = 0, 19 do
  6387. PixelBlock(1,math.random(5,20),"Add",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  6388. end
  6389. coroutine.resume(coroutine.create(function()
  6390. for i = 0, 19 do
  6391. swait()
  6392. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6393. end
  6394. hum.CameraOffset = vt(0,0,0)
  6395. end))
  6396. dis.Anchored = true
  6397. dis.Transparency = 1
  6398. wait(8)
  6399. dis:Destroy()
  6400. end
  6401. end)
  6402. end))
  6403. rot = rot - 15
  6404. end
  6405. for i = 0,2,0.1 do
  6406. swait()
  6407. 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)
  6408. 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)
  6409. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6410. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6411. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6412. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6413. end
  6414. attack = false
  6415. hum.WalkSpeed = storehumanoidWS
  6416. end
  6417.  
  6418. function RapidBurst()
  6419. attack = true
  6420. hum.WalkSpeed = 0
  6421. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6422. CFuncs["Sound"].Create("rbxassetid://1097266621", root, 10, 0.5)
  6423. CFuncs["Sound"].Create("rbxassetid://138677306", root, 10, 0.5)
  6424. CFuncs["EchoSound"].Create("rbxassetid://358080429", char, 4, 1,0,10,0.15,0.5,1)
  6425. CFuncs["EchoSound"].Create("rbxassetid://2014087015", char, 4, 1,0,10,0.15,0.5,1)
  6426. bosschatfunc("ENOUGH!!",MAINRUINCOLOR.Color,2)
  6427. local keptcolor = MAINRUINCOLOR
  6428. for i = 0,8,0.1 do
  6429. swait()
  6430. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6431. 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())
  6432. 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)
  6433. 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)
  6434. 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)
  6435. 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)
  6436. 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)
  6437. 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)
  6438. 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)
  6439. end
  6440. for i = 0, 99 do
  6441. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6442. 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)))
  6443. local at1 = Instance.new("Attachment",dis)
  6444. at1.Position = vt(-25000,0,0)
  6445. local at2 = Instance.new("Attachment",dis)
  6446. at2.Position = vt(25000,0,0)
  6447. local trl = Instance.new('Trail',dis)
  6448. trl.Attachment0 = at1
  6449. trl.FaceCamera = true
  6450. trl.Attachment1 = at2
  6451. trl.Texture = "rbxassetid://1049219073"
  6452. trl.LightEmission = 1
  6453. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6454. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6455. trl.Lifetime = 5
  6456. local bv = Instance.new("BodyVelocity")
  6457. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6458. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6459. bv.Parent = dis
  6460. game:GetService("Debris"):AddItem(dis, 5)
  6461. end
  6462. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6463. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6464. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6465. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6466. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6467. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6468. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6469. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6470. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6471. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6472. hum.CameraOffset = vt(0,0,0)
  6473. for i = 0, 24 do
  6474. 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())
  6475. end
  6476. local distam = 0
  6477. coroutine.resume(coroutine.create(function()
  6478. for i = 0, 99 do
  6479. wait()
  6480. distam = distam + 1
  6481. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6482. xa.Anchored = true
  6483. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6484. game:GetService("Debris"):AddItem(xa, 5)
  6485. for i = 0, 4 do
  6486. 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())
  6487. end
  6488. coroutine.resume(coroutine.create(function()
  6489. local eff = Instance.new("ParticleEmitter",xa)
  6490. eff.Texture = "rbxassetid://2273224484"
  6491. eff.LightEmission = 1
  6492. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6493. eff.Rate = 500000
  6494. eff.Lifetime = NumberRange.new(1,3)
  6495. 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)})
  6496. 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)})
  6497. eff.Speed = NumberRange.new(50,500)
  6498. eff.Drag = 5
  6499. eff.Rotation = NumberRange.new(-500,500)
  6500. eff.VelocitySpread = 9000
  6501. eff.RotSpeed = NumberRange.new(-50,50)
  6502. wait(0.25)
  6503. eff.Enabled = false
  6504. end))
  6505. coroutine.resume(coroutine.create(function()
  6506. for i = 0, 19 do
  6507. swait()
  6508. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6509. end
  6510. hum.CameraOffset = vt(0,0,0)
  6511. end))
  6512. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6513. sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6514. sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6515. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6516. end
  6517. end))
  6518. attack = false
  6519. hum.WalkSpeed = storehumanoidWS
  6520. end
  6521.  
  6522.  
  6523. function FallenOrbs()
  6524. attack = true
  6525. hum.WalkSpeed = 2
  6526. local keptcolor = MAINRUINCOLOR
  6527. CFuncs["EchoSound"].Create("rbxassetid://358080470", char, 1.5, 1,0,10,0.15,0.5,1)
  6528. CFuncs["EchoSound"].Create("rbxassetid://358080470", root, 10, 1,0,10,0.15,0.5,1)
  6529. local radm = math.random(1,3)
  6530. if radm == 1 then
  6531. bosschatfunc("Sorry...",MAINRUINCOLOR.Color,1)
  6532. elseif radm == 2 then
  6533. bosschatfunc("WHY WON'T YOU DIE!!!!",MAINRUINCOLOR.Color,1)
  6534. elseif radm == 3 then
  6535. bosschatfunc("IM SORRY JUST DIE!!",MAINRUINCOLOR.Color,1)
  6536. end
  6537. coroutine.resume(coroutine.create(function()
  6538. for i = 0, 29 do
  6539. swait(2)
  6540. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6541. dis.Anchored = true
  6542. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6543. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6544. CreateMesh(dis,"Sphere",2,2,2)
  6545. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6546. 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"))
  6547. coroutine.resume(coroutine.create(function()
  6548. wait(0.5)
  6549. dis.Anchored = false
  6550. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
  6551. local at1 = Instance.new("Attachment",dis)
  6552. at1.Position = vt(-1,0,0)
  6553. local at2 = Instance.new("Attachment",dis)
  6554. at2.Position = vt(1,0,0)
  6555. local trl = Instance.new('Trail',dis)
  6556. trl.Attachment0 = at1
  6557. trl.FaceCamera = true
  6558. trl.Attachment1 = at2
  6559. trl.Texture = "rbxassetid://1049219073"
  6560. trl.LightEmission = 1
  6561. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6562. trl.Color = ColorSequence.new(dis.Color)
  6563. trl.Lifetime = 0.6
  6564. local a = Instance.new("Part",workspace)
  6565. a.Name = "Direction"
  6566. a.Anchored = true
  6567. a.BrickColor = bc("Bright red")
  6568. a.Material = "Neon"
  6569. a.Transparency = 1
  6570. a.CanCollide = false
  6571. local ray = Ray.new(
  6572. dis.CFrame.p, -- origin
  6573. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6574. )
  6575. local ignore = dis
  6576. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6577. a.BottomSurface = 10
  6578. a.TopSurface = 10
  6579. local distance = (dis.CFrame.p - position).magnitude
  6580. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6581. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6582. dis.CFrame = a.CFrame
  6583. a:Destroy()
  6584. local bv = Instance.new("BodyVelocity")
  6585. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6586. bv.velocity = dis.CFrame.lookVector*500
  6587. bv.Parent = dis
  6588. game:GetService("Debris"):AddItem(dis, 5)
  6589. local hitted = false
  6590. coroutine.resume(coroutine.create(function()
  6591. dis.Touched:connect(function(hit)
  6592. if hitted == false and hit.Parent ~= char then
  6593. hitted = true
  6594. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
  6595. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6596. sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6597. sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6598. coroutine.resume(coroutine.create(function()
  6599. for i = 0, 4 do
  6600. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6601. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6602. local at1 = Instance.new("Attachment",disr)
  6603. at1.Position = vt(-10,0,0)
  6604. local at2 = Instance.new("Attachment",disr)
  6605. at2.Position = vt(10,0,0)
  6606. local trl = Instance.new('Trail',disr)
  6607. trl.Attachment0 = at1
  6608. trl.FaceCamera = true
  6609. trl.Attachment1 = at2
  6610. trl.Texture = "rbxassetid://2342682798"
  6611. trl.LightEmission = 1
  6612. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6613. trl.Color = ColorSequence.new(disr.Color)
  6614. trl.Lifetime = 0.5
  6615. local bv = Instance.new("BodyVelocity")
  6616. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6617. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6618. bv.Parent = disr
  6619. local val = 0
  6620. coroutine.resume(coroutine.create(function()
  6621. swait(30)
  6622. for i = 0, 9 do
  6623. swait()
  6624. val = val + 0.1
  6625. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6626. end
  6627. game:GetService("Debris"):AddItem(disr, 3)
  6628. end))
  6629. end
  6630. local eff = Instance.new("ParticleEmitter",dis)
  6631. eff.Texture = "rbxassetid://1049219073"
  6632. eff.LightEmission = 1
  6633. eff.Color = ColorSequence.new(dis.Color)
  6634. eff.Rate = 500000
  6635. eff.Lifetime = NumberRange.new(0.5,2)
  6636. 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)})
  6637. 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)})
  6638. eff.Speed = NumberRange.new(20,250)
  6639. eff.Drag = 5
  6640. eff.Rotation = NumberRange.new(-500,500)
  6641. eff.VelocitySpread = 9000
  6642. eff.RotSpeed = NumberRange.new(-50,50)
  6643. wait(0.5)
  6644. eff.Enabled = false
  6645. end))
  6646. for i = 0, 4 do
  6647. 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"))
  6648. end
  6649. coroutine.resume(coroutine.create(function()
  6650. for i = 0, 19 do
  6651. swait()
  6652. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6653. end
  6654. hum.CameraOffset = vt(0,0,0)
  6655. end))
  6656. dis.Anchored = true
  6657. dis.Transparency = 1
  6658. wait(8)
  6659. dis:Destroy()
  6660. end
  6661. end)
  6662. end))
  6663. end))
  6664. end
  6665. end))
  6666. for i = 0,9,0.1 do
  6667. swait()
  6668. 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)
  6669. 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)
  6670. 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)
  6671. 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)
  6672. 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)
  6673. 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)
  6674. 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)
  6675. end
  6676. attack = false
  6677. hum.WalkSpeed = storehumanoidWS
  6678. end
  6679.  
  6680. function EquinoxOrbs()
  6681. hum.WalkSpeed = 0
  6682. attack = true
  6683. for i = 0,1,0.1 do
  6684. swait()
  6685. 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)
  6686. 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)
  6687. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6688. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6689. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6690. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6691. end
  6692. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6693. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6694. for i = 0, 24 do
  6695. --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"))
  6696. end
  6697. bosschatfunc("TAKE THIS!",MAINRUINCOLOR.Color,1)
  6698. CFuncs["EchoSound"].Create("rbxassetid://313205954", char, 4, 1,0,10,0.15,0.5,1)
  6699. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6700. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6701. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6702. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6703. for i = 0,1,0.1 do
  6704. swait()
  6705. 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)
  6706. 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)
  6707. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6708. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6709. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6710. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6711. end
  6712. sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6713. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6714. for i = 0, 24 do
  6715. 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"))
  6716. end
  6717. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6718. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6719. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6720. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6721. for i = 0,4,0.1 do
  6722. swait()
  6723. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6724. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6725. CreateMesh(dis,"Sphere",1,1,1)
  6726. dis.Anchored = true
  6727. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6728. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6729. CreateMesh(dis2,"Sphere",1,1,1)
  6730. dis2.Anchored = true
  6731. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6732. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6733. sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6734. coroutine.resume(coroutine.create(function()
  6735. swait(60)
  6736. dis.Transparency = 1
  6737. dis2.Transparency = 1
  6738. coroutine.resume(coroutine.create(function()
  6739. for i = 0, 19 do
  6740. swait()
  6741. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6742. end
  6743. hum.CameraOffset = vt(0,0,0)
  6744. end))
  6745. coroutine.resume(coroutine.create(function()
  6746. local eff = Instance.new("ParticleEmitter",dis)
  6747. eff.Texture = "rbxassetid://2273224484"
  6748. eff.LightEmission = 1
  6749. eff.Color = ColorSequence.new(dis.Color)
  6750. eff.Rate = 500000
  6751. eff.Lifetime = NumberRange.new(0.5,2)
  6752. 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)})
  6753. 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)})
  6754. eff.Speed = NumberRange.new(50,450)
  6755. eff.Drag = 5
  6756. eff.Rotation = NumberRange.new(-500,500)
  6757. eff.VelocitySpread = 9000
  6758. eff.RotSpeed = NumberRange.new(-50,50)
  6759. local eff2 = eff:Clone()
  6760. eff2.Parent = dis2
  6761. eff2.LightEmission = 0
  6762. eff2.Color = ColorSequence.new(dis2.Color)
  6763. wait(0.25)
  6764. eff.Enabled = false
  6765. eff2.Enabled = false
  6766. end))
  6767. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6768. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6769. for i = 0, 2 do
  6770. slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,300)/250,dis.BrickColor)
  6771. slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,300)/250,dis2.BrickColor)
  6772. end
  6773. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6774. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6775. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6776. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6777. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6778. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6779. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6780. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6781. end))
  6782. game:GetService("Debris"):AddItem(dis, 5)
  6783. game:GetService("Debris"):AddItem(dis2, 5)
  6784. 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)
  6785. 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)
  6786. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6787. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6788. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6789. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6790. end
  6791. attack = false
  6792. hum.WalkSpeed = storehumanoidWS
  6793. end
  6794.  
  6795. function FallenDEMISE()
  6796. attack = true
  6797. hum.WalkSpeed = 0
  6798. local keptcolor = MAINRUINCOLOR
  6799. bosschatfunc("HOW ABOUT THIS!?",MAINRUINCOLOR.Color,3)
  6800. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6801. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6802. for i = 0, 15, 0.1 do
  6803. swait()
  6804. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6805. 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)))
  6806. local at1 = Instance.new("Attachment",dis)
  6807. at1.Position = vt(-25000,0,0)
  6808. local at2 = Instance.new("Attachment",dis)
  6809. at2.Position = vt(25000,0,0)
  6810. local trl = Instance.new('Trail',dis)
  6811. trl.Attachment0 = at1
  6812. trl.FaceCamera = true
  6813. trl.Attachment1 = at2
  6814. trl.Texture = "rbxassetid://1049219073"
  6815. trl.LightEmission = 1
  6816. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6817. trl.Color = ColorSequence.new(dis.Color)
  6818. trl.Lifetime = 5
  6819. local bv = Instance.new("BodyVelocity")
  6820. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6821. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6822. bv.Parent = dis
  6823. game:GetService("Debris"):AddItem(dis, 1)
  6824. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6825. 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"))
  6826. 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"))
  6827. 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)
  6828. 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)
  6829. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6830. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6831. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6832. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6833. end
  6834. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6835. for i = 0, 30, 0.1 do
  6836. swait()
  6837. coroutine.resume(coroutine.create(function()
  6838. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6839. if v:FindFirstChild('Head') then
  6840. dmg(v)
  6841. end
  6842. end
  6843. end))
  6844. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6845. 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)))
  6846. local at1 = Instance.new("Attachment",dis)
  6847. at1.Position = vt(-50000,0,0)
  6848. local at2 = Instance.new("Attachment",dis)
  6849. at2.Position = vt(50000,0,0)
  6850. local trl = Instance.new('Trail',dis)
  6851. trl.Attachment0 = at1
  6852. trl.FaceCamera = true
  6853. trl.Attachment1 = at2
  6854. trl.Texture = "rbxassetid://1049219073"
  6855. trl.LightEmission = 1
  6856. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6857. trl.Color = ColorSequence.new(dis.Color)
  6858. trl.Lifetime = 10
  6859. local bv = Instance.new("BodyVelocity")
  6860. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6861. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6862. bv.Parent = dis
  6863. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6864. sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6865. sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6866. 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"))
  6867. 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"))
  6868. 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"))
  6869. 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"))
  6870. for i = 0, 2 do
  6871. 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)
  6872. end
  6873. 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)
  6874. 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)
  6875. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6876. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6877. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6878. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6879. end
  6880. attack = false
  6881. hum.WalkSpeed = storehumanoidWS
  6882. end
  6883.  
  6884. function EightBitMegaBlade()
  6885. attack = true
  6886. hum.WalkSpeed = 0
  6887. hum.JumpPower = 0
  6888. CFuncs["Sound"].Create("rbxassetid://1368583274", larm, 4.5, 1.2)
  6889. local OverCut = false
  6890. cam.CameraSubject = Humanoid
  6891. cam.CameraType = "Scriptable"
  6892. coroutine.resume(coroutine.create(function()
  6893. while true do
  6894. swait()
  6895. if OverCut == false then
  6896. cam.CFrame = lerp(cam.CFrame, root.CFrame * cf(1, 1.5, -6) * ceuler(math.rad(10), math.rad(170), math.rad(-20)), 0.1)
  6897. else
  6898. break
  6899. end
  6900. end
  6901. end))
  6902. for i = 0, 10, 0.1 do
  6903. swait()
  6904. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  6905. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,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.1,-0.01,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6906. slash(math.random(20,40)/10,5,true,"Round","Add","Out",larm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.025,0.001,0.025),-0.025,BrickColor.new("White"))
  6907. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
  6908. 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(30),math.rad(3)),.3)
  6909. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  6910. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(5),math.rad(50)),.3)
  6911. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-13),math.rad(-40),math.rad(20)),.3)
  6912. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(170),math.rad(10),math.rad(0)),.3)
  6913. end
  6914. OverCut = true
  6915. local orb = Instance.new("Part", char)
  6916. orb.Anchored = true
  6917. orb.BrickColor = BrickColor.new("Toothpaste")
  6918. orb.CanCollide = false
  6919. orb.FormFactor = 3
  6920. orb.Name = "Ring"
  6921. orb.Material = "Neon"
  6922. orb.Size = Vector3.new(1, 1, 1)
  6923. orb.Transparency = 0.5
  6924. orb.TopSurface = 0
  6925. orb.BottomSurface = 0
  6926. local orbm = Instance.new("SpecialMesh", orb)
  6927. orbm.MeshType = "FileMesh"
  6928. orbm.MeshId = "rbxassetid://361629844"
  6929. orbm.Scale = vt(30,60,60)
  6930. orb.CFrame = root.CFrame*CFrame.new(0,50,0)
  6931. for i = 0, 24 do
  6932. slash(math.random(10,30)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.001,0.1),math.random(50,400)/420,BrickColor.new("White"))
  6933. end
  6934. sphere2(2,"Add",orb.CFrame,vt(10,10,10),0.5,0.5,0.5,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6935. sphere2(3,"Add",orb.CFrame,vt(10,10,10),0.75,0.75,0.75,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6936. sphere2(4,"Add",orb.CFrame,vt(10,10,10),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  6937. CFuncs["Sound"].Create("rbxassetid://1368637781", orb, 7.5, 1)
  6938. local a = Instance.new("Part",workspace)
  6939. a.Name = "Direction"
  6940. a.Anchored = true
  6941. a.Transparency = 1
  6942. a.CanCollide = false
  6943. local ray = Ray.new(
  6944. orb.CFrame.p, -- origin
  6945. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  6946. )
  6947. local ignore = orb
  6948. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6949. a.BottomSurface = 10
  6950. a.TopSurface = 10
  6951. local distance = (orb.CFrame.p - position).magnitude
  6952. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6953. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  6954. orb.CFrame = a.CFrame
  6955. for i = 0, 8, 0.1 do
  6956. swait()
  6957. sphere2(5,"Add",orb.CFrame*CFrame.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)),vt(1,1,1),0.01,0.01,0.01,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  6958. ray = Ray.new(
  6959. orb.CFrame.p, -- origin
  6960. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  6961. )
  6962. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6963. distance = (orb.CFrame.p - position).magnitude
  6964. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  6965. orb.CFrame = a.CFrame
  6966. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  6967. cam.CFrame = lerp(cam.CFrame, root.CFrame * cf(20, 65, 55) * ceuler(math.rad(-20), math.rad(0), math.rad(10)), 0.2)
  6968. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
  6969. 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(40),math.rad(3)),.3)
  6970. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  6971. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  6972. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-13),math.rad(-20),math.rad(20)),.3)
  6973. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(100),math.rad(0),math.rad(60)),.3)
  6974. end
  6975. cam.CameraType = "Custom"
  6976. orb.Anchored = false
  6977. a:Destroy()
  6978. local bv = Instance.new("BodyVelocity")
  6979. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6980. bv.velocity = orb.CFrame.lookVector*250
  6981. bv.Parent = orb
  6982. local hitted = false
  6983. CFuncs["Sound"].Create("rbxassetid://466493476", orb, 7.5, 0.7)
  6984. waveEff(2,"Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.1,BrickColor.new("Cyan"))
  6985. waveEff(4,"Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.05,BrickColor.new("Royal purple"))
  6986. coroutine.resume(coroutine.create(function()
  6987. while true do
  6988. swait(2)
  6989. if hitted == false and orb.Parent ~= nil then
  6990. slash(3,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.075,0.005,0.075),-0.05,BrickColor.new("White"))
  6991. elseif hitted == true and orb.Parent == nil then
  6992. break
  6993. end
  6994. end
  6995. end))
  6996. orb.Touched:connect(function(hit)
  6997. if hitted == false and hit.Parent ~= char then
  6998. hitted = true
  6999. MagniDamage(orb, 30, 72,95, 0, "Normal",153092213)
  7000. CFuncs["Sound"].Create("rbxassetid://763717897", orb, 10, 1)
  7001. CFuncs["Sound"].Create("rbxassetid://1295446488", orb, 9, 0.75)
  7002. for i = 0, 24 do
  7003. slash(math.random(15,30)/10,5,true,"Round","Add","Out",orb.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.001,0.01),math.random(125,250)/400,BrickColor.new("White"))
  7004. end
  7005. slash(1,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.015,0.01),1.5,BrickColor.new("White"))
  7006. slash(1,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.01,0.01),2,BrickColor.new("White"))
  7007. sphere2(1,"Add",orb.CFrame,vt(10,10,10),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7008. sphere2(1.5,"Add",orb.CFrame,vt(10,10,10),1.1,1.1,1.1,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  7009. sphere2(2,"Add",orb.CFrame,vt(10,10,10),1.2,1.2,1.2,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  7010. orb.Anchored = true
  7011. orb.Transparency = 1
  7012. coroutine.resume(coroutine.create(function()
  7013. for i = 0, 4, 0.1 do
  7014. swait()
  7015. slash(math.random(10,50)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.015,0.01),1.5,BrickColor.new("Royal purple"))
  7016. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  7017. end
  7018. hum.CameraOffset = vt(0,0,0)
  7019. end))
  7020. wait(10)
  7021. orb:Destroy()
  7022. end
  7023. end)
  7024. game:GetService("Debris"):AddItem(orb, 10)
  7025. for i = 0, 2, 0.1 do
  7026. swait()
  7027. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  7028. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3)
  7029. 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(30),math.rad(3)),.3)
  7030. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.4,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  7031. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  7032. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-13),math.rad(-40),math.rad(20)),.3)
  7033. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-80)),.3)
  7034. end
  7035. attack = false
  7036. hum.WalkSpeed = 24
  7037. hum.JumpPower = 50
  7038. end
  7039.  
  7040. function BladeSpinAgain()
  7041. attack = true
  7042. hum.WalkSpeed = 4
  7043. hum.JumpPower = 0
  7044. CFuncs["Sound"].Create("rbxassetid://1368598393", rarmor, 2, 1)
  7045. CFuncs["Sound"].Create("rbxassetid://1368583274", rarmor, 2.5, 1)
  7046. for x = 0, 9 do
  7047. slash(5,5,true,"Round","Add","Out",rarmor.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),vt(0.05,0.01,0.05),0.05,BrickColor.new("White"))
  7048. CFuncs["Sound"].Create("rbxassetid://200633108", rarmor, 2, 1.05)
  7049. CFuncs["Sound"].Create("rbxassetid://234365573", rarmor, 2.5, 1.025)
  7050. for i = 0, 1, 0.6 do
  7051. swait()
  7052. sphereMK(5,math.random(4,25)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  7053. sphereMK(5,math.random(1,15)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.75,0.75,20,-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  7054. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  7055. sphere2(5,"Add",rarmor.CFrame*CFrame.new(math.random(-8,-2),0,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.1,0.1),0,0.1,0,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7056. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  7057. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-10)),.2)
  7058. 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(30),math.rad(0)),.2)
  7059. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  7060. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(60)),.3)
  7061. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(80)),.3)
  7062. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  7063. end
  7064. slash(5,5,true,"Round","Add","Out",rarmor.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),vt(0.05,0.01,0.05),0.05,BrickColor.new("White"))
  7065. for i = 0, 1, 0.6 do
  7066. swait()
  7067. sphereMK(5,math.random(4,25)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  7068. sphereMK(5,math.random(1,15)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.75,0.75,20,-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  7069. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  7070. sphere2(5,"Add",rarmor.CFrame*CFrame.new(math.random(-8,-2),0,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.1,0.1),0,0.1,0,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7071. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  7072. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-10)),.2)
  7073. 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(30),math.rad(0)),.2)
  7074. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  7075. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(60)),.3)
  7076. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(80)),.3)
  7077. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  7078. end
  7079. slash(5,5,true,"Round","Add","Out",rarmor.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),vt(0.05,0.01,0.05),0.05,BrickColor.new("White"))
  7080. for i = 0, 1, 0.6 do
  7081. swait()
  7082. sphereMK(5,math.random(4,25)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  7083. sphereMK(5,math.random(1,15)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.75,0.75,20,-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  7084. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  7085. sphere2(5,"Add",rarmor.CFrame*CFrame.new(math.random(-8,-2),0,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.1,0.1),0,0.1,0,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7086. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  7087. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-10)),.2)
  7088. 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(30),math.rad(0)),.2)
  7089. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  7090. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(60)),.3)
  7091. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(80)),.3)
  7092. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  7093. end
  7094. slash(5,5,true,"Round","Add","Out",rarmor.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0),vt(0.05,0.01,0.05),0.05,BrickColor.new("White"))
  7095. for i = 0, 1, 0.6 do
  7096. swait()
  7097. sphereMK(5,math.random(4,25)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  7098. sphereMK(5,math.random(1,15)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.75,0.75,20,-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  7099. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
  7100. sphere2(5,"Add",rarmor.CFrame*CFrame.new(math.random(-8,-2),0,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.1,0.1),0,0.1,0,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7101. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  7102. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-10)),.2)
  7103. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(30),math.rad(0)),.2)
  7104. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  7105. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(60)),.3)
  7106. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(80)),.3)
  7107. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  7108. end
  7109. local hitb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.Random())
  7110. hitb.Anchored = true
  7111. hitb.CFrame = root.CFrame + root.CFrame.lookVector*8
  7112. hitb.CFrame = hitb.CFrame*CFrame.new(0,1,0)
  7113. MagniDamage(hitb, 8, 92,158, 0, "Normal",153092213)
  7114. sphere2(5,"Add",hitb.CFrame,vt(2.1,2.1,2),-0.02,-0.02,5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
  7115. sphere2(5,"Add",hitb.CFrame,vt(2,2,2),-0.02,-0.02,4,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7116. for i = 0, 24 do
  7117. slash(math.random(20,100)/10,5,true,"Round","Add","Out",hitb.CFrame*CFrame.new(0,0,math.random(-60,60))*CFrame.Angles(math.rad(90),0,0),vt(0.01,0.01,0.01),math.random(10,100)/1000,BrickColor.new("White"))
  7118. end
  7119. CFuncs["Sound"].Create("rbxassetid://313205954", root, 4,1)
  7120. CFuncs["Sound"].Create("rbxassetid://1368637781", rarmor, 4,1)
  7121. CFuncs["Sound"].Create("rbxassetid://763718160", rarmor, 5, 1.1)
  7122. CFuncs["Sound"].Create("rbxassetid://782353443", rarmor, 6, 1)
  7123. --CFuncs["Sound"].Create("rbxassetid://1548538202", rarmor, 4,1)
  7124. for i = 0, 2, 0.1 do
  7125. swait()
  7126. MagniDamage(hitb, 8, 92,158, 0, "Normal",153092213)
  7127. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  7128. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-20),math.rad(-10)),.9)
  7129. 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),math.rad(0)),.9)
  7130. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.9)
  7131. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(-80)),.9)
  7132. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(70)),.9)
  7133. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-60)),.9)
  7134. end
  7135. hum.CameraOffset = vt(0,0,0)
  7136. hitb:Destroy()
  7137. attack = false
  7138. hum.WalkSpeed = 24
  7139. hum.JumpPower = 50
  7140. end
  7141.  
  7142. function SpinnyBlade()
  7143. attack = true
  7144. hum.WalkSpeed = 1
  7145. hum.JumpPower = 0
  7146. CFuncs["Sound"].Create("rbxassetid://1368583274", root, 4.5, 1)
  7147. local bgui = Instance.new("BillboardGui",root)
  7148. bgui.Size = UDim2.new(25, 0, 25, 0)
  7149. local imgc = Instance.new("ImageLabel",bgui)
  7150. imgc.BackgroundTransparency = 1
  7151. imgc.ImageTransparency = 1
  7152. imgc.Size = UDim2.new(1,0,1,0)
  7153. imgc.Image = "rbxassetid://997291547"
  7154. imgc.ImageColor3 = Color3.new(0,0.5,1)
  7155. local imgc2 = imgc:Clone()
  7156. imgc2.Parent = bgui
  7157. imgc2.Position = UDim2.new(-0.5,0,-0.5,0)
  7158. imgc2.Size = UDim2.new(2,0,2,0)
  7159. imgc2.ImageColor3 = Color3.new(0.5,0,1)
  7160. for i = 0, 10, 0.1 do
  7161. swait()
  7162. imgc.ImageTransparency = imgc.ImageTransparency - 0.01
  7163. imgc.Rotation = imgc.Rotation + 1
  7164. imgc2.ImageTransparency = imgc2.ImageTransparency - 0.01
  7165. imgc2.Rotation = imgc2.Rotation - 1
  7166. bgui.Size = bgui.Size - UDim2.new(0.25, 0, 0.25, 0)
  7167. slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-360,360)),math.rad(math.random(-10,10))),vt(0.1,0.01,0.1),math.random(25,50)/250,BrickColor.new("White"))
  7168. sphere2(5,"Add",rarmor.CFrame*CFrame.new(math.random(-8,-2),0,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.1,0.1),0,0.1,0,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
  7169. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  7170. sphereMK(5,math.random(4,25)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  7171. sphereMK(5,math.random(1,15)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-20,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.75,0.75,20,-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  7172. waveEff(5,"Add","In",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(0,math.rad(math.random(-360,360)),0),vt(15,0.25,15),-0.075,0.05,BrickColor.new("White"))
  7173. RH.C0=clerp(RH.C0,cf(1,-0.5,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-40),math.rad(10)),.2)
  7174. 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)),.2)
  7175. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0.1,0.2,-0.3)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  7176. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  7177. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.65)*angles(math.rad(100),math.rad(0),math.rad(-23)),.3)
  7178. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(110),math.rad(0),math.rad(-85)),.3)
  7179. end
  7180. imgc.ImageTransparency = 1
  7181. hum.CameraOffset = vt(0,0,0)
  7182. waveEff(2,"Add","Out",root.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(6,10,6),0.5,0.8,BrickColor.new("White"))
  7183. waveEff(3,"Add","Out",root.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(6,10,6),0.5,0.4,BrickColor.new("White"))
  7184. waveEff(4,"Add","Out",root.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(6,10,6),0.5,0.2,BrickColor.new("White"))
  7185. waveEff(5,"Add","Out",root.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(6,10,6),0.5,0.1,BrickColor.new("White"))
  7186. waveEff(6,"Add","Out",root.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(6,10,6),0.5,0.05,BrickColor.new("White"))
  7187. for i = 0, 9 do
  7188. slash(math.random(10,25)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,0,math.random(-30,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-360,360)),math.rad(math.random(-10,10))),vt(0.1,0.01,0.1),math.random(75,250)/250,BrickColor.new("White"))
  7189. end
  7190. CFuncs["Sound"].Create("rbxassetid://430315987", root, 1.5, 1)
  7191. CFuncs["Sound"].Create("rbxassetid://1295446488", root, 3, 1)
  7192. for x = 0, 14 do
  7193. CFuncs["Sound"].Create("rbxassetid://200633281", rarmor, 1, 1.05)
  7194. CFuncs["Sound"].Create("rbxassetid://161006195", rarmor, 1.5, 1.025)
  7195. MagniDamage(tors, 10, 60,85, 0, "Normal",153092213)
  7196. CFuncs["Sound"].Create("rbxassetid://200632992", rarmor, 1.25, 1)
  7197. slash(5,5,true,"Round","Add","Out",root.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(0.05,0.01,0.05),math.random(1,10)/100,BrickColor.new("White"))
  7198. for i = 0, 1, 0.6 do
  7199. swait()
  7200. sphereMK(2,-1,"Add",root.CFrame*CFrame.new(math.random(-8,8),math.random(-8,8),math.random(-3,8))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,math.random(5,25),-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  7201. root.CFrame = root.CFrame + root.CFrame.lookVector*2
  7202. root.Velocity = vt(0,0,0)
  7203. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.2)
  7204. 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),math.rad(0)),.2)
  7205. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  7206. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(-60)),.3)
  7207. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  7208. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  7209. end
  7210. slash(5,2.5,true,"Round","Add","Out",root.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(0.05,0.01,0.05),math.random(1,10)/100,BrickColor.new("White"))
  7211. CFuncs["Sound"].Create("rbxassetid://200632992", rarmor, 1.25, 1)
  7212. MagniDamage(tors, 10, 60,85, 0, "Normal",153092213)
  7213. for i = 0, 1, 0.6 do
  7214. swait()
  7215. sphereMK(2,-1,"Add",root.CFrame*CFrame.new(math.random(-8,8),math.random(-8,8),math.random(-3,8))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,math.random(5,25),-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  7216. root.CFrame = root.CFrame + root.CFrame.lookVector*3
  7217. root.Velocity = vt(0,0,0)
  7218. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.2)
  7219. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.2)
  7220. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  7221. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(-60)),.3)
  7222. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  7223. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  7224. end
  7225. slash(5,2.5,true,"Round","Add","Out",root.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(0.05,0.01,0.05),math.random(1,10)/100,BrickColor.new("White"))
  7226. CFuncs["Sound"].Create("rbxassetid://200632992", rarmor, 1.25, 1)
  7227. MagniDamage(tors, 10, 60,85, 0, "Normal",153092213)
  7228. for i = 0, 1, 0.6 do
  7229. swait()
  7230. sphereMK(2,-1,"Add",root.CFrame*CFrame.new(math.random(-8,8),math.random(-8,8),math.random(-3,8))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,math.random(5,25),-0.0075,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color,0)
  7231. root.CFrame = root.CFrame + root.CFrame.lookVector*3
  7232. root.Velocity = vt(0,0,0)
  7233. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.2)
  7234. 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),math.rad(0)),.2)
  7235. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(180),math.rad(0),math.rad(90)),.3)
  7236. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(-60)),.3)
  7237. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  7238. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  7239. end
  7240. slash(5,2.5,true,"Round","Add","Out",root.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(0.05,0.01,0.05),math.random(1,10)/100,BrickColor.new("White"))
  7241. CFuncs["Sound"].Create("rbxassetid://200632992", rarmor, 1.25, 1)
  7242. MagniDamage(tors, 10, 60,85, 0, "Normal",153092213)
  7243. for i = 0, 1, 0.6 do
  7244. swait()
  7245. sphereMK(2,-1,"Add",root.CFrame*CFrame.new(math.random(-8,8),math.random(-8,8),math.random(-3,8))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,math.random(5,25),-0.0075,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color,0)
  7246. root.CFrame = root.CFrame + root.CFrame.lookVector*3
  7247. root.Velocity = vt(0,0,0)
  7248. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.2)
  7249. 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),math.rad(0)),.2)
  7250. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(270),math.rad(0),math.rad(90)),.3)
  7251. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(-60)),.3)
  7252. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  7253. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  7254. end
  7255. end
  7256. hum.WalkSpeed = 0
  7257. for i = 0, 5, 0.1 do
  7258. swait()
  7259. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-20)),.2)
  7260. LH.C0=clerp(LH.C0,cf(-1,-0.6,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(20),math.rad(-12)),.2)
  7261. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0.1,0.2,-0.35)*angles(math.rad(10),math.rad(0),math.rad(-40)),.2)
  7262. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(40)),.2)
  7263. RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(110)),.2)
  7264. LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(45),math.rad(0),math.rad(-20)),.2)
  7265. end
  7266. bgui:Destroy()
  7267. attack = false
  7268. hum.WalkSpeed = 24
  7269. hum.JumpPower = 50
  7270. end
  7271. end
  7272.  
  7273. function GleamingBeam()
  7274. attack = true
  7275. bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
  7276. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  7277. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  7278. local rsiz = math.random(1,15)
  7279. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7280. hb.Anchored = true
  7281. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7282. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7283. for i = 0, 16, 0.1 do
  7284. swait()
  7285. rsiz = math.random(5,15)
  7286. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7287. 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)
  7288. 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)
  7289. 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)
  7290. 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)
  7291. 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)
  7292. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  7293. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  7294. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  7295. end
  7296. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7297. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7298. for i = 0, 2 do
  7299. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7300. end
  7301. 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)
  7302. 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)
  7303. 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)
  7304. for i = 0, 49 do
  7305. local rsiza = math.random(1,15)
  7306. 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)
  7307. end
  7308. local a = Instance.new("Part",Character)
  7309. a.Name = "Direction"
  7310. a.Anchored = true
  7311. a.BrickColor = MAINRUINCOLOR
  7312. a.Material = "Neon"
  7313. a.Transparency = 0
  7314. a.Shape = "Cylinder"
  7315. a.CanCollide = false
  7316. local ba = Instance.new("Part",Character)
  7317. ba.Name = "HitDirect"
  7318. ba.Anchored = true
  7319. ba.BrickColor = bc("Cool yellow")
  7320. ba.Material = "Neon"
  7321. ba.Transparency = 1
  7322. ba.CanCollide = false
  7323. local ray = Ray.new(
  7324. hb.CFrame.p, -- origin
  7325. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7326. )
  7327. local ignore = Character
  7328. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7329. a.BottomSurface = 10
  7330. a.TopSurface = 10
  7331. local distance = (hb.CFrame.p - position).magnitude
  7332. a.Size = Vector3.new(distance, 1, 1)
  7333. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7334. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7335. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7336. local msh = Instance.new("SpecialMesh",a)
  7337. msh.MeshType = "Cylinder"
  7338. msh.Scale = vt(1,4,4)
  7339. game:GetService("Debris"):AddItem(a, 30)
  7340. game:GetService("Debris"):AddItem(ba, 30)
  7341. for i = 0, 25, 0.1 do
  7342. swait()
  7343. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7344. ray = Ray.new(
  7345. hb.CFrame.p, -- origin
  7346. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7347. )
  7348. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7349. distance = (hb.CFrame.p - position).magnitude
  7350. a.Size = Vector3.new(distance, 1, 1)
  7351. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7352. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7353. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7354. rsiz = math.random(5,25)
  7355. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  7356. 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)
  7357. for c = 0, 2 do
  7358. 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)
  7359. end
  7360. 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)
  7361. 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)
  7362. 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)
  7363. 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)
  7364. 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)
  7365. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  7366. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  7367. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  7368. end
  7369. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7370. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7371. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7372. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7373. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  7374. 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)
  7375. 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)
  7376. 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)
  7377. 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)
  7378. 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)
  7379. 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)
  7380. for i = 0, 49 do
  7381. local rsiza = math.random(1,15)
  7382. 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)
  7383. end
  7384. for i = 0, 49 do
  7385. rsiz = math.random(1,8)
  7386. 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)
  7387. end
  7388. coroutine.resume(coroutine.create(function()
  7389. for i = 0, 99 do
  7390. swait()
  7391. a.Transparency = a.Transparency + 0.01
  7392. end
  7393. a:Destroy()
  7394. ba:Destroy()
  7395. end))
  7396. hb:Destroy()
  7397. attack = false
  7398. end
  7399.  
  7400. function SHDTwist()
  7401. attack = true
  7402. hum.WalkSpeed = 2
  7403. local radm = math.random(1,4)
  7404. if radm == 1 then
  7405. bosschatfunc("YOU FOOL!",MAINRUINCOLOR.Color,1)
  7406. elseif radm == 2 then
  7407. bosschatfunc("SUBMIT TO ME!",MAINRUINCOLOR.Color,1)
  7408. elseif radm == 3 then
  7409. bosschatfunc("DIE!",MAINRUINCOLOR.Color,1)
  7410. elseif radm == 4 then
  7411. bosschatfunc("YOU DARE FIGHT ME?",MAINRUINCOLOR.Color,1)
  7412. end
  7413. CFuncs["EchoSound"].Create("rbxassetid://1448033299", rarm, 1.5,1.25)
  7414. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1.5,1.25)
  7415. local obj1 = script.chring2:Clone()
  7416. obj1.Parent = char
  7417. obj1.Transparency = 1
  7418. obj1.Size = vt(1,1,1)
  7419. obj1.Color = BrickColor.new("Pink").Color
  7420. local obj2 = script.spball:Clone()
  7421. obj2.Parent = char
  7422. obj2.Transparency = 1
  7423. obj2.Size = vt(1,1,1)
  7424. obj2.Color = MAINRUINCOLOR.Color
  7425. local cfor = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  7426. cfor.Anchored = true
  7427. cfor.CFrame = obj2.CFrame
  7428. local cef = Instance.new("ParticleEmitter",cfor)
  7429. cef.Texture = "rbxassetid://2344870656"
  7430. cef.LightEmission = 1
  7431. cef.Color = ColorSequence.new(obj2.Color)
  7432. cef.Rate = 150
  7433. cef.Lifetime = NumberRange.new(0.25)
  7434. cef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.5,1,0),NumberSequenceKeypoint.new(1,0,0)})
  7435. cef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  7436. cef.Speed = NumberRange.new(0)
  7437. local rval = 0
  7438. local eval = 1
  7439. for i = 0,7,0.1 do
  7440. swait()
  7441. rval = rval + math.random(30,40)
  7442. eval = eval + 0.45
  7443. obj1.Transparency = obj1.Transparency - 0.005
  7444. obj1.Size = obj1.Size + vt(0.3,0.3,0.1)
  7445. obj1.CFrame = root.CFrame*CFrame.new(0,1,-5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(rval))
  7446. obj2.Transparency = obj2.Transparency - 0.007
  7447. obj2.Size = obj2.Size + vt(0.15,0.15,0.15)
  7448. cef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.5,eval,0),NumberSequenceKeypoint.new(1,0,0)})
  7449. obj2.CFrame = root.CFrame*CFrame.new(0,1,-7)*CFrame.Angles(math.rad(rval),math.rad(rval),math.rad(-rval))
  7450. cfor.CFrame = obj2.CFrame
  7451. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Pastel light blue"),BrickColor.new("Pastel light blue").Color)
  7452. sphere2(10,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.15,-0.01,BrickColor.new("Pink"),BrickColor.new("Pink").Color)
  7453. 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)
  7454. 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)
  7455. 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(-50)),.3)
  7456. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2 * math.cos(sine / 37)),math.rad(10 + 1 * math.cos(sine / 58)),math.rad(50 + 2 * math.cos(sine / 53))),.3)
  7457. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(10 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(5 + 2 * math.cos(sine / 45))),.3)
  7458. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(90 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(-50 - 4 * math.cos(sine / 45))),.3)
  7459. end
  7460. cef.Enabled = false
  7461. coroutine.resume(coroutine.create(function()
  7462. for i = 0,49 do
  7463. swait()
  7464. rval = rval + 100
  7465. obj2.CFrame = obj2.CFrame*CFrame.Angles(math.rad(rval),math.rad(rval),math.rad(-rval))
  7466. obj2.Transparency = obj2.Transparency + 0.02
  7467. obj2.Size = obj2.Size + vt(5,5,5)
  7468. obj1.Transparency = obj1.Transparency + 0.02
  7469. obj1.Size = obj1.Size + vt(0,-0.5,-0.5)
  7470. end
  7471. obj1:Destroy()
  7472. obj2:Destroy()
  7473. cfor:Destroy()
  7474. end))
  7475. local lva = 1
  7476. local ica = 0
  7477. local cent = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  7478. CFuncs["Sound"].Create("rbxassetid://1177785010", cent, 10, 1)
  7479. cent.CFrame = root.CFrame*CFrame.Angles(0,0,0) + root.CFrame.lookVector*5
  7480. sphere2(2,"Add",cent.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("Pastel light blue"),BrickColor.new("Pastel light blue").Color)
  7481. sphere2(3,"Add",cent.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("Pink"),BrickColor.new("Pink").Color)
  7482.  
  7483. local a = Instance.new("Part",workspace)
  7484. a.Name = "Direction"
  7485. a.Anchored = true
  7486. a.BrickColor = bc("Bright red")
  7487. a.Material = "Neon"
  7488. a.Transparency = 1
  7489. a.CanCollide = false
  7490. local ray = Ray.new(
  7491. cent.CFrame.p, -- origin
  7492. (mouse.Hit.p - cent.CFrame.p).unit * 500 -- direction
  7493. )
  7494. local ignore = cent
  7495. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7496. a.BottomSurface = 10
  7497. a.TopSurface = 10
  7498. local distance = (cent.CFrame.p - position).magnitude
  7499. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7500. a.CFrame = CFrame.new(cent.CFrame.p, position) * CFrame.new(0, 0, 0)
  7501. cent.CFrame = a.CFrame
  7502. a:Destroy()
  7503. local bv = Instance.new("BodyVelocity")
  7504. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7505. bv.velocity = cent.CFrame.lookVector*0
  7506. bv.Parent = cent
  7507. game:GetService("Debris"):AddItem(cent, 20)
  7508. local hitted = false
  7509. coroutine.resume(coroutine.create(function()
  7510. while true do
  7511. swait(1)
  7512. if hitted == false and cent.Parent ~= nil then
  7513. ica = ica + 4*lva
  7514. lva = lva + 0.1
  7515. bv.velocity = cent.CFrame.lookVector*ica
  7516. sphere2(3,"Add",cent.CFrame,vt(5,5,5),-0.05,-0.05,-0.05,BrickColor.new("Pastel light blue"))
  7517. sphere2(5,"Add",cent.CFrame*CFrame.Angles(0,0,math.rad(ica))*CFrame.new(0,-5,0),vt(4,4,4),-0.04,-0.04,-0.04,BrickColor.new("Pink"))
  7518. sphere2(5,"Add",cent.CFrame*CFrame.Angles(0,0,math.rad(ica))*CFrame.new(0,5,0),vt(4,4,4),-0.04,-0.04,-0.04,BrickColor.new("Pastel light blue"))
  7519. elseif hitted == true or cent.Parent == nil then
  7520. break
  7521. end
  7522. end
  7523. end))
  7524. coroutine.resume(coroutine.create(function()
  7525. cent.Touched:connect(function(hit)
  7526. if hitted == false and hit.Parent ~= char then
  7527. hitted = true
  7528. cent.Anchored = true
  7529. CFuncs["Sound"].Create("rbxassetid://782353443", cent, 10, 1)
  7530. CFuncs["Sound"].Create("rbxassetid://1368637781", cent, 8, 1)
  7531. CFuncs["Sound"].Create("rbxassetid://763717897", cent, 5, 1)
  7532. CFuncs["EchoSound"].Create("rbxassetid://1177785010", cent, 8, 1.1,0,10,0.15,0.5,1)
  7533. MagniDamage(cent, 50, 50,99999, 0, "Normal")
  7534. sphere2(2,"Add",cent.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Pastel light blue"),BrickColor.new("Pastel light blue").Color)
  7535. sphere2(3,"Add",cent.CFrame,vt(1,1,1),1.2,1.2,1.2,BrickColor.new("Pink"),BrickColor.new("Pink").Color)
  7536. for i = 0, 19 do
  7537. slash(math.random(10,50)/10,5,true,"Round","Add","Out",cent.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,400)/250,BrickColor.new("Pink"))
  7538. slash(math.random(10,50)/10,5,true,"Round","Add","Out",cent.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,300)/250,BrickColor.new("Pastel light blue"))
  7539. end
  7540. coroutine.resume(coroutine.create(function()
  7541. local eff = Instance.new("ParticleEmitter",cent)
  7542. eff.Texture = "rbxassetid://2344870656"
  7543. eff.LightEmission = 1
  7544. eff.Color = ColorSequence.new(BrickColor.new("Pastel light blue").Color)
  7545. eff.Rate = 10000000
  7546. eff.Enabled = true
  7547. --eff.EmissionDirection = "Front"
  7548. eff.Lifetime = NumberRange.new(5)
  7549. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,75,0),NumberSequenceKeypoint.new(0.1,40,0),NumberSequenceKeypoint.new(0.8,60,0),NumberSequenceKeypoint.new(1,80,0)})
  7550. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  7551. eff.Speed = NumberRange.new(350)
  7552. eff.Drag = 5
  7553. eff.Rotation = NumberRange.new(-500,500)
  7554. eff.SpreadAngle = Vector2.new(0,900)
  7555. eff.RotSpeed = NumberRange.new(-500,500)
  7556. local eff2 = eff:Clone()
  7557. eff2.Parent = cent
  7558. eff2.Speed = NumberRange.new(250)
  7559. eff2.Color = ColorSequence.new(BrickColor.new("Pink").Color)
  7560. wait(0.2)
  7561. eff.Enabled = false
  7562. eff2.Enabled = false
  7563. end))
  7564. end
  7565. end)
  7566. end))
  7567. attack = false
  7568. hum.WalkSpeed = storehumanoidWS
  7569. end
  7570.  
  7571. function dragin()
  7572. local targetted = nil
  7573. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  7574. targetted = mouse.Target.Parent
  7575. end
  7576. if targetted ~= nil then
  7577. RootPart.CFrame = FaceMouse()[1]
  7578. attack = true
  7579. hum.WalkSpeed = 0
  7580. for x = 0, 1 do
  7581. for i = 0,1,0.5 do
  7582. swait()
  7583. 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)
  7584. 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)
  7585. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  7586. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  7587. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  7588. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  7589. end
  7590. for i = 0,1,0.5 do
  7591. swait()
  7592. 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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  7593. 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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  7594. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
  7595. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  7596. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  7597. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  7598. end
  7599. for i = 0,1,0.5 do
  7600. swait()
  7601. 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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  7602. 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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  7603. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
  7604. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  7605. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  7606. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  7607. end
  7608. for i = 0,1,0.5 do
  7609. swait()
  7610. 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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  7611. 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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
  7612. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  7613. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
  7614. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  7615. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
  7616. end
  7617. end
  7618. coroutine.resume(coroutine.create(function()
  7619. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
  7620. CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
  7621. CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
  7622. end))
  7623. local A1 = Instance.new("Attachment",targetted.Head)
  7624. local A2 = Instance.new("Attachment",sorb)
  7625. local Beem = Instance.new("Beam",tors)
  7626. Beem.Attachment0 = A1
  7627. Beem.Attachment1 = A2
  7628. Beem.Texture = "rbxassetid://897585362"
  7629. Beem.LightEmission = 0.75
  7630. Beem.FaceCamera = true
  7631. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
  7632. Beem.Width0 = 1
  7633. Beem.Width1 = 1
  7634. Beem.TextureMode = "Wrap"
  7635. Beem.TextureLength = 1
  7636. Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7637. sphere2(3,"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(0,0,0),0.15,0.15,0.15,MAINRUINCOLOR)
  7638. sphere2(3,"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(0,0,0),0.2,0.2,0.2,MAINRUINCOLOR)
  7639. for x = 0, 24 do
  7640. local rsiz = math.random(5,15)
  7641. sphereMK(math.random(1,5),0.25,"Add",targetted.Head.CFrame*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,0)
  7642. end
  7643.  
  7644. CFuncs["EchoSound"].Create("rbxassetid://131228548", char, 7, 1,0,10,0.15,0.5,1)
  7645. CFuncs["EchoSound"].Create("rbxassetid://131228548", root, 60, 1,0,10,0.15,0.5,1)
  7646. local radm = math.random(1,2)
  7647. if radm == 1 then
  7648. bosschatfunc("GET OVER HERE!",MAINRUINCOLOR.Color,1)
  7649. elseif radm == 2 then
  7650. bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
  7651. end
  7652. for i = 0,3,0.1 do
  7653. swait()
  7654. coroutine.resume(coroutine.create(function()
  7655. local rsiz = math.random(5,15)
  7656. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  7657. sphereMK(math.random(1,5),0.01,"Add",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))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  7658. end))
  7659. sphere2(8,"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.01,0.01,MAINRUINCOLOR)
  7660. 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)
  7661. 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)
  7662. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  7663. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
  7664. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(50)),.6)
  7665. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.6)
  7666. end
  7667. CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
  7668. CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
  7669. local vel = Instance.new("BodyPosition", targetted.Head)
  7670. vel.P = 12500
  7671. vel.D = 1000
  7672. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7673. vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
  7674. for i = 0,4,0.1 do
  7675. swait()
  7676. coroutine.resume(coroutine.create(function()
  7677. local rsiz = math.random(5,15)
  7678. targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
  7679. sphereMK(math.random(1,5),0.01,"Add",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))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  7680. end))
  7681. sphere2(8,"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.01,0.01,MAINRUINCOLOR)
  7682. 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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  7683. 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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.2)
  7684. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  7685. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
  7686. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-50)),.2)
  7687. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.2)
  7688. end
  7689. local visibility = 0
  7690. coroutine.resume(coroutine.create(function()
  7691. for i = 0, 49 do
  7692. swait()
  7693. visibility = visibility + 0.02
  7694. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
  7695. end
  7696. Beem:Destroy()
  7697. A1:Destroy()
  7698. A2:Destroy()
  7699. end))
  7700. game:GetService("Debris"):AddItem(vel,0.75)
  7701. attack = false
  7702. hum.WalkSpeed = storehumanoidWS
  7703.  
  7704. end
  7705. end
  7706.  
  7707. function DualGleamingBeam()
  7708. attack = true
  7709. hum.WalkSpeed = 0
  7710. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
  7711. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
  7712. local radm = math.random(1,3)
  7713. if radm == 1 then
  7714. bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
  7715. elseif radm == 2 then
  7716. bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
  7717. elseif radm == 3 then
  7718. bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
  7719. end
  7720. local rsiz = math.random(1,15)
  7721. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7722. hb.Anchored = true
  7723. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7724. local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  7725. hb2.Anchored = true
  7726. hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7727. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  7728. CFuncs["Sound"].Create("rbxassetid://138677306", sorb, 8,0.25)
  7729. for i = 0, 14, 0.1 do
  7730. swait()
  7731. rsiz = math.random(5,15)
  7732. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7733. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7734. 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)
  7735. 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)
  7736. sphereMK(math.random(3,9),0.25,"Add",sorb2.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,BrickColor.new("Lime green"),-15)
  7737. sphere2(5,"Add",sorb2.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,BrickColor.new("Lime green"))
  7738. 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)
  7739. 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)
  7740. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.3 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  7741. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
  7742. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
  7743. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
  7744. end
  7745. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  7746. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  7747. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
  7748. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
  7749. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  7750. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
  7751. 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)
  7752. 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)
  7753. 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)
  7754. sphere2(3,"Add",hb2.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,BrickColor.new("Lime green"))
  7755. sphere2(6,"Add",hb2.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,BrickColor.new("Lime green"))
  7756. sphere2(9,"Add",hb2.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,BrickColor.new("Lime green"))
  7757. for i = 0, 49 do
  7758. local rsiza = math.random(1,15)
  7759. sphereMK(math.random(1,5),0.75,"Add",sorb.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)
  7760. 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)
  7761. end
  7762. local a = Instance.new("Part",Character)
  7763. a.Name = "Direction"
  7764. a.Anchored = true
  7765. a.BrickColor = MAINRUINCOLOR
  7766. a.Material = "Neon"
  7767. a.Transparency = 0
  7768. a.Shape = "Cylinder"
  7769. a.CanCollide = false
  7770. local a2 = Instance.new("Part",Character)
  7771. a2.Name = "Direction"
  7772. a2.Anchored = true
  7773. a2.BrickColor = MAINRUINCOLOR
  7774. a2.Material = "Neon"
  7775. a2.Transparency = 0
  7776. a2.Shape = "Cylinder"
  7777. a2.CanCollide = false
  7778. local ba = Instance.new("Part",Character)
  7779. ba.Name = "HitDirect"
  7780. ba.Anchored = true
  7781. ba.BrickColor = MAINRUINCOLOR
  7782. ba.Material = "Neon"
  7783. ba.Transparency = 1
  7784. ba.CanCollide = false
  7785. local ba2 = Instance.new("Part",Character)
  7786. ba2.Name = "HitDirect"
  7787. ba2.Anchored = true
  7788. ba2.BrickColor = MAINRUINCOLOR
  7789. ba2.Material = "Neon"
  7790. ba2.Transparency = 1
  7791. ba2.CanCollide = false
  7792. local ray = Ray.new(
  7793. hb.CFrame.p, -- origin
  7794. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7795. )
  7796. local ignore = Character
  7797. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7798. local ray2 = Ray.new(
  7799. hb2.CFrame.p, -- origin
  7800. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  7801. )
  7802. local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  7803. local distance2 = (hb2.CFrame.p - position).magnitude
  7804.  
  7805. a.BottomSurface = 10
  7806. a.TopSurface = 10
  7807. local distance = (hb.CFrame.p - position).magnitude
  7808. a.Size = Vector3.new(distance, 1, 1)
  7809. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7810. a2.BottomSurface = 10
  7811. a2.TopSurface = 10
  7812. a2.Size = Vector3.new(distance2, 1, 1)
  7813. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  7814. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7815. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  7816. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7817. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  7818. local msh = Instance.new("SpecialMesh",a)
  7819. msh.MeshType = "Cylinder"
  7820. msh.Scale = vt(1,4,4)
  7821. local msh2 = Instance.new("SpecialMesh",a2)
  7822. msh2.MeshType = "Cylinder"
  7823. msh2.Scale = vt(1,4,4)
  7824. game:GetService("Debris"):AddItem(a, 30)
  7825. game:GetService("Debris"):AddItem(a2, 30)
  7826. game:GetService("Debris"):AddItem(ba, 30)
  7827. game:GetService("Debris"):AddItem(ba2, 30)
  7828. for i = 0, 20, 0.1 do
  7829. swait()
  7830. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  7831. hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
  7832. ray = Ray.new(
  7833. hb.CFrame.p, -- origin
  7834. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  7835. )
  7836. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7837. distance = (hb.CFrame.p - position).magnitude
  7838. ray2 = Ray.new(
  7839. hb2.CFrame.p, -- origin
  7840. (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
  7841. )
  7842. hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
  7843. distance2 = (hb2.CFrame.p - position).magnitude
  7844. a.Size = Vector3.new(distance, 1, 1)
  7845. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  7846. a2.Size = Vector3.new(distance2, 1, 1)
  7847. a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
  7848. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  7849. ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
  7850. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  7851. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  7852. rsiz = math.random(5,25)
  7853. MagniDamage(ba, 12, 800,18000, 0, "Normal")
  7854. MagniDamage(ba2, 12, 800,18000, 0, "Normal")
  7855. for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
  7856. if v:FindFirstChild('Head') then
  7857. dmg(v)
  7858. end
  7859. end
  7860. coroutine.resume(coroutine.create(function()
  7861. local bx = Instance.new("Part",Character)
  7862. bx.Name = "Location"
  7863. bx.Anchored = true
  7864. bx.BrickColor = MAINRUINCOLOR
  7865. bx.Material = "Neon"
  7866. bx.Transparency = 1
  7867. bx.CanCollide = false
  7868. bx.Position = ba.Position
  7869. sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
  7870. wait(math.random(1,2))
  7871. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
  7872. sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
  7873. sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
  7874. CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
  7875. CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
  7876. MagniDamage(bx, 20, 80000,900000, 0, "Normal")
  7877. for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
  7878. if v:FindFirstChild('Head') then
  7879. dmg(v)
  7880. end
  7881. end
  7882. wait(5)
  7883. bx:Destroy()
  7884. end))
  7885. 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,BrickColor.new("Lime green"),0)
  7886. sphereMK(math.random(4,8),0.25,"Add",hb2.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,BrickColor.new("Lime green"),0)
  7887. for c = 0, 2 do
  7888. 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,BrickColor.new("Lime green"),2)
  7889. end
  7890. 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)
  7891. 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)
  7892. sphere2(5,"Add",hb2.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)
  7893. 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)
  7894. 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)
  7895. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.3 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.05)
  7896. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
  7897. RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
  7898. LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
  7899. end
  7900. for i = 0, 1 do
  7901. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  7902. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  7903. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  7904. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  7905. end
  7906. MagniDamage(ba, 30, 8000,180000, 0, "Normal")
  7907. MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
  7908. for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
  7909. if v:FindFirstChild('Head') then
  7910. dmg(v)
  7911. end
  7912. end
  7913. 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)
  7914. 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)
  7915. 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)
  7916. 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)
  7917. 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)
  7918. 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)
  7919. sphere2(3,"Add",hb2.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,bc("Lime green"))
  7920. sphere2(6,"Add",hb2.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,bc("Lime green"))
  7921. sphere2(9,"Add",hb2.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,bc("Lime green"))
  7922. for i = 0, 49 do
  7923. local rsiza = math.random(1,15)
  7924. sphereMK(math.random(1,5),0.75,"Add",sorb.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,bc("Lime green"),0)
  7925. 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,bc("Lime green"),0)
  7926. end
  7927. for i = 0, 49 do
  7928. rsiz = math.random(1,8)
  7929. 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,bc("Lime green"),2)
  7930. end
  7931. coroutine.resume(coroutine.create(function()
  7932. for i = 0, 99 do
  7933. swait()
  7934. a.Transparency = a.Transparency + 0.01
  7935. a2.Transparency = a2.Transparency + 0.01
  7936. end
  7937. a:Destroy()
  7938. ba:Destroy()
  7939. a2:Destroy()
  7940. ba2:Destroy()
  7941. end))
  7942. hum.WalkSpeed = storehumanoidWS
  7943. hb:Destroy()
  7944. hb2:Destroy()
  7945. attack = false
  7946. end
  7947.  
  7948. function Counter()
  7949. hum.WalkSpeed = 0
  7950. CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
  7951. CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
  7952. bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
  7953. attack = true
  7954. for i = 0,1,0.1 do
  7955. swait()
  7956. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  7957. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  7958. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  7959. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  7960. 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(-1.5),math.rad(0),math.rad(10)),.3)
  7961. 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)),.3)
  7962. end
  7963. CameraEnshaking(3,4)
  7964. MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
  7965. sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR)
  7966. sphere2(1.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR)
  7967. sphere2(20,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR)
  7968. coroutine.resume(coroutine.create(function()
  7969. local eff = Instance.new("ParticleEmitter",root)
  7970. eff.Texture = "rbxassetid://363275192"
  7971. eff.LightEmission = 0.95
  7972. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  7973. eff.Rate = 10000
  7974. eff.Lifetime = NumberRange.new(1)
  7975. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  7976. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  7977. eff.Speed = NumberRange.new(10,125)
  7978. eff.Drag = 5
  7979. eff.Rotation = NumberRange.new(-500,500)
  7980. eff.VelocitySpread = 9000
  7981. eff.RotSpeed = NumberRange.new(-50,50)
  7982. local eff2 = eff:Clone()
  7983. eff2.Parent = root
  7984. eff2.Texture = "rbxassetid://284205403"
  7985. eff2.Rate = 10000
  7986. eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,30,0),NumberSequenceKeypoint.new(1,0,0)})
  7987. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  7988. eff2.Drag = 5
  7989. eff2.Speed = NumberRange.new(10,50)
  7990. eff2.Rotation = NumberRange.new(-500,500)
  7991. eff2.VelocitySpread = 9000
  7992. wait(0.25)
  7993. eff2.Enabled = false
  7994. eff.Enabled = false
  7995. wait(3)
  7996. eff2:Destroy()
  7997. eff:Destroy()
  7998. end))
  7999. for i = 0, 9 do
  8000. sphere2(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))),vt(1,1,1),-0.0025,1,-0.0025,MAINRUINCOLOR)
  8001. end
  8002. for i = 0, 24 do
  8003. local rsiz = math.random(5,20)
  8004. sphereMK(math.random(2,10),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0)
  8005. end
  8006. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  8007. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  8008. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  8009. for i = 0,2,0.1 do
  8010. swait()
  8011. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  8012. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  8013. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  8014. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  8015. 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(-1.5),math.rad(0),math.rad(-10)),.3)
  8016. 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)),.3)
  8017. end
  8018. hum.WalkSpeed = storehumanoidWS
  8019. attack = false
  8020. end
  8021.  
  8022. function CyberSlash()
  8023. local posit = -2
  8024. attack = true
  8025. hum.WalkSpeed = 5
  8026. CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
  8027. local radm = math.random(1,3)
  8028. if radm == 1 then
  8029. bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
  8030. elseif radm == 2 then
  8031. bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
  8032. elseif radm == 3 then
  8033. bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
  8034. end
  8035. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  8036. for i = 0,2,0.1 do
  8037. swait()
  8038. sphere2(7,"Add",sorb2.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,MAINRUINCOLOR)
  8039. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  8040. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  8041. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  8042. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  8043. 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)
  8044. 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)
  8045. end
  8046. for i = 0, 2 do
  8047. CameraEnshaking(1,2)
  8048. local hite = Instance.new("Part", char)
  8049. hite.Anchored = true
  8050. hite.CanCollide = false
  8051. hite.FormFactor = 3
  8052. hite.Name = "Ring"
  8053. hite.Material = "Neon"
  8054. hite.Size = Vector3.new(1, 1, 1)
  8055. hite.Transparency = 1
  8056. hite.TopSurface = 0
  8057. hite.BottomSurface = 0
  8058. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  8059. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  8060. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  8061. coroutine.resume(coroutine.create(function()
  8062. for i = 0, 1 do
  8063. swait()
  8064. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  8065. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  8066. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  8067. end
  8068. end))
  8069. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(2,2,2),0.5,-0.01,-0.01,MAINRUINCOLOR)
  8070. MagniDamage(hite, 3, 30,40, 0, "Normal")
  8071. game:GetService("Debris"):AddItem(hite, 5)
  8072. posit = posit + 2
  8073. end
  8074. for i = 0,1,0.1 do
  8075. swait()
  8076. sphere2(7,"Add",sorb2.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,MAINRUINCOLOR)
  8077. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  8078. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  8079. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  8080. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  8081. 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(-20),math.rad(0)),.5)
  8082. 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(0)),.5)
  8083. end
  8084. for i = 0,1,0.1 do
  8085. swait()
  8086. sphere2(7,"Add",sorb2.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,MAINRUINCOLOR)
  8087. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  8088. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  8089. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  8090. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  8091. 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(-20),math.rad(30)),.5)
  8092. 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(40)),.5)
  8093. end
  8094. posit = -6
  8095. for i = 0, 6 do
  8096. CameraEnshaking(1,3)
  8097. local hite = Instance.new("Part", char)
  8098. hite.Anchored = true
  8099. hite.CanCollide = false
  8100. hite.FormFactor = 3
  8101. hite.Name = "Ring"
  8102. hite.Material = "Neon"
  8103. hite.Size = Vector3.new(1, 1, 1)
  8104. hite.Transparency = 1
  8105. hite.TopSurface = 0
  8106. hite.BottomSurface = 0
  8107. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  8108. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  8109. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  8110. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),-0.01,1,-0.01,MAINRUINCOLOR)
  8111. coroutine.resume(coroutine.create(function()
  8112. for i = 0, 2 do
  8113. swait()
  8114. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  8115. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  8116. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  8117. end
  8118. end))
  8119. MagniDamage(hite, 5, 40,70, 0, "Normal")
  8120. game:GetService("Debris"):AddItem(hite, 5)
  8121. posit = posit + 2
  8122. end
  8123. for i = 0,1,0.1 do
  8124. swait()
  8125. sphere2(7,"Add",sorb2.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,MAINRUINCOLOR)
  8126. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  8127. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  8128. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  8129. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  8130. 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(10),math.rad(-10)),.5)
  8131. 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(60)),.5)
  8132. end
  8133. hum.WalkSpeed = storehumanoidWS
  8134. attack = false
  8135. end
  8136.  
  8137. function Beams()
  8138. attack = true
  8139. hum.WalkSpeed = 0
  8140. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  8141. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  8142. bosschatfunc("You're gone..",MAINRUINCOLOR.Color,2)
  8143. local keptcolor = MAINRUINCOLOR
  8144. coroutine.resume(coroutine.create(function()
  8145. for i = 0, 96 do
  8146. swait(5)
  8147. local orb = Instance.new("Part", char)
  8148. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  8149. orb.BrickColor = keptcolor
  8150. orb.CanCollide = false
  8151. orb.FormFactor = 3
  8152. orb.Name = "Ring"
  8153. orb.Material = "Neon"
  8154. orb.Size = Vector3.new(1, 1, 1)
  8155. orb.Transparency = 0
  8156. orb.TopSurface = 0
  8157. orb.BottomSurface = 0
  8158. orb.Anchored = true
  8159. local orbm = Instance.new("SpecialMesh", orb)
  8160. orbm.MeshType = "Sphere"
  8161. orbm.Name = "SizeMesh"
  8162. orbm.Scale = vt(1.25,1.25,1.25)
  8163. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  8164. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  8165. coroutine.resume(coroutine.create(function()
  8166. wait(0.5)
  8167. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  8168. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  8169. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  8170. orb.Transparency = 1
  8171. local a = Instance.new("Part",char)
  8172. a.Name = "Direction"
  8173. a.Anchored = true
  8174. a.BrickColor = keptcolor
  8175. a.Material = "Neon"
  8176. a.Transparency = 0.25
  8177. a.Shape = "Cylinder"
  8178. local ht = Instance.new("Part",char)
  8179. ht.Name = "DirectionHit"
  8180. ht.Anchored = true
  8181. ht.BrickColor = keptcolor
  8182. ht.CanCollide = false
  8183. ht.Transparency = 1
  8184. ht.Size = vt(0.1,0.1,0.1)
  8185. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  8186. a.CanCollide = false
  8187. local ray = Ray.new(
  8188. orb.CFrame.p, -- origin
  8189. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  8190. )
  8191. local ignore = char
  8192. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8193. a.BottomSurface = 10
  8194. a.TopSurface = 10
  8195. local distance = (orb.CFrame.p - position).magnitude
  8196. a.Size = Vector3.new(distance,1,1)
  8197. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  8198. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  8199. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  8200. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  8201. MagniDamage(ht, 9, 30,60, 0, "Normal")
  8202. coroutine.resume(coroutine.create(function()
  8203. local eff = Instance.new("ParticleEmitter",ht)
  8204. eff.Texture = "rbxassetid://284205403"
  8205. eff.LightEmission = 0.95
  8206. eff.Color = ColorSequence.new(keptcolor.Color)
  8207. eff.Rate = 500
  8208. eff.Lifetime = NumberRange.new(0.5)
  8209. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  8210. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8211. eff.Speed = NumberRange.new(10,50)
  8212. eff.Drag = 5
  8213. eff.Rotation = NumberRange.new(-500,500)
  8214. eff.VelocitySpread = 9000
  8215. eff.RotSpeed = NumberRange.new(-500,500)
  8216. wait(0.25)
  8217. eff.Enabled = false
  8218. end))
  8219. for i = 0, 4 do
  8220. 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)
  8221. 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)
  8222. local rsiz = math.random(10,30)
  8223. 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)
  8224. end
  8225. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  8226. local msh = Instance.new("SpecialMesh",a)
  8227. msh.MeshType = "Cylinder"
  8228. msh.Scale = vt(1,1,1)
  8229. for i = 0, 49 do
  8230. swait()
  8231. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  8232. a.Transparency = a.Transparency + 0.02
  8233. end
  8234. orb:Destroy()
  8235. a:Destroy()
  8236. ht:Destroy()
  8237. end))
  8238. game:GetService("Debris"):AddItem(orb, 10)
  8239. end
  8240. end))
  8241. for i = 0,6,0.1 do
  8242. swait()
  8243. 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)
  8244. 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)
  8245. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  8246. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  8247. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  8248. 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)
  8249. 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)
  8250. end
  8251. hum.WalkSpeed = storehumanoidWS
  8252. attack = false
  8253. end
  8254.  
  8255. function hugg()
  8256. attack = true
  8257. hum.WalkSpeed = 5
  8258. local rsiz = math.random(5,15)
  8259. for i = 0, 2, 0.1 do
  8260. swait()
  8261. 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)
  8262. 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)
  8263. 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)
  8264. 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)
  8265. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  8266. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  8267. end
  8268. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  8269. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8270. hb.Anchored = true
  8271. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8272. local huggedperson = nil
  8273. local act = false
  8274. local alreadydid = false
  8275. for i = 0, 3, 0.1 do
  8276. swait()
  8277. if act == false then
  8278. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  8279. if v:FindFirstChild('Head') then
  8280. if alreadydid == false then
  8281. huggedperson = v
  8282. hum.WalkSpeed = 0
  8283. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  8284. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  8285. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  8286. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  8287. local radm = math.random(1,3)
  8288. if radm == 1 then
  8289. bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
  8290. elseif radm == 2 then
  8291. bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
  8292. elseif radm == 3 then
  8293. bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
  8294. end
  8295. root.Anchored = true
  8296. coroutine.resume(coroutine.create(function()
  8297. huggedperson.Humanoid.WalkSpeed = 0
  8298. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  8299. end))
  8300. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  8301. alreadydid = true
  8302. act = true
  8303. print(huggedperson.Name)
  8304. end
  8305. end
  8306. end
  8307. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  8308. 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)
  8309. elseif act == true then
  8310. coroutine.resume(coroutine.create(function()
  8311. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8312. end))
  8313. rsiz = math.random(5,15)
  8314. 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)
  8315. 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)
  8316. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8317. end
  8318. 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)
  8319. 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)
  8320. 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)
  8321. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8322. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8323. end
  8324. hb:Destroy()
  8325. if act == true then
  8326. for x = 0, 2 do
  8327. for i = 0, 2, 0.1 do
  8328. swait()
  8329. coroutine.resume(coroutine.create(function()
  8330. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8331. end))
  8332. rsiz = math.random(5,15)
  8333. 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)
  8334. 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)
  8335. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8336. 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)
  8337. 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)
  8338. 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)
  8339. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8340. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8341. end
  8342. for i = 0, 2, 0.1 do
  8343. swait()
  8344. coroutine.resume(coroutine.create(function()
  8345. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  8346. end))
  8347. rsiz = math.random(5,15)
  8348. 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)
  8349. 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)
  8350. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  8351. 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)
  8352. 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)
  8353. 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)
  8354. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  8355. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  8356. end
  8357. end
  8358. end
  8359. hum.WalkSpeed = storehumanoidWS
  8360. root.Anchored = false
  8361. if act == true then
  8362. coroutine.resume(coroutine.create(function()
  8363. huggedperson.Humanoid.WalkSpeed = 16
  8364. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  8365. end))
  8366. end
  8367. hum.WalkSpeed = storehumanoidWS
  8368. attack = false
  8369. end
  8370.  
  8371. function shytaunty()
  8372. attack = true
  8373. hum.WalkSpeed = 0
  8374. bosschatfunc("*Blushes and giggles*",MAINRUINCOLOR.Color,1)
  8375. CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
  8376. local blush = Instance.new("Decal",hed)
  8377. blush.Texture = "rbxassetid://898404027"
  8378. blush.Face = "Front"
  8379. for i = 0, 13, 0.1 do
  8380. swait()
  8381. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1)
  8382. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1)
  8383. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1)
  8384. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2 - 2.5 * math.cos(sine / 28)),math.rad(20 + 5 * math.cos(sine / 62)),math.rad(35 + 5 * math.cos(sine / 59))),.1)
  8385. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 1 * math.cos(sine / 53)),math.rad(0),math.rad(-60 + 2 * math.cos(sine / 37))),.1)
  8386. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(26 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(59 - 3 * math.cos(sine / 57) )),.1)
  8387. end
  8388. coroutine.resume(coroutine.create(function()
  8389. for i = 0, 49 do
  8390. swait()
  8391. blush.Transparency = blush.Transparency + 0.02
  8392. end
  8393. blush:Destroy()
  8394. end))
  8395. hum.WalkSpeed = storehumanoidWS
  8396. attack = false
  8397. end
  8398.  
  8399. function smiter()
  8400. local targetted = nil
  8401. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8402. targetted = mouse.Target.Parent
  8403. end
  8404. if targetted ~= nil then
  8405. RootPart.CFrame = FaceMouse()[1]
  8406. attack = true
  8407. local radm = math.random(1,3)
  8408. if radm == 1 then
  8409. bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
  8410. elseif radm == 2 then
  8411. bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
  8412. elseif radm == 3 then
  8413. bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
  8414. end
  8415. hum.WalkSpeed = 0
  8416. coroutine.resume(coroutine.create(function()
  8417. CFuncs["Sound"].Create("rbxassetid://2556945475", char, 1.5, 1)
  8418. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  8419. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  8420. local vel = Instance.new("BodyPosition", targetted.Head)
  8421. vel.P = 12500
  8422. vel.D = 1000
  8423. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  8424. vel.position = targetted.Head.CFrame.p
  8425. end))
  8426. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  8427. CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
  8428. CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
  8429. for i = 0,4,0.1 do
  8430. swait()
  8431. sphere2(4,"Add",sorb2.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.125,-0.01,MAINRUINCOLOR)
  8432. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8433. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8434. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  8435. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8436. 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)
  8437. 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)
  8438. end
  8439. coroutine.resume(coroutine.create(function()
  8440. CameraEnshaking(6,5)
  8441. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  8442. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  8443. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  8444. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  8445. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  8446. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  8447. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  8448. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  8449. coroutine.resume(coroutine.create(function()
  8450. local eff = Instance.new("ParticleEmitter",targetted.Head)
  8451. eff.Texture = "rbxassetid://2273224484"
  8452. eff.LightEmission = 1
  8453. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  8454. eff.Rate = 500000
  8455. eff.Lifetime = NumberRange.new(0.5,2)
  8456. 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)})
  8457. 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)})
  8458. eff.Speed = NumberRange.new(20,250)
  8459. eff.Drag = 5
  8460. eff.Rotation = NumberRange.new(-500,500)
  8461. eff.VelocitySpread = 9000
  8462. eff.RotSpeed = NumberRange.new(-50,50)
  8463. wait(0.25)
  8464. eff.Enabled = false
  8465. local eff = Instance.new("ParticleEmitter",targetted.Head)
  8466. eff.Texture = "rbxassetid://363275192"
  8467. eff.LightEmission = 0.95
  8468. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8469. eff.Rate = 10000
  8470. eff.Lifetime = NumberRange.new(1.5)
  8471. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  8472. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8473. eff.Speed = NumberRange.new(25,150)
  8474. eff.Drag = 5
  8475. eff.Rotation = NumberRange.new(-500,500)
  8476. eff.VelocitySpread = 9000
  8477. eff.RotSpeed = NumberRange.new(-50,50)
  8478. local eff2 = eff:Clone()
  8479. eff2.Parent = targetted.Head
  8480. eff2.Texture = "rbxassetid://284205403"
  8481. eff2.Rate = 10000
  8482. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8483. eff2.Drag = 5
  8484. eff2.Rotation = NumberRange.new(-500,500)
  8485. eff2.VelocitySpread = 9000
  8486. wait(0.5)
  8487. eff2.Enabled = false
  8488. eff.Enabled = false
  8489. end))
  8490. for i = 0, 9 do
  8491. sphere2(3,"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(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR)
  8492. end
  8493. for i = 0, 49 do
  8494. local rsiz = math.random(10,50)
  8495. sphereMK(math.random(1,4),1,"Add",targetted.Head.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,MAINRUINCOLOR,0)
  8496. end
  8497. game:GetService("Debris"):AddItem(vel,1)
  8498. dmg(targetted)
  8499. end))
  8500. for i = 0,1,0.1 do
  8501. swait()
  8502. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  8503. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  8504. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  8505. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8506. 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)
  8507. 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)
  8508. end
  8509. attack = false
  8510. hum.WalkSpeed = storehumanoidWS
  8511. end
  8512.  
  8513. function SpeedDrop()
  8514. attack = true
  8515. hum.WalkSpeed = 0
  8516. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  8517. local poste = 3
  8518. local rotation = 0
  8519. local rate = 0
  8520. bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
  8521. for i = 0, 124 do
  8522. swait()
  8523. rotation = rotation + rate
  8524. poste = poste + 0.1
  8525. rate = rate + 0.1
  8526. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  8527. sphere2(8,"Add",root.CFrame*CFrame.new(math.random(-20,20),-3,math.random(-20,20)),vt(1,1,1),-0.01,0.5,-0.01,MAINRUINCOLOR)
  8528. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  8529. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  8530. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  8531. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  8532. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5)
  8533. 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)),.5)
  8534. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  8535. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  8536. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  8537. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  8538. end
  8539. CameraEnshaking(3,7)
  8540. bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
  8541. local loc = Instance.new("Part", char)
  8542. loc.BrickColor = MAINRUINCOLOR
  8543. loc.CanCollide = false
  8544. loc.FormFactor = 3
  8545. loc.Name = "Ring"
  8546. loc.Material = "Neon"
  8547. loc.Size = Vector3.new(1, 1, 1)
  8548. loc.Transparency = 1
  8549. loc.TopSurface = 0
  8550. loc.BottomSurface = 0
  8551. loc.Anchored = true
  8552. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  8553. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  8554. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  8555. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  8556. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  8557. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  8558. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  8559. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  8560. coroutine.resume(coroutine.create(function()
  8561. local eff = Instance.new("ParticleEmitter",loc)
  8562. eff.Texture = "rbxassetid://363275192"
  8563. eff.LightEmission = 0.95
  8564. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8565. eff.Rate = 10000
  8566. eff.Lifetime = NumberRange.new(1)
  8567. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  8568. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8569. eff.Speed = NumberRange.new(100,500)
  8570. eff.Drag = 5
  8571. eff.Rotation = NumberRange.new(-500,500)
  8572. eff.VelocitySpread = 9000
  8573. eff.RotSpeed = NumberRange.new(-50,50)
  8574. wait(0.5)
  8575. eff.Enabled = false
  8576. end))
  8577. for i = 0, 49 do
  8578. sphere2(math.random(100,300)/100,"Add",loc.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  8579. end
  8580. for i = 0, 9 do
  8581. sphere2(3,"Add",loc.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),0),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  8582. end
  8583. game:GetService("Debris"):AddItem(loc, 5)
  8584. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  8585. hum.WalkSpeed = storehumanoidWS
  8586. attack = false
  8587. end
  8588.  
  8589. function HolyBarrier()
  8590. attack = true
  8591. shielding = true
  8592. for i = 0, 2, 0.1 do
  8593. swait()
  8594. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  8595. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  8596. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
  8597. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  8598. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  8599. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  8600. end
  8601. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  8602. stash = Instance.new("Model",workspace)
  8603. local barrier = Instance.new("Part",stash)
  8604. barrier.Anchored = true
  8605. barrier.CanCollide = false
  8606. barrier.Size = Vector3.new(20,20,20)
  8607. barrier.CFrame = root.CFrame
  8608. barrier.Transparency = 0.6
  8609. barrier.BrickColor = MAINRUINCOLOR
  8610. barrier.Material = Enum.Material.Neon
  8611. barrier.Shape = Enum.PartType.Ball
  8612. barrier.CFrame = root.CFrame
  8613. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  8614. Torso.Anchored = true
  8615. for i=1,50 do
  8616. local p = Instance.new("Part",stash)
  8617. p.Anchored = true
  8618. p.Transparency = 1
  8619. p.Size = Vector3.new(11,11,11)
  8620. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  8621. end
  8622. repeat
  8623. swait(5)
  8624. 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("White"),0)
  8625. until shielding == false
  8626. stash:Remove()
  8627. Torso.Anchored = false
  8628. shielding = false
  8629. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  8630. attack = false
  8631. end
  8632.  
  8633. function Judgement()
  8634. attack = true
  8635. judgement = true
  8636. hum.WalkSpeed = 0
  8637. local p = Instance.new("Part",root)
  8638. p.Anchored = true
  8639. p.CanCollide = false
  8640. p.BrickColor = MAINRUINCOLOR
  8641. p.Material = Enum.Material.Neon
  8642. p.Size = Vector3.new(1,1,1)
  8643. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  8644. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  8645. local m = Instance.new("SpecialMesh",p)
  8646. m.MeshType = "Cylinder"
  8647. m.Scale = Vector3.new(2000,2,2)
  8648. local targ = Instance.new("Part",root)
  8649. targ.Anchored = true
  8650. targ.Transparency = 1
  8651. targ.CanCollide = false
  8652. targ.Size = Vector3.new(1,1,1)
  8653. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  8654. local s = Instance.new("Sound",targ)
  8655. s.SoundId = "https://roblox.com/asset/?id=115327352"
  8656. s.Looped = true
  8657. s.Pitch = 1.2
  8658. s.Volume = 3
  8659. spawn(function()
  8660. swait(15)
  8661. s:Play()
  8662. end)
  8663. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  8664. for i = 1,15 do
  8665. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  8666. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  8667. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  8668. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  8669. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  8670. 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)
  8671. 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)
  8672. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  8673. 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)
  8674. m.Scale = m.Scale+Vector3.new(0,1,1)
  8675. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  8676. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  8677. swait()
  8678. end
  8679. 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)
  8680. repeat
  8681. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  8682. 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)
  8683. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  8684. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  8685. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  8686. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  8687. swait()
  8688. until judgement == false
  8689. for i =1,15 do
  8690. m.Scale = m.Scale-Vector3.new(1,1,1)
  8691. p.Transparency = i / 15
  8692. s.Pitch = s.Pitch - 0.4
  8693. swait()
  8694. end
  8695. p:Destroy()
  8696. hum.WalkSpeed = storehumanoidWS
  8697. attack = false
  8698. end
  8699.  
  8700. function vistaunty()
  8701. attack = false
  8702. hum.WalkSpeed = 0
  8703. local rd = math.random(1,5)
  8704. if rd == 1 then
  8705. chatfunc("You're familiar with this, arent you?",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  8706. elseif rd == 2 then
  8707. chatfunc("Dance to the beat. If you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  8708. elseif rd == 3 then
  8709. chatfunc("I'm just bored. Don't mess with me.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  8710. elseif rd == 4 then
  8711. chatfunc("Ready to dance? If not, come back if you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  8712. elseif rd == 5 then
  8713. chatfunc("Ehh, not really into something right now.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  8714. end
  8715. for i = 0, 8, 0.1 do
  8716. swait()
  8717. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4)
  8718. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4)
  8719. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(60)),.4)
  8720. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-60)),.4)
  8721. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(90 + 5 * math.cos(sine / 34) + kan.PlaybackLoudness/7.5),math.rad(0),math.rad(60 - 2 * math.cos(sine / 38))),.4)
  8722. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4)
  8723. end
  8724. hum.WalkSpeed = storehumanoidWS
  8725. attack = false
  8726. end
  8727.  
  8728. function BinaryBLINK()
  8729. for i = 0, 9 do
  8730. sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
  8731. end
  8732. sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  8733. coroutine.resume(coroutine.create(function()
  8734. local eff = Instance.new("ParticleEmitter",root)
  8735. eff.Texture = "rbxassetid://1175838406"
  8736. eff.LightEmission = 0.95
  8737. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8738. eff.Rate = 10000
  8739. eff.Lifetime = NumberRange.new(1)
  8740. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,4,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  8741. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8742. eff.Speed = NumberRange.new(30,160)
  8743. eff.Drag = 5
  8744. eff.Rotation = NumberRange.new(-500,500)
  8745. eff.VelocitySpread = 100000
  8746. wait(0.25)
  8747. eff.Enabled = false
  8748. wait(4)
  8749. eff:Destroy()
  8750. end))
  8751. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  8752. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  8753. CameraEnshaking(2,10)
  8754. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 10)) do
  8755. if v:FindFirstChild('Head') then
  8756. dmg(v)
  8757. end
  8758. end
  8759. for i = 0, 9 do
  8760. sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
  8761. end
  8762. sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  8763. end
  8764.  
  8765. function AZUREFINALE()
  8766. attack = false
  8767. duringend = true
  8768. hum.WalkSpeed = 0
  8769. CFuncs["Sound"].Create("rbxassetid://1117054464", char, 7.5, 0.75)
  8770. CFuncs["LongSound"].Create("rbxassetid://1042700914", char, 3.5, 0.05)
  8771. local hite = Instance.new("Part", char)
  8772. hite.Anchored = true
  8773. hite.CanCollide = false
  8774. hite.FormFactor = 3
  8775. hite.Name = "Ring"
  8776. hite.Material = "Neon"
  8777. hite.Size = Vector3.new(1, 1, 1)
  8778. hite.Transparency = 0
  8779. hite.TopSurface = 0
  8780. hite.BottomSurface = 0
  8781. hite.BrickColor = MAINRUINCOLOR
  8782. local orbm = Instance.new("SpecialMesh", hite)
  8783. orbm.MeshType = "Sphere"
  8784. orbm.Name = "SizeMesh"
  8785. orbm.Scale = vt(0,0,0)
  8786. hite.CFrame = root.CFrame*CFrame.new(0,200,0)
  8787. for i = 0,70,0.1 do
  8788. swait()
  8789. orbm.Scale = orbm.Scale + vt(0.5,0.5,0.5)
  8790. rsiz = math.random(10,45)
  8791. kan.Volume = kan.Volume + 0.01
  8792. kan.Pitch = kan.Pitch - 0.00135
  8793. sphereMK(math.random(1,4),2.5,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/2,rsiz/2,rsiz/2,0,MAINRUINCOLOR,-300)
  8794. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,1.5,10),-0.01,10,-0.01,MAINRUINCOLOR)
  8795. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8796. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8797. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  8798. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8799. 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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8800. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  8801. end
  8802. kan.Pitch = 0.1
  8803. hite.Transparency = 1
  8804. for i = 0,2 do
  8805. CFuncs["LongSound"].Create("rbxassetid://324849898", char, 10,0.9)
  8806. end
  8807. CFuncs["LongSound"].Create("rbxassetid://1117054464", char, 5, 0.75)
  8808. sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),-5,-5,-5,MAINRUINCOLOR)
  8809. sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),2,2,2,MAINRUINCOLOR)
  8810. sphere2(2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),3,3,3,MAINRUINCOLOR)
  8811. coroutine.resume(coroutine.create(function()
  8812. local eff = Instance.new("ParticleEmitter",hite)
  8813. eff.Texture = "rbxassetid://284205403"
  8814. eff.LightEmission = 0.95
  8815. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8816. eff.Rate = 10000
  8817. eff.Lifetime = NumberRange.new(5)
  8818. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,0,0)})
  8819. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8820. eff.Speed = NumberRange.new(600,1250)
  8821. eff.Drag = 5
  8822. eff.Rotation = NumberRange.new(-500,500)
  8823. eff.VelocitySpread = 9000
  8824. eff.RotSpeed = NumberRange.new(-500,500)
  8825. wait(1)
  8826. eff.Enabled = false
  8827. end))
  8828. for i = 0,5,0.1 do
  8829. swait()
  8830. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8831. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8832. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  8833. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8834. 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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8835. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  8836. end
  8837. local adsc = 0
  8838. local radiatezone = 0
  8839. for i = 0,20,0.1 do
  8840. swait()
  8841. adsc = adsc + 0.025
  8842. radiatezone = radiatezone + 1.25
  8843. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  8844. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  8845. if v:FindFirstChild('Head') then
  8846. dmg(v)
  8847. end
  8848. end
  8849. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8850. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8851. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  8852. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8853. 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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8854. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  8855. end
  8856. for i = 0,2 do
  8857. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.9)
  8858. end
  8859. for i = 0,40,0.1 do
  8860. swait()
  8861. adsc = adsc + 0.05
  8862. radiatezone = radiatezone + 2.5
  8863. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  8864. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  8865. if v:FindFirstChild('Head') then
  8866. dmg(v)
  8867. end
  8868. end
  8869. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8870. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8871. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  8872. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8873. 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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8874. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  8875. end
  8876. for i = 0,4 do
  8877. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.75)
  8878. CFuncs["LongSound"].Create("rbxassetid://923073285", char, 1.25,0.75)
  8879. end
  8880. for i = 0,80,0.1 do
  8881. swait()
  8882. adsc = adsc + 0.075
  8883. radiatezone = radiatezone + 3.75
  8884. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  8885. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  8886. if v:FindFirstChild('Head') then
  8887. dmg(v)
  8888. end
  8889. end
  8890. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  8891. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  8892. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  8893. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  8894. 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),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  8895. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  8896. end
  8897. hite:Destroy()
  8898. duringend = false
  8899. hum.WalkSpeed = storehumanoidWS
  8900. attack = false
  8901. end
  8902.  
  8903. function WarpedDash()
  8904. attack = true
  8905. hum.WalkSpeed = 0
  8906. hum.JumpPower = 0
  8907. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  8908. local poste = 3
  8909. local rotation = 0
  8910. local rate = 0
  8911. for i = 0, 124 do
  8912. swait()
  8913. rotation = rotation + rate
  8914. poste = poste + 0.1
  8915. rate = rate + 0.1
  8916. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  8917. sphere2(8,"Add",root.CFrame*CFrame.new(math.random(-20,20),-3,math.random(-20,20)),vt(1,1,1),-0.01,0.5,-0.01,MAINRUINCOLOR)
  8918. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  8919. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  8920. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  8921. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  8922. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5)
  8923. 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)),.5)
  8924. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  8925. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  8926. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  8927. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  8928. end
  8929. CameraEnshaking(3,7)
  8930. local loc = Instance.new("Part", char)
  8931. loc.BrickColor = MAINRUINCOLOR
  8932. loc.CanCollide = false
  8933. loc.FormFactor = 3
  8934. loc.Name = "Ring"
  8935. loc.Material = "Neon"
  8936. loc.Size = Vector3.new(1, 1, 1)
  8937. loc.Transparency = 1
  8938. loc.TopSurface = 0
  8939. loc.BottomSurface = 0
  8940. loc.Anchored = true
  8941. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  8942. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  8943. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  8944. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  8945. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  8946. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  8947. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  8948. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  8949. coroutine.resume(coroutine.create(function()
  8950. local eff = Instance.new("ParticleEmitter",loc)
  8951. eff.Texture = "rbxassetid://363275192"
  8952. eff.LightEmission = 0.95
  8953. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  8954. eff.Rate = 10000
  8955. eff.Lifetime = NumberRange.new(1)
  8956. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  8957. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  8958. eff.Speed = NumberRange.new(100,500)
  8959. eff.Drag = 5
  8960. eff.Rotation = NumberRange.new(-500,500)
  8961. eff.VelocitySpread = 9000
  8962. eff.RotSpeed = NumberRange.new(-50,50)
  8963. wait(0.5)
  8964. eff.Enabled = false
  8965. end))
  8966. for i = 0, 49 do
  8967. sphere2(math.random(100,300)/100,"Add",loc.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  8968. end
  8969. for i = 0, 9 do
  8970. sphere2(3,"Add",loc.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),0),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  8971. end
  8972. game:GetService("Debris"):AddItem(loc, 5)
  8973. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  8974. hum.WalkSpeed = storehumanoidWS
  8975. hum.JumpPower = 50
  8976. attack = false
  8977. end
  8978.  
  8979. function Suicidal()
  8980. hum.WalkSpeed = 0
  8981. attack = true
  8982. local keptcolor = MAINRUINCOLOR
  8983. local locat = Instance.new("Part", char)
  8984. locat.CanCollide = false
  8985. locat.FormFactor = 3
  8986. locat.Name = "Ring"
  8987. locat.Material = "Neon"
  8988. locat.Size = Vector3.new(1, 1, 1)
  8989. locat.Transparency = 1
  8990. locat.TopSurface = 0
  8991. locat.BottomSurface = 0
  8992. locat.Anchored = true
  8993. locat.CFrame = root.CFrame*CFrame.new(0,-3,0)
  8994. local poste = 0
  8995. local rotation = 0
  8996. local upperpos = 0
  8997. local rate = 0
  8998. local x = locat
  8999. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5, 1)
  9000. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5, 1)
  9001. sphere2(8,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor)
  9002. CameraEnshaking(2,5)
  9003. for i = 0, 49 do
  9004. swait()
  9005. rotation = rotation + 5
  9006. poste = poste + 1
  9007. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  9008. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  9009. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  9010. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1)
  9011. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  9012. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  9013. end
  9014. for i = 0, 49 do
  9015. swait()
  9016. rotation = rotation + 5
  9017. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  9018. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  9019. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  9020. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1)
  9021. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  9022. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  9023. end
  9024. ModeOfGlitch = 432
  9025. storehumanoidWS = 300
  9026. hum.WalkSpeed = 16
  9027. rainbowmode = false
  9028. chaosmode = false
  9029. RecolorTextAndRename("???",BrickColor.new("Black").Color,BrickColor.new("Really red").Color,"Antique")
  9030. newThemeCust("rbxassetid://1891600872",0,0.9,1.5)
  9031. MAINRUINCOLOR = BrickColor.new("Really red")
  9032. keptcolor = MAINRUINCOLOR
  9033. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  9034. CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1)
  9035. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.75)
  9036. sphere2(1,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,BrickColor.new("Navy blue"))
  9037. attack = false
  9038. hum.WalkSpeed = storehumanoidWS
  9039. for i = 0, 49 do
  9040. local rsiz = math.random(150,450)
  9041. end
  9042. coroutine.resume(coroutine.create(function()
  9043. local eff = Instance.new("ParticleEmitter",x)
  9044. eff.Texture = "rbxassetid://284205403"
  9045. eff.LightEmission = 0.95
  9046. eff.Color = ColorSequence.new(BrickColor.new("Navy blue").Color)
  9047. eff.Rate = 50000
  9048. eff.Lifetime = NumberRange.new(2.5)
  9049. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,75,0),NumberSequenceKeypoint.new(1,0.1,0)})
  9050. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  9051. eff.Speed = NumberRange.new(250,1000)
  9052. eff.Drag = 5
  9053. eff.Rotation = NumberRange.new(-500,500)
  9054. eff.VelocitySpread = 9000
  9055. eff.RotSpeed = NumberRange.new(-500,500)
  9056. wait(0.5)
  9057. eff.Enabled = false
  9058. end))
  9059. --[[for i, v in pairs(FindNearestHead(Torso.CFrame.p, 2000000000)) do
  9060. if v:FindFirstChild('Head') then
  9061. dmg(v)
  9062. end
  9063. end]]--
  9064. CameraEnshaking(8,10)
  9065. for i = 0, 99 do
  9066. swait()
  9067. rotation = rotation + 5
  9068. poste = poste + 1
  9069. upperpos = upperpos + rate
  9070. rate = rate + 0.1
  9071. end
  9072. x:Destroy()
  9073. end
  9074.  
  9075. function Technobeam()
  9076. attack = true
  9077. hum.WalkSpeed = 3.01
  9078. for i = 0, 4, 0.1 do
  9079. swait()
  9080. hum.CameraOffset = Vector3.new(0, -0.1 + 0.1 * Cos(sine / 20), 0)
  9081. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(40)), 0.2)
  9082. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2)
  9083. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2)
  9084. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2)
  9085. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2)
  9086. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2)
  9087. end
  9088. for i = 0, 2, 0.1 do
  9089. swait()
  9090. hum.CameraOffset = Vector3.new(0, 0.3 + 0.1 * Cos(sine / 20), 0)
  9091. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(40)), 0.2)
  9092. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20), Rad(0), Rad(-40)), 0.2)
  9093. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(-25)), 0.2)
  9094. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(25)), 0.2)
  9095. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2)
  9096. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2)
  9097. end
  9098. Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, MAINRUINCOLOR, "Sphere")
  9099. Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, MAINRUINCOLOR, "Sphere")
  9100. Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, MAINRUINCOLOR, "Sphere")
  9101. Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, MAINRUINCOLOR, "Sphere")
  9102. CameraEnshaking(4, 5)
  9103. Cso("206049428", char, 10, 1)
  9104. for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do
  9105. if v:FindFirstChild("Head") then
  9106. Eviscerate(v)
  9107. end
  9108. end
  9109. for i = 0, 2, 0.1 do
  9110. swait()
  9111. hum.CameraOffset = Vector3.new(0, -0.2 + 0.1 * Cos(sine / 20), 0)
  9112. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(40)), 0.2)
  9113. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2)
  9114. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2)
  9115. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2)
  9116. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2)
  9117. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2)
  9118. end
  9119. hum.WalkSpeed = storehumanoidWS
  9120. attack = false
  9121. end
  9122.  
  9123. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  9124. local orb = Instance.new("Part", char)
  9125. orb.Anchored = true
  9126. orb.BrickColor = color
  9127. orb.CanCollide = false
  9128. orb.FormFactor = 3
  9129. orb.Name = "Ring"
  9130. orb.Material = "Neon"
  9131. orb.Size = Vector3.new(1, 1, 1)
  9132. orb.Transparency = 0
  9133. orb.TopSurface = 0
  9134. orb.BottomSurface = 0
  9135. local orbm = Instance.new("SpecialMesh", orb)
  9136. orbm.MeshType = "Sphere"
  9137. orb.CFrame = positted
  9138. orbm.Name = "SizeMesh"
  9139. orbm.Scale = vt(1,1,1)
  9140. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  9141. Sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  9142. --[[for i = 0, 2 do
  9143. 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)
  9144. end]]--
  9145. coroutine.resume(coroutine.create(function()
  9146. wait(timer)
  9147. CameraEnshaking(3,ShakePower)
  9148. orb.Transparency = 1
  9149. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  9150. Sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  9151. --[[for i = 0, 4 do
  9152. 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)
  9153. end]]--
  9154. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  9155. wait(3)
  9156. orb:Destroy()
  9157. end))
  9158. end
  9159.  
  9160. function GalacticalBeams()
  9161. attack = true
  9162. local keptcolor = MAINRUINCOLOR
  9163. coroutine.resume(coroutine.create(function()
  9164. for i = 0, 0 do
  9165. swait(10)
  9166. local orb = Instance.new("Part", char)
  9167. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  9168. orb.BrickColor = keptcolor
  9169. orb.CanCollide = false
  9170. orb.FormFactor = 3
  9171. orb.Name = "Ring"
  9172. orb.Material = "Neon"
  9173. orb.Size = Vector3.new(1, 1, 1)
  9174. orb.Transparency = 1
  9175. orb.TopSurface = 0
  9176. orb.BottomSurface = 0
  9177. orb.Anchored = true
  9178. local orbm = Instance.new("SpecialMesh", orb)
  9179. orbm.MeshType = "Sphere"
  9180. orbm.Name = "SizeMesh"
  9181. orbm.Scale = vt(1.25,1.25,1.25)
  9182. orb.CFrame = root.CFrame*CFrame.new(math.random(-25,25),math.random(75,150),math.random(-25,25))
  9183. coroutine.resume(coroutine.create(function()
  9184. orb.Transparency = 1
  9185. local a = Instance.new("Part",char)
  9186. a.Name = "Direction"
  9187. a.Anchored = true
  9188. a.BrickColor = keptcolor
  9189. a.Material = "Neon"
  9190. a.Transparency = 1
  9191. a.Shape = "Cylinder"
  9192. local x = Instance.new("Part",char)
  9193. x.Name = "Direction"
  9194. x.Anchored = true
  9195. x.BrickColor = keptcolor
  9196. x.Material = "Neon"
  9197. x.Transparency = 1
  9198. x.Shape = "Cylinder"
  9199. local ht = Instance.new("Part",char)
  9200. ht.Name = "DirectionHit"
  9201. ht.Anchored = true
  9202. ht.BrickColor = keptcolor
  9203. ht.CanCollide = false
  9204. ht.Transparency = 1
  9205. ht.Size = vt(0.1,0.1,0.1)
  9206. a.CanCollide = false
  9207. local ray = Ray.new(
  9208. orb.CFrame.p, -- origin
  9209. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  9210. )
  9211. local ignore = char
  9212. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  9213. a.BottomSurface = 10
  9214. a.TopSurface = 10
  9215. local distance = (orb.CFrame.p - position).magnitude
  9216. a.Size = Vector3.new(distance,1,1)
  9217. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  9218. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  9219. x.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  9220. local poste = 0
  9221. local rotation = 0
  9222. CFuncs["Sound"].Create("rbxassetid://153092315", char, 1.5, 1)
  9223. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(5,5,5),2.5,2.5,0,keptcolor)
  9224. CameraEnshaking(2,2)
  9225. for i = 0, 49 do
  9226. swait()
  9227. rotation = rotation + 5
  9228. poste = poste + 1
  9229. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9230. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9231. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9232. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9233. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9234. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9235. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9236. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9237. end
  9238. local A1 = Instance.new("Attachment",x)
  9239. local A2 = Instance.new("Attachment",ht)
  9240. local Beem = Instance.new("Beam",ht)
  9241. Beem.Attachment0 = A1
  9242. Beem.Attachment1 = A2
  9243. Beem.LightEmission = 1
  9244. Beem.FaceCamera = true
  9245. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, 0),NumberSequenceKeypoint.new(0.975, 0),NumberSequenceKeypoint.new(1, 1)})
  9246. Beem.Width0 = 125
  9247. Beem.Width1 = 125
  9248. Beem.Texture = "rbxassetid://1134824633"
  9249. Beem.TextureMode = "Wrap"
  9250. Beem.TextureLength = 200
  9251. Beem.TextureSpeed = 1.5
  9252. Beem.Color = ColorSequence.new(keptcolor.Color)
  9253. CameraEnshaking(3,6)
  9254. CFuncs["Sound"].Create("rbxassetid://294188875", char, 2, 1.5)
  9255. a.Transparency = 0.25
  9256. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  9257. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  9258. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  9259. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  9260. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  9261. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  9262. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  9263. local eff = Instance.new("ParticleEmitter",ht)
  9264. eff.Texture = "rbxassetid://284205403"
  9265. eff.LightEmission = 0.95
  9266. eff.Color = ColorSequence.new(keptcolor.Color)
  9267. eff.Rate = 500
  9268. eff.Lifetime = NumberRange.new(1)
  9269. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.2,35,0),NumberSequenceKeypoint.new(1,0.1,0)})
  9270. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  9271. eff.Speed = NumberRange.new(80,500)
  9272. eff.Drag = 5
  9273. eff.Rotation = NumberRange.new(-500,500)
  9274. eff.VelocitySpread = 9000
  9275. eff.RotSpeed = NumberRange.new(-500,500)
  9276. for i = 0, 24 do
  9277. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  9278. local rsiz = math.random(10,50)
  9279. sphereMK(math.random(3,6),1.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)
  9280. end
  9281. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  9282. local msh = Instance.new("SpecialMesh",a)
  9283. msh.MeshType = "Cylinder"
  9284. msh.Scale = vt(1,15,15)
  9285. for i = 0, 49 do
  9286. swait()
  9287. CameraEnshaking(1,4)
  9288. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  9289. rotation = rotation + 5
  9290. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  9291. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  9292. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(25,25,5),1,1,0,keptcolor)
  9293. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  9294. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  9295. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  9296. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  9297. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  9298. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  9299. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  9300. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  9301. for i = 0, 2 do
  9302. local rsiz = math.random(50,250)
  9303. sphereMK(math.random(3,6),math.random(2,4),"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)
  9304. end
  9305. msh.Scale = msh.Scale + vt(0,0.25,0.25)
  9306. end
  9307. eff.Enabled = false
  9308. local visibility = 0
  9309. for i = 0, 49 do
  9310. swait()
  9311. visibility = visibility + 0.02
  9312. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, visibility),NumberSequenceKeypoint.new(0.975, visibility),NumberSequenceKeypoint.new(1, 1)})
  9313. rotation = rotation + 5
  9314. poste = poste - 1
  9315. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9316. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9317. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9318. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9319. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9320. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9321. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9322. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  9323. msh.Scale = msh.Scale + vt(0,-0.5,-0.5)
  9324. a.Transparency = a.Transparency + 0.02
  9325. end
  9326. wait(1)
  9327. orb:Destroy()
  9328. a:Destroy()
  9329. ht:Destroy()
  9330. end))
  9331. game:GetService("Debris"):AddItem(orb, 10)
  9332. end
  9333. end))
  9334. hum.WalkSpeed = storehumanoidWS
  9335. attack = false
  9336. end
  9337. end
  9338. -------------------------------------
  9339.  
  9340. Humanoid.Animator.Parent = nil
  9341.  
  9342. -------------------------------------
  9343.  
  9344. local attacktype = 1
  9345. mouse.Button1Down:connect(function()
  9346. if attack == false and attacktype == 1 then
  9347. attacktype = 2
  9348. attackone()
  9349. elseif attack == false and attacktype == 2 then
  9350. attacktype = 3
  9351. attacktwo()
  9352. elseif attack == false and attacktype == 3 then
  9353. attacktype = 1
  9354. attackthree()
  9355. elseif attack == false and attacktype == 4 then
  9356. attacktype = 1
  9357. --attackfour()
  9358. end
  9359. end)
  9360. mouse.KeyDown:connect(function(k)
  9361. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  9362. --normalmog() ---Disabled due to crashing... only in VSB
  9363. ModeOfGlitch = 1
  9364. storehumanoidWS = 17
  9365. hum.WalkSpeed = 17
  9366. rainbowmode = false
  9367. chaosmode = false
  9368. newTheme("rbxassetid://614032233",48.6,1,1.25)
  9369. RecolorTextAndRename("MAYHEM X",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  9370. MAINRUINCOLOR = BrickColor.new("Crimson")
  9371. bosschatfunc("I'm bored...",MAINRUINCOLOR.Color,1)
  9372. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  9373. end
  9374. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  9375. ModeOfGlitch = 2
  9376. storehumanoidWS = 25
  9377. hum.WalkSpeed = 25
  9378. rainbowmode = false
  9379. chaosmode = false
  9380. RecolorTextAndRename("PURITY",Color3.new(0,1,1),Color3.new(0,1,1),"Code")
  9381. newTheme("rbxassetid://1539245059",0,1,1)
  9382. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  9383. RecolorThing(MAINRUINCOLOR,BrickColor.new("Toothpaste"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9384. end
  9385. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  9386. ModeOfGlitch = 3
  9387. storehumanoidWS = 25
  9388. hum.WalkSpeed = 25
  9389. rainbowmode = false
  9390. chaosmode = false
  9391. RecolorTextAndRename("CORRUPTION X",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  9392. newTheme("rbxassetid://1232367576",58.15,0.98,1.25)
  9393. MAINRUINCOLOR = BrickColor.new("Royal purple")
  9394. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lilac"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9395. end
  9396. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  9397. ModeOfGlitch = 4
  9398. storehumanoidWS = 20
  9399. hum.WalkSpeed = 20
  9400. rainbowmode = false
  9401. chaosmode = true
  9402. RecolorTextAndRename("CHAOS X",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  9403. newTheme("rbxassetid://2525700576",0,1.01,1.25)
  9404. MAINRUINCOLOR = BrickColor.new("Really black")
  9405. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9406. end
  9407. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  9408. ModeOfGlitch = 5
  9409. storehumanoidWS = 55
  9410. hum.WalkSpeed = 55
  9411. rainbowmode = true
  9412. chaosmode = false
  9413. RecolorTextAndRename("Galactic",Color3.new(0,1,4),Color3.new(1,1,5),"Arcade")
  9414. newTheme("rbxassetid://1747430851",0,1,2)
  9415. MAINRUINCOLOR = BrickColor.new("Baby blue")
  9416. RecolorThing(MAINRUINCOLOR,BrickColor.new("Baby blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9417. end
  9418. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  9419. ModeOfGlitch = 6
  9420. storehumanoidWS = 100
  9421. hum.WalkSpeed = 100
  9422. rainbowmode = false
  9423. chaosmode = false
  9424. RecolorTextAndRename("Solar X",Color3.new(0.75,0.9,1),BrickColor.new("Bright yellow").Color,"Arcade")
  9425. newTheme("rbxassetid://1276814239",0,1,1)
  9426. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  9427. RecolorThing(MAINRUINCOLOR,BrickColor.new("Deep orange"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9428. end
  9429. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  9430. ModeOfGlitch = 8
  9431. storehumanoidWS = 140
  9432. hum.WalkSpeed = 140
  9433. rainbowmode = false
  9434. chaosmode = false
  9435. RecolorTextAndRename("DESTINY X",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
  9436. newTheme("rbxassetid://2018331827",0,1.01,1.25)
  9437. MAINRUINCOLOR = BrickColor.new("Alder")
  9438. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9439. end
  9440. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  9441. ModeOfGlitch = 9
  9442. storehumanoidWS = 150
  9443. hum.WalkSpeed = 150
  9444. rainbowmode = false
  9445. chaosmode = false
  9446. RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"Arcade")
  9447. newTheme("rbxassetid://661079869",0,1,2)
  9448. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  9449. RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright yellow"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9450. end
  9451. if k == "h" and attack == false and ModeOfGlitch ~= 10 then
  9452. ModeOfGlitch = 10
  9453. storehumanoidWS = 75
  9454. hum.WalkSpeed = 75
  9455. rainbowmode = false
  9456. chaosmode = false
  9457. RecolorTextAndRename("NUCLEAR X",Color3.new(0,6,0),BrickColor.new("Dark green").Color,"Code")
  9458. newTheme("rbxassetid://1812212957",0,1,1)
  9459. MAINRUINCOLOR = BrickColor.new("Dark green")
  9460. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9461. end
  9462. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 83 then
  9463. ModeOfGlitch = 83
  9464. storehumanoidWS = 180
  9465. hum.WalkSpeed = 180
  9466. rainbowmode = false
  9467. chaosmode = false
  9468. RecolorTextAndRename("TWISTED X!",BrickColor.new("Black").Color,BrickColor.new("Really black").Color,"Antique")
  9469. newTheme("rbxassetid://2072448553",0,1,1)
  9470. MAINRUINCOLOR = BrickColor.new("Really black")
  9471. warnedpeople("AHAHAHAHAH!","Arcade",BrickColor.new("Dark stone gry").Color,MAINRUINCOLOR.Color)
  9472. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,BrickColor.new("Really black"),0,BrickColor.new("Really black"),true,true)
  9473. end
  9474. if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 95 then
  9475. ModeOfGlitch = 95
  9476. storehumanoidWS = 180
  9477. hum.WalkSpeed = 180
  9478. rainbowmode = false
  9479. chaosmode = false
  9480. RecolorTextAndRename("STRESSED X",BrickColor.new("Crimson").Color,BrickColor.new("Really black").Color,"Antique")
  9481. newTheme("rbxassetid://1301290348",0,1,1)
  9482. warnedpeople("AAAAAAAAAHHH!!!","Arcade",BrickColor.new("Really black").Color,BrickColor.new("Crimson").Color)
  9483. MAINRUINCOLOR = BrickColor.new("Really black")
  9484. RecolorThing(MAINRUINCOLOR,BrickColor.new("Crimson"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9485. end
  9486. if k == "n" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 150 then
  9487. ModeOfGlitch = 150
  9488. storehumanoidWS = 180
  9489. hum.WalkSpeed = 180
  9490. rainbowmode = false
  9491. chaosmode = false
  9492. RecolorTextAndRename("SOLITUDE X",BrickColor.new("Black").Color,BrickColor.new("Really black").Color,"Antique")
  9493. newTheme("rbxassetid://1960307734",0,1,1)
  9494. MAINRUINCOLOR = BrickColor.new("Really black")
  9495. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9496. end
  9497. if k == "n" and attack == false and ModeOfGlitch == 9 and ModeOfGlitch ~= 500 then
  9498. ModeOfGlitch = 500
  9499. storehumanoidWS = 180
  9500. hum.WalkSpeed = 180
  9501. rainbowmode = false
  9502. chaosmode = false
  9503. RecolorTextAndRename("Pandora",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  9504. newTheme("rbxassetid://1382488262",0,1,1)
  9505. MAINRUINCOLOR = BrickColor.new("Lilac")
  9506. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lilac"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9507. end
  9508. if k == "m" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 652 then
  9509. ModeOfGlitch = 652
  9510. storehumanoidWS = 180
  9511. hum.WalkSpeed = 180
  9512. rainbowmode = true
  9513. chaosmode = false
  9514. RecolorTextAndRename("FROZEN X",BrickColor.new("Baby blue").Color,BrickColor.new("Cyan").Color,"Antique")
  9515. newTheme("rbxassetid://603565821",0,1,1)
  9516. MAINRUINCOLOR = BrickColor.new("Baby blue")
  9517. RecolorThing(MAINRUINCOLOR,BrickColor.new("Cyan"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9518. end
  9519. if k == "m" and attack == false and ModeOfGlitch == 150 and ModeOfGlitch ~= 999 then
  9520. ModeOfGlitch = 999
  9521. storehumanoidWS = 180
  9522. hum.WalkSpeed = 180
  9523. rainbowmode = false
  9524. chaosmode = false
  9525. newTheme("rbxassetid://1681272944",0,1,1)
  9526. chatfunc("Riddle me this..",MAINRUINCOLOR.Color,"Inverted","Arcade",2)
  9527. wait(5)
  9528. chatfunc("Riddle me that..",MAINRUINCOLOR.Color,"Inverted","Arcade",2)
  9529. wait(2)
  9530. chatfunc("Whose afraid of the big black?",MAINRUINCOLOR.Color,"Inverted","Arcade",2)
  9531. wait(2)
  9532. RecolorTextAndRename("THE BIG BLACK",BrickColor.new("Dark stone grey").Color,BrickColor.new("Really black").Color,"Antique")
  9533. MAINRUINCOLOR = BrickColor.new("Dark stone grey")
  9534. warnedpeople("BIG BLACK","Arcade",BrickColor.new("Dark stone grey").Color,BrickColor.new("Really black").Color)
  9535. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,0,BrickColor.new("Really black"),0,BrickColor.new("Really black"),true,true)
  9536. end
  9537. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  9538. ModeOfGlitch = 8889
  9539. storehumanoidWS = 180
  9540. hum.WalkSpeed = 180
  9541. rainbowmode = false
  9542. chaosmode = false
  9543. RecolorTextAndRename("Calamity",BrickColor.new("Pink").Color,BrickColor.new("Royal purple").Color,"Antique")
  9544. newTheme("rbxassetid://1027314531",0,1,1)
  9545. bosschatfunc("I suggest you stop now.",MAINRUINCOLOR.Color,1)
  9546. MAINRUINCOLOR = BrickColor.new("Royal purple")
  9547. RecolorThing(MAINRUINCOLOR,BrickColor.new("Lilac"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9548. end
  9549. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  9550. ModeOfGlitch = 55469696922
  9551. storehumanoidWS = 275
  9552. hum.WalkSpeed = 275
  9553. rainbowmode = false
  9554. chaosmode = false
  9555. RecolorTextAndRename("NANO",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  9556. newTheme("rbxassetid://2234873423",0,1,1)
  9557. bosschatfunc("hehe~~",MAINRUINCOLOR.Color,1)
  9558. MAINRUINCOLOR = BrickColor.new("Pink")
  9559. RecolorThing(MAINRUINCOLOR,BrickColor.new("Hot pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9560. end
  9561. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  9562. ModeOfGlitch = 4367677813
  9563. storehumanoidWS = 225
  9564. hum.WalkSpeed = 225
  9565. rainbowmode = false
  9566. chaosmode = false
  9567. RecolorTextAndRename("CLARITY X",Color3.new(0,1,1),BrickColor.new("Electric blue").Color,"Arcade")
  9568. newTheme("rbxassetid://2482117221",0,1,1)
  9569. MAINRUINCOLOR = BrickColor.new("Electric blue")
  9570. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9571. end
  9572. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  9573. ModeOfGlitch = 9999999921111
  9574. storehumanoidWS = 300
  9575. hum.WalkSpeed = 300
  9576. rainbowmode = false
  9577. chaosmode = false
  9578. RecolorTextAndRename("OMEGA X",BrickColor.new("Black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  9579. newTheme("rbxassetid://643309199",0,1,1)
  9580. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  9581. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9582. end
  9583. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  9584. ModeOfGlitch = 999999999556
  9585. storehumanoidWS = 500
  9586. hum.WalkSpeed = 500
  9587. rainbowmode = false
  9588. chaosmode = false
  9589. RecolorTextAndRename("CRAZED",Color3.new(0,0,0),Color3.new(0,0,7),"Code")
  9590. newTheme("rbxassetid://1422695084",0,1,1)
  9591. MAINRUINCOLOR = BrickColor.new("Black")
  9592. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9593. end
  9594. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  9595. ModeOfGlitch = 1264532489
  9596. storehumanoidWS = 250
  9597. hum.WalkSpeed = 250
  9598. rainbowmode = false
  9599. chaosmode = false
  9600. RecolorTextAndRename("STARLIGHT X",Color3.new(0.5,0,1),BrickColor.new("Royal purple").Color,"Arcade")
  9601. newTheme("rbxassetid://614032233",0,1,1)
  9602. MAINRUINCOLOR = BrickColor.new("Royal purple")
  9603. RecolorThing(MAINRUINCOLOR,BrickColor.new("Royal purple"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9604. end
  9605. if k == "n" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 7536 then
  9606. ModeOfGlitch = 7536
  9607. storehumanoidWS = 250
  9608. hum.WalkSpeed = 250
  9609. rainbowmode = false
  9610. chaosmode = false
  9611. RecolorTextAndRename("Lunar X",Color3.new(0,0,0),Color3.new(0.35,0,1),"Arcade")
  9612. newTheme("rbxassetid://561833161",0,1,1)
  9613. MAINRUINCOLOR = BrickColor.new("Really blue")
  9614. RecolorThing(MAINRUINCOLOR,BrickColor.new("Toothpaste"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9615. end
  9616. if k == "n" and attack == false and ModeOfGlitch == 10 and ModeOfGlitch ~= 666 then
  9617. ModeOfGlitch = 666
  9618. storehumanoidWS = 75
  9619. hum.WalkSpeed = 75
  9620. rainbowmode = false
  9621. chaosmode = false
  9622. RecolorTextAndRename("Virus X",Color3.new(0.5,2,0.1),BrickColor.new("Lime green").Color,"Arcade")
  9623. newTheme("rbxassetid://1296208488",0,1,1)
  9624. MAINRUINCOLOR = BrickColor.new("Lime green")
  9625. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,0,BrickColor.new("Forest green"),0,BrickColor.new("Dark green"),true,true)
  9626. end
  9627. if k == "l" and mutedtog == false then
  9628. mutedtog = true
  9629. kan.Volume = 0
  9630. elseif k == "l" and mutedtog == true then
  9631. mutedtog = false
  9632. kan.Volume = 1.25
  9633. end
  9634. if k == "p" and toggleTag == false then
  9635. toggleTag = true
  9636. modet.TextTransparency = 0
  9637. modet.TextStrokeTransparency = 0
  9638. elseif k == "p" and toggleTag == true then
  9639. toggleTag = false
  9640. modet.TextTransparency = 1
  9641. modet.TextStrokeTransparency = 1
  9642. end
  9643. if k == "z" and attack == false and ModeOfGlitch == 1 then
  9644. ExtinctiveHeartbreak()
  9645. elseif k == "c" and attack == false and ModeOfGlitch == 1 then
  9646. FallenOrbs()
  9647. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  9648. HeavenlyDisk()
  9649. elseif k == "x" and attack == false and ModeOfGlitch == 2 then
  9650. PureOrb()
  9651. elseif k == "c" and attack == false and ModeOfGlitch == 2 then
  9652. harmonytaunty()
  9653. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  9654. CorruptionEvent()
  9655. elseif k == "x" and attack == false and ModeOfGlitch == 3 then
  9656. DivineBlast()
  9657. elseif k == "c" and attack == false and ModeOfGlitch == 3 then
  9658. scattercorrupt()
  9659. elseif k == "v" and attack == false and ModeOfGlitch == 3 then
  9660. CorruptBlink()
  9661. elseif k == "c" and attack == false and ModeOfGlitch == 4 then
  9662. ChaosEND()
  9663. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  9664. attacktwo()
  9665. elseif k == "v" and attack == false and ModeOfGlitch == 4 then
  9666. ChaosGroundStrike()
  9667. elseif k == "m" and attack == false and ModeOfGlitch == 4 then
  9668. FallenOrbs()
  9669. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  9670. RapidBurst()
  9671. elseif k == "k" and attack == false and ModeOfGlitch == 4 then
  9672. InsaneDrop()
  9673. elseif k == "j" and attack == false and ModeOfGlitch == 4 then
  9674. SpeedDrop()
  9675. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9676. DivineLights()
  9677. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  9678. vistaunty()
  9679. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9680. EquinoxOrbs()
  9681. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  9682. shytaunty()
  9683. elseif k == "c" and attack == false and ModeOfGlitch == 6 then
  9684. cutesigh()
  9685. elseif k == "v" and attack == false and ModeOfGlitch == 6 then
  9686. Counter()
  9687. elseif k == "b" and attack == false and ModeOfGlitch == 6 then
  9688. hugg()
  9689. elseif k == "z" and attack == false and ModeOfGlitch == 7536 then
  9690. yinyangi()
  9691. elseif k == "x" and attack == false and ModeOfGlitch == 9 then
  9692. smiter()
  9693. elseif k == "c" and attack == false and ModeOfGlitch == 9 then
  9694. HolyBarrier()
  9695. elseif k == "v" and attack == false and ModeOfGlitch == 9 then
  9696. Judgement()
  9697. elseif k == "m" and attack == false and ModeOfGlitch == 9 then
  9698. Suicidal()
  9699. elseif k == "z" and attack == false and ModeOfGlitch == 83 then
  9700. ViolentRing()
  9701. elseif k == "x" and attack == false and ModeOfGlitch == 83 then
  9702. THE_TRUE_POWER_OF_VIOLENCE()
  9703. elseif k == "z" and attack == false and ModeOfGlitch == 999 then
  9704. ExtinctiveHeartbreak()
  9705. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  9706. attackone()
  9707. elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
  9708. UniversalCollapse()
  9709. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  9710. FallenOrbs()
  9711. elseif k == "c" and attack == false and ModeOfGlitch == 8889 then
  9712. FallenOrbs()
  9713. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  9714. EquinoxOrbs()
  9715. elseif k == "v" and attack == false and ModeOfGlitch == 8889 then
  9716. CyberSlash()
  9717. elseif k == "b" and attack == false and ModeOfGlitch == 8889 then
  9718. CardStorm()
  9719. elseif k == "z" and attack == false and ModeOfGlitch == 55469696922 then
  9720. BinaryBLINK()
  9721. elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
  9722. BeamOfDeath()
  9723. elseif k == "c" and attack == false and ModeOfGlitch == 55469696922 then
  9724. GalacticalBeams()
  9725. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  9726. WarpedDash()
  9727. elseif k == "x" and attack == false and ModeOfGlitch == 999999999556 then
  9728. Technobeam()
  9729. elseif k == "c" and attack == false and ModeOfGlitch == 999999999556 then
  9730. FinalCalamity()
  9731. elseif k == "z" and attack == false and ModeOfGlitch == 9999999921111 then
  9732. EndGROUND()
  9733. elseif k == "x" and attack == false and ModeOfGlitch == 9999999921111 then
  9734. StarDivision()
  9735. elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
  9736. GleamingBeam()
  9737. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  9738. DualGleamingBeam()
  9739. elseif k == "b" and attack == false and ModeOfGlitch == 9999999921111 then
  9740. dragin()
  9741. elseif k == "m" and attack == false and ModeOfGlitch == 9999999921111 then
  9742. Beams()
  9743. elseif k == "x" and attack == false and ModeOfGlitch == 1264532489 then
  9744. AZUREFINALE()
  9745. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9746. FallenOrbs()
  9747. end
  9748. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9749. FallenDEMISE()
  9750. end
  9751. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9752. EndGROUND()
  9753. end
  9754. end)
  9755.  
  9756. --[[coroutine.resume(coroutine.create(function()
  9757. while true do
  9758. swait(2)
  9759. if chaosmode == true then
  9760. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9761. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9762. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9763. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  9764. for i, v in pairs(mw1:GetChildren()) do
  9765. if v:IsA("Part") then
  9766. v.Transparency = 0.75
  9767. v.BrickColor = BrickColor.random()
  9768. v.Material = "Neon"
  9769. end
  9770. end
  9771. for i, v in pairs(m2:GetChildren()) do
  9772. if v:IsA("Part") then
  9773. v.BrickColor = BrickColor.random()
  9774. v.Material = "Neon"
  9775. end
  9776. end
  9777. end
  9778. end
  9779. end))]]--
  9780. Humanoid.Name = "STARGLITCHER"
  9781. Humanoid.MaxHealth = math.huge
  9782. Humanoid.Health = math.huge
  9783. Instance.new("ForceField",char).Visible = false
  9784.  
  9785. local bguis = Instance.new("BillboardGui",tors)
  9786. bguis.Size = UDim2.new(25, 0, 25, 0)
  9787. local imgca = Instance.new("ImageLabel",bguis)
  9788. imgca.BackgroundTransparency = 1
  9789. imgca.ImageTransparency = 1
  9790. imgca.Size = UDim2.new(1,0,1,0)
  9791. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9792. imgca.ImageColor3 = Color3.new(0,0,0)
  9793.  
  9794. idleanim=.4
  9795. while true do
  9796. if mutedtog == false then
  9797. kan.Volume = currentVol
  9798. elseif mutedtog == true then
  9799. kan.Volume = 0
  9800. end
  9801. kan.PlaybackSpeed = currentPitch
  9802. kan.Pitch = currentPitch
  9803. kan.SoundId = currentThemePlaying
  9804. kan.Looped = true
  9805. kan.Parent = char
  9806. kan:Resume()
  9807. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  9808. imgca.ImageTransparency = 1
  9809. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9810. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9811. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9812. end
  9813. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9814. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9815. coroutine.resume(coroutine.create(function()
  9816. if chaosmode == true then
  9817. for i, v in pairs(mw1:GetChildren()) do
  9818. if v:IsA("Part") then
  9819. v.Transparency = 0
  9820. v.BrickColor = BrickColor.random()
  9821. v.Material = "Neon"
  9822. end
  9823. end
  9824. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9825. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9826. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9827. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  9828. end
  9829. end))
  9830.  
  9831. if chaosmode == false then
  9832. modet.Position = UDim2.new(0,0,0,0)
  9833. modet.Rotation = -5 * math.cos(sine / 32)
  9834. techc.Rotation = techc.Rotation + 1
  9835. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  9836. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  9837. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  9838. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  9839. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9840. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9841. else
  9842. techc.Rotation = techc.Rotation + 1
  9843. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9844. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9845. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9846. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9847. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9848. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9849. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9850. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9851. end
  9852. CameraManager()
  9853. swait()
  9854. 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)
  9855. 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)
  9856. 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)
  9857. 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)
  9858. 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)
  9859. 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)
  9860. 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)
  9861. 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)
  9862. 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)
  9863. 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)
  9864. 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)
  9865. 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)
  9866. sine = sine + change
  9867. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9868. local velderp=RootPart.Velocity.y
  9869. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9870. if equipped==true or equipped==false then
  9871. if attack==false then
  9872. idle=idle+1
  9873. else
  9874. idle=0
  9875. end
  9876. if idle>=500 then
  9877. if attack==false then
  9878. --Sheath()
  9879. end
  9880. end
  9881. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9882. Anim="Jump"
  9883. if attack==false then
  9884. 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)
  9885. 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)
  9886. 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)
  9887. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9888. 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)
  9889. 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)
  9890. end
  9891. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9892. Anim="Fall"
  9893. if attack==false then
  9894. 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)
  9895. 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)
  9896. 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)
  9897. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9898. 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)
  9899. 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)
  9900. end
  9901. elseif torvel<1 and hitfloor~=nil then
  9902. Anim="Idle"
  9903. if attack==false then
  9904. if ModeOfGlitch == 1 then
  9905. local snap = math.random(1,10)
  9906. if snap == 1 then
  9907. 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)
  9908. end
  9909. 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)
  9910. 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)
  9911. 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)
  9912. 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)
  9913. 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)
  9914. 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)
  9915. elseif ModeOfGlitch == 2 then
  9916. 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(0 + 1 * math.cos(sine / 34))),.1)
  9917. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  9918. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  9919. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  9920. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  9921. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  9922. elseif ModeOfGlitch == 3 then
  9923. local snap = math.random(1,32)
  9924. if snap == 1 then
  9925. 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)
  9926. end
  9927. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 - 1 * math.cos(sine / 34))),.1)
  9928. 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(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  9929. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
  9930. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  9931. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  9932. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  9933. elseif ModeOfGlitch == 4 then
  9934. local snap = math.random(1,5)
  9935. if snap == 1 then
  9936. 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)
  9937. 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)
  9938. 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)
  9939. end
  9940. sphere2(8,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.random(),BrickColor.random().Color)
  9941. sphere2(8,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.random(),BrickColor.random().Color)
  9942. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.025 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-1.5), math.rad(0), math.rad(20)), 0.1)
  9943. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.025 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-1.5), math.rad(0), math.rad(-20)), 0.1)
  9944. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.025 * math.cos(sine / 32)) * angles(math.rad(20 - 0.5 * math.cos(sine / 32)), math.rad(0), math.rad(0)), 0.1)
  9945. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30 - 5 * math.cos(sine / 0.5265)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(0 - 5 * math.cos(sine / 0.465))), 0.1)
  9946. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)), math.rad(0 + 2.5 * math.cos(sine / 0.123)), math.rad(5 + 2.5 * math.cos(sine / 0.6))), 0.1)
  9947. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)), math.rad(0 + 2.5 * math.cos(sine / 0.664)), math.rad(-5 + 2.5 * math.cos(sine / 0.23))), 0.1)
  9948. elseif ModeOfGlitch == 5 then
  9949. 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)
  9950. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Alder"),Color3.new(0,1,0))
  9951. 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)
  9952. 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)
  9953. 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)
  9954. 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)
  9955. 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)
  9956. 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)
  9957. elseif ModeOfGlitch == 6 then
  9958. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 + 2 * math.cos(sine / 40)),math.rad(-15),math.rad(0 + 2 * math.cos(sine / 20))),.1)
  9959. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 - 2 * math.cos(sine / 40)),math.rad(1),math.rad(0 - 2 * math.cos(sine / 20))),.1)
  9960. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.02 * math.cos(sine / 40),0 - 0.02 * math.cos(sine / 40),-0.05 - 0.05 * math.cos(sine / 20))*angles(math.rad(0 + 2 * math.cos(sine / 20)),math.rad(0 + 2 * math.cos(sine / 40)),math.rad(30 + 3 * math.cos(sine / 40))),.1)
  9961. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2),math.rad(0 - 7 * math.cos(sine / 40)),math.rad(-30 - 3 * math.cos(sine / 40))),.1)
  9962. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-6 + 5 * math.cos(sine / 26)),math.rad(-10 - 6 * math.cos(sine / 24)),math.rad(13 - 5 * math.cos(sine / 34))),.1)
  9963. LW.C0=clerp(LW.C0,cf(-1.4,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 - 1 * math.cos(sine / 25)),math.rad(10 + 2 * math.cos(sine / 24)),math.rad(10 + 2 * math.cos(sine / 34))),.1)
  9964. elseif ModeOfGlitch == 8 then
  9965. 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)
  9966. 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)
  9967. 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)
  9968. 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)
  9969. 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)
  9970. 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)
  9971. elseif ModeOfGlitch == 9 then
  9972. local snap = math.random(1,32)
  9973. if snap == 1 then
  9974. 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)
  9975. end
  9976. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  9977. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  9978. 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),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  9979. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  9980. 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)
  9981. 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)
  9982. elseif ModeOfGlitch == 10 then
  9983. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1)
  9984. 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))), 0.1)
  9985. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1)
  9986. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
  9987. RW.C0 = clerp(RW.C0, cf(1, 0.5 + 0.1 * math.cos(sine / 28), 0.45) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.1)
  9988. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + 0.1 * math.cos(sine / 28), 0.45) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1)
  9989. elseif ModeOfGlitch == 83 then
  9990. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 - 1 * math.cos(sine / 34))),.1)
  9991. 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(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  9992. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
  9993. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  9994. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(math.random(5,15)),math.rad(-5),math.rad(15 + 7.5 * math.cos(sine / 12.5))),.1)
  9995. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(math.random(5,15)),math.rad(5),math.rad(-15 - 7.5 * math.cos(sine / 12.5))),.1)
  9996. elseif ModeOfGlitch == 95 then
  9997. 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)
  9998. 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)
  9999. 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)
  10000. 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)
  10001. 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)
  10002. 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)
  10003. elseif ModeOfGlitch == 150 then
  10004. local snap = math.random(1,5)
  10005. if snap == 1 then
  10006. 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)
  10007. 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)
  10008. 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)
  10009. end
  10010. 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(0 + 1 * math.cos(sine / 34))),.1)
  10011. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  10012. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  10013. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  10014. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  10015. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  10016. elseif ModeOfGlitch == 432 then
  10017. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(95),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  10018. 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(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  10019. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  10020. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  10021. 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)
  10022. 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)
  10023. elseif ModeOfGlitch == 500 then
  10024. 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)
  10025. 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)
  10026. 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)
  10027. 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)
  10028. 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)
  10029. 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)
  10030. elseif ModeOfGlitch == 652 then
  10031. local snap = math.random(1,2)
  10032. if snap == 1 then
  10033. 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)
  10034. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(-15 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  10035. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(15 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  10036. end
  10037. RH.C0=clerp(RH.C0,cf(1,0.35 - 0.05 * math.cos(sine / 32),-0.7)*angles(math.rad(-20),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)
  10038. LH.C0=clerp(LH.C0,cf(-1,-1.125 - 0.05 * math.cos(sine / 32),-0.6)*angles(math.rad(-105),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)
  10039. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3 + 0.05 * math.cos(sine / 32))*angles(math.rad(7.5 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  10040. 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)
  10041. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 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(-15 + 3 * math.cos(sine / 45))),.1)
  10042. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 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(15 - 3 * math.cos(sine / 45))),.1)
  10043. elseif ModeOfGlitch == 666 then
  10044. 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),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  10045. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  10046. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  10047. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  10048. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 3 * math.cos(sine / 30)),math.rad(25 - 3 * math.cos(sine / 38)),math.rad(28 - 6 * math.cos(sine / 34))),.1)
  10049. LW.C0=clerp(LW.C0,cf(-0.95,0.65 + 0.075 * math.cos(sine / 28),-0.65)*angles(math.rad(90 + 2 * math.cos(sine / 73)),math.rad(25 + 5 * math.cos(sine / 24)),math.rad(73 - 3 * math.cos(sine / 65))),.1)
  10050. elseif ModeOfGlitch == 789 then
  10051. 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(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  10052. 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(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  10053. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  10054. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  10055. 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)
  10056. 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)
  10057. elseif ModeOfGlitch == 999 then
  10058. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  10059. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  10060. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  10061. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(-25),0)*angles(math.rad(0 - 25 * math.cos(sine / 0.1164)),math.rad(0 - 30 * math.cos(sine / 0.25)),math.rad(0 - 30 * math.cos(sine / 0.465))),.1)
  10062. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  10063. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  10064. elseif ModeOfGlitch == 7536 then
  10065. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 + 2 * math.cos(sine / 40)),math.rad(0 - 6 * math.cos(sine / 40)),math.rad(-6 + 2 * math.cos(sine / 20) - 6 * math.cos(sine / 40))),.1)
  10066. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 - 2 * math.cos(sine / 40)),math.rad(10 - 6 * math.cos(sine / 40)),math.rad(3 - 2 * math.cos(sine / 20) - 3 * math.cos(sine / 40))),.1)
  10067. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.02 * math.cos(sine / 40),0 - 0.06 * math.cos(sine / 40),-0.05 - 0.05 * math.cos(sine / 20))*angles(math.rad(0 + 2 * math.cos(sine / 20)),math.rad(0 + 2 * math.cos(sine / 40)),math.rad(-20 + 6 * math.cos(sine / 40))),.1)
  10068. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(6),math.rad(0 - 2 * math.cos(sine / 42)),math.rad(20 - 6 * math.cos(sine / 40))),.1)
  10069. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 + 3 * math.cos(sine / 26)),math.rad(-20 - 3 * math.cos(sine / 24)),math.rad(20 - 5 * math.cos(sine / 34))),.1)
  10070. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 - 3 * math.cos(sine / 25)),math.rad(10 + 3 * math.cos(sine / 24)),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  10071. elseif ModeOfGlitch == 8889 then
  10072. 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)
  10073. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Toothpaste"),Color3.new(0,1,0))
  10074. 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)), 0.1)
  10075. 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)), 0.1)
  10076. 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(0)), 0.1)
  10077. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1)
  10078. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20 + 2.5 * math.cos(sine / 28))), 0.1)
  10079. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20 - 2.5 * math.cos(sine / 28))), 0.1)
  10080. elseif ModeOfGlitch == 1264532489 then
  10081. 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)
  10082. 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)
  10083. 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(-60)),.1)
  10084. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(20 + 1 * math.cos(sine / 58)),math.rad(60 + 2 * math.cos(sine / 53))),.1)
  10085. 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)
  10086. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(98 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  10087. elseif ModeOfGlitch == 9999999921111 then
  10088. local snap = math.random(1,10)
  10089. if snap == 1 then
  10090. 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)
  10091. end
  10092. 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)
  10093. 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)
  10094. 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)
  10095. 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)
  10096. 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)
  10097. 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)
  10098. elseif ModeOfGlitch == 4367677813 then
  10099. 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)
  10100. 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)
  10101. 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)
  10102. 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)
  10103. 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)
  10104. 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)
  10105. elseif ModeOfGlitch == 55469696922 then
  10106. 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)
  10107. 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)
  10108. 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)
  10109. 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)
  10110. 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)
  10111. 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)
  10112. 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)
  10113. elseif ModeOfGlitch == 999999999556 then
  10114. 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)
  10115. 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)
  10116. 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)
  10117. 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)
  10118. 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)
  10119. 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)
  10120. end
  10121. end
  10122. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  10123. Anim="Walk"
  10124. if attack==false then
  10125. 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)
  10126. 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)
  10127. 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)
  10128. 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)
  10129. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 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(-15 + 3 * math.cos(sine / 45))),.1)
  10130. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 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(15 - 3 * math.cos(sine / 45))),.1)
  10131. end
  10132. elseif torvel>=22 and hitfloor~=nil then
  10133. Anim="Run"
  10134. if attack==false then
  10135. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 8889 and ModeofGlitch ~= 7536 and ModeofGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 10 then
  10136. 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)
  10137. 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)
  10138. 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)
  10139. 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)
  10140. 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)
  10141. 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)
  10142. if ModeOfGlitch == 9 then
  10143. --
  10144. end
  10145. elseif ModeOfGlitch == 6 or ModeOfGlitch == 10 or ModeofGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  10146. 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)
  10147. 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)
  10148. 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)
  10149. 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)
  10150. 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)
  10151. 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)
  10152. end
  10153. end
  10154. end
  10155. end
  10156. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement