Advertisement
Dxcay

Untitled

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