feigum777

I'll finish this soon

May 20th, 2019
217
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 = "Fei's Mayhem"
  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 = "Fei's Mayhem"
  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("Fei's Mayhem",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