Advertisement
Sonickool

tr

Nov 29th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 418.42 KB | None | 0 0
  1. --[[ Name : Gale Fighter ]]--
  2. -------------------------------------------------------
  3. --A Collaboration Between makhail07 and KillerDarkness0105
  4.  
  5. --Base Animaion by makhail07, attacks by KillerDarkness0105
  6. -------------------------------------------------------
  7.  
  8.  
  9. local FavIDs = {
  10. 340106355, --Nefl Crystals
  11. 927529620, --Dimension
  12. 876981900, --Fantasy
  13. 398987889, --Ordinary Days
  14. 1117396305, --Oh wait, it's you.
  15. 885996042, --Action Winter Journey
  16. 919231299, --Sprawling Idiot Effigy
  17. 743466274, --Good Day Sunshine
  18. 727411183, --Knife Fight
  19. 1402748531, --The Earth Is Counting On You!
  20. 595230126 --Robot Language
  21. }
  22.  
  23.  
  24.  
  25. --The reality of my life isn't real but a Universe -makhail07
  26. wait(0.2)
  27. local plr = game:service'Players'.LocalPlayer
  28. print('Local User is '..plr.Name)
  29. print('Gale Fighter Loaded')
  30. print('The Fighter that is as fast as wind, a true Fighter')
  31. local char = plr.Character
  32. local hum = char.Humanoid
  33. local hed = char.Head
  34. local root = char.HumanoidRootPart
  35. local rootj = root.RootJoint
  36. local tors = char.Torso
  37. local ra = char["Right Arm"]
  38. local la = char["Left Arm"]
  39. local rl = char["Right Leg"]
  40. local ll = char["Left Leg"]
  41. local neck = tors["Neck"]
  42. local mouse = plr:GetMouse()
  43. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  44. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  45. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  46. local maincolor = BrickColor.new("Institutional white")
  47. hum.MaxHealth = 200
  48. hum.Health = 200
  49.  
  50. -------------------------------------------------------
  51. --Start Good Stuff--
  52. -------------------------------------------------------
  53. cam = game.Workspace.CurrentCamera
  54. CF = CFrame.new
  55. angles = CFrame.Angles
  56. attack = false
  57. Euler = CFrame.fromEulerAnglesXYZ
  58. Rad = math.rad
  59. IT = Instance.new
  60. BrickC = BrickColor.new
  61. Cos = math.cos
  62. Acos = math.acos
  63. Sin = math.sin
  64. Asin = math.asin
  65. Abs = math.abs
  66. Mrandom = math.random
  67. Floor = math.floor
  68. -------------------------------------------------------
  69. --End Good Stuff--
  70. -------------------------------------------------------
  71. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  72. RSH, LSH = nil, nil
  73. RW = Instance.new("Weld")
  74. LW = Instance.new("Weld")
  75. RH = tors["Right Hip"]
  76. LH = tors["Left Hip"]
  77. RSH = tors["Right Shoulder"]
  78. LSH = tors["Left Shoulder"]
  79. RSH.Parent = nil
  80. LSH.Parent = nil
  81. RW.Name = "RW"
  82. RW.Part0 = tors
  83. RW.C0 = CF(1.5, 0.5, 0)
  84. RW.C1 = CF(0, 0.5, 0)
  85. RW.Part1 = ra
  86. RW.Parent = tors
  87. LW.Name = "LW"
  88. LW.Part0 = tors
  89. LW.C0 = CF(-1.5, 0.5, 0)
  90. LW.C1 = CF(0, 0.5, 0)
  91. LW.Part1 = la
  92. LW.Parent = tors
  93. vt = Vector3.new
  94. Effects = {}
  95. -------------------------------------------------------
  96. --Start HeartBeat--
  97. -------------------------------------------------------
  98. ArtificialHB = Instance.new("BindableEvent", script)
  99. ArtificialHB.Name = "Heartbeat"
  100. script:WaitForChild("Heartbeat")
  101.  
  102. frame = 1 / 90
  103. tf = 0
  104. allowframeloss = false
  105. tossremainder = false
  106.  
  107.  
  108. lastframe = tick()
  109. script.Heartbeat:Fire()
  110.  
  111.  
  112. game:GetService("RunService").Heartbeat:connect(function(s, p)
  113. tf = tf + s
  114. if tf >= frame then
  115. if allowframeloss then
  116. script.Heartbeat:Fire()
  117. lastframe = tick()
  118. else
  119. for i = 1, math.floor(tf / frame) do
  120. script.Heartbeat:Fire()
  121. end
  122. lastframe = tick()
  123. end
  124. if tossremainder then
  125. tf = 0
  126. else
  127. tf = tf - frame * math.floor(tf / frame)
  128. end
  129. end
  130. end)
  131. -------------------------------------------------------
  132. --End HeartBeat--
  133. -------------------------------------------------------
  134.  
  135.  
  136.  
  137. -------------------------------------------------------
  138. --Start Combo Function--
  139. -------------------------------------------------------
  140. local comboing = false
  141. local combohits = 0
  142. local combotime = 0
  143. local maxtime = 65
  144.  
  145.  
  146.  
  147. function sandbox(var,func)
  148. local env = getfenv(func)
  149. local newenv = setmetatable({},{
  150. __index = function(self,k)
  151. if k=="script" then
  152. return var
  153. else
  154. return env[k]
  155. end
  156. end,
  157. })
  158. setfenv(func,newenv)
  159. return func
  160. end
  161. cors = {}
  162. mas = Instance.new("Model",game:GetService("Lighting"))
  163. comboframe = Instance.new("ScreenGui")
  164. Frame1 = Instance.new("Frame")
  165. Frame2 = Instance.new("Frame")
  166. TextLabel3 = Instance.new("TextLabel")
  167. comboframe.Name = "combinserter"
  168. comboframe.Parent = mas
  169. Frame1.Name = "combtimegui"
  170. Frame1.Parent = comboframe
  171. Frame1.Size = UDim2.new(0, 300, 0, 14)
  172. Frame1.Position = UDim2.new(0, 900, 0.629999971, 0)
  173. Frame1.BackgroundColor3 = Color3.new(0, 0, 0)
  174. Frame1.BorderColor3 = Color3.new(0.0313726, 0.0470588, 0.0627451)
  175. Frame1.BorderSizePixel = 5
  176. Frame2.Name = "combtimeoverlay"
  177. Frame2.Parent = Frame1
  178. Frame2.Size = UDim2.new(0, 0, 0, 14)
  179. Frame2.BackgroundColor3 = Color3.new(0, 1, 0)
  180. Frame2.ZIndex = 2
  181. TextLabel3.Parent = Frame2
  182. TextLabel3.Transparency = 0
  183. TextLabel3.Size = UDim2.new(0, 300, 0, 50)
  184. TextLabel3.Text ="Hits: "..combohits
  185. TextLabel3.Position = UDim2.new(0, 0, -5.5999999, 0)
  186. TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
  187. TextLabel3.BackgroundTransparency = 1
  188. TextLabel3.Font = Enum.Font.Bodoni
  189. TextLabel3.FontSize = Enum.FontSize.Size60
  190. TextLabel3.TextColor3 = Color3.new(0, 1, 0)
  191. TextLabel3.TextStrokeTransparency = 0
  192. gui = game:GetService("Players").LocalPlayer.PlayerGui
  193. for i,v in pairs(mas:GetChildren()) do
  194. v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  195. pcall(function() v:MakeJoints() end)
  196. end
  197. mas:Destroy()
  198. for i,v in pairs(cors) do
  199. spawn(function()
  200. pcall(v)
  201. end)
  202. end
  203.  
  204.  
  205.  
  206.  
  207.  
  208. coroutine.resume(coroutine.create(function()
  209. while true do
  210. wait()
  211.  
  212.  
  213. if combotime>65 then
  214. combotime = 65
  215. end
  216.  
  217.  
  218.  
  219.  
  220.  
  221. if combotime>.1 and comboing == true then
  222. TextLabel3.Transparency = 0
  223. TextLabel3.TextStrokeTransparency = 0
  224. TextLabel3.BackgroundTransparency = 1
  225. Frame1.Transparency = 0
  226. Frame2.Transparency = 0
  227. TextLabel3.Text ="Hits: "..combohits
  228. combotime = combotime - .34
  229. Frame2.Size = Frame2.Size:lerp(UDim2.new(0, combotime/maxtime*300, 0, 14),0.42)
  230. end
  231.  
  232.  
  233.  
  234.  
  235. if combotime<.1 then
  236. TextLabel3.BackgroundTransparency = 1
  237. TextLabel3.Transparency = 1
  238. TextLabel3.TextStrokeTransparency = 1
  239.  
  240. Frame2.Size = UDim2.new(0, 0, 0, 14)
  241. combotime = 0
  242. comboing = false
  243. Frame1.Transparency = 1
  244. Frame2.Transparency = 1
  245. combohits = 0
  246.  
  247. end
  248. end
  249. end))
  250.  
  251.  
  252.  
  253. -------------------------------------------------------
  254. --End Combo Function--
  255. -------------------------------------------------------
  256.  
  257. -------------------------------------------------------
  258. --Start Important Functions--
  259. -------------------------------------------------------
  260. function swait(num)
  261. if num == 0 or num == nil then
  262. game:service("RunService").Stepped:wait(0)
  263. else
  264. for i = 0, num do
  265. game:service("RunService").Stepped:wait(0)
  266. end
  267. end
  268. end
  269. function thread(f)
  270. coroutine.resume(coroutine.create(f))
  271. end
  272. function clerp(a, b, t)
  273. local qa = {
  274. QuaternionFromCFrame(a)
  275. }
  276. local qb = {
  277. QuaternionFromCFrame(b)
  278. }
  279. local ax, ay, az = a.x, a.y, a.z
  280. local bx, by, bz = b.x, b.y, b.z
  281. local _t = 1 - t
  282. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  283. end
  284. function QuaternionFromCFrame(cf)
  285. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  286. local trace = m00 + m11 + m22
  287. if trace > 0 then
  288. local s = math.sqrt(1 + trace)
  289. local recip = 0.5 / s
  290. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  291. else
  292. local i = 0
  293. if m00 < m11 then
  294. i = 1
  295. end
  296. if m22 > (i == 0 and m00 or m11) then
  297. i = 2
  298. end
  299. if i == 0 then
  300. local s = math.sqrt(m00 - m11 - m22 + 1)
  301. local recip = 0.5 / s
  302. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  303. elseif i == 1 then
  304. local s = math.sqrt(m11 - m22 - m00 + 1)
  305. local recip = 0.5 / s
  306. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  307. elseif i == 2 then
  308. local s = math.sqrt(m22 - m00 - m11 + 1)
  309. local recip = 0.5 / s
  310. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  311. end
  312. end
  313. end
  314. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  315. local xs, ys, zs = x + x, y + y, z + z
  316. local wx, wy, wz = w * xs, w * ys, w * zs
  317. local xx = x * xs
  318. local xy = x * ys
  319. local xz = x * zs
  320. local yy = y * ys
  321. local yz = y * zs
  322. local zz = z * zs
  323. 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))
  324. end
  325. function QuaternionSlerp(a, b, t)
  326. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  327. local startInterp, finishInterp
  328. if cosTheta >= 1.0E-4 then
  329. if 1 - cosTheta > 1.0E-4 then
  330. local theta = math.acos(cosTheta)
  331. local invSinTheta = 1 / Sin(theta)
  332. startInterp = Sin((1 - t) * theta) * invSinTheta
  333. finishInterp = Sin(t * theta) * invSinTheta
  334. else
  335. startInterp = 1 - t
  336. finishInterp = t
  337. end
  338. elseif 1 + cosTheta > 1.0E-4 then
  339. local theta = math.acos(-cosTheta)
  340. local invSinTheta = 1 / Sin(theta)
  341. startInterp = Sin((t - 1) * theta) * invSinTheta
  342. finishInterp = Sin(t * theta) * invSinTheta
  343. else
  344. startInterp = t - 1
  345. finishInterp = t
  346. end
  347. 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
  348. end
  349. function rayCast(Position, Direction, Range, Ignore)
  350. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  351. end
  352. local RbxUtility = LoadLibrary("RbxUtility")
  353. local Create = RbxUtility.Create
  354.  
  355. -------------------------------------------------------
  356. --Start Damage Function--
  357. -------------------------------------------------------
  358. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  359. if hit.Parent == nil then
  360. return
  361. end
  362. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  363. for _, v in pairs(hit.Parent:children()) do
  364. if v:IsA("Humanoid") then
  365. h = v
  366. end
  367. end
  368. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  369.  
  370. hit.Parent:FindFirstChild("Head"):BreakJoints()
  371. end
  372.  
  373. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  374. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  375. if hit.Parent.DebounceHit.Value == true then
  376. return
  377. end
  378. end
  379. if insta == true then
  380. hit.Parent:FindFirstChild("Head"):BreakJoints()
  381. end
  382. local c = Create("ObjectValue"){
  383. Name = "creator",
  384. Value = game:service("Players").LocalPlayer,
  385. Parent = h,
  386. }
  387. game:GetService("Debris"):AddItem(c, .5)
  388. if HitSound ~= nil and HitPitch ~= nil then
  389. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  390. end
  391. local Damage = math.random(minim, maxim)
  392. local blocked = false
  393. local block = hit.Parent:findFirstChild("Block")
  394. if block ~= nil then
  395. if block.className == "IntValue" then
  396. if block.Value > 0 then
  397. blocked = true
  398. block.Value = block.Value - 1
  399. print(block.Value)
  400. end
  401. end
  402. end
  403. if blocked == false then
  404. h.Health = h.Health - Damage
  405. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  406. else
  407. h.Health = h.Health - (Damage / 2)
  408. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  409. end
  410. if Type == "Knockdown" then
  411. local hum = hit.Parent.Humanoid
  412. hum.PlatformStand = true
  413. coroutine.resume(coroutine.create(function(HHumanoid)
  414. swait(1)
  415. HHumanoid.PlatformStand = false
  416. end), hum)
  417. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  418. local bodvol = Create("BodyVelocity"){
  419. velocity = angle * knockback,
  420. P = 5000,
  421. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  422. Parent = hit,
  423. }
  424. local rl = Create("BodyAngularVelocity"){
  425. P = 3000,
  426. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  427. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  428. Parent = hit,
  429. }
  430. game:GetService("Debris"):AddItem(bodvol, .5)
  431. game:GetService("Debris"):AddItem(rl, .5)
  432. elseif Type == "Normal" then
  433. local vp = Create("BodyVelocity"){
  434. P = 500,
  435. maxForce = Vector3.new(math.huge, 0, math.huge),
  436. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  437. }
  438. if knockback > 0 then
  439. vp.Parent = hit.Parent.Torso
  440. end
  441. game:GetService("Debris"):AddItem(vp, .5)
  442. elseif Type == "Up" then
  443. local bodyVelocity = Create("BodyVelocity"){
  444. velocity = Vector3.new(0, 20, 0),
  445. P = 5000,
  446. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  447. Parent = hit,
  448. }
  449. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  450. elseif Type == "DarkUp" then
  451. coroutine.resume(coroutine.create(function()
  452. for i = 0, 1, 0.1 do
  453. swait()
  454. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  455. end
  456. end))
  457. local bodyVelocity = Create("BodyVelocity"){
  458. velocity = Vector3.new(0, 20, 0),
  459. P = 5000,
  460. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  461. Parent = hit,
  462. }
  463. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  464. elseif Type == "Snare" then
  465. local bp = Create("BodyPosition"){
  466. P = 2000,
  467. D = 100,
  468. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  469. position = hit.Parent.Torso.Position,
  470. Parent = hit.Parent.Torso,
  471. }
  472. game:GetService("Debris"):AddItem(bp, 1)
  473. elseif Type == "Freeze" then
  474. local BodPos = Create("BodyPosition"){
  475. P = 50000,
  476. D = 1000,
  477. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  478. position = hit.Parent.Torso.Position,
  479. Parent = hit.Parent.Torso,
  480. }
  481. local BodGy = Create("BodyGyro") {
  482. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  483. P = 20e+003,
  484. Parent = hit.Parent.Torso,
  485. cframe = hit.Parent.Torso.CFrame,
  486. }
  487. hit.Parent.Torso.Anchored = true
  488. coroutine.resume(coroutine.create(function(Part)
  489. swait(1.5)
  490. Part.Anchored = false
  491. end), hit.Parent.Torso)
  492. game:GetService("Debris"):AddItem(BodPos, 3)
  493. game:GetService("Debris"):AddItem(BodGy, 3)
  494. end
  495. local debounce = Create("BoolValue"){
  496. Name = "DebounceHit",
  497. Parent = hit.Parent,
  498. Value = true,
  499. }
  500. game:GetService("Debris"):AddItem(debounce, Delay)
  501. c = Create("ObjectValue"){
  502. Name = "creator",
  503. Value = Player,
  504. Parent = h,
  505. }
  506. game:GetService("Debris"):AddItem(c, .5)
  507. end
  508. end
  509.  
  510.  
  511.  
  512.  
  513. kDamagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  514. if hit.Parent==nil then
  515. return
  516. end
  517. h=hit.Parent:FindFirstChild("Humanoid")
  518. for _,v in pairs(hit.Parent:children()) do
  519. if v:IsA("Humanoid") then
  520. h=v
  521. end
  522. end
  523. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  524. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  525. end
  526. if hit.Parent.className=="Hat" then
  527. hit=hit.Parent.Parent:findFirstChild("Head")
  528. end
  529. if h~=nil and hit.Parent.Name~=char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  530. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  531. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  532. return
  533. end]]
  534. -- hs(hit,1.2)
  535. c=Instance.new("ObjectValue")
  536. c.Name="creator"
  537. c.Value=game:service("Players").LocalPlayer
  538. c.Parent=h
  539. game:GetService("Debris"):AddItem(c,.5)
  540. Damage=math.random(minim,maxim)
  541. -- h:TakeDamage(Damage)
  542. blocked=false
  543. block=hit.Parent:findFirstChild("Block")
  544. if block~=nil then
  545. print(block.className)
  546. if block.className=="NumberValue" then
  547. if block.Value>0 then
  548. blocked=true
  549. if decreaseblock==nil then
  550. block.Value=block.Value-1
  551. end
  552. end
  553. end
  554. if block.className=="IntValue" then
  555. if block.Value>0 then
  556. blocked=true
  557. if decreaseblock~=nil then
  558. block.Value=block.Value-1
  559. end
  560. end
  561. end
  562. end
  563. if blocked==false then
  564. -- h:TakeDamage(Damage)
  565. h.Health=h.Health-Damage
  566. kshowDamage(hit.Parent,Damage,.5,BrickColor.new("White"))
  567. else
  568. h.Health=h.Health-(Damage/2)
  569. kshowDamage(hit.Parent,Damage/2,.5,BrickColor.new("White"))
  570. end
  571. if Type=="Knockdown" then
  572. hum=hit.Parent.Humanoid
  573. hum.PlatformStand=true
  574. coroutine.resume(coroutine.create(function(HHumanoid)
  575. swait(1)
  576. HHumanoid.PlatformStand=false
  577. end),hum)
  578. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  579. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  580. local bodvol=Instance.new("BodyVelocity")
  581. bodvol.velocity=angle*knockback
  582. bodvol.P=5000
  583. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  584. bodvol.Parent=hit
  585. rl=Instance.new("BodyAngularVelocity")
  586. rl.P=3000
  587. rl.maxTorque=Vector3.new(500,500,500)
  588. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  589. rl.Parent=hit
  590. game:GetService("Debris"):AddItem(bodvol,.5)
  591. game:GetService("Debris"):AddItem(rl,.5)
  592. elseif Type=="Normal" then
  593. vp=Instance.new("BodyVelocity")
  594. vp.P=500
  595. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  596. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  597. if KnockbackType==1 then
  598. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  599. elseif KnockbackType==2 then
  600. vp.velocity=Property.CFrame.lookVector*knockback
  601. end
  602. if knockback>0 then
  603. vp.Parent=hit.Parent.Torso
  604. end
  605. game:GetService("Debris"):AddItem(vp,.5)
  606. elseif Type=="Up" then
  607. hit.Parent.Humanoid.PlatformStand = true
  608. local bodyVelocity=Instance.new("BodyVelocity")
  609. bodyVelocity.velocity=vt(0,15,0)
  610. bodyVelocity.P=5000
  611. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  612. bodyVelocity.Parent=hit
  613. game:GetService("Debris"):AddItem(bodyVelocity,1)
  614. rl=Instance.new("BodyAngularVelocity")
  615. rl.P=3000
  616. rl.AngularVelocity = Vector3.new(2000,2000,2000)
  617. rl.MaxTorque = Vector3.new(40000,40000,40000)
  618. rl.Parent=hit
  619. hit.Parent.Humanoid.PlatformStand = false
  620. game:GetService("Debris"):AddItem(rl,.5)
  621. elseif Type=="Snare" then
  622. bp=Instance.new("BodyPosition")
  623. bp.P=2000
  624. bp.D=100
  625. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  626. bp.position=hit.Parent.Torso.Position
  627. bp.Parent=hit.Parent.Torso
  628. game:GetService("Debris"):AddItem(bp,1)
  629. elseif Type=="Float" then
  630. hit.Parent.Humanoid.PlatformStand = true
  631. bp=Instance.new("BodyPosition")
  632. bp.P=2000
  633. bp.D=400
  634. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  635. bp.position=hit.Parent.Torso.Position+vt(0,35,24)
  636. bp.Parent=hit.Parent.Torso
  637.  
  638. local rl=Instance.new("BodyAngularVelocity",hit.Parent.Torso)
  639. rl.P=377705
  640. rl.maxTorque=Vector3.new(1,1,1)*500
  641. rl.angularvelocity=Vector3.new(math.random(-3,3),math.random(-6,6),math.random(-3,3))
  642.  
  643. local BF = Instance.new("BodyForce",hit.Parent.Torso)
  644. BF.force = Vector3.new(0, workspace.Gravity/1.10, 0)
  645. game:GetService("Debris"):AddItem(bp,5)
  646. game:GetService("Debris"):AddItem(BF,5)
  647. game:GetService("Debris"):AddItem(rl,5)
  648. elseif Type=="Target" then
  649. if Targetting==false then
  650. ZTarget=hit.Parent.Torso
  651. coroutine.resume(coroutine.create(function(Part)
  652. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  653. swait(5)
  654. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  655. end),ZTarget)
  656. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  657. targetgui=Instance.new("BillboardGui")
  658. targetgui.Parent=ZTarget
  659. targetgui.Size=UDim2.new(10,100,10,100)
  660. targ=Instance.new("ImageLabel")
  661. targ.Parent=targetgui
  662. targ.BackgroundTransparency=1
  663. targ.Image="rbxassetid://4834067"
  664. targ.Size=UDim2.new(1,0,1,0)
  665. cam.CameraType="Scriptable"
  666. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  667. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  668. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  669. Targetting=true
  670. RocketTarget=ZTarget
  671. for i=1,Property do
  672. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  673. if Humanoid.Health>0 and char.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  674. swait()
  675. end
  676. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  677. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  678. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  679. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  680. end
  681. Targetting=false
  682. RocketTarget=nil
  683. targetgui.Parent=nil
  684. cam.CameraType="Custom"
  685. end
  686. end
  687. debounce=Instance.new("BoolValue")
  688. debounce.Name="DebounceHit"
  689. debounce.Parent=hit.Parent
  690. debounce.Value=true
  691. game:GetService("Debris"):AddItem(debounce,Delay)
  692. c=Instance.new("ObjectValue")
  693. c.Name="creator"
  694. c.Value=Player
  695. c.Parent=h
  696. game:GetService("Debris"):AddItem(c,.5)
  697. CRIT=false
  698. hitDeb=true
  699. AttackPos=6
  700. comboing = true
  701. combohits = combohits+1
  702. combotime = combotime+3.4
  703.  
  704.  
  705.  
  706. if hitfloor == nil then
  707.  
  708. local velo=Instance.new("BodyVelocity")
  709. velo.velocity=vt(0,5.5,0)
  710. velo.P=8000
  711. velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  712. velo.Parent=root
  713. game:GetService("Debris"):AddItem(velo,0.06)
  714.  
  715. local hitvelo=Instance.new("BodyVelocity")
  716. hitvelo.velocity=vt(0,5.5,0)
  717. hitvelo.P=8000
  718. hitvelo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  719. hitvelo.Parent=hit
  720. game:GetService("Debris"):AddItem(hitvelo,0.06)
  721.  
  722. coroutine.resume(coroutine.create(function()
  723. for i = 0,3.7,0.1 do
  724. swait()
  725. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,0,-2.4)
  726. root.Velocity = root.CFrame.lookVector*0
  727. hit.Velocity = hit.CFrame.lookVector*130
  728. end
  729. end))
  730. coroutine.resume(coroutine.create(function()
  731. while ultra == true do
  732. swait()
  733. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,0,-2.4)
  734. end
  735. end))
  736.  
  737.  
  738. end
  739.  
  740.  
  741. end
  742. end
  743.  
  744. kshowDamage=function(Char,Dealt,du,Color)
  745. m=Instance.new("Model")
  746. m.Name=tostring(Dealt)
  747. h=Instance.new("Humanoid")
  748. h.Health=0
  749. h.MaxHealth=0
  750. h.Parent=m
  751. c=Instance.new("Part")
  752. c.Transparency=0
  753. c.BrickColor=Color
  754. c.Name="Head"
  755. c.Material = "Neon"
  756. c.TopSurface=0
  757. c.BottomSurface=0
  758. c.formFactor="Plate"
  759. c.Size=Vector3.new(1,.4,1)
  760. ms=Instance.new("CylinderMesh")
  761. ms.Scale=Vector3.new(.8,.8,.8)
  762. if CRIT==true then
  763. ms.Scale=Vector3.new(1,1.25,1)
  764. end
  765. ms.Parent=c
  766. c.Reflectance=0
  767. Instance.new("BodyGyro").Parent=c
  768. c.Parent=m
  769. if Char:findFirstChild("Head")~=nil then
  770. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  771. elseif Char.Parent:findFirstChild("Head")~=nil then
  772. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  773. end
  774. f=Instance.new("BodyPosition")
  775. f.P=2000
  776. f.D=220
  777. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  778. f.position=c.Position+Vector3.new(0,3,0)
  779. f.Parent=c
  780. game:GetService("Debris"):AddItem(m,.5+du)
  781. c.CanCollide=false
  782. m.Parent=workspace
  783. c.CanCollide=false
  784.  
  785. end
  786.  
  787. -------------------------------------------------------
  788. --End Damage Function--
  789. -------------------------------------------------------
  790.  
  791. -------------------------------------------------------
  792. --Start Damage Function Customization--
  793. -------------------------------------------------------
  794. function ShowDamage(Pos, Text, Time, Color)
  795. local Rate = (1 / 30)
  796. local Pos = (Pos or Vector3.new(0, 0, 0))
  797. local Text = (Text or "")
  798. local Time = (Time or 2)
  799. local Color = (Color or Color3.new(1, 0, 1))
  800. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  801. EffectPart.Anchored = true
  802. local BillboardGui = Create("BillboardGui"){
  803. Size = UDim2.new(3, 0, 3, 0),
  804. Adornee = EffectPart,
  805. Parent = EffectPart,
  806. }
  807. local TextLabel = Create("TextLabel"){
  808. BackgroundTransparency = 1,
  809. Size = UDim2.new(1, 0, 1, 0),
  810. Text = Text,
  811. Font = "Bodoni",
  812. TextColor3 = Color,
  813. TextScaled = true,
  814. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  815. Parent = BillboardGui,
  816. }
  817. game.Debris:AddItem(EffectPart, (Time))
  818. EffectPart.Parent = game:GetService("Workspace")
  819. delay(0, function()
  820. local Frames = (Time / Rate)
  821. for Frame = 1, Frames do
  822. wait(Rate)
  823. local Percent = (Frame / Frames)
  824. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  825. TextLabel.TextTransparency = Percent
  826. end
  827. if EffectPart and EffectPart.Parent then
  828. EffectPart:Destroy()
  829. end
  830. end)
  831. end
  832. -------------------------------------------------------
  833. --End Damage Function Customization--
  834. -------------------------------------------------------
  835.  
  836. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  837. for _, c in pairs(workspace:children()) do
  838. local hum = c:findFirstChild("Humanoid")
  839. if hum ~= nil then
  840. local head = c:findFirstChild("Head")
  841. if head ~= nil then
  842. local targ = head.Position - Part.Position
  843. local mag = targ.magnitude
  844. if magni >= mag and c.Name ~= plr.Name then
  845. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  846. end
  847. end
  848. end
  849. end
  850. end
  851.  
  852.  
  853. CFuncs = {
  854. Part = {
  855. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  856. local Part = Create("Part")({
  857. Parent = Parent,
  858. Reflectance = Reflectance,
  859. Transparency = Transparency,
  860. CanCollide = false,
  861. Locked = true,
  862. BrickColor = BrickColor.new(tostring(BColor)),
  863. Name = Name,
  864. Size = Size,
  865. Material = Material
  866. })
  867. RemoveOutlines(Part)
  868. return Part
  869. end
  870. },
  871. Mesh = {
  872. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  873. local Msh = Create(Mesh)({
  874. Parent = Part,
  875. Offset = OffSet,
  876. Scale = Scale
  877. })
  878. if Mesh == "SpecialMesh" then
  879. Msh.MeshType = MeshType
  880. Msh.MeshId = MeshId
  881. end
  882. return Msh
  883. end
  884. },
  885. Mesh = {
  886. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  887. local Msh = Create(Mesh)({
  888. Parent = Part,
  889. Offset = OffSet,
  890. Scale = Scale
  891. })
  892. if Mesh == "SpecialMesh" then
  893. Msh.MeshType = MeshType
  894. Msh.MeshId = MeshId
  895. end
  896. return Msh
  897. end
  898. },
  899. Weld = {
  900. Create = function(Parent, Part0, Part1, C0, C1)
  901. local Weld = Create("Weld")({
  902. Parent = Parent,
  903. Part0 = Part0,
  904. Part1 = Part1,
  905. C0 = C0,
  906. C1 = C1
  907. })
  908. return Weld
  909. end
  910. },
  911. Sound = {
  912. Create = function(id, par, vol, pit)
  913. coroutine.resume(coroutine.create(function()
  914. local S = Create("Sound")({
  915. Volume = vol,
  916. Pitch = pit or 1,
  917. SoundId = id,
  918. Parent = par or workspace
  919. })
  920. wait()
  921. S:play()
  922. game:GetService("Debris"):AddItem(S, 6)
  923. end))
  924. end
  925. },
  926. ParticleEmitter = {
  927. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  928. local fp = Create("ParticleEmitter")({
  929. Parent = Parent,
  930. Color = ColorSequence.new(Color1, Color2),
  931. LightEmission = LightEmission,
  932. Size = Size,
  933. Texture = Texture,
  934. Transparency = Transparency,
  935. ZOffset = ZOffset,
  936. Acceleration = Accel,
  937. Drag = Drag,
  938. LockedToPart = LockedToPart,
  939. VelocityInheritance = VelocityInheritance,
  940. EmissionDirection = EmissionDirection,
  941. Enabled = Enabled,
  942. Lifetime = LifeTime,
  943. Rate = Rate,
  944. Rotation = Rotation,
  945. RotSpeed = RotSpeed,
  946. Speed = Speed,
  947. VelocitySpread = VelocitySpread
  948. })
  949. return fp
  950. end
  951. }
  952. }
  953. function RemoveOutlines(part)
  954. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  955. end
  956. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  957. local Part = Create("Part")({
  958. formFactor = FormFactor,
  959. Parent = Parent,
  960. Reflectance = Reflectance,
  961. Transparency = Transparency,
  962. CanCollide = false,
  963. Locked = true,
  964. BrickColor = BrickColor.new(tostring(BColor)),
  965. Name = Name,
  966. Size = Size,
  967. Material = Material
  968. })
  969. RemoveOutlines(Part)
  970. return Part
  971. end
  972. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  973. local Msh = Create(Mesh)({
  974. Parent = Part,
  975. Offset = OffSet,
  976. Scale = Scale
  977. })
  978. if Mesh == "SpecialMesh" then
  979. Msh.MeshType = MeshType
  980. Msh.MeshId = MeshId
  981. end
  982. return Msh
  983. end
  984. function CreateWeld(Parent, Part0, Part1, C0, C1)
  985. local Weld = Create("Weld")({
  986. Parent = Parent,
  987. Part0 = Part0,
  988. Part1 = Part1,
  989. C0 = C0,
  990. C1 = C1
  991. })
  992. return Weld
  993. end
  994.  
  995.  
  996. -------------------------------------------------------
  997. --Start Effect Function--
  998. -------------------------------------------------------
  999. EffectModel = Instance.new("Model", char)
  1000. Effects = {
  1001. Block = {
  1002. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1003. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1004. prt.Anchored = true
  1005. prt.CFrame = cframe
  1006. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1007. game:GetService("Debris"):AddItem(prt, 10)
  1008. if Type == 1 or Type == nil then
  1009. table.insert(Effects, {
  1010. prt,
  1011. "Block1",
  1012. delay,
  1013. x3,
  1014. y3,
  1015. z3,
  1016. msh
  1017. })
  1018. elseif Type == 2 then
  1019. table.insert(Effects, {
  1020. prt,
  1021. "Block2",
  1022. delay,
  1023. x3,
  1024. y3,
  1025. z3,
  1026. msh
  1027. })
  1028. else
  1029. table.insert(Effects, {
  1030. prt,
  1031. "Block3",
  1032. delay,
  1033. x3,
  1034. y3,
  1035. z3,
  1036. msh
  1037. })
  1038. end
  1039. end
  1040. },
  1041. Sphere = {
  1042. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1043. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1044. prt.Anchored = true
  1045. prt.CFrame = cframe
  1046. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1047. game:GetService("Debris"):AddItem(prt, 10)
  1048. table.insert(Effects, {
  1049. prt,
  1050. "Cylinder",
  1051. delay,
  1052. x3,
  1053. y3,
  1054. z3,
  1055. msh
  1056. })
  1057. end
  1058. },
  1059. Cylinder = {
  1060. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1061. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1062. prt.Anchored = true
  1063. prt.CFrame = cframe
  1064. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1065. game:GetService("Debris"):AddItem(prt, 10)
  1066. table.insert(Effects, {
  1067. prt,
  1068. "Cylinder",
  1069. delay,
  1070. x3,
  1071. y3,
  1072. z3,
  1073. msh
  1074. })
  1075. end
  1076. },
  1077. Wave = {
  1078. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1079. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1080. prt.Anchored = true
  1081. prt.CFrame = cframe
  1082. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  1083. game:GetService("Debris"):AddItem(prt, 10)
  1084. table.insert(Effects, {
  1085. prt,
  1086. "Cylinder",
  1087. delay,
  1088. x3 / 60,
  1089. y3 / 60,
  1090. z3 / 60,
  1091. msh
  1092. })
  1093. end
  1094. },
  1095. Ring = {
  1096. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1097. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1098. prt.Anchored = true
  1099. prt.CFrame = cframe
  1100. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1101. game:GetService("Debris"):AddItem(prt, 10)
  1102. table.insert(Effects, {
  1103. prt,
  1104. "Cylinder",
  1105. delay,
  1106. x3,
  1107. y3,
  1108. z3,
  1109. msh
  1110. })
  1111. end
  1112. },
  1113. Break = {
  1114. Create = function(brickcolor, cframe, x1, y1, z1)
  1115. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1116. prt.Anchored = true
  1117. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1118. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1119. local num = math.random(10, 50) / 1000
  1120. game:GetService("Debris"):AddItem(prt, 10)
  1121. table.insert(Effects, {
  1122. prt,
  1123. "Shatter",
  1124. num,
  1125. prt.CFrame,
  1126. math.random() - math.random(),
  1127. 0,
  1128. math.random(50, 100) / 100
  1129. })
  1130. end
  1131. },
  1132. Spiral = {
  1133. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1134. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1135. prt.Anchored = true
  1136. prt.CFrame = cframe
  1137. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1138. game:GetService("Debris"):AddItem(prt, 10)
  1139. table.insert(Effects, {
  1140. prt,
  1141. "Cylinder",
  1142. delay,
  1143. x3,
  1144. y3,
  1145. z3,
  1146. msh
  1147. })
  1148. end
  1149. },
  1150. Push = {
  1151. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1152. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1153. prt.Anchored = true
  1154. prt.CFrame = cframe
  1155. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1156. game:GetService("Debris"):AddItem(prt, 10)
  1157. table.insert(Effects, {
  1158. prt,
  1159. "Cylinder",
  1160. delay,
  1161. x3,
  1162. y3,
  1163. z3,
  1164. msh
  1165. })
  1166. end
  1167. }
  1168. }
  1169. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  1170. local fp = IT("Part")
  1171. fp.formFactor = formfactor
  1172. fp.Parent = parent
  1173. fp.Reflectance = reflectance
  1174. fp.Transparency = transparency
  1175. fp.CanCollide = false
  1176. fp.Locked = true
  1177. fp.BrickColor = brickcolor
  1178. fp.Name = name
  1179. fp.Size = size
  1180. fp.Position = tors.Position
  1181. RemoveOutlines(fp)
  1182. fp.Material = "SmoothPlastic"
  1183. fp:BreakJoints()
  1184. return fp
  1185. end
  1186.  
  1187. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1188. local mesh = IT(Mesh)
  1189. mesh.Parent = part
  1190. if Mesh == "SpecialMesh" then
  1191. mesh.MeshType = meshtype
  1192. if meshid ~= "nil" then
  1193. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  1194. end
  1195. end
  1196. mesh.Offset = offset
  1197. mesh.Scale = scale
  1198. return mesh
  1199. end
  1200.  
  1201. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  1202. local type = type
  1203. local rng = Instance.new("Part", char)
  1204. rng.Anchored = true
  1205. rng.BrickColor = color
  1206. rng.CanCollide = false
  1207. rng.FormFactor = 3
  1208. rng.Name = "Ring"
  1209. rng.Material = "Neon"
  1210. rng.Size = Vector3.new(1, 1, 1)
  1211. rng.Transparency = 0
  1212. rng.TopSurface = 0
  1213. rng.BottomSurface = 0
  1214. rng.CFrame = pos
  1215. local rngm = Instance.new("SpecialMesh", rng)
  1216. rngm.MeshType = MType
  1217. rngm.Scale = scale
  1218. local scaler2 = 1
  1219. if type == "Add" then
  1220. scaler2 = 1 * value
  1221. elseif type == "Divide" then
  1222. scaler2 = 1 / value
  1223. end
  1224. coroutine.resume(coroutine.create(function()
  1225. for i = 0, 10 / bonuspeed, 0.1 do
  1226. swait()
  1227. if type == "Add" then
  1228. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1229. elseif type == "Divide" then
  1230. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1231. end
  1232. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1233. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1234. end
  1235. rng:Destroy()
  1236. end))
  1237. end
  1238.  
  1239. function Eviscerate(dude)
  1240. if dude.Name ~= char then
  1241. local bgf = IT("BodyGyro", dude.Head)
  1242. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1243. local val = IT("BoolValue", dude)
  1244. val.Name = "IsHit"
  1245. local ds = coroutine.wrap(function()
  1246. dude:WaitForChild("Head"):BreakJoints()
  1247. wait(0.5)
  1248. target = nil
  1249. coroutine.resume(coroutine.create(function()
  1250. for i, v in pairs(dude:GetChildren()) do
  1251. if v:IsA("Accessory") then
  1252. v:Destroy()
  1253. end
  1254. if v:IsA("Humanoid") then
  1255. v:Destroy()
  1256. end
  1257. if v:IsA("CharacterMesh") then
  1258. v:Destroy()
  1259. end
  1260. if v:IsA("Model") then
  1261. v:Destroy()
  1262. end
  1263. if v:IsA("Part") or v:IsA("MeshPart") then
  1264. for x, o in pairs(v:GetChildren()) do
  1265. if o:IsA("Decal") then
  1266. o:Destroy()
  1267. end
  1268. end
  1269. coroutine.resume(coroutine.create(function()
  1270. v.Material = "Neon"
  1271. v.CanCollide = false
  1272. local PartEmmit1 = IT("ParticleEmitter", v)
  1273. PartEmmit1.LightEmission = 1
  1274. PartEmmit1.Texture = "rbxassetid://284205403"
  1275. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1276. PartEmmit1.Rate = 150
  1277. PartEmmit1.Lifetime = NumberRange.new(1)
  1278. PartEmmit1.Size = NumberSequence.new({
  1279. NumberSequenceKeypoint.new(0, 0.75, 0),
  1280. NumberSequenceKeypoint.new(1, 0, 0)
  1281. })
  1282. PartEmmit1.Transparency = NumberSequence.new({
  1283. NumberSequenceKeypoint.new(0, 0, 0),
  1284. NumberSequenceKeypoint.new(1, 1, 0)
  1285. })
  1286. PartEmmit1.Speed = NumberRange.new(0, 0)
  1287. PartEmmit1.VelocitySpread = 30000
  1288. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1289. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1290. local BodPoss = IT("BodyPosition", v)
  1291. BodPoss.P = 3000
  1292. BodPoss.D = 1000
  1293. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1294. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1295. v.Color = maincolor.Color
  1296. coroutine.resume(coroutine.create(function()
  1297. for i = 0, 49 do
  1298. swait(1)
  1299. v.Transparency = v.Transparency + 0.08
  1300. end
  1301. wait(0.5)
  1302. PartEmmit1.Enabled = false
  1303. wait(3)
  1304. v:Destroy()
  1305. dude:Destroy()
  1306. end))
  1307. end))
  1308. end
  1309. end
  1310. end))
  1311. end)
  1312. ds()
  1313. end
  1314. end
  1315.  
  1316. function FindNearestHead(Position, Distance, SinglePlayer)
  1317. if SinglePlayer then
  1318. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1319. end
  1320. local List = {}
  1321. for i, v in pairs(workspace:GetChildren()) do
  1322. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1323. table.insert(List, v)
  1324. end
  1325. end
  1326. return List
  1327. end
  1328.  
  1329. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1330. local type = type
  1331. local rng = Instance.new("Part", char)
  1332. rng.Anchored = true
  1333. rng.BrickColor = color
  1334. rng.CanCollide = false
  1335. rng.FormFactor = 3
  1336. rng.Name = "Ring"
  1337. rng.Material = "Neon"
  1338. rng.Size = Vector3.new(1, 1, 1)
  1339. rng.Transparency = 0
  1340. rng.TopSurface = 0
  1341. rng.BottomSurface = 0
  1342. rng.CFrame = pos
  1343. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1344. local rngm = Instance.new("SpecialMesh", rng)
  1345. rngm.MeshType = MType
  1346. rngm.Scale = Vector3.new(x1, y1, z1)
  1347. local scaler2 = 1
  1348. local speeder = FastSpeed
  1349. if type == "Add" then
  1350. scaler2 = 1 * value
  1351. elseif type == "Divide" then
  1352. scaler2 = 1 / value
  1353. end
  1354. coroutine.resume(coroutine.create(function()
  1355. for i = 0, 10 / bonuspeed, 0.1 do
  1356. swait()
  1357. if type == "Add" then
  1358. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1359. elseif type == "Divide" then
  1360. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1361. end
  1362. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1363. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1364. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1365. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1366. end
  1367. rng:Destroy()
  1368. end))
  1369. end
  1370.  
  1371. function SoulSteal(dude)
  1372. if dude.Name ~= char then
  1373. local bgf = IT("BodyGyro", dude.Head)
  1374. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1375. local val = IT("BoolValue", dude)
  1376. val.Name = "IsHit"
  1377. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1378. local soulst = coroutine.wrap(function()
  1379. local soul = Instance.new("Part",dude)
  1380. soul.Size = Vector3.new(1,1,1)
  1381. soul.CanCollide = false
  1382. soul.Anchored = false
  1383. soul.Position = torso.Position
  1384. soul.Transparency = 1
  1385. local PartEmmit1 = IT("ParticleEmitter", soul)
  1386. PartEmmit1.LightEmission = 1
  1387. PartEmmit1.Texture = "rbxassetid://569507414"
  1388. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1389. PartEmmit1.Rate = 250
  1390. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1391. PartEmmit1.Size = NumberSequence.new({
  1392. NumberSequenceKeypoint.new(0, 1, 0),
  1393. NumberSequenceKeypoint.new(1, 0, 0)
  1394. })
  1395. PartEmmit1.Transparency = NumberSequence.new({
  1396. NumberSequenceKeypoint.new(0, 0, 0),
  1397. NumberSequenceKeypoint.new(1, 1, 0)
  1398. })
  1399. PartEmmit1.Speed = NumberRange.new(0, 0)
  1400. PartEmmit1.VelocitySpread = 30000
  1401. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1402. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1403. local BodPoss = IT("BodyPosition", soul)
  1404. BodPoss.P = 3000
  1405. BodPoss.D = 1000
  1406. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1407. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1408. wait(1.6)
  1409. soul.Touched:connect(function(hit)
  1410. if hit.Parent == char then
  1411. soul:Destroy()
  1412. end
  1413. end)
  1414. wait(1.2)
  1415. while soul do
  1416. swait()
  1417. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1418. BodPoss.Position = tors.Position
  1419. end
  1420. end)
  1421. soulst()
  1422. end
  1423. end
  1424.  
  1425.  
  1426.  
  1427.  
  1428. --killer's effects
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1435. local Part = Create("Part"){
  1436. Parent = Parent,
  1437. Reflectance = Reflectance,
  1438. Transparency = Transparency,
  1439. CanCollide = false,
  1440. Locked = true,
  1441. BrickColor = BrickColor.new(tostring(BColor)),
  1442. Name = Name,
  1443. Size = Size,
  1444. Material = Material,
  1445. }
  1446. RemoveOutlines(Part)
  1447. return Part
  1448. end
  1449.  
  1450. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1451. local Msh = Create(Mesh){
  1452. Parent = Part,
  1453. Offset = OffSet,
  1454. Scale = Scale,
  1455. }
  1456. if Mesh == "SpecialMesh" then
  1457. Msh.MeshType = MeshType
  1458. Msh.MeshId = MeshId
  1459. end
  1460. return Msh
  1461. end
  1462.  
  1463.  
  1464.  
  1465. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1466. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1467. prt.Anchored = true
  1468. prt.CFrame = cframe
  1469. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1470. game:GetService("Debris"):AddItem(prt, 10)
  1471. if Type == 1 or Type == nil then
  1472. table.insert(Effects, {
  1473. prt,
  1474. "Block1",
  1475. delay,
  1476. x3,
  1477. y3,
  1478. z3,
  1479. msh
  1480. })
  1481. elseif Type == 2 then
  1482. table.insert(Effects, {
  1483. prt,
  1484. "Block2",
  1485. delay,
  1486. x3,
  1487. y3,
  1488. z3,
  1489. msh
  1490. })
  1491. end
  1492. end
  1493.  
  1494. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1495. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1496. prt.Anchored = true
  1497. prt.CFrame = cframe
  1498. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1499. game:GetService("Debris"):AddItem(prt, 10)
  1500. table.insert(Effects, {
  1501. prt,
  1502. "Cylinder",
  1503. delay,
  1504. x3,
  1505. y3,
  1506. z3,
  1507. msh
  1508. })
  1509. end
  1510.  
  1511. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1512. local prt=CreatePart(workspace,"Neon",0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1513. prt.Anchored=true
  1514. prt.CFrame=cframe
  1515. msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1516. game:GetService("Debris"):AddItem(prt,2)
  1517. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  1518. for i=0,1,delay do
  1519. swait()
  1520. Part.Transparency=i
  1521. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1522. end
  1523. Part.Parent=nil
  1524. end),prt,msh,(math.random(0,1)+math.random())/5)
  1525. end
  1526.  
  1527. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1528. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1529. prt.Anchored = true
  1530. prt.CFrame = cframe
  1531. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1532. game:GetService("Debris"):AddItem(prt, 10)
  1533. table.insert(Effects, {
  1534. prt,
  1535. "Cylinder",
  1536. delay,
  1537. x3,
  1538. y3,
  1539. z3,
  1540. msh
  1541. })
  1542. end
  1543.  
  1544. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1545. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1546. prt.Anchored = true
  1547. prt.CFrame = cframe
  1548. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1549. game:GetService("Debris"):AddItem(prt, 10)
  1550. table.insert(Effects, {
  1551. prt,
  1552. "Cylinder",
  1553. delay,
  1554. x3,
  1555. y3,
  1556. z3,
  1557. msh
  1558. })
  1559. end
  1560.  
  1561. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1562. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1563. prt.Anchored = true
  1564. prt.CFrame = cframe
  1565. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1566. game:GetService("Debris"):AddItem(prt, 10)
  1567. table.insert(Effects, {
  1568. prt,
  1569. "Cylinder",
  1570. delay,
  1571. x3,
  1572. y3,
  1573. z3,
  1574. msh
  1575. })
  1576. end
  1577.  
  1578.  
  1579. function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1580. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1581. prt.Anchored = true
  1582. prt.CFrame = cframe
  1583. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1584. game:GetService("Debris"):AddItem(prt, 10)
  1585. table.insert(Effects, {
  1586. prt,
  1587. "Cylinder",
  1588. delay,
  1589. x3,
  1590. y3,
  1591. z3,
  1592. msh
  1593. })
  1594. end
  1595.  
  1596. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1597. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1598. prt.Anchored = true
  1599. prt.CFrame = cframe
  1600. local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1601. game:GetService("Debris"):AddItem(prt, 10)
  1602. table.insert(Effects, {
  1603. prt,
  1604. "Cylinder",
  1605. delay,
  1606. x3,
  1607. y3,
  1608. z3,
  1609. msh
  1610. })
  1611. end
  1612.  
  1613. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  1614. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1615. prt.Anchored = true
  1616. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1617. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1618. local num = math.random(10, 50) / 1000
  1619. game:GetService("Debris"):AddItem(prt, 10)
  1620. table.insert(Effects, {
  1621. prt,
  1622. "Shatter",
  1623. num,
  1624. prt.CFrame,
  1625. math.random() - math.random(),
  1626. 0,
  1627. math.random(50, 100) / 100
  1628. })
  1629. end
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635. so = function(id,par,vol,pit)
  1636. coroutine.resume(coroutine.create(function()
  1637. local sou = Instance.new("Sound",par or workspace)
  1638. sou.Volume=vol
  1639. sou.Pitch=pit or 1
  1640. sou.SoundId=id
  1641. sou:play()
  1642. game:GetService("Debris"):AddItem(sou,8)
  1643. end))
  1644. end
  1645.  
  1646.  
  1647. --end of killer's effects
  1648.  
  1649.  
  1650. function FaceMouse()
  1651. local Cam = workspace.CurrentCamera
  1652. return {
  1653. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1654. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1655. }
  1656. end
  1657. -------------------------------------------------------
  1658. --End Effect Function--
  1659. -------------------------------------------------------
  1660. function Cso(ID, PARENT, VOLUME, PITCH)
  1661. local NSound = nil
  1662. coroutine.resume(coroutine.create(function()
  1663. NSound = IT("Sound", PARENT)
  1664. NSound.Volume = VOLUME
  1665. NSound.Pitch = PITCH
  1666. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1667. swait()
  1668. NSound:play()
  1669. game:GetService("Debris"):AddItem(NSound, 10)
  1670. end))
  1671. return NSound
  1672. end
  1673. function CameraEnshaking(Length, Intensity)
  1674. coroutine.resume(coroutine.create(function()
  1675. local intensity = 1 * Intensity
  1676. local rotM = 0.01 * Intensity
  1677. for i = 0, Length, 0.1 do
  1678. swait()
  1679. intensity = intensity - 0.05 * Intensity / Length
  1680. rotM = rotM - 5.0E-4 * Intensity / Length
  1681. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1682. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1683. end
  1684. hum.CameraOffset = Vector3.new(0, 0, 0)
  1685. end))
  1686. end
  1687. -------------------------------------------------------
  1688. --End Important Functions--
  1689. -------------------------------------------------------
  1690.  
  1691.  
  1692. -------------------------------------------------------
  1693. --Start Customization--
  1694. -------------------------------------------------------
  1695. local Player_Size = 1
  1696. if Player_Size ~= 1 then
  1697. root.Size = root.Size * Player_Size
  1698. tors.Size = tors.Size * Player_Size
  1699. hed.Size = hed.Size * Player_Size
  1700. ra.Size = ra.Size * Player_Size
  1701. la.Size = la.Size * Player_Size
  1702. rl.Size = rl.Size * Player_Size
  1703. ll.Size = ll.Size * Player_Size
  1704. ----------------------------------------------------------------------------------
  1705. rootj.Parent = root
  1706. neck.Parent = tors
  1707. RW.Parent = tors
  1708. LW.Parent = tors
  1709. RH.Parent = tors
  1710. LH.Parent = tors
  1711. ----------------------------------------------------------------------------------
  1712. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1713. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1714. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1715. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1716. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1717. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1718. ----------------------------------------------------------------------------------
  1719. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1720. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1721. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1722. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1723. --hat.Parent = Character
  1724. end
  1725. ----------------------------------------------------------------------------------
  1726. local SONG = 900817147 --900817147
  1727. local SONG2 = 0
  1728. local Music = Instance.new("Sound",tors)
  1729. Music.Volume = 0.7
  1730. Music.Looped = true
  1731. Music.Pitch = 1 --Pitcher
  1732. ----------------------------------------------------------------------------------
  1733. local equipped = false
  1734. local idle = 0
  1735. local change = 1
  1736. local val = 0
  1737. local toim = 0
  1738. local idleanim = 0.4
  1739. local sine = 0
  1740. local Sit = 1
  1741. local attacktype = 1
  1742. local attackdebounce = false
  1743. local euler = CFrame.fromEulerAnglesXYZ
  1744. local cankick = false
  1745. ----------------------------------------------------------------------------------
  1746. hum.WalkSpeed = 8
  1747. hum.JumpPower = 57
  1748. --[[
  1749. local ROBLOXIDLEANIMATION = IT("Animation")
  1750. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  1751. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1752. ]]
  1753. local ANIMATOR = hum.Animator
  1754. local ANIMATE = char.Animate
  1755. ANIMATE.Parent = nil
  1756. ANIMATOR.Parent = nil
  1757. -------------------------------------------------------
  1758. --End Customization--
  1759. -------------------------------------------------------
  1760.  
  1761.  
  1762. -------------------------------------------------------
  1763. --Start Attacks N Stuff--
  1764. -------------------------------------------------------
  1765.  
  1766. --pls be proud mak i did my best
  1767.  
  1768.  
  1769.  
  1770. function attackone()
  1771.  
  1772. attack = true
  1773.  
  1774. for i = 0, 1.35, 0.1 do
  1775. swait()
  1776. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4-2*i), math.rad(4+2*i), math.rad(-40-11*i)), 0.2)
  1777. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40+11*i)), 0.2)
  1778. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6, 0.2) * angles(math.rad(90+4*i), math.rad(-43), math.rad(16+6*i)), 0.3)
  1779. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-43)), 0.3)
  1780. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, 0) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
  1781. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, -0.2) * LHCF * angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2)
  1782. end
  1783.  
  1784. so("http://roblox.com/asset/?id=1340545854",ra,1,math.random(0.7,1))
  1785.  
  1786.  
  1787. con5=ra.Touched:connect(function(hit)
  1788. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1789. if attackdebounce == false then
  1790. attackdebounce = true
  1791.  
  1792. kDamagefunc(hit,3,4,math.random(2,3),"Normal",root,0,1)
  1793.  
  1794. so("http://roblox.com/asset/?id=636494529",ra,2,1)
  1795.  
  1796. RingEffect(BrickColor.new("White"),ra.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  1797. RingEffect(BrickColor.new("White"),ra.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  1798. SphereEffect(BrickColor.new("White"),ra.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  1799.  
  1800.  
  1801. coroutine.resume(coroutine.create(function()
  1802. for i = 0,1,0.1 do
  1803. swait()
  1804. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
  1805. end
  1806. end))
  1807.  
  1808.  
  1809. wait(0.34)
  1810. attackdebounce = false
  1811.  
  1812. end
  1813. end
  1814. end)
  1815. for i = 0, 1.12, 0.1 do
  1816. swait()
  1817. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(6), math.rad(23)), 0.35)
  1818. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(-23)), 0.35)
  1819. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.6, -0.8) * angles(math.rad(110), math.rad(23), math.rad(2)), 0.4)
  1820. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.2) * angles(math.rad(-37), math.rad(0), math.rad(-13)), 0.35)
  1821. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.3) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(6)), 0.3)
  1822. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0.05) * LHCF * angles(math.rad(-22), math.rad(0), math.rad(23)), 0.3)
  1823. end
  1824.  
  1825. con5:Disconnect()
  1826. attack = false
  1827.  
  1828. end
  1829.  
  1830.  
  1831.  
  1832.  
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841. function attacktwo()
  1842.  
  1843. attack = true
  1844.  
  1845. for i = 0, 1.35, 0.1 do
  1846. swait()
  1847. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4), math.rad(-4), math.rad(40)), 0.2)
  1848. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  1849. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(46)), 0.3)
  1850. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, 0.2) * angles(math.rad(90), math.rad(23), math.rad(6)), 0.3)
  1851. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, -0.2) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
  1852. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2)
  1853. end
  1854.  
  1855. so("http://roblox.com/asset/?id=1340545854",la,1,math.random(0.7,1))
  1856.  
  1857.  
  1858. con5=la.Touched:connect(function(hit)
  1859. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1860. if attackdebounce == false then
  1861. attackdebounce = true
  1862.  
  1863. kDamagefunc(hit,3,4,math.random(2,3),"Normal",root,0,1)
  1864.  
  1865. so("http://roblox.com/asset/?id=636494529",la,2,1)
  1866.  
  1867. RingEffect(BrickColor.new("White"),la.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  1868. RingEffect(BrickColor.new("White"),la.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  1869. SphereEffect(BrickColor.new("White"),la.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  1870.  
  1871.  
  1872. coroutine.resume(coroutine.create(function()
  1873. for i = 0,1,0.1 do
  1874. swait()
  1875. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
  1876. end
  1877. end))
  1878.  
  1879.  
  1880. wait(0.34)
  1881. attackdebounce = false
  1882.  
  1883. end
  1884. end
  1885. end)
  1886.  
  1887.  
  1888.  
  1889.  
  1890. for i = 0, 1.12, 0.1 do
  1891. swait()
  1892. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(-6), math.rad(-27)), 0.35)
  1893. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(27)), 0.35)
  1894. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.16) * angles(math.rad(-33), math.rad(0), math.rad(23)), 0.4)
  1895. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.67, -0.9) * angles(math.rad(116), math.rad(-28), math.rad(1)), 0.35)
  1896. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0.05) * RHCF * angles(math.rad(-22), math.rad(0), math.rad(-18)), 0.3)
  1897. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, -0.3) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(4)), 0.3)
  1898. end
  1899.  
  1900. con5:Disconnect()
  1901. attack = false
  1902.  
  1903. end
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909. function attackthree()
  1910.  
  1911. attack = true
  1912.  
  1913.  
  1914. for i = 0, 1.14, 0.1 do
  1915. swait()
  1916. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4), math.rad(-4), math.rad(40)), 0.2)
  1917. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  1918. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-46)), 0.3)
  1919. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, 0.2) * angles(math.rad(90), math.rad(23), math.rad(36)), 0.3)
  1920. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, -0.2) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
  1921. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-12), math.rad(0), math.rad(34)), 0.2)
  1922. end
  1923.  
  1924. con5=hum.Touched:connect(function(hit)
  1925. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1926. if attackdebounce == false then
  1927. attackdebounce = true
  1928.  
  1929. kDamagefunc(hit,4,5,math.random(3,4),"Normal",root,0,1)
  1930. so("http://roblox.com/asset/?id=636494529",ll,2,1)
  1931.  
  1932. RingEffect(BrickColor.new("White"),ll.CFrame*CF(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  1933. RingEffect(BrickColor.new("White"),ll.CFrame*CF(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  1934. SphereEffect(BrickColor.new("White"),ll.CFrame*CF(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  1935.  
  1936.  
  1937. coroutine.resume(coroutine.create(function()
  1938. for i = 0,1,0.1 do
  1939. swait()
  1940. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
  1941. end
  1942. end))
  1943.  
  1944.  
  1945. wait(0.34)
  1946. attackdebounce = false
  1947.  
  1948. end
  1949. end
  1950. end)
  1951.  
  1952. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  1953. for i = 0, 9.14, 0.3 do
  1954. swait()
  1955. BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  1956. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(8), math.rad(8), math.rad(0-54*i)), 0.35)
  1957. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  1958. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  1959. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  1960. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
  1961. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-7*i), math.rad(0), math.rad(0-9*i)), 0.35)
  1962. end
  1963. attack = false
  1964. con5:disconnect()
  1965. end
  1966.  
  1967.  
  1968.  
  1969. function attackfour()
  1970.  
  1971. attack = true
  1972. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
  1973. WaveEffect(BrickColor.new("White"), root.CFrame * CFrame.new(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
  1974. for i = 0, 5.14, 0.1 do
  1975. swait()
  1976. SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  1977. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24+4*i), math.rad(0), math.rad(0)), 0.2)
  1978. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0+11*i), math.rad(0), math.rad(0)), 0.2)
  1979. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0-6*i), math.rad(0), math.rad(36+4*i)), 0.3)
  1980. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0-6*i), math.rad(0), math.rad(-36-4*i)), 0.3)
  1981. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28+4*i)), 0.2)
  1982. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34-4*i)), 0.2)
  1983. end
  1984. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  1985. local velo=Instance.new("BodyVelocity")
  1986. velo.velocity=vt(0,25,0)
  1987. velo.P=8000
  1988. velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  1989. velo.Parent=root
  1990. game:GetService("Debris"):AddItem(velo,0.7)
  1991.  
  1992.  
  1993.  
  1994. con5=hum.Touched:connect(function(hit)
  1995. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1996. if attackdebounce == false then
  1997. attackdebounce = true
  1998. coroutine.resume(coroutine.create(function()
  1999. for i = 0,1.5,0.1 do
  2000. swait()
  2001. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.6,-1.8)
  2002. end
  2003. end))
  2004. kDamagefunc(hit,3,4,math.random(0,0),"Normal",root,0,1)
  2005. so("http://roblox.com/asset/?id=636494529",rl,2,1)
  2006. RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2007. RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2008. SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  2009.  
  2010.  
  2011.  
  2012. coroutine.resume(coroutine.create(function()
  2013. for i = 0,1,0.1 do
  2014. swait()
  2015. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.75*1.8,0.75*1.8),math.random(-0.75*1.8,0.75*1.8),math.random(-0.75*1.8,0.75*1.8)),0.44)
  2016. end
  2017. end))
  2018.  
  2019.  
  2020. wait(0.14)
  2021. attackdebounce = false
  2022. end
  2023. end
  2024. end)
  2025.  
  2026. for i = 0, 5.11, 0.15 do
  2027. swait()
  2028. BlockEffect(BrickColor.new("White"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  2029. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, 0.1+0.2*i) * angles(math.rad(-10-80*i), math.rad(0), math.rad(0)), 0.42)
  2030. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42)
  2031. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35)
  2032. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35)
  2033. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.5, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20+10*i)), 0.42)
  2034. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.5, -0.4) * LHCF * angles(math.rad(0), math.rad(0), math.rad(24)), 0.42)
  2035. end
  2036.  
  2037.  
  2038. attack = false
  2039. con5:disconnect()
  2040. end
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046. local cooldown = false
  2047. function quickkick()
  2048. attack = true
  2049.  
  2050.  
  2051. con5=hum.Touched:connect(function(hit)
  2052. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2053. if attackdebounce == false then
  2054. attackdebounce = true
  2055.  
  2056. coroutine.resume(coroutine.create(function()
  2057. for i = 0,1.5,0.1 do
  2058. swait()
  2059. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.3,-1.8)
  2060. end
  2061. end))
  2062.  
  2063. kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1)
  2064. so("http://roblox.com/asset/?id=636494529",rl,2,1)
  2065. RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2066. RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2067. SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  2068.  
  2069.  
  2070.  
  2071. coroutine.resume(coroutine.create(function()
  2072. for i = 0,1,0.1 do
  2073. swait()
  2074. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.8*1.8,0.8*1.8),math.random(-0.8*1.8,0.8*1.8),math.random(-0.8*1.8,0.8*1.8)),0.44)
  2075. end
  2076. end))
  2077.  
  2078.  
  2079. wait(0.08)
  2080. attackdebounce = false
  2081. end
  2082. end
  2083. end)
  2084.  
  2085. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  2086. for i = 0, 11.14, 0.3 do
  2087. swait()
  2088. root.Velocity = root.CFrame.lookVector * 30
  2089. BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  2090. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(-21-30*i), math.rad(8+10*i), math.rad(0-90*i)), 0.35)
  2091. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  2092. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  2093. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  2094. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
  2095. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-2*i), math.rad(0), math.rad(0-9*i)), 0.35)
  2096. end
  2097. attack = false
  2098. con5:disconnect()
  2099. end
  2100.  
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108. function Taunt()
  2109. attack = true
  2110. hum.WalkSpeed = 0
  2111. Cso("1535995570", hed, 8.45, 1)
  2112. for i = 0, 8.2, 0.1 do
  2113. swait()
  2114. hum.WalkSpeed = 0
  2115. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(0)), 0.2)
  2116. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25), Rad(0), Rad(16 * Cos(sine / 12))), 0.2)
  2117. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  2118. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  2119. RW.C0 = clerp(RW.C0, CF(1.1* Player_Size, 0.5 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(180), Rad(6), Rad(-56)), 0.1)
  2120. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.1 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(45), Rad(6), Rad(86)), 0.1)
  2121. end
  2122. attack = false
  2123. hum.WalkSpeed = 8
  2124. end
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132. function Hyperkickcombo()
  2133.  
  2134. attack = true
  2135. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
  2136. WaveEffect(BrickColor.new("White"), root.CFrame * CFrame.new(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
  2137. for i = 0, 7.14, 0.1 do
  2138. swait()
  2139. SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  2140. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
  2141. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  2142. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(36)), 0.3)
  2143. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-36)), 0.3)
  2144. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28)), 0.2)
  2145. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34)), 0.2)
  2146. end
  2147. local Cracking = Cso("292536356", tors, 10, 1)
  2148. for i = 0, 7.14, 0.1 do
  2149. swait()
  2150. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  2151. Aura(5, 0.15, "Add" , root.CFrame * CF(Mrandom(-12, 12), -6, Mrandom(-12, 12)) * angles(Rad(90 + Mrandom(-12, 12)), 0, 0), 1.5, 1.5, 10, -0.015, BrickC"Lime green", 0, "Sphere")
  2152. WaveEffect(BrickColor.new("Lime green"), root.CFrame * CFrame.new(0, -6, 0) * euler(0, math.random(-25, 25), 0), 1, 1, 1, 1, 0.2, 1, 0.05)
  2153. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  2154. SphereEffect(BrickColor.new("Lime green"),ll.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  2155. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
  2156. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2)
  2157. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(36)), 0.3)
  2158. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-36)), 0.3)
  2159. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28)), 0.2)
  2160. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34)), 0.2)
  2161. end
  2162. Cracking.Playing = false
  2163. so("http://www.roblox.com/asset/?id=197161452", char, 3, 0.8)
  2164. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  2165. SphereEffect(BrickColor.new("Lime green"),tors.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,38,38,38,0.08)
  2166. local velo=Instance.new("BodyVelocity")
  2167. velo.velocity=vt(0,27,0)
  2168. velo.P=11000
  2169. velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  2170. velo.Parent=root
  2171. game:GetService("Debris"):AddItem(velo,1.24)
  2172.  
  2173.  
  2174.  
  2175. con5=hum.Touched:connect(function(hit)
  2176. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2177. if attackdebounce == false then
  2178. attackdebounce = true
  2179. coroutine.resume(coroutine.create(function()
  2180. for i = 0,1.5,0.1 do
  2181. swait()
  2182. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,3.4,-1.8)
  2183. end
  2184. end))
  2185. kDamagefunc(hit,2,3,math.random(0,0),"Normal",root,0,1)
  2186. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  2187. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2188. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2189. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  2190.  
  2191.  
  2192.  
  2193. coroutine.resume(coroutine.create(function()
  2194. for i = 0,1,0.1 do
  2195. swait()
  2196. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  2197. end
  2198. end))
  2199.  
  2200.  
  2201. wait(0.09)
  2202. attackdebounce = false
  2203. end
  2204. end
  2205. end)
  2206.  
  2207. for i = 0, 9.11, 0.2 do
  2208. swait()
  2209. BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  2210. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, 0.1+0.12*i) * angles(math.rad(-10-95*i), math.rad(0), math.rad(0)), 0.42)
  2211. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42)
  2212. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35)
  2213. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35)
  2214. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.5, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20+10*i)), 0.42)
  2215. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.5, -0.4) * LHCF * angles(math.rad(0), math.rad(0), math.rad(24)), 0.42)
  2216. end
  2217.  
  2218.  
  2219.  
  2220.  
  2221. con5:disconnect()
  2222.  
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228. con5=hum.Touched:connect(function(hit)
  2229. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2230. if attackdebounce == false then
  2231. attackdebounce = true
  2232. coroutine.resume(coroutine.create(function()
  2233. for i = 0,1.5,0.1 do
  2234. swait()
  2235. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  2236. end
  2237. end))
  2238. kDamagefunc(hit,3,4,math.random(0,0),"Normal",root,0,1)
  2239.  
  2240. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  2241. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2242. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2243. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  2244.  
  2245.  
  2246.  
  2247. coroutine.resume(coroutine.create(function()
  2248. for i = 0,1,0.1 do
  2249. swait()
  2250. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  2251. end
  2252. end))
  2253.  
  2254.  
  2255. wait(0.08)
  2256. attackdebounce = false
  2257. end
  2258. end
  2259. end)
  2260.  
  2261.  
  2262.  
  2263. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  2264. for i = 0, 9.14, 0.3 do
  2265. swait()
  2266. root.Velocity = root.CFrame.lookVector * 20
  2267. BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  2268. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(53), math.rad(8), math.rad(0-54*i)), 0.35)
  2269. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  2270. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  2271. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  2272. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
  2273. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-7*i), math.rad(0), math.rad(0-9*i)), 0.35)
  2274. end
  2275.  
  2276.  
  2277.  
  2278. con5:disconnect()
  2279.  
  2280.  
  2281.  
  2282. con5=hum.Touched:connect(function(hit)
  2283. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2284. if attackdebounce == false then
  2285. attackdebounce = true
  2286. coroutine.resume(coroutine.create(function()
  2287. for i = 0,1.5,0.1 do
  2288. swait()
  2289. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  2290. end
  2291. end))
  2292. kDamagefunc(hit,3,4,math.random(0,0),"Normal",root,0,1)
  2293. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  2294. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2295. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2296. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  2297.  
  2298.  
  2299.  
  2300. coroutine.resume(coroutine.create(function()
  2301. for i = 0,1,0.1 do
  2302. swait()
  2303. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  2304. end
  2305. end))
  2306.  
  2307.  
  2308. wait(0.05)
  2309. attackdebounce = false
  2310. end
  2311. end
  2312. end)
  2313.  
  2314.  
  2315. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  2316. for i = 0, 15.14, 0.32 do
  2317. swait()
  2318. root.Velocity = root.CFrame.lookVector * 20
  2319. BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  2320. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(-21-50*i), math.rad(8+20*i), math.rad(0-90*i)), 0.35)
  2321. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  2322. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  2323. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  2324. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
  2325. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-2*i), math.rad(0), math.rad(0-4*i)), 0.35)
  2326. end
  2327.  
  2328. attack = false
  2329. con5:disconnect()
  2330.  
  2331. end
  2332.  
  2333.  
  2334.  
  2335.  
  2336.  
  2337. local ultra = false
  2338.  
  2339. function Galekicks()
  2340.  
  2341. attack = true
  2342. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
  2343. for i = 0, 1.65, 0.1 do
  2344. swait()
  2345. root.Velocity = root.CFrame.lookVector * 0
  2346. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  2347. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  2348. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  2349. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  2350. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  2351. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  2352. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  2353. end
  2354.  
  2355.  
  2356. for i = 1, 17 do
  2357.  
  2358. con5=hum.Touched:connect(function(hit)
  2359. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2360. if attackdebounce == false then
  2361. attackdebounce = true
  2362. coroutine.resume(coroutine.create(function()
  2363. for i = 0,1.5,0.1 do
  2364. swait()
  2365. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  2366. end
  2367. end))
  2368. kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1)
  2369. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  2370. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2371. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2372. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  2373.  
  2374.  
  2375.  
  2376. coroutine.resume(coroutine.create(function()
  2377. for i = 0,1,0.1 do
  2378. swait()
  2379. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  2380. end
  2381. end))
  2382.  
  2383.  
  2384. wait(0.05)
  2385. attackdebounce = false
  2386. end
  2387. end
  2388. end)
  2389.  
  2390. for i = 0, .1, 0.2 do
  2391. swait()
  2392. BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  2393. root.Velocity = root.CFrame.lookVector * 10
  2394. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-44), math.rad(-2), math.rad(90)), 0.7)
  2395. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
  2396. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.7)
  2397. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.7)
  2398. RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0) * RHCF * angles(math.rad(math.random(-100,-10)), math.rad(0), math.rad(2)), 0.7)
  2399. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
  2400. end
  2401.  
  2402. so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
  2403.  
  2404. for i = 0, 0.4, 0.2 do
  2405. swait()
  2406. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  2407. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  2408. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  2409. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  2410. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  2411. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  2412. end
  2413. con5:disconnect()
  2414. end
  2415.  
  2416.  
  2417. u = mouse.KeyDown:connect(function(key)
  2418. if key == 'r' and combohits >= 150 then
  2419. ultra = true
  2420. SphereEffect(BrickColor.new("Really red"),tors.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,15,15,15,0.04)
  2421. end
  2422. end)
  2423. wait(0.3)
  2424. if ultra == true then
  2425. combohits = 0
  2426. wait(0.1)
  2427. for i = 0, 1.65, 0.1 do
  2428. swait()
  2429. root.Velocity = root.CFrame.lookVector * 0
  2430. SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  2431. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  2432. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  2433. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  2434. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  2435. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  2436. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  2437. end
  2438.  
  2439.  
  2440. so("http://roblox.com/asset/?id=146094803",hed,1,1.2)
  2441.  
  2442. for i = 1, 65 do
  2443. --Aura(5, 0.15, "Add" , root.CFrame * CF(Mrandom(-12, 12), -6, Mrandom(-12, 12)) * angles(Rad(90 + Mrandom(-12, 12)), 0, 0), 1.5, 1.5, 10, -0.015, BrickC"Really red", 0, "Brick")
  2444. con5=hum.Touched:connect(function(hit)
  2445. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2446. if attackdebounce == false then
  2447. attackdebounce = true
  2448. coroutine.resume(coroutine.create(function()
  2449. for i = 0,1.5,0.1 do
  2450. swait()
  2451. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  2452. end
  2453. end))
  2454. kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1)
  2455.  
  2456.  
  2457.  
  2458.  
  2459. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  2460. RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2461. RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2462. SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  2463.  
  2464.  
  2465.  
  2466. coroutine.resume(coroutine.create(function()
  2467. for i = 0,1,0.1 do
  2468. swait()
  2469. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  2470. end
  2471. end))
  2472.  
  2473.  
  2474. wait(0.05)
  2475. attackdebounce = false
  2476. end
  2477. end
  2478. end)
  2479.  
  2480. for i = 0, .03, 0.1 do
  2481. swait()
  2482. BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  2483. root.Velocity = root.CFrame.lookVector * 10
  2484. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-44), math.rad(-2), math.rad(90)), 0.7)
  2485. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
  2486. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.7)
  2487. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.7)
  2488. RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0) * RHCF * angles(math.rad(math.random(-100,-10)), math.rad(0), math.rad(2)), 0.7)
  2489. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
  2490. end
  2491.  
  2492. so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
  2493.  
  2494. for i = 0, 0.07, 0.1 do
  2495. swait()
  2496. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  2497. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  2498. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  2499. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  2500. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  2501. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  2502. end
  2503. con5:disconnect()
  2504. end
  2505.  
  2506. for i = 0, 1.65, 0.1 do
  2507. swait()
  2508. root.Velocity = root.CFrame.lookVector * 0
  2509. SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  2510. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  2511. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  2512. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  2513. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  2514. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  2515. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  2516. end
  2517.  
  2518. con5=hum.Touched:connect(function(hit)
  2519. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2520. if attackdebounce == false then
  2521. attackdebounce = true
  2522. coroutine.resume(coroutine.create(function()
  2523. for i = 0,1.5,0.1 do
  2524. swait()
  2525. --hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  2526. end
  2527. end))
  2528. kDamagefunc(hit, 1, 3, 0,"Normal",root,0,1)
  2529. so("http://roblox.com/asset/?id=636494529",rl,2,.63)
  2530. RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2531. RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  2532. SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  2533.  
  2534.  
  2535. coroutine.resume(coroutine.create(function()
  2536. for i = 0,1,0.1 do
  2537. swait()
  2538. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  2539. end
  2540. end))
  2541.  
  2542.  
  2543. wait(0.05)
  2544. attackdebounce = false
  2545. end
  2546. end
  2547. end)
  2548.  
  2549. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 1, 1.4)
  2550. SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,38,38,38,0.08)
  2551.  
  2552. for i = 0, 2, 0.1 do
  2553. swait()
  2554. --BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  2555. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  2556. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  2557. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  2558. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  2559. RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0.2) * RHCF * angles(math.rad(-50), math.rad(0), math.rad(2)), 0.2)
  2560. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  2561. end
  2562. SphereEffect(BrickColor.new("Really red"),tors.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,8,8,8,0.04)
  2563.  
  2564. wait(0.25)
  2565. con5:Disconnect()
  2566.  
  2567.  
  2568.  
  2569.  
  2570. con5=hum.Touched:connect(function(hit)
  2571. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2572. if attackdebounce == false then
  2573. attackdebounce = true
  2574.  
  2575. kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1)
  2576. so("http://roblox.com/asset/?id=565207203",ll,7,0.63)
  2577.  
  2578. RingEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,2.2,6,2.2,0.04)
  2579. RingEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,2.2,6,2.2,0.04)
  2580. SphereEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,8,8,8,0.04)
  2581. SpecialEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,8,8,8,0.04)
  2582. SphereEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,5,18,5,0.04)
  2583. WaveEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,1.5,16,1.5,0.04)
  2584.  
  2585. coroutine.resume(coroutine.create(function()
  2586. for i = 0,1,0.1 do
  2587. swait()
  2588. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
  2589. end
  2590. end))
  2591.  
  2592. wait(0.06)
  2593. attackdebounce = false
  2594.  
  2595. end
  2596. end
  2597. end)
  2598.  
  2599. coroutine.resume(coroutine.create(function()
  2600. while ultra == true do
  2601. swait()
  2602. root.CFrame = root.CFrame*CFrame.new(math.random(-3,3),math.random(-2,2),math.random(-3,3))
  2603. end
  2604. end))
  2605.  
  2606.  
  2607. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  2608. for i = 1,3 do
  2609. for i = 0, 9.14, 0.45 do
  2610. swait()
  2611. root.Velocity = root.CFrame.lookVector * 30
  2612. BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  2613. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(8), math.rad(8), math.rad(0-94*i)), 0.35)
  2614. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  2615. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  2616. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  2617. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
  2618. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-7*i), math.rad(0), math.rad(0-9*i)), 0.35)
  2619. end
  2620. end
  2621.  
  2622.  
  2623. for i = 1,3 do
  2624. for i = 0, 11.14, 0.45 do
  2625. swait()
  2626. root.Velocity = root.CFrame.lookVector * 30
  2627. BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  2628. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(-21-30*i), math.rad(8+10*i), math.rad(0-110*i)), 0.35)
  2629. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  2630. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  2631. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  2632. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(27), math.rad(0), math.rad(74)), 0.35)
  2633. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-34-2*i), math.rad(0), math.rad(0-9*i)), 0.35)
  2634. end
  2635.  
  2636.  
  2637.  
  2638. end
  2639. so("http://www.roblox.com/asset/?id=197161452", char, 0.5, 0.8)
  2640. con5:disconnect()
  2641.  
  2642.  
  2643. end -- combo hit end
  2644. attack = false
  2645. ultra = false
  2646. u:disconnect()
  2647.  
  2648. end
  2649.  
  2650.  
  2651.  
  2652.  
  2653. -------------------------------------------------------
  2654. --End Attacks N Stuff--
  2655. -------------------------------------------------------
  2656. mouse.KeyDown:connect(function(key)
  2657. if string.byte(key) == 48 then
  2658. Swing = 2
  2659. hum.WalkSpeed = 24.82
  2660. end
  2661. end)
  2662. mouse.KeyUp:connect(function(key)
  2663. if string.byte(key) == 48 then
  2664. Swing = 1
  2665. hum.WalkSpeed = 8
  2666. end
  2667. end)
  2668.  
  2669.  
  2670.  
  2671.  
  2672.  
  2673.  
  2674.  
  2675. mouse.Button1Down:connect(function()
  2676. if attack==false then
  2677. if attacktype==1 then
  2678. attack=true
  2679. attacktype=2
  2680. attackone()
  2681. elseif attacktype==2 then
  2682. attack=true
  2683. attacktype=3
  2684. attacktwo()
  2685. elseif attacktype==3 then
  2686. attack=true
  2687. attacktype=4
  2688. attackthree()
  2689. elseif attacktype==4 then
  2690. attack=true
  2691. attacktype=1
  2692. attackfour()
  2693. end
  2694. end
  2695. end)
  2696.  
  2697.  
  2698.  
  2699.  
  2700. mouse.KeyDown:connect(function(key)
  2701. if key == 'e' and attack == false and cankick == true and cooldown == false then
  2702. quickkick()
  2703. cooldown = true
  2704.  
  2705. coroutine.resume(coroutine.create(function()
  2706. wait(2)
  2707. cooldown = false
  2708. end))
  2709.  
  2710.  
  2711.  
  2712. end
  2713. end)
  2714.  
  2715.  
  2716.  
  2717.  
  2718.  
  2719.  
  2720.  
  2721.  
  2722. mouse.KeyDown:connect(function(key)
  2723. if attack == false then
  2724. if key == 't' then
  2725. Taunt()
  2726. elseif key == 'f' then
  2727. Hyperkickcombo()
  2728. elseif key == 'r' then
  2729. Galekicks()
  2730. end
  2731. end
  2732. end)
  2733.  
  2734. -------------------------------------------------------
  2735. --Start Animations--
  2736. -------------------------------------------------------
  2737. print("By Makhail07 and KillerDarkness0105")
  2738. print("Basic Animations by Makhail07")
  2739. print("Attack Animations by KillerDarkness0105")
  2740. print("This is pretty much our final script together")
  2741. print("--------------------------------")
  2742. print("Attacks")
  2743. print("E in air: Quick Kicks")
  2744. print("Left Mouse: 4 click combo")
  2745. print("F: Hyper Kicks")
  2746. print("R: Gale Kicks, Spam R if your combo is over 150 to do an ultra combo")
  2747. print("--------------------------------")
  2748. while true do
  2749. swait()
  2750. sine = sine + change
  2751. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  2752. local velderp = root.Velocity.y
  2753. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  2754.  
  2755. if hitfloor == nil then
  2756. cankick = true
  2757. else
  2758. cankick = false
  2759. end
  2760.  
  2761.  
  2762. if equipped == true or equipped == false then
  2763. if attack == false then
  2764. idle = idle + 1
  2765. else
  2766. idle = 0
  2767. end
  2768. if 1 < root.Velocity.y and hitfloor == nil then
  2769. Anim = "Jump"
  2770. if attack == false then
  2771. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  2772. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
  2773. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.1)
  2774. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2775. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  2776. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  2777. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  2778. end
  2779. elseif -1 > root.Velocity.y and hitfloor == nil then
  2780. Anim = "Fall"
  2781. if attack == false then
  2782. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  2783. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
  2784. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.1)
  2785. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  2786. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  2787. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
  2788. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
  2789. end
  2790. elseif torvel < 1 and hitfloor ~= nil then
  2791. Anim = "Idle"
  2792. change = 1
  2793. if attack == false then
  2794. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  2795. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(20)), 0.1)
  2796. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-6.5 * Sin(sine / 12)), Rad(0), Rad(-20)), 0.1)
  2797. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-12.5), Rad(0), Rad(0)), 0.1)
  2798. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, -0.2* Player_Size) * angles(Rad(0), Rad(-65), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.1)
  2799. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.05 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(110), Rad(6 + 6.5 * Sin(sine / 12)), Rad(25)), 0.1)
  2800. LW.C0 = clerp(LW.C0, CF(-1.3* Player_Size, 0.2 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(110), Rad(6 - 6.5 * Sin(sine / 12)), Rad(25)), 0.1)
  2801. end
  2802. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  2803. Anim = "Walk"
  2804. change = 1
  2805. if attack == false then
  2806. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  2807. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  2808. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-1), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.15)
  2809. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 15 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  2810. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 15 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  2811. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(56) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)), Rad(6) - ra.RotVelocity.Y / 75), 0.1)
  2812. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-56) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1)
  2813. end
  2814. elseif torvel >= 22 and hitfloor ~= nil then
  2815. Anim = "Sprint"
  2816. change = 1.35
  2817. if attack == false then
  2818. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  2819. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  2820. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-8.5 - 2 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.15)
  2821. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  2822. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  2823. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-65) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  2824. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-65) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  2825. end
  2826. end
  2827. end
  2828. Music.SoundId = "rbxassetid://"..SONG
  2829. Music.Looped = true
  2830. Music.Pitch = 1
  2831. Music.Volume = 0.7
  2832. Music.Parent = tors
  2833. Music:Resume()
  2834. if 0 < #Effects then
  2835. for e = 1, #Effects do
  2836. if Effects[e] ~= nil then
  2837. local Thing = Effects[e]
  2838. if Thing ~= nil then
  2839. local Part = Thing[1]
  2840. local Mode = Thing[2]
  2841. local Delay = Thing[3]
  2842. local IncX = Thing[4]
  2843. local IncY = Thing[5]
  2844. local IncZ = Thing[6]
  2845. if 1 >= Thing[1].Transparency then
  2846. if Thing[2] == "Block1" then
  2847. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2848. local Mesh = Thing[1].Mesh
  2849. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2850. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2851. elseif Thing[2] == "Block2" then
  2852. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  2853. local Mesh = Thing[7]
  2854. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2855. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2856. elseif Thing[2] == "Block3" then
  2857. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  2858. local Mesh = Thing[7]
  2859. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2860. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2861. elseif Thing[2] == "Cylinder" then
  2862. local Mesh = Thing[1].Mesh
  2863. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2864. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2865. elseif Thing[2] == "Blood" then
  2866. local Mesh = Thing[7]
  2867. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  2868. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2869. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2870. elseif Thing[2] == "Elec" then
  2871. local Mesh = Thing[1].Mesh
  2872. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2873. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2874. elseif Thing[2] == "Disappear" then
  2875. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2876. elseif Thing[2] == "Shatter" then
  2877. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2878. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2879. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2880. Thing[6] = Thing[6] + Thing[5]
  2881. end
  2882. else
  2883. Part.Parent = nil
  2884. table.remove(Effects, e)
  2885. end
  2886. end
  2887. end
  2888. end
  2889. end
  2890. end
  2891. -------------------------------------------------------
  2892. --End Animations And Script--
  2893. ---------------------------------------------------------TODO: add comments or something idk
  2894. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2895. local Player = owner
  2896. local Mouse,mouse,UserInputService,ContextActionService
  2897. do
  2898. script.Parent = Player.Character
  2899. local CAS = {Actions={}}
  2900. local Event = Instance.new("RemoteEvent")
  2901. Event.Name = "UserInput_Event"
  2902. Event.Parent = Player.Character
  2903. local fakeEvent = function()
  2904. local t = {_fakeEvent=true}
  2905. t.Connect = function(self,f)self.Function=f end
  2906. t.connect = t.Connect
  2907. return t
  2908. end
  2909. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  2910. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  2911. function CAS:BindAction(name,fun,touch,...)
  2912. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  2913. end
  2914. function CAS:UnbindAction(name)
  2915. CAS.Actions[name] = nil
  2916. end
  2917. local function te(self,ev,...)
  2918. local t = m[ev]
  2919. if t and t._fakeEvent and t.Function then
  2920. t.Function(...)
  2921. end
  2922. end
  2923. m.TrigEvent = te
  2924. UIS.TrigEvent = te
  2925. Event.OnServerEvent:Connect(function(plr,io)
  2926. if plr~=Player then return end
  2927. if io.isMouse then
  2928. m.Target = io.Target
  2929. m.Hit = io.Hit
  2930. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  2931. if io.UserInputState == Enum.UserInputState.Begin then
  2932. m:TrigEvent("Button1Down")
  2933. else
  2934. m:TrigEvent("Button1Up")
  2935. end
  2936. else
  2937. for n,t in pairs(CAS.Actions) do
  2938. for _,k in pairs(t.Keys) do
  2939. if k==io.KeyCode then
  2940. t.Function(t.Name,io.UserInputState,io)
  2941. end
  2942. end
  2943. end
  2944. if io.UserInputState == Enum.UserInputState.Begin then
  2945. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  2946. UIS:TrigEvent("InputBegan",io,false)
  2947. else
  2948. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  2949. UIS:TrigEvent("InputEnded",io,false)
  2950. end
  2951. end
  2952. end)
  2953. NLS([==[
  2954. local Player = game:GetService("Players").LocalPlayer
  2955.  
  2956. local Char = Player.Character
  2957. local Event = Char:WaitForChild("UserInput_Event")
  2958.  
  2959. local UIS = game:GetService("UserInputService")
  2960.  
  2961. local input = function(io,a)
  2962. if a then return end
  2963. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  2964. Event:FireServer(io)
  2965. end
  2966. UIS.InputBegan:Connect(input)
  2967. UIS.InputEnded:Connect(input)
  2968. local Changed = false
  2969. local Mouse = Player:GetMouse()
  2970. local h,t = Mouse.Hit,Mouse.Target
  2971. while wait(1/30) do
  2972. if h~=Mouse.Hit or t~=Mouse.Target then
  2973. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  2974. h,t=Mouse.Hit,Mouse.Target
  2975. end
  2976. end
  2977. ]==],Player.Character)
  2978. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  2979. end
  2980.  
  2981.  
  2982. wait(0.5)
  2983.  
  2984. warn([[SG AWAKEN Loaded.
  2985. The super switcher.
  2986. Velnorum is one of the first wielders.
  2987.  
  2988. Created, Reworked by NoobyGames12 and converted by Helkern
  2989. ]])
  2990.  
  2991.  
  2992. ------------- ORIGINAL WIELDER OC: Velnorum
  2993. print([[Icons:
  2994. ! = New
  2995. ? = Spoilers
  2996. * = Exclusivity
  2997. C = Changes
  2998.  
  2999. ]])
  3000. warn([[V 4.1 Update Log:
  3001. !C? - Mostly about 7-9 main modes added.
  3002. ! - Non-canon [N] modes are added from few modes:
  3003. > Mayhem: NANO
  3004. > Purity: BRIGHTNESS
  3005. > Chaos: CRAZED
  3006. > Divinity: BROKEN
  3007. > Destiny: OMEGA
  3008. ! - Added back CALAMITY and INFESTATION.
  3009. C - Two main click attacks changed.
  3010. !C - Moves are added back, with severe change and difference.
  3011. C - Some modes got renamed because fat filter
  3012. C - Toned down the effects to be compatible with fe without strong lag.]])
  3013. --- its obs smooth af do not touch
  3014. ---- Sources and functions might be taken from others
  3015. plr = owner
  3016. char = plr.Character
  3017. hum = char.Humanoid
  3018. local cam = game.Workspace.CurrentCamera
  3019. Camera = cam
  3020. local CamInterrupt = false
  3021. local TwoD = false
  3022. local TargetInfo = {nil, nil}
  3023. cam.CameraType = "Custom"
  3024. t = char.Torso
  3025. h = char.Head
  3026. ra = char["Right Arm"]
  3027. la = char["Left Arm"]
  3028. rl = char["Right Leg"]
  3029. ll = char["Left Leg"]
  3030. tors = char.Torso
  3031. lleg = char["Left Leg"]
  3032. root = char.HumanoidRootPart
  3033. hed = char.Head
  3034. rleg = char["Right Leg"]
  3035. rarm = char["Right Arm"]
  3036. larm = char["Left Arm"]
  3037. radian = math.rad
  3038. random = math.random
  3039. Vec3 = Vector3.new
  3040. Inst = Instance.new
  3041. cFrame = CFrame.new
  3042. Euler = CFrame.fromEulerAnglesXYZ
  3043. vt = Vector3.new
  3044. bc = BrickColor.new
  3045. br = BrickColor.random
  3046. it = Instance.new
  3047. cf = CFrame.new
  3048.  
  3049. local Booleans = {
  3050. CamFollow = true,
  3051. GyroUse = true
  3052. }
  3053.  
  3054. function lerp(object, newCFrame, alpha)
  3055. return object:lerp(newCFrame, alpha)
  3056. end
  3057.  
  3058. local Directer = Inst("BodyGyro", root)
  3059. Directer.MaxTorque = Vec3(0, 0, 0)
  3060. Directer.P = 600000
  3061. local CPart = Inst("Part")
  3062. CPart.Anchored = true
  3063. CPart.CanCollide = false
  3064. CPart.Locked = true
  3065. CPart.Transparency = 1
  3066.  
  3067. local rainbowmode = false
  3068. local chaosmode = false
  3069.  
  3070. local kan = Instance.new("Sound",char)
  3071. kan.Volume = 1.25
  3072. kan.TimePosition = 0
  3073. kan.PlaybackSpeed = 1
  3074. kan.Pitch = 1
  3075. kan.SoundId = "rbxassetid://614032233"
  3076. kan.Name = "wrecked"
  3077. kan.Looped = true
  3078. kan:Play()
  3079.  
  3080. local currentThemePlaying = kan.SoundId
  3081. local currentPitch = kan.Pitch
  3082. local currentVol = kan.Volume
  3083. function newTheme(ID,timepos,pitch,vol)
  3084. local kanz = kan
  3085. --kanz:Stop()
  3086. kanz.Volume = vol
  3087. --kanz.TimePosition = timepos
  3088. kanz.PlaybackSpeed = pitch
  3089. kanz.Pitch = pitch
  3090. kanz.SoundId = ID
  3091. kanz.Name = "wrecked"
  3092. kanz.Looped = true
  3093. currentThemePlaying = kanz.SoundId
  3094. currentVol = kanz.Volume
  3095. currentPitch = kanz.Pitch
  3096. --kanz:Play()
  3097. --coroutine.resume(coroutine.create(function()
  3098. --wait(0.05)
  3099. --end))
  3100. end
  3101.  
  3102.  
  3103. function newThemeCust(ID,timepos,pitch,vol)
  3104. local kanz = kan
  3105. kanz:Stop()
  3106. kanz.Volume = vol
  3107. kanz.TimePosition = timepos
  3108. kanz.PlaybackSpeed = pitch
  3109. kanz.Pitch = pitch
  3110. kanz.SoundId = ID
  3111. kanz.Name = "wrecked"
  3112. kanz.Looped = true
  3113. currentThemePlaying = kanz.SoundId
  3114. currentVol = kanz.Volume
  3115. currentPitch = kanz.Pitch
  3116. kanz:Play()
  3117. coroutine.resume(coroutine.create(function()
  3118. wait(0.05)
  3119. end))
  3120. end
  3121.  
  3122. local mutedtog = false
  3123.  
  3124. function CameraEnshaking(Length,Intensity)
  3125. coroutine.resume(coroutine.create(function()
  3126. local intensity = 1*Intensity
  3127. local rotM = 0.01*Intensity
  3128. for i = 0, Length, 0.1 do
  3129. swait()
  3130. intensity = intensity - 0.05*Intensity/Length
  3131. rotM = rotM - 0.0005*Intensity/Length
  3132. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  3133. 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)
  3134. end
  3135. Humanoid.CameraOffset = Vec3(0, 0, 0)
  3136. end))
  3137. end
  3138. CamShake=function(Part,Distan,Power,Times)
  3139. local de=Part.Position
  3140. for i,v in pairs(workspace:children()) do
  3141. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  3142. for _,c in pairs(v:children()) do
  3143. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  3144. local Noob=v.Humanoid
  3145. if Noob~=nil then
  3146. coroutine.resume(coroutine.create(function()
  3147. FV = Instance.new("BoolValue", Noob)
  3148. FV.Name = "CameraShake"
  3149. for ShakeNum=1,Times do
  3150. swait()
  3151. local ef=Power
  3152. if ef>=1 then
  3153. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  3154. else
  3155. ef=Power*10
  3156. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  3157. end
  3158. end
  3159. Humanoid.CameraOffset = Vector3.new(0,0,0)
  3160. FV:Destroy()
  3161. end))
  3162. CameraShake(Times, Power, Noob)
  3163. end
  3164. end
  3165. end
  3166. end
  3167. end
  3168. end
  3169.  
  3170. local toggleTag = true
  3171. local bilguit = Instance.new("BillboardGui", hed)
  3172. bilguit.Adornee = nil
  3173. bilguit.Name = "ModeName"
  3174. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  3175. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  3176. local modet = Instance.new("TextLabel", bilguit)
  3177. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  3178. modet.FontSize = "Size8"
  3179. modet.TextScaled = true
  3180. modet.TextTransparency = 0
  3181. modet.BackgroundTransparency = 1
  3182. modet.TextTransparency = 0
  3183. modet.TextStrokeTransparency = 0
  3184. modet.Font = "Antique"
  3185. modet.TextStrokeColor3 = Color3.new(1,0,0)
  3186. modet.TextColor3 = Color3.new(0.25,0,0)
  3187. modet.Text = "NIGHTMARE"
  3188.  
  3189.  
  3190. function chatfunc(text,color,typet,font,timeex)
  3191. local chat = coroutine.wrap(function()
  3192. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  3193. Character:FindFirstChild("TalkingBillBoard"):destroy()
  3194. end
  3195. local naeeym2 = Instance.new("BillboardGui",Character)
  3196. naeeym2.Size = UDim2.new(0,100,0,40)
  3197. naeeym2.StudsOffset = Vector3.new(0,3,0)
  3198. naeeym2.Adornee = Character.Head
  3199. naeeym2.Name = "TalkingBillBoard"
  3200. local tecks2 = Instance.new("TextLabel",naeeym2)
  3201. tecks2.BackgroundTransparency = 1
  3202. tecks2.BorderSizePixel = 0
  3203. tecks2.Text = ""
  3204. tecks2.Font = font
  3205. tecks2.TextSize = 30
  3206. tecks2.TextStrokeTransparency = 0
  3207. tecks2.TextColor3 = color
  3208. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  3209. tecks2.Size = UDim2.new(1,0,0.5,0)
  3210. local tecks3 = Instance.new("TextLabel",naeeym2)
  3211. tecks3.BackgroundTransparency = 1
  3212. tecks3.BorderSizePixel = 0
  3213. tecks3.Text = ""
  3214. tecks3.Font = font
  3215. tecks3.TextSize = 30
  3216. tecks3.TextStrokeTransparency = 0
  3217. if typet == "Inverted" then
  3218. tecks3.TextColor3 = Color3.new(0,0,0)
  3219. tecks3.TextStrokeColor3 = color
  3220. elseif typet == "Normal" then
  3221. tecks3.TextColor3 = color
  3222. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  3223. end
  3224. tecks3.Size = UDim2.new(1,0,0.5,0)
  3225. coroutine.resume(coroutine.create(function()
  3226. while true do
  3227. swait(1)
  3228. if chaosmode == true then
  3229. tecks2.TextColor3 = BrickColor.random().Color
  3230. tecks3.TextStrokeColor3 = BrickColor.random().Color
  3231. end
  3232. end
  3233. end))
  3234. modet.TextTransparency = modet.TextTransparency + 1
  3235. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  3236. for i = 0, 74*timeex do
  3237. swait()
  3238. modet.TextTransparency = 1
  3239. modet.TextStrokeTransparency = 1
  3240. tecks2.Text = text
  3241. tecks3.Text = text
  3242. end
  3243. local randomrot = math.random(1,2)
  3244. if randomrot == 1 then
  3245. for i = 1, 50 do
  3246. swait()
  3247. tecks2.Text = text
  3248. tecks3.Text = text
  3249. modet.TextTransparency = modet.TextTransparency - .02
  3250. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  3251. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  3252. tecks2.TextTransparency = tecks2.TextTransparency + .04
  3253. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  3254. tecks3.TextTransparency = tecks2.TextTransparency + .04
  3255. end
  3256. elseif randomrot == 2 then
  3257. for i = 1, 50 do
  3258. swait()
  3259. tecks2.Text = text
  3260. tecks3.Text = text
  3261. modet.TextTransparency = modet.TextTransparency - .02
  3262. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  3263. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  3264. tecks2.TextTransparency = tecks2.TextTransparency + .04
  3265. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  3266. tecks3.TextTransparency = tecks2.TextTransparency + .04
  3267. end
  3268. end
  3269. modet.TextTransparency = 0
  3270. modet.TextStrokeTransparency = 0
  3271. if toggleTag == false then
  3272. modet.TextTransparency = 1
  3273. modet.TextStrokeTransparency = 1
  3274. end
  3275. naeeym2:Destroy()
  3276. end)
  3277. chat()
  3278. end
  3279.  
  3280. function bosschatfunc(text,color,watval)
  3281. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  3282. coroutine.resume(coroutine.create(function()
  3283. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  3284. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  3285. end
  3286. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  3287. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  3288. scrg.Name = "Dialog"
  3289. local txtlb = Instance.new("TextLabel",scrg)
  3290. txtlb.Text = ""
  3291. txtlb.Font = "Bodoni"
  3292. txtlb.TextColor3 = Color3.new(0,0,0)
  3293. txtlb.TextStrokeTransparency = 0
  3294. txtlb.BackgroundTransparency = 0.75
  3295. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  3296. txtlb.TextStrokeColor3 = color
  3297. txtlb.TextScaled = true
  3298. txtlb.Size = UDim2.new(1,0,0.25,0)
  3299. txtlb.TextXAlignment = "Left"
  3300. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  3301. local txtlb2 = Instance.new("TextLabel",scrg)
  3302. txtlb2.Text = "?:"
  3303. txtlb2.Font = "Arcade"
  3304. txtlb2.TextColor3 = Color3.new(0,0,0)
  3305. txtlb2.TextStrokeTransparency = 0
  3306. txtlb2.BackgroundTransparency = 1
  3307. txtlb2.TextStrokeColor3 = color
  3308. txtlb2.TextSize = 40
  3309. txtlb2.Size = UDim2.new(1,0,0.25,0)
  3310. txtlb2.TextXAlignment = "Left"
  3311. txtlb2.Position = UDim2.new(0,0,1,0)
  3312. local fvalen = 0.55
  3313. local fval = -0.49
  3314. coroutine.resume(coroutine.create(function()
  3315. while true do
  3316. swait()
  3317. if chaosmode == true then
  3318. txtlb.Rotation = math.random(-1,1)
  3319. txtlb2.Rotation = math.random(-1,1)
  3320. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  3321. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  3322. txtlb.TextStrokeColor3 = BrickColor.random().Color
  3323. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  3324. end
  3325. end
  3326. end))
  3327. coroutine.resume(coroutine.create(function()
  3328. while true do
  3329. swait()
  3330. if scrg.Parent ~= nil then
  3331. fvalen = fvalen - 0.0001
  3332. elseif scrg.Parent == nil then
  3333. break
  3334. end
  3335. end
  3336. end))
  3337. local flol = 1.75
  3338. local flil = 1.6
  3339. coroutine.resume(coroutine.create(function()
  3340. for i = 0, 9 do
  3341. swait()
  3342. fval = fval + 0.05
  3343. flol = flol - 0.1
  3344. flil = flil - 0.1
  3345. txtlb.Text = ""
  3346. txtlb.Position = UDim2.new(0,0,flol,0)
  3347. txtlb2.Position = UDim2.new(0,0,flil,0)
  3348. end
  3349. txtlb.Text = text
  3350. wait(watval)
  3351. local valinc = 0
  3352. for i = 0, 99 do
  3353. swait()
  3354. valinc = valinc + 0.0001
  3355. flol = flol + valinc
  3356. flil = flil + valinc
  3357. txtlb.Rotation = txtlb.Rotation + valinc*20
  3358. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  3359. txtlb.Position = UDim2.new(0,0,flol,0)
  3360. txtlb2.Position = UDim2.new(0,0,flil,0)
  3361. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  3362. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  3363. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  3364. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  3365. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  3366. end
  3367. scrg:Destroy()
  3368. end))
  3369. end))
  3370. end
  3371. end
  3372.  
  3373.  
  3374. local Create = LoadLibrary("RbxUtility").Create
  3375.  
  3376. CFuncs = {
  3377. ["Part"] = {
  3378. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  3379. local Part = Create("Part"){
  3380. Parent = Parent,
  3381. Reflectance = Reflectance,
  3382. Transparency = Transparency,
  3383. CanCollide = false,
  3384. Locked = true,
  3385. BrickColor = BrickColor.new(tostring(BColor)),
  3386. Name = Name,
  3387. Size = Size,
  3388. Material = Material,
  3389. }
  3390. RemoveOutlines(Part)
  3391. return Part
  3392. end;
  3393. };
  3394.  
  3395. ["Mesh"] = {
  3396. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  3397. local Msh = Create(Mesh){
  3398. Parent = Part,
  3399. Offset = OffSet,
  3400. Scale = Scale,
  3401. }
  3402. if Mesh == "SpecialMesh" then
  3403. Msh.MeshType = MeshType
  3404. Msh.MeshId = MeshId
  3405. end
  3406. return Msh
  3407. end;
  3408. };
  3409.  
  3410. ["Mesh"] = {
  3411. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  3412. local Msh = Create(Mesh){
  3413. Parent = Part,
  3414. Offset = OffSet,
  3415. Scale = Scale,
  3416. }
  3417. if Mesh == "SpecialMesh" then
  3418. Msh.MeshType = MeshType
  3419. Msh.MeshId = MeshId
  3420. end
  3421. return Msh
  3422. end;
  3423. };
  3424.  
  3425. ["Weld"] = {
  3426. Create = function(Parent, Part0, Part1, C0, C1)
  3427. local Weld = Create("Weld"){
  3428. Parent = Parent,
  3429. Part0 = Part0,
  3430. Part1 = Part1,
  3431. C0 = C0,
  3432. C1 = C1,
  3433. }
  3434. return Weld
  3435. end;
  3436. };
  3437.  
  3438. ["Sound"] = {
  3439. Create = function(id, par, vol, pit)
  3440. coroutine.resume(coroutine.create(function()
  3441. local S = Create("Sound"){
  3442. Volume = vol,
  3443. Name = "EffectSoundo",
  3444. Pitch = pit or 1,
  3445. SoundId = id,
  3446. Parent = par or workspace,
  3447. }
  3448. wait()
  3449. S:play()
  3450. game:GetService("Debris"):AddItem(S, 10)
  3451. end))
  3452. end;
  3453. };
  3454.  
  3455. ["TimeSound"] = {
  3456. Create = function(id, par, vol, pit, timepos)
  3457. coroutine.resume(coroutine.create(function()
  3458. local S = Create("Sound"){
  3459. Volume = vol,
  3460. Name = "EffectSoundo",
  3461. Pitch = pit or 1,
  3462. SoundId = id,
  3463. TimePosition = timepos,
  3464. Parent = par or workspace,
  3465. }
  3466. wait()
  3467. S:play()
  3468. game:GetService("Debris"):AddItem(S, 10)
  3469. end))
  3470. end;
  3471. };
  3472. ["EchoSound"] = {
  3473. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  3474. coroutine.resume(coroutine.create(function()
  3475. local Sas = Create("Sound"){
  3476. Volume = vol,
  3477. Name = "EffectSoundo",
  3478. Pitch = pit or 1,
  3479. SoundId = id,
  3480. TimePosition = timepos,
  3481. Parent = par or workspace,
  3482. }
  3483. local E = Create("EchoSoundEffect"){
  3484. Delay = echodelay,
  3485. Name = "Echo",
  3486. Feedback = fedb,
  3487. DryLevel = dryl,
  3488. Parent = Sas,
  3489. }
  3490. wait()
  3491. Sas:play()
  3492. game:GetService("Debris"):AddItem(Sas, delays)
  3493. end))
  3494. end;
  3495. };
  3496.  
  3497. ["LongSound"] = {
  3498. Create = function(id, par, vol, pit)
  3499. coroutine.resume(coroutine.create(function()
  3500. local S = Create("Sound"){
  3501. Volume = vol,
  3502. Pitch = pit or 1,
  3503. SoundId = id,
  3504. Parent = par or workspace,
  3505. }
  3506. wait()
  3507. S:play()
  3508. game:GetService("Debris"):AddItem(S, 60)
  3509. end))
  3510. end;
  3511. };
  3512.  
  3513. ["ParticleEmitter"] = {
  3514. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  3515. local fp = Create("ParticleEmitter"){
  3516. Parent = Parent,
  3517. Color = ColorSequence.new(Color1, Color2),
  3518. LightEmission = LightEmission,
  3519. Size = Size,
  3520. Texture = Texture,
  3521. Transparency = Transparency,
  3522. ZOffset = ZOffset,
  3523. Acceleration = Accel,
  3524. Drag = Drag,
  3525. LockedToPart = LockedToPart,
  3526. VelocityInheritance = VelocityInheritance,
  3527. EmissionDirection = EmissionDirection,
  3528. Enabled = Enabled,
  3529. Lifetime = LifeTime,
  3530. Rate = Rate,
  3531. Rotation = Rotation,
  3532. RotSpeed = RotSpeed,
  3533. Speed = Speed,
  3534. VelocitySpread = VelocitySpread,
  3535. }
  3536. return fp
  3537. end;
  3538. };
  3539.  
  3540. CreateTemplate = {
  3541.  
  3542. };
  3543. }
  3544.  
  3545.  
  3546.  
  3547. New = function(Object, Parent, Name, Data)
  3548. local Object = Instance.new(Object)
  3549. for Index, Value in pairs(Data or {}) do
  3550. Object[Index] = Value
  3551. end
  3552. Object.Parent = Parent
  3553. Object.Name = Name
  3554. return Object
  3555. end
  3556. local halocolor = BrickColor.new("Pastel light blue")
  3557. local halocolor2 = BrickColor.new("Cool yellow")
  3558. local starcolor = BrickColor.new("Bright yellow")
  3559. local lunacolor = BrickColor.new("Navy blue")
  3560. local lunacolor2 = BrickColor.new("Bright blue")
  3561. local wepcolor = BrickColor.new("Really black")
  3562. local maincolor = BrickColor.new("Really black")
  3563. local m = Instance.new("Model",char)
  3564. local m2 = Instance.new("Model",char)
  3565. local m3 = Instance.new("Model",char)
  3566. local mw1 = Instance.new("Model",char)
  3567. local mw2 = Instance.new("Model",char)
  3568.  
  3569.  
  3570. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  3571. local gui = it(GuiType)
  3572. gui.Parent = parent
  3573. gui.Text = text
  3574. gui.BackgroundTransparency = backtrans
  3575. gui.BackgroundColor3 = backcol
  3576. gui.SizeConstraint = "RelativeXY"
  3577. gui.TextXAlignment = "Center"
  3578. gui.TextYAlignment = "Center"
  3579. gui.Position = pos
  3580. gui.Size = size
  3581. gui.Font = "SourceSans"
  3582. gui.FontSize = "Size14"
  3583. gui.TextWrapped = false
  3584. gui.TextStrokeTransparency = 0
  3585. gui.TextColor = BrickColor.new("White")
  3586. return gui
  3587. end
  3588. --------------------------- GUI STUFF
  3589. local basgui = it("GuiMain")
  3590. basgui.Parent = plr.PlayerGui
  3591. basgui.Name = "VISgui"
  3592. local fullscreenz = it("Frame")
  3593. fullscreenz.Parent = basgui
  3594. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  3595. fullscreenz.BackgroundTransparency = 1
  3596. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  3597. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  3598. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  3599. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  3600. imgl2.BackgroundTransparency = 1
  3601. imgl2.BorderSizePixel = 0
  3602. imgl2.ImageTransparency = 0.5
  3603. imgl2.ImageColor3 = Color3.new(1,0,0)
  3604. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  3605. imgl2.Size = UDim2.new(0,1000,0,1000)
  3606. imgl2.Image = "rbxassetid://2325939897"
  3607. local techc = imgl2:Clone()
  3608. techc.Parent = fullscreenz
  3609. techc.ImageTransparency = 0
  3610. techc.Size = UDim2.new(0,900,0,900)
  3611. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  3612. techc.ImageColor3 = Color3.new(1,0,0)
  3613. techc.Image = "rbxassetid://2273224484"
  3614. local circl = imgl2:Clone()
  3615. circl.Parent = fullscreenz
  3616. circl.ImageTransparency = 0
  3617. circl.Size = UDim2.new(0,550,0,550)
  3618. circl.Position = UDim2.new(0.75,25,0.55,25)
  3619. circl.ImageColor3 = Color3.new(0,0,0)
  3620. circl.Image = "rbxassetid://2312119891"
  3621. local circl2 = imgl2:Clone()
  3622. circl2.Parent = fullscreenz
  3623. circl2.ImageTransparency = 0
  3624. circl2.Size = UDim2.new(0,700,0,700)
  3625. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  3626. circl2.ImageColor3 = Color3.new(1,0,0)
  3627. circl2.Image = "rbxassetid://2312119891"
  3628. local imgl2b = imgl2:Clone()
  3629. imgl2b.Parent = fullscreenz
  3630. imgl2b.ImageTransparency = 0
  3631. imgl2b.Size = UDim2.new(0,800,0,800)
  3632. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  3633. imgl2b.ImageColor3 = Color3.new(0,0,0)
  3634. local ned = Instance.new("TextLabel",fullscreenz)
  3635. ned.ZIndex = 2
  3636. ned.Font = "Arcade"
  3637. ned.BackgroundTransparency = 1
  3638. ned.BorderSizePixel = 0.65
  3639. ned.Size = UDim2.new(0.3,0,0.2,0)
  3640. ned.Position = UDim2.new(0.7,0,0.8,0)
  3641. ned.TextColor3 = BrickColor.new("Bright reddish violet").Color
  3642. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  3643. ned.TextScaled = true
  3644. ned.TextStrokeTransparency = 0
  3645. ned.Text = "NIGHTMARE"
  3646. ned.TextSize = 24
  3647. ned.Rotation = 1
  3648. ned.TextXAlignment = "Right"
  3649. ned.TextYAlignment = "Bottom"
  3650.  
  3651. local extrawingmod1 = Instance.new("Model",char)
  3652. local extrawingmod2 = Instance.new("Model",char)
  3653.  
  3654. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  3655. local p = Instance.new("Part")
  3656. p.TopSurface = 0
  3657. p.BottomSurface = 0
  3658. p.Parent = parent
  3659. p.Size = Vector3.new(0.1,0.1,0.1)
  3660. p.Transparency = transparency
  3661. p.Reflectance = reflectance
  3662. p.CanCollide = false
  3663. p.Locked = true
  3664. p.BrickColor = brickcolor
  3665. p.Material = material
  3666. return p
  3667. end
  3668.  
  3669. function CreateMesh(parent,meshtype,x1,y1,z1)
  3670. local mesh = Instance.new("SpecialMesh",parent)
  3671. mesh.MeshType = meshtype
  3672. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  3673. return mesh
  3674. end
  3675.  
  3676. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  3677. local mesh = Instance.new("SpecialMesh",parent)
  3678. mesh.MeshType = "FileMesh"
  3679. mesh.MeshId = meshid
  3680. mesh.Scale = Vector3.new(x1,y1,z1)
  3681. return mesh
  3682. end
  3683.  
  3684.  
  3685. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  3686. local mesh = Instance.new("SpecialMesh",parent)
  3687. mesh.MeshType = "FileMesh"
  3688. mesh.MeshId = meshid
  3689. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  3690. mesh.Scale = Vector3.new(x1,y1,z1)
  3691. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  3692. return mesh
  3693. end
  3694.  
  3695. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  3696. local weld = Instance.new("Weld")
  3697. weld.Parent = parent
  3698. weld.Part0 = part0
  3699. weld.Part1 = part1
  3700. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  3701. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  3702. return weld
  3703. end
  3704.  
  3705.  
  3706. --------------
  3707. --------------
  3708. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3709. 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))
  3710. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3711. 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))
  3712.  
  3713. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  3714. CreateMesh(handle,"Brick",0,0,0)
  3715. 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))
  3716. local valuaring = 10
  3717. for i = 0, 49 do
  3718. valuaring = valuaring + 10
  3719. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  3720. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  3721. 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))
  3722. end
  3723.  
  3724. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  3725. CreateMesh(handle,"Brick",0,0,0)
  3726. 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))
  3727. local valuaring = 10
  3728. for i = 0, 49 do
  3729. valuaring = valuaring + 10
  3730. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  3731. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  3732. 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))
  3733. end
  3734.  
  3735.  
  3736. local handle = CreateParta(m,1,1,"Neon",maincolor)
  3737. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  3738. 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))
  3739.  
  3740. --- Left wing.
  3741.  
  3742. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  3743. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  3744. 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))
  3745.  
  3746. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  3747. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3748. 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))
  3749. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  3750. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3751. 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))
  3752. A0 = Instance.new('Attachment',wed)
  3753. A0.Position = vt(0,0.25,0.25)
  3754. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  3755. CreateMesh(wed,"Wedge",0.05,0.5,3)
  3756. 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))
  3757. A1 = Instance.new('Attachment',wed)
  3758. A1.Position = vt(0,-0.25,-2)
  3759. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  3760. CreateMesh(wed,"Wedge",0.05,3,0.5)
  3761. 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))
  3762.  
  3763. tl1 = Instance.new('Trail',wed)
  3764. tl1.Attachment0 = A1
  3765. tl1.Attachment1 = A0
  3766. tl1.Texture = "rbxassetid://2108945559"
  3767. tl1.LightEmission = 1
  3768. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  3769. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  3770. tl1.Lifetime = 0.6
  3771.  
  3772.  
  3773. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  3774. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  3775. 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))
  3776.  
  3777. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  3778. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3779. 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))
  3780. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  3781. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3782. 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))
  3783. A0 = Instance.new('Attachment',wed)
  3784. A0.Position = vt(0,0.25,0.25)
  3785. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  3786. CreateMesh(wed,"Wedge",0.05,0.5,3)
  3787. 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))
  3788. A1 = Instance.new('Attachment',wed)
  3789. A1.Position = vt(0,-0.25,-2)
  3790. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  3791. CreateMesh(wed,"Wedge",0.05,3,0.5)
  3792. 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))
  3793.  
  3794. tl2 = Instance.new('Trail',wed)
  3795. tl2.Attachment0 = A1
  3796. tl2.Attachment1 = A0
  3797. tl2.Texture = "rbxassetid://2108945559"
  3798. tl2.LightEmission = 1
  3799. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  3800. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  3801. tl2.Lifetime = 0.6
  3802.  
  3803. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  3804. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  3805. 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))
  3806.  
  3807. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  3808. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3809. 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))
  3810. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  3811. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3812. 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))
  3813. A0 = Instance.new('Attachment',wed)
  3814. A0.Position = vt(0,0.25,0.25)
  3815. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  3816. CreateMesh(wed,"Wedge",0.05,0.5,3)
  3817. 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))
  3818. A1 = Instance.new('Attachment',wed)
  3819. A1.Position = vt(0,-0.25,-2)
  3820. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  3821. CreateMesh(wed,"Wedge",0.05,3,0.5)
  3822. 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))
  3823.  
  3824. tl3 = Instance.new('Trail',wed)
  3825. tl3.Attachment0 = A1
  3826. tl3.Attachment1 = A0
  3827. tl3.Texture = "rbxassetid://2108945559"
  3828. tl3.LightEmission = 1
  3829. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  3830. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  3831. tl3.Lifetime = 0.6
  3832.  
  3833. tl1.Enabled = false
  3834. tl2.Enabled = false
  3835. tl3.Enabled = false
  3836. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  3837. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  3838. 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))
  3839.  
  3840. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  3841. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3842. 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))
  3843. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  3844. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3845. 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))
  3846. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  3847. CreateMesh(wed,"Wedge",0.05,0.5,3)
  3848. 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))
  3849. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  3850. CreateMesh(wed,"Wedge",0.05,3,0.5)
  3851. 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))
  3852.  
  3853. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  3854. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  3855. 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))
  3856.  
  3857. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  3858. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3859. 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))
  3860. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  3861. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3862. 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))
  3863. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  3864. CreateMesh(wed,"Wedge",0.05,0.5,3)
  3865. 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))
  3866. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  3867. CreateMesh(wed,"Wedge",0.05,3,0.5)
  3868. 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))
  3869.  
  3870. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  3871. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  3872. 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))
  3873.  
  3874. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  3875. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3876. 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))
  3877. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  3878. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3879. 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))
  3880. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  3881. CreateMesh(wed,"Wedge",0.05,0.5,3)
  3882. 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))
  3883. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  3884. CreateMesh(wed,"Wedge",0.05,3,0.5)
  3885. 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))
  3886.  
  3887. -- Right wing.
  3888.  
  3889. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  3890. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  3891. 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))
  3892.  
  3893. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  3894. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3895. 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))
  3896. A0 = Instance.new('Attachment',wed)
  3897. A0.Position = vt(0,0.25,0.25)
  3898. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  3899. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3900. 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))
  3901. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  3902. CreateMesh(wed,"Wedge",0.05,0.5,3)
  3903. 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))
  3904. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  3905. CreateMesh(wed,"Wedge",0.05,3,0.5)
  3906. 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))
  3907. A1 = Instance.new('Attachment',wed)
  3908. A1.Position = vt(0,2,0.25)
  3909.  
  3910. tr1 = Instance.new('Trail',wed)
  3911. tr1.Attachment0 = A1
  3912. tr1.Attachment1 = A0
  3913. tr1.Texture = "rbxassetid://2108945559"
  3914. tr1.LightEmission = 1
  3915. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  3916. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  3917. tr1.Lifetime = 0.6
  3918.  
  3919. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  3920. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  3921. 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))
  3922.  
  3923. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  3924. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3925. 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))
  3926. A0 = Instance.new('Attachment',wed)
  3927. A0.Position = vt(0,0.25,0.25)
  3928. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  3929. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3930. 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))
  3931. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  3932. CreateMesh(wed,"Wedge",0.05,0.5,3)
  3933. 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))
  3934. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  3935. CreateMesh(wed,"Wedge",0.05,3,0.5)
  3936. 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))
  3937. A1 = Instance.new('Attachment',wed)
  3938. A1.Position = vt(0,2,0.25)
  3939.  
  3940. tr2 = Instance.new('Trail',wed)
  3941. tr2.Attachment0 = A1
  3942. tr2.Attachment1 = A0
  3943. tr2.Texture = "rbxassetid://2108945559"
  3944. tr2.LightEmission = 1
  3945. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  3946. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  3947. tr2.Lifetime = 0.6
  3948.  
  3949. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  3950. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  3951. 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))
  3952.  
  3953. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  3954. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3955. 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))
  3956. A0 = Instance.new('Attachment',wed)
  3957. A0.Position = vt(0,0.25,0.25)
  3958. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  3959. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3960. 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))
  3961. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  3962. CreateMesh(wed,"Wedge",0.05,0.5,3)
  3963. 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))
  3964. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  3965. CreateMesh(wed,"Wedge",0.05,3,0.5)
  3966. 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))
  3967. A1 = Instance.new('Attachment',wed)
  3968. A1.Position = vt(0,2,0.25)
  3969.  
  3970. tr3 = Instance.new('Trail',wed)
  3971. tr3.Attachment0 = A1
  3972. tr3.Attachment1 = A0
  3973. tr3.Texture = "rbxassetid://2108945559"
  3974. tr3.LightEmission = 1
  3975. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  3976. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  3977. tr3.Lifetime = 0.6
  3978.  
  3979.  
  3980. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  3981. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  3982. 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))
  3983.  
  3984. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  3985. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3986. 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))
  3987. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  3988. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  3989. 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))
  3990. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  3991. CreateMesh(wed,"Wedge",0.05,0.5,3)
  3992. 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))
  3993. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  3994. CreateMesh(wed,"Wedge",0.05,3,0.5)
  3995. 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))
  3996.  
  3997. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  3998. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  3999. 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))
  4000.  
  4001. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  4002. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  4003. 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))
  4004. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  4005. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  4006. 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))
  4007. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  4008. CreateMesh(wed,"Wedge",0.05,0.5,3)
  4009. 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))
  4010. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  4011. CreateMesh(wed,"Wedge",0.05,3,0.5)
  4012. 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))
  4013.  
  4014. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  4015. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  4016. 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))
  4017.  
  4018. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  4019. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  4020. 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))
  4021. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  4022. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  4023. 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))
  4024. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  4025. CreateMesh(wed,"Wedge",0.05,0.5,3)
  4026. 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))
  4027. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  4028. CreateMesh(wed,"Wedge",0.05,3,0.5)
  4029. 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))
  4030.  
  4031. ---- HERES THE RING
  4032.  
  4033.  
  4034. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  4035. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  4036. 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))
  4037. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  4038. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  4039. 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))
  4040. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  4041. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  4042. 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))
  4043.  
  4044.  
  4045. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  4046. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  4047. 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))
  4048.  
  4049. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  4050. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  4051. 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))
  4052.  
  4053.  
  4054.  
  4055. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  4056. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  4057. 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))
  4058.  
  4059. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  4060. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  4061. 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))
  4062.  
  4063. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  4064. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  4065. 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))
  4066.  
  4067. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  4068. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  4069. 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))
  4070. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  4071. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  4072. 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))
  4073.  
  4074. --- second ring
  4075.  
  4076. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  4077. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  4078. 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))
  4079. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  4080. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  4081. 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))
  4082. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  4083. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  4084. 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))
  4085.  
  4086. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  4087. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  4088. 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))
  4089.  
  4090. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  4091. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  4092. 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))
  4093.  
  4094.  
  4095.  
  4096. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  4097. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  4098. 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))
  4099.  
  4100. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  4101. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  4102. 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))
  4103.  
  4104. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  4105. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  4106. 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))
  4107.  
  4108. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  4109. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  4110. 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))
  4111. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  4112. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  4113. 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))]]--
  4114.  
  4115.  
  4116.  
  4117. for i, v in pairs(m:GetChildren()) do
  4118. if v:IsA("Part") then
  4119. v.BrickColor = BrickColor.new("Really black")
  4120. v.Material = "Glass"
  4121. end
  4122. end
  4123. for i, v in pairs(m2:GetChildren()) do
  4124. if v:IsA("Part") then
  4125. v.BrickColor = BrickColor.new("Crimson")
  4126. v.Material = "Granite"
  4127. end
  4128. end
  4129. for i, v in pairs(m3:GetChildren()) do
  4130. if v:IsA("Part") then
  4131. v.BrickColor = BrickColor.new("Really red")
  4132. v.Material = "Neon"
  4133. end
  4134. end
  4135. for i, v in pairs(mw2:GetChildren()) do
  4136. if v:IsA("Part") then
  4137. v.BrickColor = BrickColor.new("Really red")
  4138. v.Material = "Neon"
  4139. end
  4140. end
  4141. for i, v in pairs(mw1:GetChildren()) do
  4142. if v:IsA("Part") then
  4143. v.Transparency = 1
  4144. v.BrickColor = BrickColor.new("Really red")
  4145. v.Material = "Neon"
  4146. end
  4147. end
  4148. for i, v in pairs(extrawingmod1:GetChildren()) do
  4149. if v:IsA("Part") then
  4150. v.Transparency = 1
  4151. v.BrickColor = BrickColor.new("White")
  4152. v.Material = "Neon"
  4153. end
  4154. end
  4155. for i, v in pairs(extrawingmod2:GetChildren()) do
  4156. if v:IsA("Part") then
  4157. v.Transparency = 1
  4158. v.BrickColor = BrickColor.new("White")
  4159. v.Material = "Neon"
  4160. end
  4161. end
  4162. local MAINRUINCOLOR = BrickColor.new("Really red")
  4163. ------
  4164.  
  4165.  
  4166. function RemoveOutlines(part)
  4167. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  4168. end
  4169. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  4170. local Part = Create("Part")({
  4171. Parent = Parent,
  4172. Reflectance = Reflectance,
  4173. Transparency = Transparency,
  4174. CanCollide = false,
  4175. Locked = true,
  4176. BrickColor = BrickColor.new(tostring(BColor)),
  4177. Name = Name,
  4178. Size = Size,
  4179. Material = Material
  4180. })
  4181. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  4182. RemoveOutlines(Part)
  4183. return Part
  4184. end
  4185. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  4186. local Msh = Create(Mesh)({
  4187. Parent = Part,
  4188. Offset = OffSet,
  4189. Scale = Scale
  4190. })
  4191. if Mesh == "SpecialMesh" then
  4192. Msh.MeshType = MeshType
  4193. Msh.MeshId = MeshId
  4194. end
  4195. return Msh
  4196. end
  4197. function CreateWeld(Parent, Part0, Part1, C0, C1)
  4198. local Weld = Create("Weld")({
  4199. Parent = Parent,
  4200. Part0 = Part0,
  4201. Part1 = Part1,
  4202. C0 = C0,
  4203. C1 = C1
  4204. })
  4205. return Weld
  4206. end
  4207.  
  4208. Character=Player.Character
  4209. PlayerGui=Player.PlayerGui
  4210. Backpack=Player.Backpack
  4211. Torso=Character.Torso
  4212. Head=Character.Head
  4213. Humanoid=Character.Humanoid
  4214. m=Instance.new('Model',Character)
  4215. LeftArm=Character["Left Arm"]
  4216. LeftLeg=Character["Left Leg"]
  4217. RightArm=Character["Right Arm"]
  4218. RightLeg=Character["Right Leg"]
  4219. LS=Torso["Left Shoulder"]
  4220. LH=Torso["Left Hip"]
  4221. RS=Torso["Right Shoulder"]
  4222. RH=Torso["Right Hip"]
  4223. Face = Head.face
  4224. Neck=Torso.Neck
  4225. it=Instance.new
  4226. attacktype=1
  4227. vt=Vector3.new
  4228. cf=CFrame.new
  4229. euler=CFrame.fromEulerAnglesXYZ
  4230. angles=CFrame.Angles
  4231. cloaked=false
  4232. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  4233. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  4234. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  4235. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  4236. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  4237. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  4238. RootPart=Character.HumanoidRootPart
  4239. RootJoint=RootPart.RootJoint
  4240. RootCF=euler(-1.57,0,3.14)
  4241. attack = false
  4242. attackdebounce = false
  4243. deb=false
  4244. equipped=true
  4245. hand=false
  4246. combo=0
  4247. mana=0
  4248. trispeed=.2
  4249. attackmode='none'
  4250. local idle=0
  4251. local Anim="Idle"
  4252. local Effects={}
  4253. local gun=false
  4254. local shoot=false
  4255. local sine = 0
  4256. local change = 1
  4257.  
  4258. function RecolorTextAndRename(name,col1,col2,font)
  4259. modet.TextStrokeColor3 = col2
  4260. modet.TextColor3 = col1
  4261. modet.Font = font
  4262. modet.Text = name
  4263. techc.ImageColor3 = col2
  4264. circl.ImageColor3 = col2
  4265. circl2.ImageColor3 = col1
  4266. imgl2.ImageColor3 = col1
  4267. imgl2b.ImageColor3 = col2
  4268. ned.Text = name
  4269. ned.TextColor3 = col1
  4270. ned.TextStrokeColor3 = col2
  4271. end
  4272. --save shoulders
  4273. RSH, LSH=nil, nil
  4274. --welds
  4275. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  4276. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  4277. LH=Torso["Left Hip"]
  4278. RH=Torso["Right Hip"]
  4279. TorsoColor=Torso.BrickColor
  4280. function NoOutline(Part)
  4281. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  4282. end
  4283. ch=Character
  4284. RSH=ch.Torso["Right Shoulder"]
  4285. LSH=ch.Torso["Left Shoulder"]
  4286. --
  4287. RSH.Parent=nil
  4288. LSH.Parent=nil
  4289. --
  4290. RW.Name="Right Shoulder"
  4291. RW.Part0=ch.Torso
  4292. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  4293. RW.C1=cf(0, 0.5, 0)
  4294. RW.Part1=ch["Right Arm"]
  4295. RW.Parent=ch.Torso
  4296. --
  4297. LW.Name="Left Shoulder"
  4298. LW.Part0=ch.Torso
  4299. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  4300. LW.C1=cf(0, 0.5, 0)
  4301. LW.Part1=ch["Left Arm"]
  4302. LW.Parent=ch.Torso
  4303.  
  4304. local Stats=Instance.new("BoolValue")
  4305. Stats.Name="Stats"
  4306. Stats.Parent=Character
  4307. local Atk=Instance.new("NumberValue")
  4308. Atk.Name="Damage"
  4309. Atk.Parent=Stats
  4310. Atk.Value=1
  4311. local Def=Instance.new("NumberValue")
  4312. Def.Name="Defense"
  4313. Def.Parent=Stats
  4314. Def.Value=1
  4315. local Speed=Instance.new("NumberValue")
  4316. Speed.Name="Speed"
  4317. Speed.Parent=Stats
  4318. Speed.Value=1
  4319. local Mvmt=Instance.new("NumberValue")
  4320. Mvmt.Name="Movement"
  4321. Mvmt.Parent=Stats
  4322. Mvmt.Value=1
  4323.  
  4324. local donum=0
  4325.  
  4326.  
  4327. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  4328. local fp=it("Part")
  4329. fp.formFactor=formfactor
  4330. fp.Parent=parent
  4331. fp.Reflectance=reflectance
  4332. fp.Transparency=transparency
  4333. fp.CanCollide=false
  4334. fp.Locked=true
  4335. fp.BrickColor=brickcolor
  4336. fp.Name=name
  4337. fp.Size=size
  4338. fp.Position=Torso.Position
  4339. NoOutline(fp)
  4340. fp.Material="SmoothPlastic"
  4341. fp:BreakJoints()
  4342. return fp
  4343. end
  4344.  
  4345. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  4346. local mesh=it(Mesh)
  4347. mesh.Parent=part
  4348. if Mesh=="SpecialMesh" then
  4349. mesh.MeshType=meshtype
  4350. if meshid~="nil" then
  4351. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  4352. end
  4353. end
  4354. mesh.Offset=offset
  4355. mesh.Scale=scale
  4356. return mesh
  4357. end
  4358.  
  4359. function weld(parent,part0,part1,c0)
  4360. local weld=it("Weld")
  4361. weld.Parent=parent
  4362. weld.Part0=part0
  4363. weld.Part1=part1
  4364. weld.C0=c0
  4365. return weld
  4366. end
  4367.  
  4368. local Color1=Torso.BrickColor
  4369.  
  4370. local bodvel=Instance.new("BodyVelocity")
  4371. local bg=Instance.new("BodyGyro")
  4372.  
  4373. --------- SazEreno's Artificial HB --------------
  4374. ArtificialHB = Instance.new("BindableEvent", script)
  4375. ArtificialHB.Name = "ArtificialHB"
  4376.  
  4377. script:WaitForChild("ArtificialHB")
  4378. Frame_Speed = 1 / 60
  4379. frame = Frame_Speed
  4380. tf = 0
  4381. allowframeloss = false
  4382. tossremainder = false
  4383. lastframe = tick()
  4384. script.ArtificialHB:Fire()
  4385.  
  4386. game:GetService("RunService").Heartbeat:connect(function(s, p)
  4387. tf = tf + s
  4388. if tf >= frame then
  4389. if allowframeloss then
  4390. script.ArtificialHB:Fire()
  4391. lastframe = tick()
  4392. else
  4393. for i = 1, math.floor(tf / frame) do
  4394. script.ArtificialHB:Fire()
  4395. end
  4396. lastframe = tick()
  4397. end
  4398. if tossremainder then
  4399. tf = 0
  4400. else
  4401. tf = tf - frame * math.floor(tf / frame)
  4402. end
  4403. end
  4404. end)
  4405.  
  4406. ------------------
  4407. function swait(num)
  4408. function swait(num)
  4409. if num==0 or num==nil then
  4410. game:service'RunService'.Stepped:wait(0)
  4411. else
  4412. for i=0,num do
  4413. game:service'RunService'.Stepped:wait(0)
  4414. end
  4415. end
  4416. end
  4417. end
  4418.  
  4419. -------- RAINBOW LEAVE IT TO ME
  4420. local r = 255
  4421. local g = 0
  4422. local b = 0
  4423. coroutine.resume(coroutine.create(function()
  4424. while wait() do
  4425. for i = 0, 254/5 do
  4426. swait()
  4427. g = g + 5
  4428. end
  4429. for i = 0, 254/5 do
  4430. swait()
  4431. r = r - 5
  4432. end
  4433. for i = 0, 254/5 do
  4434. swait()
  4435. b = b + 5
  4436. end
  4437. for i = 0, 254/5 do
  4438. swait()
  4439. g = g - 5
  4440. end
  4441. for i = 0, 254/5 do
  4442. swait()
  4443. r = r + 5
  4444. end
  4445. for i = 0, 254/5 do
  4446. swait()
  4447. b = b - 5
  4448. end
  4449. end
  4450. end))
  4451.  
  4452.  
  4453. so = function(id,par,vol,pit)
  4454. coroutine.resume(coroutine.create(function()
  4455. local sou = Instance.new("Sound",par or workspace)
  4456. sou.Volume=vol
  4457. sou.Pitch=pit or 1
  4458. sou.SoundId=id
  4459. swait()
  4460. sou:play()
  4461. game:GetService("Debris"):AddItem(sou,6)
  4462. end))
  4463. end
  4464.  
  4465. function clerp(a,b,t)
  4466. local qa = {QuaternionFromCFrame(a)}
  4467. local qb = {QuaternionFromCFrame(b)}
  4468. local ax, ay, az = a.x, a.y, a.z
  4469. local bx, by, bz = b.x, b.y, b.z
  4470. local _t = 1-t
  4471. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  4472. end
  4473.  
  4474. function QuaternionFromCFrame(cf)
  4475. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  4476. local trace = m00 + m11 + m22
  4477. if trace > 0 then
  4478. local s = math.sqrt(1 + trace)
  4479. local recip = 0.5/s
  4480. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  4481. else
  4482. local i = 0
  4483. if m11 > m00 then
  4484. i = 1
  4485. end
  4486. if m22 > (i == 0 and m00 or m11) then
  4487. i = 2
  4488. end
  4489. if i == 0 then
  4490. local s = math.sqrt(m00-m11-m22+1)
  4491. local recip = 0.5/s
  4492. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  4493. elseif i == 1 then
  4494. local s = math.sqrt(m11-m22-m00+1)
  4495. local recip = 0.5/s
  4496. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  4497. elseif i == 2 then
  4498. local s = math.sqrt(m22-m00-m11+1)
  4499. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  4500. end
  4501. end
  4502. end
  4503.  
  4504. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  4505. local xs, ys, zs = x + x, y + y, z + z
  4506. local wx, wy, wz = w*xs, w*ys, w*zs
  4507. local xx = x*xs
  4508. local xy = x*ys
  4509. local xz = x*zs
  4510. local yy = y*ys
  4511. local yz = y*zs
  4512. local zz = z*zs
  4513. 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))
  4514. end
  4515.  
  4516. function QuaternionSlerp(a, b, t)
  4517. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  4518. local startInterp, finishInterp;
  4519. if cosTheta >= 0.0001 then
  4520. if (1 - cosTheta) > 0.0001 then
  4521. local theta = math.acos(cosTheta)
  4522. local invSinTheta = 1/math.sin(theta)
  4523. startInterp = math.sin((1-t)*theta)*invSinTheta
  4524. finishInterp = math.sin(t*theta)*invSinTheta
  4525. else
  4526. startInterp = 1-t
  4527. finishInterp = t
  4528. end
  4529. else
  4530. if (1+cosTheta) > 0.0001 then
  4531. local theta = math.acos(-cosTheta)
  4532. local invSinTheta = 1/math.sin(theta)
  4533. startInterp = math.sin((t-1)*theta)*invSinTheta
  4534. finishInterp = math.sin(t*theta)*invSinTheta
  4535. else
  4536. startInterp = t-1
  4537. finishInterp = t
  4538. end
  4539. end
  4540. 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
  4541. end
  4542.  
  4543. local function CFrameFromTopBack(at, top, back)
  4544. local right = top:Cross(back)
  4545. return CFrame.new(at.x, at.y, at.z,
  4546. right.x, top.x, back.x,
  4547. right.y, top.y, back.y,
  4548. right.z, top.z, back.z)
  4549. end
  4550.  
  4551. function Triangle(a, b, c)
  4552. local edg1 = (c-a):Dot((b-a).unit)
  4553. local edg2 = (a-b):Dot((c-b).unit)
  4554. local edg3 = (b-c):Dot((a-c).unit)
  4555. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  4556. a, b, c = a, b, c
  4557. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  4558. a, b, c = b, c, a
  4559. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  4560. a, b, c = c, a, b
  4561. else
  4562. assert(false, "unreachable")
  4563. end
  4564.  
  4565. local len1 = (c-a):Dot((b-a).unit)
  4566. local len2 = (b-a).magnitude - len1
  4567. local width = (a + (b-a).unit*len1 - c).magnitude
  4568.  
  4569. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  4570.  
  4571. local list = {}
  4572.  
  4573. if len1 > 0.01 then
  4574. local w1 = Instance.new('WedgePart', m)
  4575. game:GetService("Debris"):AddItem(w1,5)
  4576. w1.Material = "SmoothPlastic"
  4577. w1.FormFactor = 'Custom'
  4578. w1.BrickColor = BrickColor.new("Really red")
  4579. w1.Transparency = 0
  4580. w1.Reflectance = 0
  4581. w1.Material = "SmoothPlastic"
  4582. w1.CanCollide = false
  4583. local l1 = Instance.new("PointLight",w1)
  4584. l1.Color = Color3.new(170,0,0)
  4585. NoOutline(w1)
  4586. local sz = Vector3.new(0.2, width, len1)
  4587. w1.Size = sz
  4588. local sp = Instance.new("SpecialMesh",w1)
  4589. sp.MeshType = "Wedge"
  4590. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  4591. w1:BreakJoints()
  4592. w1.Anchored = true
  4593. w1.Parent = workspace
  4594. w1.Transparency = 0.7
  4595. table.insert(Effects,{w1,"Disappear",.01})
  4596. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  4597. table.insert(list,w1)
  4598. end
  4599.  
  4600. if len2 > 0.01 then
  4601. local w2 = Instance.new('WedgePart', m)
  4602. game:GetService("Debris"):AddItem(w2,5)
  4603. w2.Material = "SmoothPlastic"
  4604. w2.FormFactor = 'Custom'
  4605. w2.BrickColor = BrickColor.new("Really red")
  4606. w2.Transparency = 0
  4607. w2.Reflectance = 0
  4608. w2.Material = "SmoothPlastic"
  4609. w2.CanCollide = false
  4610. local l2 = Instance.new("PointLight",w2)
  4611. l2.Color = Color3.new(170,0,0)
  4612. NoOutline(w2)
  4613. local sz = Vector3.new(0.2, width, len2)
  4614. w2.Size = sz
  4615. local sp = Instance.new("SpecialMesh",w2)
  4616. sp.MeshType = "Wedge"
  4617. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  4618. w2:BreakJoints()
  4619. w2.Anchored = true
  4620. w2.Parent = workspace
  4621. w2.Transparency = 0.7
  4622. table.insert(Effects,{w2,"Disappear",.01})
  4623. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  4624. table.insert(list,w2)
  4625. end
  4626. return unpack(list)
  4627. end
  4628.  
  4629.  
  4630. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  4631. if hit.Parent == nil then
  4632. return
  4633. end
  4634. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  4635. for _, v in pairs(hit.Parent:children()) do
  4636. if v:IsA("Humanoid") then
  4637. h = v
  4638. end
  4639. end
  4640. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  4641. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  4642. return
  4643. end
  4644. local c = Create("ObjectValue")({
  4645. Name = "creator",
  4646. Value = game:GetService("Players").LocalPlayer,
  4647. Parent = h
  4648. })
  4649. game:GetService("Debris"):AddItem(c, 0.5)
  4650. if HitSound ~= nil and HitPitch ~= nil then
  4651. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  4652. end
  4653. local Damage = math.random(minim, maxim)
  4654. local blocked = false
  4655. local block = hit.Parent:findFirstChild("Block")
  4656. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  4657. blocked = true
  4658. block.Value = block.Value - 1
  4659. print(block.Value)
  4660. end
  4661. if blocked == false then
  4662. HitHealth = h.Health
  4663. h.MaxHealth = 100
  4664. h.Health = h.Health - Damage
  4665. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  4666. print("gained kill")
  4667. dmg(h.Parent)
  4668. end
  4669. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  4670. else
  4671. h.Health = h.Health - Damage / 2
  4672. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  4673. end
  4674. if Type == "Knockdown" then
  4675. local hum = hit.Parent.Humanoid
  4676. hum.PlatformStand = true
  4677. coroutine.resume(coroutine.create(function(HHumanoid)
  4678. swait(1)
  4679. HHumanoid.PlatformStand = false
  4680. end), hum)
  4681. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  4682. local bodvol = Create("BodyVelocity")({
  4683. velocity = angle * knockback,
  4684. P = 5000,
  4685. maxForce = Vector3.new(8000, 8000, 8000),
  4686. Parent = hit
  4687. })
  4688. local rl = Create("BodyAngularVelocity")({
  4689. P = 3000,
  4690. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  4691. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  4692. Parent = hit
  4693. })
  4694. game:GetService("Debris"):AddItem(bodvol, 0.5)
  4695. game:GetService("Debris"):AddItem(rl, 0.5)
  4696. elseif Type == "Normal" then
  4697. local vp = Create("BodyVelocity")({
  4698. P = 500,
  4699. maxForce = Vector3.new(math.huge, 0, math.huge),
  4700. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  4701. })
  4702. if knockback > 0 then
  4703. vp.Parent = hit.Parent.Head
  4704. end
  4705. game:GetService("Debris"):AddItem(vp, 0.5)
  4706. elseif Type == "Up" then
  4707. local bodyVelocity = Create("BodyVelocity")({
  4708. velocity = Vector3.new(0, 20, 0),
  4709. P = 5000,
  4710. maxForce = Vector3.new(8000, 8000, 8000),
  4711. Parent = hit
  4712. })
  4713. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  4714. local bodyVelocity = Create("BodyVelocity")({
  4715. velocity = Vector3.new(0, 20, 0),
  4716. P = 5000,
  4717. maxForce = Vector3.new(8000, 8000, 8000),
  4718. Parent = hit
  4719. })
  4720. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  4721. elseif Type == "Leech" then
  4722. local hum = hit.Parent.Humanoid
  4723. if hum ~= nil then
  4724. for i = 0, 2 do
  4725. 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)
  4726. end
  4727. Humanoid.Health = Humanoid.Health + 10
  4728. end
  4729. elseif Type == "UpKnock" then
  4730. local hum = hit.Parent.Humanoid
  4731. hum.PlatformStand = true
  4732. if hum ~= nil then
  4733. hitr = true
  4734. end
  4735. coroutine.resume(coroutine.create(function(HHumanoid)
  4736. swait(5)
  4737. HHumanoid.PlatformStand = false
  4738. hitr = false
  4739. end), hum)
  4740. local bodyVelocity = Create("BodyVelocity")({
  4741. velocity = Vector3.new(0, 20, 0),
  4742. P = 5000,
  4743. maxForce = Vector3.new(8000, 8000, 8000),
  4744. Parent = hit
  4745. })
  4746. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  4747. local bodyVelocity = Create("BodyVelocity")({
  4748. velocity = Vector3.new(0, 20, 0),
  4749. P = 5000,
  4750. maxForce = Vector3.new(8000, 8000, 8000),
  4751. Parent = hit
  4752. })
  4753. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  4754. elseif Type == "Snare" then
  4755. local bp = Create("BodyPosition")({
  4756. P = 2000,
  4757. D = 100,
  4758. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  4759. position = hit.Parent.Torso.Position,
  4760. Parent = hit.Parent.Torso
  4761. })
  4762. game:GetService("Debris"):AddItem(bp, 1)
  4763. elseif Type == "Slashnare" then
  4764. 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)
  4765. for i = 1, math.random(4, 5) do
  4766. 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)
  4767. end
  4768. local bp = Create("BodyPosition")({
  4769. P = 2000,
  4770. D = 100,
  4771. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  4772. position = hit.Parent.Torso.Position,
  4773. Parent = hit.Parent.Torso
  4774. })
  4775. game:GetService("Debris"):AddItem(bp, 1)
  4776. elseif Type == "Spike" then
  4777. CreateBigIceSword(hit.Parent.Torso.CFrame)
  4778. local bp = Create("BodyPosition")({
  4779. P = 2000,
  4780. D = 100,
  4781. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  4782. position = hit.Parent.Torso.Position,
  4783. Parent = hit.Parent.Torso
  4784. })
  4785. game:GetService("Debris"):AddItem(bp, 1)
  4786. elseif Type == "Freeze" then
  4787. local BodPos = Create("BodyPosition")({
  4788. P = 50000,
  4789. D = 1000,
  4790. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  4791. position = hit.Parent.Torso.Position,
  4792. Parent = hit.Parent.Torso
  4793. })
  4794. local BodGy = Create("BodyGyro")({
  4795. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  4796. P = 20000,
  4797. Parent = hit.Parent.Torso,
  4798. cframe = hit.Parent.Torso.CFrame
  4799. })
  4800. hit.Parent.Torso.Anchored = true
  4801. coroutine.resume(coroutine.create(function(Part)
  4802. swait(1.5)
  4803. Part.Anchored = false
  4804. end), hit.Parent.Torso)
  4805. game:GetService("Debris"):AddItem(BodPos, 3)
  4806. game:GetService("Debris"):AddItem(BodGy, 3)
  4807. end
  4808. local debounce = Create("BoolValue")({
  4809. Name = "DebounceHit",
  4810. Parent = hit.Parent,
  4811. Value = true
  4812. })
  4813. game:GetService("Debris"):AddItem(debounce, Delay)
  4814. c = Instance.new("ObjectValue")
  4815. c.Name = "creator"
  4816. c.Value = Player
  4817. c.Parent = h
  4818. game:GetService("Debris"):AddItem(c, 0.5)
  4819. end
  4820. end
  4821. function ShowDamage(Pos, Text, Time, Color)
  4822. local Rate = 0.03333333333333333
  4823. local Pos = Pos or Vector3.new(0, 0, 0)
  4824. local Text = Text or ""
  4825. local Time = Time or 2
  4826. local Color = Color or Color3.new(1, 0, 1)
  4827. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  4828. EffectPart.Anchored = true
  4829. local BillboardGui = Create("BillboardGui")({
  4830. Size = UDim2.new(3, 0, 3, 0),
  4831. Adornee = EffectPart,
  4832. Parent = EffectPart
  4833. })
  4834. local TextLabel = Create("TextLabel")({
  4835. BackgroundTransparency = 1,
  4836. Size = UDim2.new(1, 0, 1, 0),
  4837. Text = Text,
  4838. TextColor3 = Color,
  4839. TextScaled = true,
  4840. Font = Enum.Font.ArialBold,
  4841. Parent = BillboardGui
  4842. })
  4843. game.Debris:AddItem(EffectPart, Time + 0.1)
  4844. EffectPart.Parent = game:GetService("Workspace")
  4845. delay(0, function()
  4846. local Frames = Time / Rate
  4847. for Frame = 1, Frames do
  4848. wait(Rate)
  4849. local Percent = Frame / Frames
  4850. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  4851. TextLabel.TextTransparency = Percent
  4852. end
  4853. if EffectPart and EffectPart.Parent then
  4854. EffectPart:Destroy()
  4855. end
  4856. end)
  4857. end
  4858. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  4859. for _, c in pairs(workspace:children()) do
  4860. local hum = c:findFirstChildOfClass("Humanoid")
  4861. if hum ~= nil then
  4862. local head = c:findFirstChild("Head")
  4863. if head ~= nil then
  4864. local targ = head.Position - Part.Position
  4865. local mag = targ.magnitude
  4866. if magni >= mag and c.Name ~= Player.Name then
  4867. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  4868. end
  4869. end
  4870. end
  4871. end
  4872. end
  4873.  
  4874. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  4875. for _, c in pairs(workspace:children()) do
  4876. local hum = c:findFirstChild("Humanoid")
  4877. if hum ~= nil then
  4878. local head = c:findFirstChild("Torso")
  4879. if head ~= nil then
  4880. local targ = head.Position - Part.Position
  4881. local mag = targ.magnitude
  4882. if magni >= mag and c.Name ~= Player.Name then
  4883. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  4884. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  4885. end
  4886. end
  4887. end
  4888. end
  4889. end
  4890.  
  4891. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  4892. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  4893. end
  4894.  
  4895. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  4896. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4897. prt.Anchored=true
  4898. prt.CFrame=cframe
  4899. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  4900. --http://www.roblox.com/asset/?id=4770560
  4901. game:GetService("Debris"):AddItem(prt,2)
  4902. CF=prt.CFrame
  4903. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  4904. for i=0,1,0.2 do
  4905. wait()
  4906. Part.CFrame=CF*cf(0,0,-0.4)
  4907. end
  4908. for i=0,1,delay do
  4909. wait()
  4910. --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)
  4911. Mesh.Scale=Mesh.Scale
  4912. end
  4913. for i=0,1,0.1 do
  4914. wait()
  4915. Part.Transparency=i
  4916. end
  4917. Part.Parent=nil
  4918. end),prt,msh,CF)
  4919. end
  4920.  
  4921. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4922. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4923. prt.Anchored=true
  4924. prt.Material = "Neon"
  4925. prt.CFrame=cframe
  4926. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4927. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4928. game:GetService("Debris"):AddItem(prt,5)
  4929. coroutine.resume(coroutine.create(function(Part,Mesh)
  4930. for i=0,1,delay do
  4931. swait()
  4932. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4933. Part.Transparency=i
  4934. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4935. end
  4936. Part.Parent=nil
  4937. end),prt,msh)
  4938. end
  4939.  
  4940. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  4941. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4942. prt.Anchored=true
  4943. prt.Material = "Neon"
  4944. prt.CFrame=cframe
  4945. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4946. game:GetService("Debris"):AddItem(prt,5)
  4947. coroutine.resume(coroutine.create(function(Part,Mesh)
  4948. local rtype = rottype
  4949. for i=0,1,delay do
  4950. swait()
  4951. if rtype == 1 then
  4952. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4953. elseif rtype == 2 then
  4954. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4955. end
  4956. Part.Transparency=i
  4957. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4958. end
  4959. Part.Parent=nil
  4960. end),prt,msh)
  4961. end
  4962.  
  4963. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4964. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4965. prt.Anchored=true
  4966. prt.CFrame=cframe
  4967. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4968. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  4969. game:GetService("Debris"):AddItem(prt,5)
  4970. coroutine.resume(coroutine.create(function(Part,Mesh)
  4971. for i=0,1,delay do
  4972. wait()
  4973. Part.Transparency=i
  4974. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4975. end
  4976. Part.Parent=nil
  4977. end),prt,msh)
  4978. end
  4979.  
  4980. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  4981. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4982. prt.Anchored=true
  4983. prt.Material = "Neon"
  4984. prt.CFrame=cframe
  4985. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4986. game:GetService("Debris"):AddItem(prt,5)
  4987. coroutine.resume(coroutine.create(function(Part,Mesh)
  4988. local rtype = rottype
  4989. for i=0,1,delay do
  4990. swait()
  4991. if rtype == 1 then
  4992. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4993. elseif rtype == 2 then
  4994. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4995. end
  4996. Part.Transparency=i
  4997. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4998. end
  4999. Part.Parent=nil
  5000. end),prt,msh)
  5001. end
  5002.  
  5003. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  5004. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5005. prt.Anchored=true
  5006. prt.Material = "Neon"
  5007. prt.CFrame=cframe
  5008. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  5009. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  5010. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  5011. game:GetService("Debris"):AddItem(prt,5)
  5012. coroutine.resume(coroutine.create(function(Part,Mesh)
  5013. local rtype = rottype
  5014. for i=0,1,delay do
  5015. swait()
  5016. if rtype == 1 then
  5017. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  5018. elseif rtype == 2 then
  5019. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  5020. end
  5021. dec.Transparency=i
  5022. dec2.Transparency=i
  5023. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  5024. end
  5025. Part.Parent=nil
  5026. end),prt,msh)
  5027. end
  5028.  
  5029. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  5030. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5031. prt.Anchored=true
  5032. prt.Material = "Neon"
  5033. prt.CFrame=cframe
  5034. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  5035. game:GetService("Debris"):AddItem(prt,5)
  5036. coroutine.resume(coroutine.create(function(Part,Mesh)
  5037. local rtype = rottype
  5038. for i=0,1,delay do
  5039. swait()
  5040. if rtype == 1 then
  5041. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  5042. elseif rtype == 2 then
  5043. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  5044. end
  5045. prt.Transparency=i
  5046. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  5047. end
  5048. Part.Parent=nil
  5049. end),prt,msh)
  5050. end
  5051.  
  5052. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  5053. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5054. prt.Anchored=true
  5055. prt.Material = "Neon"
  5056. prt.CFrame=cframe
  5057. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  5058. game:GetService("Debris"):AddItem(prt,5)
  5059. coroutine.resume(coroutine.create(function(Part,Mesh)
  5060. local rtype = rottype
  5061. for i=0,1,delay do
  5062. swait()
  5063. if rtype == 1 then
  5064. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  5065. elseif rtype == 2 then
  5066. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  5067. end
  5068. prt.Transparency=i
  5069. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  5070. end
  5071. Part.Parent=nil
  5072. end),prt,msh)
  5073. end
  5074.  
  5075. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  5076. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5077. prt.Anchored=true
  5078. prt.Material = "Neon"
  5079. prt.CFrame=cframe
  5080. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  5081. game:GetService("Debris"):AddItem(prt,5)
  5082. coroutine.resume(coroutine.create(function(Part,Mesh)
  5083. local rtype = rottype
  5084. for i=0,1,delay do
  5085. swait()
  5086. if rtype == 1 then
  5087. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  5088. elseif rtype == 2 then
  5089. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  5090. end
  5091. prt.Transparency=i
  5092. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  5093. end
  5094. Part.Parent=nil
  5095. end),prt,msh)
  5096. end
  5097.  
  5098. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  5099. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5100. prt.Anchored=true
  5101. prt.Material = "Neon"
  5102. prt.CFrame=cframe
  5103. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  5104. game:GetService("Debris"):AddItem(prt,5)
  5105. coroutine.resume(coroutine.create(function(Part,Mesh)
  5106. local rtype = rottype
  5107. for i=0,1,delay do
  5108. swait()
  5109. if rtype == 1 then
  5110. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  5111. elseif rtype == 2 then
  5112. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  5113. end
  5114. prt.Transparency=i
  5115. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5116. end
  5117. Part.Parent=nil
  5118. end),prt,msh)
  5119. end
  5120.  
  5121. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  5122. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5123. prt.Anchored=false
  5124. prt.CFrame=cframe
  5125. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  5126. local wld=weld(prt,prt,Parent,cframe)
  5127. game:GetService("Debris"):AddItem(prt,5)
  5128. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  5129. for i=0,1,delay do
  5130. wait()
  5131. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  5132. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  5133. Part.Transparency=i
  5134. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5135. end
  5136. Part.Parent=nil
  5137. end),prt,msh,wld)
  5138. end
  5139.  
  5140. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  5141. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5142. prt.Anchored=false
  5143. prt.CFrame=cframe
  5144. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  5145. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  5146. game:GetService("Debris"):AddItem(prt,5)
  5147. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  5148. for i=0,1,delay do
  5149. wait()
  5150. Weld.C0=euler(i*20,0,0)
  5151. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  5152. Part.Transparency=i
  5153. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5154. end
  5155. Part.Parent=nil
  5156. end),prt,msh,wld)
  5157. end
  5158.  
  5159. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5160. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5161. prt.Anchored=true
  5162. prt.CFrame=cframe
  5163. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  5164. game:GetService("Debris"):AddItem(prt,2)
  5165. coroutine.resume(coroutine.create(function(Part,Mesh)
  5166. for i=0,1,delay do
  5167. wait()
  5168. Part.CFrame=Part.CFrame
  5169. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5170. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5171. prt2.Anchored=true
  5172. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  5173. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  5174. game:GetService("Debris"):AddItem(prt2,2)
  5175. coroutine.resume(coroutine.create(function(Part,Mesh)
  5176. for i=0,1,0.1 do
  5177. wait()
  5178. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  5179. end
  5180. Part.Parent=nil
  5181. end),prt2,msh2)
  5182. end
  5183. for i=0,1,delay*2 do
  5184. wait()
  5185. Part.CFrame=Part.CFrame
  5186. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  5187. end
  5188. Part.Parent=nil
  5189. end),prt,msh)
  5190. end
  5191.  
  5192. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5193. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5194. prt.Anchored=true
  5195. prt.CFrame=cframe
  5196. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  5197. game:GetService("Debris"):AddItem(prt,2)
  5198. coroutine.resume(coroutine.create(function(Part,Mesh)
  5199. for i=0,1,delay do
  5200. wait()
  5201. Part.CFrame=Part.CFrame
  5202. Part.Transparency=i
  5203. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5204. end
  5205. Part.Parent=nil
  5206. end),prt,msh)
  5207. end
  5208.  
  5209. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  5210. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5211. prt.Anchored=true
  5212. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  5213. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  5214. game:GetService("Debris"):AddItem(prt,2)
  5215. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  5216. CF=Part.CFrame
  5217. Numbb=0
  5218. randnumb=math.random()/10
  5219. rand1=math.random()/10
  5220. for i=0,1,rand1 do
  5221. wait()
  5222. CF=CF*cf(0,math.random()/2,0)
  5223. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  5224. Part.CFrame=CF*euler(Numbb,0,0)
  5225. Part.Transparency=i
  5226. Numbb=Numbb+randnumb
  5227. end
  5228. Part.Parent=nil
  5229. end),prt,CF,Numbb,randnumb)
  5230. end
  5231.  
  5232. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5233. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5234. prt.Anchored=true
  5235. prt.CFrame=cframe
  5236. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  5237. game:GetService("Debris"):AddItem(prt,5)
  5238. coroutine.resume(coroutine.create(function(Part,Mesh)
  5239. for i=0,1,delay do
  5240. wait()
  5241. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  5242. Part.Transparency=i
  5243. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5244. end
  5245. Part.Parent=nil
  5246. end),prt,msh)
  5247. end
  5248.  
  5249. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5250. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5251. prt.Anchored=true
  5252. prt.CFrame=cframe
  5253. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  5254. game:GetService("Debris"):AddItem(prt,2)
  5255. coroutine.resume(coroutine.create(function(Part,Mesh)
  5256. for i=0,1,delay do
  5257. wait()
  5258. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  5259. Part.Transparency=i
  5260. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5261. end
  5262. Part.Parent=nil
  5263. end),prt,msh)
  5264. end
  5265.  
  5266. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  5267. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5268. prt.Anchored=true
  5269. prt.CFrame=cframe*cf(x,y,z)
  5270. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  5271. game:GetService("Debris"):AddItem(prt,5)
  5272. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  5273. local num=math.random()
  5274. local num2=math.random(-3,2)+math.random()
  5275. local numm=0
  5276. for i=0,1,delay*2 do
  5277. swait()
  5278. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  5279. Part.Transparency=i
  5280. numm=numm+0.01
  5281. end
  5282. Part.Parent=nil
  5283. Mesh.Parent=nil
  5284. end),prt,msh,x,y,z)
  5285. end
  5286.  
  5287. function dmgstart(dmg,what)
  5288. hitcon = what.Touched:connect(function(hit)
  5289. local hum = hit.Parent:FindFirstChild("Humanoid")
  5290. if hum and not hum:IsDescendantOf(Character) then
  5291. hum:TakeDamage(dmg)
  5292. end
  5293. end)
  5294. end
  5295.  
  5296. function dmgstop()
  5297. hitcon:disconnect()
  5298. end
  5299.  
  5300. function Cloak()
  5301. Face.Parent=nil
  5302. cloaked=true
  5303. for _,v in pairs(Torso.Parent:children()) do
  5304. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  5305. coroutine.resume(coroutine.create(function()
  5306. for i=0,1,0.2 do
  5307. wait()
  5308. v.Transparency=i
  5309. end
  5310. v.Transparency=1
  5311. end))
  5312. end
  5313. if v.className=="Hat" then
  5314. hatp=v.Handle
  5315. coroutine.resume(coroutine.create(function(derp)
  5316. for i=0,1,0.2 do
  5317. wait()
  5318. derp.Transparency=i
  5319. end
  5320. derp.Transparency=1
  5321. end),hatp)
  5322. end
  5323. end
  5324. for _,v in pairs(m:children()) do
  5325. if v.className=="Part" then
  5326. coroutine.resume(coroutine.create(function()
  5327. for i=0,1,0.2 do
  5328. wait()
  5329. v.Transparency=i
  5330. end
  5331. v.Transparency=1
  5332. end))
  5333. end
  5334. end
  5335. end
  5336.  
  5337. function UnCloak()
  5338. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  5339. Face.Parent=Head
  5340. cloaked=false
  5341. for _,v in pairs(Torso.Parent:children()) do
  5342. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  5343. coroutine.resume(coroutine.create(function()
  5344. for i=0,1,0.1 do
  5345. wait()
  5346. v.Transparency=v.Transparency-0.1
  5347. end
  5348. v.Transparency=0
  5349. end))
  5350. end
  5351. if v.className=="Hat" then
  5352. hatp=v.Handle
  5353. coroutine.resume(coroutine.create(function(derp)
  5354. for i=0,1,0.1 do
  5355. wait()
  5356. derp.Transparency=derp.Transparency-0.1
  5357. end
  5358. derp.Transparency=0
  5359. end),hatp)
  5360. end
  5361. end
  5362. for _,v in pairs(m:children()) do
  5363. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  5364. coroutine.resume(coroutine.create(function()
  5365. for i=0,1,0.1 do
  5366. wait()
  5367. v.Transparency=v.Transparency-0.1
  5368. end
  5369. v.Transparency=0
  5370. end))
  5371. v.Transparency=0
  5372. end
  5373. end
  5374. end
  5375.  
  5376. local origcolor = BrickColor.new("Pastel light blue")
  5377. ---- This section of explosions.
  5378.  
  5379. ----
  5380.  
  5381.  
  5382. function ring(type,pos,scale,value)
  5383. local type = type
  5384. local rng = Instance.new("Part", char)
  5385. rng.Anchored = true
  5386. rng.BrickColor = origcolor
  5387. rng.CanCollide = false
  5388. rng.FormFactor = 3
  5389. rng.Name = "Ring"
  5390. rng.Size = Vector3.new(1, 1, 1)
  5391. rng.Transparency = 0
  5392. rng.TopSurface = 0
  5393. rng.BottomSurface = 0
  5394. rng.CFrame = pos
  5395. local rngm = Instance.new("SpecialMesh", rng)
  5396. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  5397. rngm.Scale = scale
  5398. local scaler2 = 1
  5399. if type == "Add" then
  5400. scaler2 = 1*value
  5401. elseif type == "Divide" then
  5402. scaler2 = 1/value
  5403. end
  5404. coroutine.resume(coroutine.create(function()
  5405. for i = 0,10,0.1 do
  5406. swait()
  5407. if type == "Add" then
  5408. scaler2 = scaler2 - 0.01*value
  5409. elseif type == "Divide" then
  5410. scaler2 = scaler2 - 0.01/value
  5411. end
  5412. rng.Transparency = rng.Transparency + 0.01
  5413. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  5414. end
  5415. rng:Destroy()
  5416. end))
  5417. end
  5418.  
  5419.  
  5420. function wave(type,pos,scale,value)
  5421. local type = type
  5422. local rng = Instance.new("Part", char)
  5423. rng.Anchored = true
  5424. rng.BrickColor = origcolor
  5425. rng.CanCollide = false
  5426. rng.FormFactor = 3
  5427. rng.Name = "Ring"
  5428. rng.Size = Vector3.new(1, 1, 1)
  5429. rng.Transparency = 0
  5430. rng.TopSurface = 0
  5431. rng.BottomSurface = 0
  5432. rng.CFrame = pos
  5433. local rngm = Instance.new("SpecialMesh", rng)
  5434. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  5435. rngm.Scale = scale
  5436. local scaler2 = 1
  5437. if type == "Add" then
  5438. scaler2 = 1*value
  5439. elseif type == "Divide" then
  5440. scaler2 = 1/value
  5441. end
  5442. coroutine.resume(coroutine.create(function()
  5443. for i = 0,10,0.1 do
  5444. swait()
  5445. if type == "Add" then
  5446. scaler2 = scaler2 - 0.01*value
  5447. elseif type == "Divide" then
  5448. scaler2 = scaler2 - 0.01/value
  5449. end
  5450. rng.Transparency = rng.Transparency + 0.01
  5451. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  5452. end
  5453. rng:Destroy()
  5454. end))
  5455. end
  5456.  
  5457. function wind(type,pos,scale,value,speed)
  5458. local type = type
  5459. local rng = Instance.new("Part", char)
  5460. rng.Anchored = true
  5461. rng.BrickColor = origcolor
  5462. rng.CanCollide = false
  5463. rng.FormFactor = 3
  5464. rng.Name = "Ring"
  5465. rng.Size = Vector3.new(1, 1, 1)
  5466. rng.Transparency = 0
  5467. rng.TopSurface = 0
  5468. rng.BottomSurface = 0
  5469. rng.CFrame = pos
  5470. local rngm = Instance.new("SpecialMesh", rng)
  5471. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  5472. rngm.Scale = scale
  5473. local scaler2 = 1
  5474. if type == "Add" then
  5475. scaler2 = 1*value
  5476. elseif type == "Divide" then
  5477. scaler2 = 1/value
  5478. end
  5479. coroutine.resume(coroutine.create(function()
  5480. for i = 0,10,0.1 do
  5481. swait()
  5482. if type == "Add" then
  5483. scaler2 = scaler2 - 0.01*value
  5484. elseif type == "Divide" then
  5485. scaler2 = scaler2 - 0.01/value
  5486. end
  5487. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  5488. rng.Transparency = rng.Transparency + 0.01
  5489. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  5490. end
  5491. rng:Destroy()
  5492. end))
  5493. end
  5494.  
  5495. function groundwind(type,pos,scale,value,speed)
  5496. local type = type
  5497. local rng = Instance.new("Part", char)
  5498. rng.Anchored = true
  5499. rng.BrickColor = origcolor
  5500. rng.CanCollide = false
  5501. rng.FormFactor = 3
  5502. rng.Name = "Ring"
  5503. rng.Size = Vector3.new(1, 1, 1)
  5504. rng.Transparency = 0
  5505. rng.TopSurface = 0
  5506. rng.BottomSurface = 0
  5507. rng.CFrame = pos
  5508. local rngm = Instance.new("SpecialMesh", rng)
  5509. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  5510. rngm.Scale = scale
  5511. local scaler2 = 1
  5512. if type == "Add" then
  5513. scaler2 = 1*value
  5514. elseif type == "Divide" then
  5515. scaler2 = 1/value
  5516. end
  5517. coroutine.resume(coroutine.create(function()
  5518. for i = 0,10,0.1 do
  5519. swait()
  5520. if type == "Add" then
  5521. scaler2 = scaler2 - 0.01*value
  5522. elseif type == "Divide" then
  5523. scaler2 = scaler2 - 0.01/value
  5524. end
  5525. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  5526. rng.Transparency = rng.Transparency + 0.01
  5527. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  5528. end
  5529. rng:Destroy()
  5530. end))
  5531. end
  5532.  
  5533. function CameraManager()
  5534. if TwoD and not CamInterrupt then
  5535. if Humanoid.Health > 0 then
  5536. Camera.CameraSubject = Humanoid
  5537. Camera.CameraType = "Scriptable"
  5538. Humanoid.AutoRotate = false
  5539. if Booleans.GyroUse then
  5540. Directer.MaxTorque = Vec3(0, huge, 0)
  5541. else
  5542. Directer.MaxTorque = Vec3(0, 0, 0)
  5543. end
  5544. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  5545. if Booleans.CamFollow then
  5546. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  5547. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  5548. else
  5549. CPart.Position = RootPart.Position
  5550. end
  5551. else
  5552. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  5553. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  5554. end
  5555. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  5556. else
  5557. Camera.CameraSubject = Humanoid
  5558. Camera.CameraType = "Custom"
  5559. Controller.Disabled = false
  5560. end
  5561. end
  5562. end
  5563.  
  5564. function ring(type,pos,scale,value)
  5565. local type = type
  5566. local rng = Instance.new("Part", char)
  5567. rng.Anchored = true
  5568. rng.BrickColor = origcolor
  5569. rng.CanCollide = false
  5570. rng.FormFactor = 3
  5571. rng.Name = "Ring"
  5572. rng.Size = Vector3.new(1, 1, 1)
  5573. rng.Transparency = 0
  5574. rng.TopSurface = 0
  5575. rng.BottomSurface = 0
  5576. rng.CFrame = pos
  5577. local rngm = Instance.new("SpecialMesh", rng)
  5578. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  5579. rngm.Scale = scale
  5580. local scaler2 = 1
  5581. if type == "Add" then
  5582. scaler2 = 1*value
  5583. elseif type == "Divide" then
  5584. scaler2 = 1/value
  5585. end
  5586. coroutine.resume(coroutine.create(function()
  5587. for i = 0,10,0.1 do
  5588. swait()
  5589. if type == "Add" then
  5590. scaler2 = scaler2 - 0.01*value
  5591. elseif type == "Divide" then
  5592. scaler2 = scaler2 - 0.01/value
  5593. end
  5594. rng.Transparency = rng.Transparency + 0.01
  5595. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  5596. end
  5597. rng:Destroy()
  5598. end))
  5599. end
  5600.  
  5601.  
  5602. function wave(type,pos,scale,value)
  5603. local type = type
  5604. local rng = Instance.new("Part", char)
  5605. rng.Anchored = true
  5606. rng.BrickColor = origcolor
  5607. rng.CanCollide = false
  5608. rng.FormFactor = 3
  5609. rng.Name = "Ring"
  5610. rng.Size = Vector3.new(1, 1, 1)
  5611. rng.Transparency = 0
  5612. rng.TopSurface = 0
  5613. rng.BottomSurface = 0
  5614. rng.CFrame = pos
  5615. local rngm = Instance.new("SpecialMesh", rng)
  5616. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  5617. rngm.Scale = scale
  5618. local scaler2 = 1
  5619. if type == "Add" then
  5620. scaler2 = 1*value
  5621. elseif type == "Divide" then
  5622. scaler2 = 1/value
  5623. end
  5624. coroutine.resume(coroutine.create(function()
  5625. for i = 0,10,0.1 do
  5626. swait()
  5627. if type == "Add" then
  5628. scaler2 = scaler2 - 0.01*value
  5629. elseif type == "Divide" then
  5630. scaler2 = scaler2 - 0.01/value
  5631. end
  5632. rng.Transparency = rng.Transparency + 0.01
  5633. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  5634. end
  5635. rng:Destroy()
  5636. end))
  5637. end
  5638.  
  5639. function sphere(bonuspeed,type,pos,scale,value,color)
  5640. local type = type
  5641. local rng = Instance.new("Part", char)
  5642. rng.Anchored = true
  5643. if ModeOfGlitch ~= 9 then
  5644. rng.BrickColor = color
  5645. elseif ModeOfGlitch == 9 then
  5646. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  5647. end
  5648. rng.CanCollide = false
  5649. rng.FormFactor = 3
  5650. rng.Name = "Ring"
  5651. rng.Material = "Neon"
  5652. rng.Size = Vector3.new(1, 1, 1)
  5653. rng.Transparency = 0
  5654. rng.TopSurface = 0
  5655. rng.BottomSurface = 0
  5656. rng.CFrame = pos
  5657. local rngm = Instance.new("SpecialMesh", rng)
  5658. rngm.MeshType = "Sphere"
  5659. rngm.Scale = scale
  5660. if rainbowmode == true then
  5661. rng.Color = Color3.new(r/255,g/255,b/255)
  5662. end
  5663. if ModeOfGlitch == 9 then
  5664. coroutine.resume(coroutine.create(function()
  5665. while true do
  5666. swait()
  5667. if rng.Parent ~= nil then
  5668. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  5669. else
  5670. break
  5671. end
  5672. end
  5673. end))
  5674. end
  5675. local scaler2 = 1
  5676. if type == "Add" then
  5677. scaler2 = 1*value
  5678. elseif type == "Divide" then
  5679. scaler2 = 1/value
  5680. end
  5681. coroutine.resume(coroutine.create(function()
  5682. for i = 0,10/bonuspeed,0.1 do
  5683. swait()
  5684. if rainbowmode == true then
  5685. rng.Color = Color3.new(r/255,g/255,b/255)
  5686. end
  5687. if type == "Add" then
  5688. scaler2 = scaler2 - 0.01*value/bonuspeed
  5689. elseif type == "Divide" then
  5690. scaler2 = scaler2 - 0.01/value*bonuspeed
  5691. end
  5692. if chaosmode == true then
  5693. rng.BrickColor = BrickColor.random()
  5694. end
  5695. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  5696. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  5697. end
  5698. rng:Destroy()
  5699. end))
  5700. end
  5701.  
  5702. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  5703. local type = type
  5704. local rng = Instance.new("Part", char)
  5705. rng.Anchored = true
  5706. if ModeOfGlitch ~= 9 then
  5707. rng.BrickColor = color
  5708. elseif ModeOfGlitch == 9 then
  5709. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  5710. end
  5711. rng.CanCollide = false
  5712. rng.FormFactor = 3
  5713. rng.Name = "Ring"
  5714. rng.Material = "Neon"
  5715. rng.Size = Vector3.new(1, 1, 1)
  5716. rng.Transparency = 0
  5717. rng.TopSurface = 0
  5718. rng.BottomSurface = 0
  5719. rng.CFrame = pos
  5720. local rngm = Instance.new("SpecialMesh", rng)
  5721. rngm.MeshType = "Sphere"
  5722. rngm.Scale = scale
  5723. local scaler2 = 1
  5724. local scaler2b = 1
  5725. local scaler2c = 1
  5726. if type == "Add" then
  5727. scaler2 = 1*value
  5728. scaler2b = 1*value2
  5729. scaler2c = 1*value3
  5730. elseif type == "Divide" then
  5731. scaler2 = 1/value
  5732. scaler2b = 1/value2
  5733. scaler2c = 1/value3
  5734. end
  5735. if ModeOfGlitch == 9 then
  5736. coroutine.resume(coroutine.create(function()
  5737. while true do
  5738. swait()
  5739. if rng.Parent ~= nil then
  5740. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  5741. else
  5742. break
  5743. end
  5744. end
  5745. end))
  5746. end
  5747. coroutine.resume(coroutine.create(function()
  5748. for i = 0,10/bonuspeed,0.1 do
  5749. swait()
  5750. if type == "Add" then
  5751. scaler2 = scaler2 - 0.01*value/bonuspeed
  5752. scaler2b = scaler2b - 0.01*value/bonuspeed
  5753. scaler2c = scaler2c - 0.01*value/bonuspeed
  5754. elseif type == "Divide" then
  5755. scaler2 = scaler2 - 0.01/value*bonuspeed
  5756. scaler2b = scaler2b - 0.01/value*bonuspeed
  5757. scaler2c = scaler2c - 0.01/value*bonuspeed
  5758. end
  5759. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  5760. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  5761. end
  5762. rng:Destroy()
  5763. end))
  5764. end
  5765.  
  5766. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  5767. local type = type
  5768. local rotenable = rotatingop
  5769. local rng = Instance.new("Part", char)
  5770. rng.Anchored = true
  5771. rng.BrickColor = color
  5772. rng.CanCollide = false
  5773. rng.FormFactor = 3
  5774. rng.Name = "Ring"
  5775. rng.Material = "Neon"
  5776. rng.Size = Vector3.new(1, 1, 1)
  5777. rng.Transparency = 0
  5778. if typeoftrans == "In" then
  5779. rng.Transparency = 1
  5780. end
  5781. rng.TopSurface = 0
  5782. rng.BottomSurface = 0
  5783. rng.CFrame = pos
  5784. local rngm = Instance.new("SpecialMesh", rng)
  5785. rngm.MeshType = "FileMesh"
  5786. if typeofshape == "Normal" then
  5787. rngm.MeshId = "rbxassetid://662586858"
  5788. elseif typeofshape == "Round" then
  5789. rngm.MeshId = "rbxassetid://662585058"
  5790. end
  5791. rngm.Scale = scale
  5792. local scaler2 = 1/10
  5793. if type == "Add" then
  5794. scaler2 = 1*value/10
  5795. elseif type == "Divide" then
  5796. scaler2 = 1/value/10
  5797. end
  5798. local randomrot = math.random(1,2)
  5799. coroutine.resume(coroutine.create(function()
  5800. for i = 0,10/bonuspeed,0.1 do
  5801. swait()
  5802. if type == "Add" then
  5803. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  5804. elseif type == "Divide" then
  5805. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  5806. end
  5807. if rotenable == true then
  5808. if randomrot == 1 then
  5809. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  5810. elseif randomrot == 2 then
  5811. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  5812. end
  5813. end
  5814. if typeoftrans == "Out" then
  5815. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  5816. elseif typeoftrans == "In" then
  5817. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  5818. end
  5819. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  5820. end
  5821. rng:Destroy()
  5822. end))
  5823. end
  5824.  
  5825. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  5826. local type = type
  5827. local rng = Instance.new("Part", char)
  5828. rng.Anchored = true
  5829. rng.BrickColor = color
  5830. rng.CanCollide = false
  5831. rng.FormFactor = 3
  5832. rng.Name = "Ring"
  5833. rng.Material = "Neon"
  5834. rng.Size = Vector3.new(1, 1, 1)
  5835. rng.Transparency = 0
  5836. rng.TopSurface = 0
  5837. rng.BottomSurface = 0
  5838. rng.CFrame = pos
  5839. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  5840. local rngm = Instance.new("SpecialMesh", rng)
  5841. rngm.MeshType = "Brick"
  5842. rngm.Scale = vt(x1,y1,z1)
  5843. if rainbowmode == true then
  5844. rng.Color = Color3.new(r/255,g/255,b/255)
  5845. end
  5846. local scaler2 = 1
  5847. local speeder = FastSpeed/10
  5848. if type == "Add" then
  5849. scaler2 = 1*value
  5850. elseif type == "Divide" then
  5851. scaler2 = 1/value
  5852. end
  5853. coroutine.resume(coroutine.create(function()
  5854. for i = 0,10/bonuspeed,0.1 do
  5855. swait()
  5856. if rainbowmode == true then
  5857. rng.Color = Color3.new(r/255,g/255,b/255)
  5858. end
  5859. if type == "Add" then
  5860. scaler2 = scaler2 - 0.01*value/bonuspeed
  5861. elseif type == "Divide" then
  5862. scaler2 = scaler2 - 0.01/value*bonuspeed
  5863. end
  5864. if chaosmode == true then
  5865. rng.BrickColor = BrickColor.random()
  5866. end
  5867. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  5868. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  5869. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  5870. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  5871. end
  5872. rng:Destroy()
  5873. end))
  5874. end
  5875.  
  5876. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  5877. local type = type
  5878. local rng = Instance.new("Part", char)
  5879. rng.Anchored = true
  5880. rng.BrickColor = color
  5881. rng.CanCollide = false
  5882. rng.FormFactor = 3
  5883. rng.Name = "Ring"
  5884. rng.Material = "Neon"
  5885. rng.Size = Vector3.new(1, 1, 1)
  5886. rng.Transparency = 0
  5887. rng.TopSurface = 0
  5888. rng.BottomSurface = 0
  5889. rng.CFrame = pos
  5890. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  5891. local rngm = Instance.new("SpecialMesh", rng)
  5892. rngm.MeshType = "Brick"
  5893. rngm.Scale = vt(x1,y1,z1)
  5894. if rainbowmode == true then
  5895. rng.Color = Color3.new(r/255,g/255,b/255)
  5896. end
  5897. local scaler2 = 1
  5898. local speeder = FastSpeed/10
  5899. if type == "Add" then
  5900. scaler2 = 1*value
  5901. elseif type == "Divide" then
  5902. scaler2 = 1/value
  5903. end
  5904. coroutine.resume(coroutine.create(function()
  5905. for i = 0,10/bonuspeed,0.1 do
  5906. swait()
  5907. if rainbowmode == true then
  5908. rng.Color = Color3.new(r/255,g/255,b/255)
  5909. end
  5910. if type == "Add" then
  5911. scaler2 = scaler2 - 0.01*value/bonuspeed
  5912. elseif type == "Divide" then
  5913. scaler2 = scaler2 - 0.01/value*bonuspeed
  5914. end
  5915. if chaosmode == true then
  5916. rng.BrickColor = BrickColor.random()
  5917. end
  5918. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  5919. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  5920. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  5921. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  5922. end
  5923. rng:Destroy()
  5924. end))
  5925. end
  5926.  
  5927. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  5928. local type = type
  5929. local rng = Instance.new("Part", char)
  5930. rng.Anchored = true
  5931. rng.BrickColor = color
  5932. rng.CanCollide = false
  5933. rng.FormFactor = 3
  5934. rng.Name = "Ring"
  5935. rng.Material = "Neon"
  5936. rng.Size = Vector3.new(1, 1, 1)
  5937. rng.Transparency = 0
  5938. rng.TopSurface = 0
  5939. rng.BottomSurface = 0
  5940. rng.CFrame = pos
  5941. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  5942. local rngm = Instance.new("SpecialMesh", rng)
  5943. rngm.MeshType = "Brick"
  5944. rngm.Scale = vt(x1,y1,z1)
  5945. if rainbowmode == true then
  5946. rng.Color = Color3.new(r/255,g/255,b/255)
  5947. end
  5948. local scaler2 = 0
  5949. local speeder = FastSpeed/10
  5950. if type == "Add" then
  5951. scaler2 = 1*value
  5952. elseif type == "Divide" then
  5953. scaler2 = 1/value
  5954. end
  5955. coroutine.resume(coroutine.create(function()
  5956. for i = 0,10/bonuspeed,0.1 do
  5957. swait()
  5958. if rainbowmode == true then
  5959. rng.Color = Color3.new(r/255,g/255,b/255)
  5960. end
  5961. if type == "Add" then
  5962. scaler2 = scaler2 - 0.01*value/bonuspeed
  5963. elseif type == "Divide" then
  5964. scaler2 = scaler2 - 0.01/value*bonuspeed
  5965. end
  5966. if chaosmode == true then
  5967. rng.BrickColor = BrickColor.random()
  5968. end
  5969. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  5970. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  5971. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  5972. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  5973. end
  5974. rng:Destroy()
  5975. end))
  5976. end
  5977.  
  5978. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  5979. local type = type
  5980. local rng = Instance.new("Part", char)
  5981. rng.Anchored = true
  5982. rng.BrickColor = color
  5983. rng.Color = color3
  5984. rng.CanCollide = false
  5985. rng.FormFactor = 3
  5986. rng.Name = "Ring"
  5987. rng.Material = "Neon"
  5988. rng.Size = Vector3.new(1, 1, 1)
  5989. rng.Transparency = 0
  5990. rng.TopSurface = 0
  5991. rng.BottomSurface = 0
  5992. rng.CFrame = pos
  5993. local rngm = Instance.new("SpecialMesh", rng)
  5994. rngm.MeshType = "Brick"
  5995. rngm.Scale = scale
  5996. local scaler2 = 1
  5997. local scaler2b = 1
  5998. local scaler2c = 1
  5999. if type == "Add" then
  6000. scaler2 = 1*value
  6001. scaler2b = 1*value2
  6002. scaler2c = 1*value3
  6003. elseif type == "Divide" then
  6004. scaler2 = 1/value
  6005. scaler2b = 1/value2
  6006. scaler2c = 1/value3
  6007. end
  6008. coroutine.resume(coroutine.create(function()
  6009. for i = 0,10/bonuspeed,0.1 do
  6010. swait()
  6011. if type == "Add" then
  6012. scaler2 = scaler2 - 0.01*value/bonuspeed
  6013. scaler2b = scaler2b - 0.01*value/bonuspeed
  6014. scaler2c = scaler2c - 0.01*value/bonuspeed
  6015. elseif type == "Divide" then
  6016. scaler2 = scaler2 - 0.01/value*bonuspeed
  6017. scaler2b = scaler2b - 0.01/value*bonuspeed
  6018. scaler2c = scaler2c - 0.01/value*bonuspeed
  6019. end
  6020. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6021. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  6022. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  6023. end
  6024. rng:Destroy()
  6025. end))
  6026. end
  6027.  
  6028. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  6029. local type = type
  6030. local rng = Instance.new("Part", char)
  6031. rng.Anchored = true
  6032. if ModeOfGlitch ~= 9 then
  6033. rng.BrickColor = color
  6034. elseif ModeOfGlitch == 9 then
  6035. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  6036. end
  6037. rng.CanCollide = false
  6038. rng.FormFactor = 3
  6039. rng.Name = "Ring"
  6040. rng.Material = "Neon"
  6041. rng.Size = Vector3.new(1, 1, 1)
  6042. rng.Transparency = 0
  6043. rng.TopSurface = 0
  6044. rng.BottomSurface = 0
  6045. rng.CFrame = pos
  6046. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  6047. local rngm = Instance.new("SpecialMesh", rng)
  6048. rngm.MeshType = "Sphere"
  6049. rngm.Scale = vt(x1,y1,z1)
  6050. if rainbowmode == true then
  6051. rng.Color = Color3.new(r/255,g/255,b/255)
  6052. end
  6053. if ModeOfGlitch == 9 then
  6054. coroutine.resume(coroutine.create(function()
  6055. while true do
  6056. swait()
  6057. if rng.Parent ~= nil then
  6058. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  6059. else
  6060. break
  6061. end
  6062. end
  6063. end))
  6064. end
  6065. local scaler2 = 1
  6066. local speeder = FastSpeed
  6067. if type == "Add" then
  6068. scaler2 = 1*value
  6069. elseif type == "Divide" then
  6070. scaler2 = 1/value
  6071. end
  6072. coroutine.resume(coroutine.create(function()
  6073. for i = 0,10/bonuspeed,0.1 do
  6074. swait()
  6075. if rainbowmode == true then
  6076. rng.Color = Color3.new(r/255,g/255,b/255)
  6077. end
  6078. if type == "Add" then
  6079. scaler2 = scaler2 - 0.01*value/bonuspeed
  6080. elseif type == "Divide" then
  6081. scaler2 = scaler2 - 0.01/value*bonuspeed
  6082. end
  6083. if chaosmode == true then
  6084. rng.BrickColor = BrickColor.random()
  6085. end
  6086. speeder = speeder - 0.01*FastSpeed*bonuspeed
  6087. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  6088. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  6089. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  6090. end
  6091. rng:Destroy()
  6092. end))
  6093. end
  6094.  
  6095.  
  6096. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  6097. local type = type
  6098. local rng = Instance.new("Part", char)
  6099. rng.Anchored = true
  6100. if ModeOfGlitch ~= 9 then
  6101. rng.BrickColor = color
  6102. elseif ModeOfGlitch == 9 then
  6103. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  6104. end
  6105. rng.CanCollide = false
  6106. rng.FormFactor = 3
  6107. rng.Name = "Ring"
  6108. rng.Material = "Neon"
  6109. rng.Size = Vector3.new(1, 1, 1)
  6110. rng.Transparency = 1
  6111. rng.TopSurface = 0
  6112. rng.BottomSurface = 0
  6113. rng.CFrame = pos
  6114. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  6115. local rngm = Instance.new("SpecialMesh", rng)
  6116. rngm.MeshType = "Sphere"
  6117. rngm.Scale = vt(x1,y1,z1)
  6118. if rainbowmode == true then
  6119. rng.Color = Color3.new(r/255,g/255,b/255)
  6120. end
  6121. if ModeOfGlitch == 9 then
  6122. coroutine.resume(coroutine.create(function()
  6123. while true do
  6124. swait()
  6125. if rng.Parent ~= nil then
  6126. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  6127. else
  6128. break
  6129. end
  6130. end
  6131. end))
  6132. end
  6133. local scaler2 = 1
  6134. local speeder = FastSpeed
  6135. if type == "Add" then
  6136. scaler2 = 1*value
  6137. elseif type == "Divide" then
  6138. scaler2 = 1/value
  6139. end
  6140. coroutine.resume(coroutine.create(function()
  6141. for i = 0,10/bonuspeed,0.1 do
  6142. swait()
  6143. if rainbowmode == true then
  6144. rng.Color = Color3.new(r/255,g/255,b/255)
  6145. end
  6146. if type == "Add" then
  6147. scaler2 = scaler2 - 0.01*value/bonuspeed
  6148. elseif type == "Divide" then
  6149. scaler2 = scaler2 - 0.01/value*bonuspeed
  6150. end
  6151. if chaosmode == true then
  6152. rng.BrickColor = BrickColor.random()
  6153. end
  6154. speeder = speeder - 0.01*FastSpeed*bonuspeed
  6155. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  6156. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  6157. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  6158. end
  6159. rng:Destroy()
  6160. end))
  6161. end
  6162.  
  6163. function dmg(dude)
  6164. if dude.Name ~= Character then
  6165. local keptcolor = MAINRUINCOLOR
  6166. local bgf = Instance.new("BodyGyro",dude.Head)
  6167. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  6168. --[[local val = Instance.new("BoolValue",dude)
  6169. val.Name = "IsHit"]]--
  6170. local ds = coroutine.wrap(function()
  6171. dude:WaitForChild("Head"):BreakJoints()
  6172. for i, v in pairs(dude:GetChildren()) do
  6173. if v:IsA("Part") or v:IsA("MeshPart") then
  6174. v.Name = "DEMINISHED"
  6175. end
  6176. end
  6177. wait(0.5)
  6178. targetted = nil
  6179. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  6180. coroutine.resume(coroutine.create(function()
  6181. for i, v in pairs(dude:GetChildren()) do
  6182. if v:IsA("Accessory") then
  6183. v:Destroy()
  6184. end
  6185. if v:IsA("Humanoid") then
  6186. v:Destroy()
  6187. end
  6188. if v:IsA("CharacterMesh") then
  6189. v:Destroy()
  6190. end
  6191. if v:IsA("Model") then
  6192. v:Destroy()
  6193. end
  6194. if v:IsA("Part") or v:IsA("MeshPart") then
  6195. for x, o in pairs(v:GetChildren()) do
  6196. if o:IsA("Decal") then
  6197. o:Destroy()
  6198. end
  6199. end
  6200. coroutine.resume(coroutine.create(function()
  6201. v.Material = "Neon"
  6202. v.CanCollide = false
  6203. v.Anchored = false
  6204. local bld = Instance.new("ParticleEmitter",v)
  6205. bld.LightEmission = 0.75
  6206. bld.Texture = "rbxassetid://363275192" ---284205403
  6207. bld.Color = ColorSequence.new(keptcolor.Color)
  6208. bld.Rate = 500
  6209. bld.Lifetime = NumberRange.new(1)
  6210. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  6211. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  6212. bld.Speed = NumberRange.new(2,5)
  6213. bld.VelocitySpread = 50000
  6214. bld.Rotation = NumberRange.new(-500,500)
  6215. bld.RotSpeed = NumberRange.new(-500,500)
  6216. local sbs = Instance.new("BodyPosition", v)
  6217. sbs.P = 3000
  6218. sbs.D = 1000
  6219. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  6220. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  6221. v.Color = keptcolor.Color
  6222. coroutine.resume(coroutine.create(function()
  6223. for i = 0, 49 do
  6224. swait(1)
  6225. v:BreakJoints()
  6226. v.Transparency = v.Transparency + 0.02
  6227. end
  6228. v:BreakJoints()
  6229. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  6230. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  6231. bld.Speed = NumberRange.new(10,25)
  6232. bld.Drag = 5
  6233. bld.Acceleration = vt(0,2,0)
  6234. wait(0.5)
  6235. bld.Enabled = false
  6236. wait(8)
  6237. v:Destroy()
  6238. dude:Destroy()
  6239. end))
  6240. end))
  6241. end
  6242. end
  6243. end))
  6244. end)
  6245. ds()
  6246. end
  6247. end
  6248.  
  6249.  
  6250. function FindNearestHead(Position, Distance, SinglePlayer)
  6251. if SinglePlayer then
  6252. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  6253. end
  6254. local List = {}
  6255. for i, v in pairs(workspace:GetChildren()) do
  6256. if v:IsA("Model") then
  6257. if v:findFirstChild("Head") then
  6258. if v ~= Character then
  6259. if (v.Head.Position - Position).magnitude <= Distance then
  6260. table.insert(List, v)
  6261. end
  6262. end
  6263. end
  6264. end
  6265. end
  6266. return List
  6267. end
  6268.  
  6269. function FaceMouse()
  6270. Cam = workspace.CurrentCamera
  6271. return {
  6272. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  6273. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  6274. }
  6275. end
  6276.  
  6277. function FaceMouse2()
  6278. Cam = workspace.CurrentCamera
  6279. return {
  6280. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  6281. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  6282. }
  6283. end
  6284.  
  6285. local ModeOfGlitch = 1
  6286. -- Functions are ready.
  6287. local storehumanoidWS = 16
  6288.  
  6289. function CorruptBlink()
  6290. for i = 0, 14 do
  6291. 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)
  6292. end
  6293. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6294. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  6295. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  6296. CameraEnshaking(2,10)
  6297. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  6298. if v:FindFirstChild('Head') then
  6299. dmg(v)
  6300. end
  6301. end
  6302. for i = 0, 14 do
  6303. 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)
  6304. end
  6305. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6306. end
  6307. function PureBomb()
  6308. attack = true
  6309. hum.WalkSpeed = 0
  6310. local orb = Instance.new("Part", char)
  6311. orb.Anchored = true
  6312. orb.BrickColor = BrickColor.new("Toothpaste")
  6313. orb.CanCollide = false
  6314. orb.FormFactor = 3
  6315. orb.Name = "Ring"
  6316. orb.Material = "Neon"
  6317. orb.Size = Vector3.new(1, 1, 1)
  6318. orb.Transparency = 0
  6319. orb.TopSurface = 0
  6320. orb.BottomSurface = 0
  6321. local orbm = Instance.new("SpecialMesh", orb)
  6322. orbm.MeshType = "Sphere"
  6323. orbm.Name = "SizeMesh"
  6324. orbm.Scale = vt(0,0,0)
  6325. local scaled = 0.1
  6326. local posid = 0
  6327. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  6328. for i = 0, 5, 0.1 do
  6329. swait()
  6330. scaled = scaled - 0.001
  6331. posid = posid - scaled
  6332. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  6333. local scaled = 0.1
  6334. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  6335. 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)
  6336. 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)
  6337. 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)
  6338. 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)
  6339. 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)
  6340. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6341. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  6342. 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)
  6343. end
  6344. for i = 0, 2, 0.1 do
  6345. swait()
  6346. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  6347. 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)
  6348. 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)
  6349. 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)
  6350. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  6351. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  6352. 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)
  6353. end
  6354. coroutine.resume(coroutine.create(function()
  6355. orb.Anchored = false
  6356. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  6357. local a = Instance.new("Part",workspace)
  6358. a.Name = "Direction"
  6359. a.Anchored = true
  6360. a.BrickColor = bc("Bright red")
  6361. a.Material = "Neon"
  6362. a.Transparency = 1
  6363. a.CanCollide = false
  6364. local ray = Ray.new(
  6365. orb.CFrame.p, -- origin
  6366. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  6367. )
  6368. local ignore = orb
  6369. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6370. a.BottomSurface = 10
  6371. a.TopSurface = 10
  6372. local distance = (orb.CFrame.p - position).magnitude
  6373. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6374. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  6375. orb.CFrame = a.CFrame
  6376. a:Destroy()
  6377. local bv = Instance.new("BodyVelocity")
  6378. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6379. bv.velocity = orb.CFrame.lookVector*125
  6380. bv.Parent = orb
  6381. local hitted = false
  6382. game:GetService("Debris"):AddItem(orb, 15)
  6383. wait()
  6384. local hit =orb.Touched:connect(function(hit)
  6385. if hitted == false then
  6386. hitted = true
  6387. CameraEnshaking(10,2.5)
  6388. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  6389. MagniDamage(orb, 65, 65,90, 0, "Normal")
  6390. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  6391. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  6392. for i = 0, 49 do
  6393. 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)
  6394. end
  6395. for i = 0, 9 do
  6396. 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)
  6397. 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)
  6398. end
  6399. orb.Anchored = true
  6400. orb.Transparency = 1
  6401. wait(8)
  6402. orb:Destroy()
  6403. end
  6404. end)
  6405. end))
  6406. for i = 0, 1, 0.1 do
  6407. swait()
  6408. 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)
  6409. 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)
  6410. 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)
  6411. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  6412. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  6413. 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)
  6414. end
  6415. hum.WalkSpeed = storehumanoidWS
  6416. attack = false
  6417. end
  6418.  
  6419. function BanishingOrb()
  6420. attack = true
  6421. hum.WalkSpeed = 0
  6422. local orb = Instance.new("Part", char)
  6423. orb.Anchored = true
  6424. orb.BrickColor = BrickColor.new("Black")
  6425. orb.CanCollide = false
  6426. orb.FormFactor = 3
  6427. orb.Name = "Ring"
  6428. orb.Material = "Neon"
  6429. orb.Size = Vector3.new(1, 1, 1)
  6430. orb.Transparency = 0
  6431. orb.TopSurface = 0
  6432. orb.BottomSurface = 0
  6433. local orbm = Instance.new("SpecialMesh", orb)
  6434. orbm.MeshType = "Sphere"
  6435. orbm.Name = "SizeMesh"
  6436. orbm.Scale = vt(0,0,0)
  6437. local scaled = 0.1
  6438. local posid = 0
  6439. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  6440. for i = 0, 5, 0.1 do
  6441. swait()
  6442. scaled = scaled - 0.001
  6443. posid = posid - scaled
  6444. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  6445. local scaled = 0.1
  6446. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  6447. 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)
  6448. 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)
  6449. 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)
  6450. 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)
  6451. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6452. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  6453. 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)
  6454. end
  6455. for i = 0, 2, 0.1 do
  6456. swait()
  6457. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  6458. 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)
  6459. 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)
  6460. 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)
  6461. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  6462. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  6463. 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)
  6464. end
  6465. coroutine.resume(coroutine.create(function()
  6466. orb.Anchored = false
  6467. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  6468. local a = Instance.new("Part",workspace)
  6469. a.Name = "Direction"
  6470. a.Anchored = true
  6471. a.BrickColor = bc("Bright red")
  6472. a.Material = "Neon"
  6473. a.Transparency = 1
  6474. a.CanCollide = false
  6475. local ray = Ray.new(
  6476. orb.CFrame.p, -- origin
  6477. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  6478. )
  6479. local ignore = orb
  6480. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6481. a.BottomSurface = 10
  6482. a.TopSurface = 10
  6483. local distance = (orb.CFrame.p - position).magnitude
  6484. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6485. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  6486. orb.CFrame = a.CFrame
  6487. a:Destroy()
  6488. local bv = Instance.new("BodyVelocity")
  6489. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6490. bv.velocity = orb.CFrame.lookVector*0
  6491. bv.Parent = orb
  6492. local hitted = false
  6493. local rate = 0
  6494. coroutine.resume(coroutine.create(function()
  6495. for i = 0, 24 do
  6496. wait(0.1)
  6497. rate = rate + 0.25
  6498. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  6499. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  6500. if v:FindFirstChild('Head') then
  6501. dmg(v)
  6502. end
  6503. end
  6504. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  6505. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  6506. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  6507. end
  6508. orb.Anchored = true
  6509. orb.Transparency = 1
  6510. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  6511. if v:FindFirstChild('Head') then
  6512. dmg(v)
  6513. end
  6514. end
  6515. local eff = Instance.new("ParticleEmitter",orb)
  6516. eff.Texture = "rbxassetid://296874871"
  6517. eff.LightEmission = 0.95
  6518. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6519. eff.Rate = 1000000000
  6520. eff.Lifetime = NumberRange.new(3)
  6521. 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)})
  6522. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  6523. eff.Speed = NumberRange.new(30)
  6524. eff.Acceleration = vt(0,-15,0)
  6525. eff.Rotation = NumberRange.new(-500,500)
  6526. eff.VelocitySpread = 100000
  6527. eff.RotSpeed = NumberRange.new(-500,500)
  6528. coroutine.resume(coroutine.create(function()
  6529. wait(0.6)
  6530. eff.Enabled = false
  6531. end))
  6532. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  6533. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  6534. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  6535. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  6536. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  6537. game:GetService("Debris"):AddItem(orb, 15)
  6538. end))
  6539. end))
  6540. for i = 0, 1, 0.1 do
  6541. swait()
  6542. 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)
  6543. 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)
  6544. 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)
  6545. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  6546. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  6547. 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)
  6548. end
  6549. hum.WalkSpeed = storehumanoidWS
  6550. attack = false
  6551. end
  6552.  
  6553.  
  6554. function ChaosGroundStrike()
  6555. attack = true
  6556. for i = 0, 2, 0.1 do
  6557. swait()
  6558. 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)
  6559. 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)
  6560. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  6561. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  6562. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  6563. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  6564. end
  6565. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  6566. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  6567. CameraEnshaking(4,12)
  6568. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  6569. if v:FindFirstChild('Head') then
  6570. dmg(v)
  6571. end
  6572. end
  6573. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  6574. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  6575. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  6576. for i = 0, 2, 0.1 do
  6577. swait()
  6578. 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)
  6579. 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)
  6580. 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)
  6581. 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)
  6582. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  6583. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  6584. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  6585. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  6586. end
  6587. attack = false
  6588. end
  6589.  
  6590.  
  6591.  
  6592. function Starfall()
  6593. attack = true
  6594. hum.WalkSpeed = 0
  6595. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  6596. for i = 0, 5, 0.1 do
  6597. swait()
  6598. 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)
  6599. 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)
  6600. 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)
  6601. 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)
  6602. 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)
  6603. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  6604. 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)
  6605. 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)
  6606. end
  6607. local Overed = false
  6608. CameraEnshaking(2,20)
  6609. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  6610. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  6611. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  6612. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  6613. local orb = Instance.new("Part", char)
  6614. orb.Anchored = true
  6615. orb.BrickColor = BrickColor.new("Toothpaste")
  6616. orb.CanCollide = false
  6617. orb.FormFactor = 3
  6618. orb.Name = "Remenant"
  6619. orb.Material = "Neon"
  6620. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  6621. orb.Size = Vector3.new(1, 1, 1)
  6622. orb.Transparency = 1
  6623. orb.TopSurface = 0
  6624. orb.BottomSurface = 0
  6625. hum.WalkSpeed = storehumanoidWS
  6626. coroutine.resume(coroutine.create(function()
  6627. for i = 0, 9 do
  6628. swait(10)
  6629. local lb = Instance.new("Part")
  6630. lb.Color = MAINRUINCOLOR.Color
  6631. lb.CanCollide = false
  6632. lb.Material = "Neon"
  6633. lb.Anchored = true
  6634. lb.TopSurface = 0
  6635. lb.BottomSurface = 0
  6636. lb.Transparency = 0
  6637. lb.Size = vt(1,1,1)
  6638. 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)))
  6639. lb.Anchored = false
  6640. lb.Parent = char
  6641. local thingery = Instance.new("SpecialMesh",lb)
  6642. thingery.MeshType = "Sphere"
  6643. thingery.Scale = vt(20,20,20)
  6644. game:GetService("Debris"):AddItem(lb, 10)
  6645. local bv = Instance.new("BodyVelocity")
  6646. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6647. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  6648. bv.Parent = lb
  6649. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  6650. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  6651. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  6652. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  6653. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  6654. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  6655. local hitted = false
  6656. coroutine.resume(coroutine.create(function()
  6657. while true do
  6658. swait(1)
  6659. if lb.Parent ~= nil and hitted == false then
  6660. 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)
  6661. elseif lb.Parent == nil then
  6662. break
  6663. end
  6664. end
  6665. end))
  6666.  
  6667. game:GetService("Debris"):AddItem(a, 0.1)
  6668.  
  6669. coroutine.resume(coroutine.create(function()
  6670. swait(1)
  6671. lb.Touched:connect(function(hit)
  6672. if hitted == false then
  6673. hitted = true
  6674. lb.Transparency = 1
  6675. lb.Anchored = true
  6676. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  6677. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  6678. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  6679. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  6680. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  6681. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  6682. MagniDamage(lb, 45, 45,85, 0, "Normal")
  6683. CameraEnshaking(1,5)
  6684. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  6685. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  6686. for i = 0, 9 do
  6687. 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)
  6688. end
  6689. for i = 0, 49 do
  6690. swait()
  6691. MagniDamage(lb, 30, 2,4, 0, "Normal")
  6692. 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)
  6693. end
  6694. end
  6695. end)
  6696. end))
  6697. end
  6698. Overed = true
  6699. orb:Destroy()
  6700. end))
  6701.  
  6702. attack = false
  6703. end
  6704.  
  6705. function StarfallEX()
  6706. attack = true
  6707. hum.WalkSpeed = 0
  6708. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  6709. for i = 0, 10, 0.1 do
  6710. swait()
  6711. 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)
  6712. 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)
  6713. 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)
  6714. 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)
  6715. 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)
  6716. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  6717. 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)
  6718. 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)
  6719. end
  6720. local Overed = false
  6721. CameraEnshaking(2,20)
  6722. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  6723. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  6724. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  6725. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  6726. local orb = Instance.new("Part", char)
  6727. orb.Anchored = true
  6728. orb.BrickColor = BrickColor.new("Toothpaste")
  6729. orb.CanCollide = false
  6730. orb.FormFactor = 3
  6731. orb.Name = "Remenant"
  6732. orb.Material = "Neon"
  6733. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  6734. orb.Size = Vector3.new(1, 1, 1)
  6735. orb.Transparency = 1
  6736. orb.TopSurface = 0
  6737. orb.BottomSurface = 0
  6738. hum.WalkSpeed = storehumanoidWS
  6739. coroutine.resume(coroutine.create(function()
  6740. for i = 0, 4 do
  6741. swait(15)
  6742. local lb = Instance.new("Part")
  6743. lb.Color = MAINRUINCOLOR.Color
  6744. lb.CanCollide = false
  6745. lb.Material = "Neon"
  6746. lb.Anchored = true
  6747. lb.TopSurface = 0
  6748. lb.BottomSurface = 0
  6749. lb.Transparency = 0
  6750. lb.Size = vt(1,1,1)
  6751. 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)))
  6752. lb.Anchored = false
  6753. lb.Parent = char
  6754. local thingery = Instance.new("SpecialMesh",lb)
  6755. thingery.MeshType = "Sphere"
  6756. thingery.Scale = vt(50,50,50)
  6757. game:GetService("Debris"):AddItem(lb, 10)
  6758. local bv = Instance.new("BodyVelocity")
  6759. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6760. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  6761. bv.Parent = lb
  6762. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  6763. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  6764. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  6765. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  6766. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  6767. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  6768. local hitted = false
  6769. coroutine.resume(coroutine.create(function()
  6770. while true do
  6771. swait(1)
  6772. if lb.Parent ~= nil and hitted == false then
  6773. 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)
  6774. elseif lb.Parent == nil then
  6775. break
  6776. end
  6777. end
  6778. end))
  6779.  
  6780. game:GetService("Debris"):AddItem(a, 0.1)
  6781.  
  6782. coroutine.resume(coroutine.create(function()
  6783. swait(1)
  6784. lb.Touched:connect(function(hit)
  6785. if hitted == false then
  6786. hitted = true
  6787. lb.Transparency = 1
  6788. lb.Anchored = true
  6789. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  6790. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  6791. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  6792. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  6793. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  6794. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  6795. MagniDamage(lb, 50, 60,99, 0, "Normal")
  6796. CameraEnshaking(1,5)
  6797. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  6798. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  6799. for i = 0, 9 do
  6800. 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)
  6801. end
  6802. for i = 0, 99 do
  6803. swait()
  6804. MagniDamage(lb, 30, 6,18, 0, "Normal")
  6805. 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)
  6806. end
  6807. end
  6808. end)
  6809. end))
  6810. end
  6811. Overed = true
  6812. orb:Destroy()
  6813. end))
  6814.  
  6815. attack = false
  6816. end
  6817.  
  6818. function DivineBlast()
  6819. attack = true
  6820. hum.WalkSpeed = 0
  6821. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  6822. elocacenter.Anchored = true
  6823. elocacenter.CFrame = sorb.CFrame
  6824. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  6825. eloca1.Anchored = true
  6826. eloca1.CFrame = elocacenter.CFrame
  6827. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  6828. eloca2.Anchored = true
  6829. eloca2.CFrame = elocacenter.CFrame
  6830. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  6831. eloca3.Anchored = true
  6832. eloca3.CFrame = elocacenter.CFrame
  6833. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  6834. eloca4.Anchored = true
  6835. eloca4.CFrame = elocacenter.CFrame
  6836. local lookavec = 0
  6837. local speeds = 0
  6838. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  6839. for i = 0, 3, 0.1 do
  6840. swait()
  6841. ---
  6842. lookavec = lookavec + 0.1
  6843. speeds = speeds + 10
  6844. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  6845. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  6846. 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)
  6847.  
  6848. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  6849. 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)
  6850.  
  6851. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  6852. 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)
  6853.  
  6854. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  6855. 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)
  6856. ---
  6857. root.CFrame = FaceMouse()[1]
  6858. 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)
  6859. 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)
  6860. 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)
  6861. 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)
  6862. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  6863. 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)
  6864. end
  6865. for i = 0, 3, 0.1 do
  6866. swait()
  6867. ---
  6868. speeds = speeds + 10
  6869. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  6870. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  6871. 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)
  6872.  
  6873. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  6874. 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)
  6875.  
  6876. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  6877. 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)
  6878.  
  6879. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  6880. 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)
  6881. ---
  6882. root.CFrame = FaceMouse()[1]
  6883. 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)
  6884. 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)
  6885. 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)
  6886. 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)
  6887. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  6888. 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)
  6889. end
  6890. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  6891. for i = 0, 3, 0.1 do
  6892. swait()
  6893. ---
  6894. speeds = speeds + 10
  6895. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  6896. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  6897. 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)
  6898.  
  6899. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  6900. 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)
  6901.  
  6902. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  6903. 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)
  6904.  
  6905. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  6906. 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)
  6907. ---
  6908. root.CFrame = FaceMouse()[1]
  6909. 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)
  6910. 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)
  6911. 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)
  6912. 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)
  6913. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  6914. 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)
  6915. end
  6916. coroutine.resume(coroutine.create(function()
  6917. local a = Instance.new("Part",Character)
  6918. a.Name = "Direction"
  6919. a.Anchored = true
  6920. a.BrickColor = bc("White")
  6921. a.Material = "Neon"
  6922. a.Transparency = 0
  6923. a.Shape = "Cylinder"
  6924. a.CanCollide = false
  6925. local a2 = Instance.new("Part",Character)
  6926. a2.Name = "Direction"
  6927. a2.Anchored = true
  6928. a2.BrickColor = bc("Bright yellow")
  6929. a2.Material = "Neon"
  6930. a2.Transparency = 0
  6931. a2.Shape = "Cylinder"
  6932. a2.CanCollide = false
  6933. local b = Instance.new("Part",Character)
  6934. b.Name = "HitDirect"
  6935. b.Anchored = true
  6936. b.BrickColor = bc("Cool yellow")
  6937. b.Material = "Neon"
  6938. b.Transparency = 1
  6939. b.CanCollide = false
  6940. local ray = Ray.new(
  6941. elocacenter.CFrame.p, -- origin
  6942. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  6943. )
  6944. local ignore = Character
  6945. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6946. a.BottomSurface = 10
  6947. a.TopSurface = 10
  6948. a2.BottomSurface = 10
  6949. a2.TopSurface = 10
  6950. local distance = (elocacenter.CFrame.p - position).magnitude
  6951. a.Size = Vector3.new(distance, 1, 1)
  6952. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  6953. a2.Size = Vector3.new(distance, 1, 1)
  6954. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  6955. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  6956. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  6957. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  6958. game:GetService("Debris"):AddItem(a, 10)
  6959. game:GetService("Debris"):AddItem(a2, 10)
  6960. game:GetService("Debris"):AddItem(b, 10)
  6961. local msh = Instance.new("SpecialMesh",a)
  6962. msh.MeshType = "Cylinder"
  6963. msh.Scale = vt(1,2,2)
  6964. local msh2 = Instance.new("SpecialMesh",a2)
  6965. msh2.MeshType = "Cylinder"
  6966. msh2.Scale = vt(1,2.5,2.5)
  6967. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  6968. coroutine.resume(coroutine.create(function()
  6969. for i = 0,10,0.1 do
  6970. swait()
  6971. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  6972. a.Transparency = a.Transparency + 0.025
  6973. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  6974. a2.Transparency = a2.Transparency + 0.05
  6975. end
  6976. a:Destroy()
  6977. a2:Destroy()
  6978. end))
  6979. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  6980. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  6981. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  6982. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  6983. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  6984. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  6985. MagniDamage(b, 25, 40,65, 0, "Normal")
  6986. for i = 0, 49 do
  6987. 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)
  6988. 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)
  6989. end
  6990. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  6991. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  6992. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  6993. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  6994. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  6995. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  6996. end))
  6997. game:GetService("Debris"):AddItem(elocacenter, 5)
  6998. hum.WalkSpeed = storehumanoidWS
  6999. attack = false
  7000. end
  7001.  
  7002. function StarDivision()
  7003. attack = true
  7004. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  7005. for i = 0, 2, 0.1 do
  7006. swait()
  7007. 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)
  7008. 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)
  7009. 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)
  7010. 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)
  7011. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  7012. 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)
  7013. end
  7014. local orb = Instance.new("Part", char)
  7015. orb.BrickColor = MAINRUINCOLOR
  7016. orb.CanCollide = false
  7017. orb.FormFactor = 3
  7018. orb.Name = "Ring"
  7019. orb.Material = "Neon"
  7020. orb.Size = Vector3.new(1, 1, 1)
  7021. orb.Transparency = 0
  7022. orb.TopSurface = 0
  7023. orb.BottomSurface = 0
  7024. local orbm = Instance.new("SpecialMesh", orb)
  7025. orbm.MeshType = "Sphere"
  7026. orbm.Name = "SizeMesh"
  7027. orbm.Scale = vt(2,2,2)
  7028. local a = Instance.new("Part",workspace)
  7029. a.Name = "Direction"
  7030. a.Anchored = true
  7031. a.BrickColor = bc("Bright red")
  7032. a.Material = "Neon"
  7033. a.Transparency = 1
  7034. a.CanCollide = false
  7035. local ray = Ray.new(
  7036. sorb.CFrame.p, -- origin
  7037. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  7038. )
  7039. local ignore = sorb
  7040. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  7041. a.BottomSurface = 10
  7042. a.TopSurface = 10
  7043. local distance = (sorb.CFrame.p - position).magnitude
  7044. a.Size = Vector3.new(0.1, 0.1, 0.1)
  7045. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  7046. orb.CFrame = a.CFrame
  7047. a:Destroy()
  7048. local bv = Instance.new("BodyVelocity")
  7049. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7050. bv.velocity = orb.CFrame.lookVector*100
  7051. bv.Parent = orb
  7052. local hitted = false
  7053. game:GetService("Debris"):AddItem(orb, 10)
  7054. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  7055. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  7056. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  7057. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  7058. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  7059. coroutine.resume(coroutine.create(function()
  7060. while true do
  7061. swait(1)
  7062. if orb.Parent ~= nil and hitted == false then
  7063. 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)
  7064. elseif orb.Parent == nil then
  7065. break
  7066. end
  7067. end
  7068. end))
  7069. coroutine.resume(coroutine.create(function()
  7070. swait(1)
  7071. orb.Touched:connect(function(hit)
  7072. if hitted == false then
  7073. hitted = true
  7074. game:GetService("Debris"):AddItem(orb, 5)
  7075. orb.Transparency = 1
  7076. orb.Anchored = true
  7077. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  7078. elocacenter.Anchored = true
  7079. elocacenter.CFrame = orb.CFrame
  7080. elocacenter.Orientation = vt(0,0,0)
  7081. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  7082. eloca1.Anchored = true
  7083. eloca1.CFrame = elocacenter.CFrame
  7084. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  7085. eloca2.Anchored = true
  7086. eloca2.CFrame = elocacenter.CFrame
  7087. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  7088. eloca3.Anchored = true
  7089. eloca3.CFrame = elocacenter.CFrame
  7090. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  7091. eloca4.Anchored = true
  7092. eloca4.CFrame = elocacenter.CFrame
  7093. local lookavec = 0
  7094. local speeds = 0
  7095. CameraEnshaking(1,1)
  7096. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  7097. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7098. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7099. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7100. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7101. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7102. for i = 0, 99 do
  7103. swait()
  7104. lookavec = lookavec + 1
  7105. speeds = speeds + 0.1
  7106. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7107. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7108. 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)
  7109.  
  7110. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7111. 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)
  7112.  
  7113. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7114. 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)
  7115.  
  7116. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7117. 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)
  7118. end
  7119.  
  7120. for i = 0, 149 do
  7121. swait()
  7122. speeds = speeds + 0.1
  7123. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7124. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7125. 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)
  7126.  
  7127. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7128. 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)
  7129.  
  7130. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7131. 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)
  7132.  
  7133. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7134. 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)
  7135. end
  7136. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  7137. if v:FindFirstChild('Head') then
  7138. dmg(v)
  7139. end
  7140. end
  7141. CameraEnshaking(7,30)
  7142. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  7143. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  7144. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  7145. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  7146. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  7147. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  7148. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  7149. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7150. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7151. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7152. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7153. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7154. for i = 0, 24 do
  7155. 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)
  7156. 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)
  7157. 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)
  7158. 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)
  7159. end
  7160. coroutine.resume(coroutine.create(function()
  7161. for i = 0, 499 do
  7162. swait(1)
  7163. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  7164. 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)
  7165. end
  7166. elocacenter:Destroy()
  7167. eloca1:Destroy()
  7168. eloca2:Destroy()
  7169. eloca3:Destroy()
  7170. eloca4:Destroy()
  7171. end))
  7172. end
  7173. end)
  7174. end))
  7175. attack = false
  7176. end
  7177.  
  7178.  
  7179. function THE_TRUE_POWER_OF_VIOLENCE()
  7180. attack = true
  7181. hum.WalkSpeed = 0
  7182. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
  7183. for i = 0, 10, 0.1 do
  7184. swait()
  7185. 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)
  7186. 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)
  7187. 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)
  7188. 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)
  7189. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  7190. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  7191. 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)
  7192. end
  7193. local orb = Instance.new("Part", char)
  7194. orb.BrickColor = MAINRUINCOLOR
  7195. orb.CanCollide = false
  7196. orb.FormFactor = 3
  7197. orb.Name = "Ring"
  7198. orb.Material = "Neon"
  7199. orb.Size = Vector3.new(1, 1, 1)
  7200. orb.Transparency = 0
  7201. orb.TopSurface = 0
  7202. orb.BottomSurface = 0
  7203. orb.CFrame = sorb.CFrame
  7204. local orbm = Instance.new("SpecialMesh", orb)
  7205. orbm.MeshType = "Sphere"
  7206. orbm.Name = "SizeMesh"
  7207. orbm.Scale = vt(0,0,0)
  7208. local sbs = Instance.new("BodyPosition", orb)
  7209. sbs.P = 3000
  7210. sbs.D = 1000
  7211. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7212. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  7213. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  7214. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  7215. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  7216. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  7217. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  7218. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  7219. for i = 0, 10, 0.1 do
  7220. swait()
  7221. 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)
  7222. 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)
  7223. 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)
  7224. 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)
  7225. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  7226. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  7227. 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)
  7228. end
  7229. orb.Anchored = true
  7230. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  7231. elocacenter.Anchored = true
  7232. elocacenter.CFrame = orb.CFrame
  7233. elocacenter.Orientation = vt(0,0,0)
  7234. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  7235. eloca1.Anchored = true
  7236. eloca1.CFrame = elocacenter.CFrame
  7237. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  7238. eloca2.Anchored = true
  7239. eloca2.CFrame = elocacenter.CFrame
  7240. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  7241. eloca3.Anchored = true
  7242. eloca3.CFrame = elocacenter.CFrame
  7243. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  7244. eloca4.Anchored = true
  7245. eloca4.CFrame = elocacenter.CFrame
  7246. local lookavec = 0
  7247. local speeds = 0
  7248. CameraEnshaking(1,1)
  7249. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  7250. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  7251. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  7252. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  7253. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7254. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7255. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7256. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7257. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7258. for i = 0, 99 do
  7259. swait()
  7260. lookavec = lookavec + 2.5
  7261. speeds = speeds + 0.25
  7262. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7263. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7264. 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)
  7265.  
  7266. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7267. 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)
  7268.  
  7269. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7270. 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)
  7271.  
  7272. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7273. 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)
  7274. end
  7275.  
  7276. for i = 0, 149 do
  7277. swait()
  7278. speeds = speeds + 0.25
  7279. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7280. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7281. 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)
  7282.  
  7283. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7284. 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)
  7285.  
  7286. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7287. 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)
  7288.  
  7289. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7290. 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)
  7291. end
  7292. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  7293. for i = 0, 99 do
  7294. swait()
  7295. lookavec = lookavec - 2.5
  7296. speeds = speeds + 0.25
  7297. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7298. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7299. 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)
  7300.  
  7301. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7302. 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)
  7303.  
  7304. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7305. 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)
  7306.  
  7307. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7308. 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)
  7309. end
  7310. local scaled = 0.1*75
  7311. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  7312. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  7313. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  7314. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  7315. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  7316. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  7317. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7318. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7319. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7320. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7321. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7322. for i = 0, 10, 0.1 do
  7323. swait()
  7324. scaled = scaled - 0.001*75
  7325. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7326. 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)
  7327. 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)
  7328. 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)
  7329. 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)
  7330. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  7331. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  7332. 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)
  7333. end
  7334. for x = 0, 4 do
  7335. for i = 0, 9 do
  7336. 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)
  7337. end
  7338. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  7339. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  7340. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7341. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7342. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7343. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7344. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7345. for i = 0, 5, 0.1 do
  7346. swait()
  7347. 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)
  7348. 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)
  7349. 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)
  7350. 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)
  7351. 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)
  7352. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  7353. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  7354. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  7355. end
  7356. end
  7357. local speedearn = 0
  7358. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  7359. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  7360. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  7361. for i = 0, 30, 0.1 do
  7362. swait()
  7363. scaled = scaled - 0.001*75/10
  7364. speedearn = speedearn + 0.5
  7365. for i = 0, 4 do
  7366. 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)
  7367. end
  7368. 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)
  7369. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  7370. 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)
  7371. 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)
  7372. 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)
  7373. 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)
  7374. 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)
  7375. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  7376. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  7377. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  7378. end
  7379. orb.Transparency = 1
  7380. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  7381. if v:FindFirstChild('Head') then
  7382. dmg(v)
  7383. end
  7384. end
  7385. CameraEnshaking(7,30)
  7386. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  7387. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  7388. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  7389. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  7390. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  7391. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  7392. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  7393. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  7394. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  7395. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  7396. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  7397. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  7398. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  7399. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  7400. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7401. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7402. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7403. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7404. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  7405. for i = 0, 99 do
  7406. 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)
  7407. 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)
  7408. end
  7409. for i = 0, 24 do
  7410. 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)
  7411. 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)
  7412. 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)
  7413. 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)
  7414. 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)
  7415. end
  7416. game:GetService("Debris"):AddItem(orb, 10)
  7417. hum.WalkSpeed = storehumanoidWS
  7418. attack = false
  7419. end
  7420.  
  7421.  
  7422. function ViolentRing()
  7423. attack = true
  7424. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  7425. for i = 0, 2, 0.1 do
  7426. swait()
  7427. local snap = math.random(1,10)
  7428. if snap == 1 then
  7429. 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)
  7430. end
  7431. 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)
  7432. 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)
  7433. 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)
  7434. 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)
  7435. 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)
  7436. 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)
  7437. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  7438. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  7439. 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)
  7440. RootPart.CFrame = FaceMouse()[1]
  7441. end
  7442. local orb = Instance.new("Part", char)
  7443. orb.BrickColor = MAINRUINCOLOR
  7444. orb.CanCollide = false
  7445. orb.FormFactor = 3
  7446. orb.Name = "Ring"
  7447. orb.Material = "Neon"
  7448. orb.Size = Vector3.new(1, 1, 1)
  7449. orb.Transparency = 0
  7450. orb.TopSurface = 0
  7451. orb.BottomSurface = 0
  7452. local orbm = Instance.new("SpecialMesh", orb)
  7453. orbm.MeshType = "Sphere"
  7454. orbm.Name = "SizeMesh"
  7455. orbm.Scale = vt(2,2,2)
  7456. orb.CFrame = mouse.Hit
  7457. local bv = Instance.new("BodyVelocity")
  7458. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7459. bv.velocity = orb.CFrame.lookVector*100
  7460. bv.Parent = orb
  7461. local hitted = false
  7462. coroutine.resume(coroutine.create(function()
  7463. game:GetService("Debris"):AddItem(orb, 5)
  7464. orb.Transparency = 1
  7465. orb.Anchored = true
  7466. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  7467. elocacenter.Anchored = true
  7468. elocacenter.CFrame = orb.CFrame
  7469. elocacenter.Orientation = vt(0,0,0)
  7470. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  7471. eloca1.Anchored = true
  7472. eloca1.CFrame = elocacenter.CFrame
  7473. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  7474. eloca2.Anchored = true
  7475. eloca2.CFrame = elocacenter.CFrame
  7476. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  7477. eloca3.Anchored = true
  7478. eloca3.CFrame = elocacenter.CFrame
  7479. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  7480. eloca4.Anchored = true
  7481. eloca4.CFrame = elocacenter.CFrame
  7482. local lookavec = 0
  7483. local speeds = 0
  7484. CameraEnshaking(1,1)
  7485. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  7486. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7487. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7488. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7489. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7490. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  7491. for i = 0, 24 do
  7492. swait()
  7493. lookavec = lookavec + 3.5
  7494. speeds = speeds + 1
  7495. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7496. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7497. 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)
  7498.  
  7499. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7500. 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)
  7501.  
  7502. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7503. 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)
  7504.  
  7505. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7506. 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)
  7507. end
  7508.  
  7509. local risen = 0
  7510. for i = 0, 49 do
  7511. swait()
  7512. risen = risen + 0.05
  7513. speeds = speeds + 0.1
  7514. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  7515. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  7516. 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)
  7517.  
  7518. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  7519. 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)
  7520.  
  7521. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  7522. 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)
  7523.  
  7524. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  7525. 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)
  7526. end
  7527. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  7528. if v:FindFirstChild('Head') then
  7529. dmg(v)
  7530. end
  7531. end
  7532. CameraEnshaking(4,10)
  7533. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  7534. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  7535. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  7536. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  7537. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  7538. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  7539. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  7540. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  7541. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7542. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7543. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7544. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7545. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7546. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  7547. for i = 0, 24 do
  7548. 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)
  7549. 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)
  7550. 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)
  7551. 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)
  7552. end
  7553. coroutine.resume(coroutine.create(function()
  7554. wait(10)
  7555. elocacenter:Destroy()
  7556. eloca1:Destroy()
  7557. eloca2:Destroy()
  7558. eloca3:Destroy()
  7559. eloca4:Destroy()
  7560. end))
  7561. end))
  7562. attack = false
  7563. end
  7564.  
  7565. function UniversalCollapse()
  7566. attack = true
  7567. local speedearn = 0
  7568. hum.WalkSpeed = 0
  7569. local sbs = Instance.new("BodyPosition", root)
  7570. sbs.P = 3000
  7571. sbs.D = 1000
  7572. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  7573. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  7574. CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
  7575. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  7576. for i = 0, 110, 0.1 do
  7577. swait()
  7578. speedearn = speedearn + 0.1
  7579. 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)
  7580. 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)
  7581. 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)
  7582. 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)
  7583. 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)
  7584. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  7585. 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)
  7586. 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)
  7587. 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)
  7588. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7589. 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)
  7590. 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)
  7591. end
  7592. CameraEnshaking(5,50)
  7593. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  7594. for i = 0, 2 do
  7595. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  7596. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  7597. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  7598. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  7599. end
  7600. for i = 0, 49 do
  7601. 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)
  7602. 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)
  7603. 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)
  7604. 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)
  7605. end
  7606. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  7607. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  7608. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  7609. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  7610. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  7611. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  7612. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7613. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7614. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7615. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7616. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7617. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  7618. for i = 0, 99 do
  7619. 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)
  7620. 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)
  7621. end
  7622. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  7623. if v:FindFirstChild('Head') then
  7624. dmg(v)
  7625. end
  7626. end
  7627. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  7628. sbs:Destroy()
  7629. hum.WalkSpeed = storehumanoidWS
  7630. attack = false
  7631. end
  7632.  
  7633.  
  7634. function ChaosEND()
  7635. attack = true
  7636. local speedearn = 0
  7637. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
  7638. for i = 0, 15, 0.1 do
  7639. swait()
  7640. speedearn = speedearn + 0.25
  7641. 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)
  7642. 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)
  7643. 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)
  7644. 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)
  7645. 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)
  7646. 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)
  7647. 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)
  7648. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  7649. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  7650. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  7651. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  7652. end
  7653. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  7654. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  7655. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  7656. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  7657. CameraEnshaking(5,25)
  7658. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  7659. if v:FindFirstChild('Head') then
  7660. dmg(v)
  7661. end
  7662. end
  7663. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  7664. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  7665. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  7666. for i = 0, 3, 0.1 do
  7667. swait()
  7668. 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)
  7669. 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)
  7670. 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)
  7671. 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)
  7672. 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)
  7673. 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)
  7674. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  7675. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  7676. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  7677. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  7678. end
  7679. attack = false
  7680. end
  7681.  
  7682. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  7683. local orb = Instance.new("Part", char)
  7684. orb.Anchored = true
  7685. orb.BrickColor = color
  7686. orb.CanCollide = false
  7687. orb.FormFactor = 3
  7688. orb.Name = "Ring"
  7689. orb.Material = "Neon"
  7690. orb.Size = Vector3.new(1, 1, 1)
  7691. orb.Transparency = 0
  7692. orb.TopSurface = 0
  7693. orb.BottomSurface = 0
  7694. local orbm = Instance.new("SpecialMesh", orb)
  7695. orbm.MeshType = "Sphere"
  7696. orb.CFrame = positted
  7697. orbm.Name = "SizeMesh"
  7698. orbm.Scale = vt(1,1,1)
  7699. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  7700. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  7701. --[[for i = 0, 2 do
  7702. 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)
  7703. end]]--
  7704. coroutine.resume(coroutine.create(function()
  7705. wait(timer)
  7706. CameraEnshaking(3,ShakePower)
  7707. orb.Transparency = 1
  7708. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  7709. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  7710. --[[for i = 0, 4 do
  7711. 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)
  7712. end]]--
  7713. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  7714. wait(3)
  7715. orb:Destroy()
  7716. end))
  7717. end
  7718.  
  7719. function orb_spawn(positted,timer)
  7720. local randomcol = math.random(1,2)
  7721. local orb = Instance.new("Part", char)
  7722. orb.Anchored = true
  7723. if randomcol == 1 then
  7724. orb.BrickColor = BrickColor.new("White")
  7725. elseif randomcol == 2 then
  7726. orb.BrickColor = BrickColor.new("Really black")
  7727. end
  7728. orb.CanCollide = false
  7729. orb.FormFactor = 3
  7730. orb.Name = "Ring"
  7731. orb.Material = "Neon"
  7732. orb.Size = Vector3.new(1, 1, 1)
  7733. orb.Transparency = 0
  7734. orb.TopSurface = 0
  7735. orb.BottomSurface = 0
  7736. local orbm = Instance.new("SpecialMesh", orb)
  7737. orbm.MeshType = "Sphere"
  7738. orb.CFrame = positted
  7739. orbm.Name = "SizeMesh"
  7740. orbm.Scale = vt(1,1,1)
  7741. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  7742. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  7743. for i = 0, 2 do
  7744. 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)
  7745. end
  7746. coroutine.resume(coroutine.create(function()
  7747. wait(timer)
  7748. CameraEnshaking(3,2)
  7749. orb.Transparency = 1
  7750. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  7751. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  7752. for i = 0, 4 do
  7753. 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)
  7754. end
  7755. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  7756. wait(3)
  7757. orb:Destroy()
  7758. end))
  7759. end
  7760.  
  7761. function scattercorrupt()
  7762. attack = true
  7763. local rot = 0
  7764. local randomrotations = math.random(1,2)
  7765. local lookv = 2.5
  7766. local power = 5
  7767. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  7768. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  7769. for i = 0, 9 do
  7770. 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)
  7771. end
  7772. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  7773. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  7774. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  7775. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  7776. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  7777. local hite = Instance.new("Part", char)
  7778. hite.Anchored = true
  7779. hite.CanCollide = false
  7780. hite.FormFactor = 3
  7781. hite.Name = "Ring"
  7782. hite.Material = "Neon"
  7783. hite.Size = Vector3.new(1, 1, 1)
  7784. hite.Transparency = 1
  7785. hite.TopSurface = 0
  7786. hite.BottomSurface = 0
  7787. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  7788. local rem = Instance.new("Part", char)
  7789. rem.Anchored = true
  7790. rem.CanCollide = false
  7791. rem.FormFactor = 3
  7792. rem.Name = "Ring"
  7793. rem.Material = "Neon"
  7794. rem.Size = Vector3.new(1, 1, 1)
  7795. rem.Transparency = 1
  7796. rem.TopSurface = 0
  7797. rem.BottomSurface = 0
  7798. rem.CFrame = hite.CFrame
  7799. local rem2 = rem:Clone()
  7800. rem2.Parent = char
  7801. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  7802. local rem3 = rem:Clone()
  7803. rem3.Parent = char
  7804. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  7805. local rem4 = rem:Clone()
  7806. rem4.Parent = char
  7807. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  7808. hite:Destroy()
  7809. coroutine.resume(coroutine.create(function()
  7810. for i = 0, 24 do
  7811. swait(1)
  7812. if randomrotations == 1 then
  7813. rot = rot + 1
  7814. elseif randomrotations == 2 then
  7815. rot = rot - 1
  7816. end
  7817. power = power + 0.5
  7818. lookv = lookv + 7.5
  7819. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  7820. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  7821. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  7822. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  7823. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  7824. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  7825. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  7826. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  7827. end
  7828. end))
  7829. attack = false
  7830. end
  7831. function yinyangi()
  7832. attack = true
  7833. for i = 0, 2, 0.1 do
  7834. swait()
  7835. 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)
  7836. 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)
  7837. 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)
  7838. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  7839. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  7840. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  7841. end
  7842. local bv = Instance.new("BodyVelocity")
  7843. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7844. bv.velocity = root.CFrame.lookVector*175
  7845. bv.Parent = root
  7846. for Rotations = 0, 9 do
  7847. for i = 0, 1, 0.5 do
  7848. swait()
  7849. bv.velocity = root.CFrame.lookVector*175
  7850. 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)
  7851. 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)
  7852. 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)
  7853. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  7854. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  7855. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  7856. end
  7857. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  7858. for i = 0, 1, 0.5 do
  7859. swait()
  7860. bv.velocity = root.CFrame.lookVector*175
  7861. 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)
  7862. 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)
  7863. 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)
  7864. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  7865. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  7866. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  7867. end
  7868. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  7869. for i = 0, 1, 0.5 do
  7870. swait()
  7871. bv.velocity = root.CFrame.lookVector*175
  7872. 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)
  7873. 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)
  7874. 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)
  7875. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  7876. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  7877. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  7878. end
  7879. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  7880. for i = 0, 1, 0.5 do
  7881. swait()
  7882. bv.velocity = root.CFrame.lookVector*175
  7883. 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)
  7884. 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)
  7885. 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)
  7886. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  7887. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  7888. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  7889. end
  7890. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  7891. end
  7892. bv:Destroy()
  7893. attack = false
  7894. end
  7895.  
  7896. function createBGCircle(size,parent,color)
  7897. local bgui = Instance.new("BillboardGui",parent)
  7898. bgui.Size = UDim2.new(size, 0, size, 0)
  7899. local imgc = Instance.new("ImageLabel",bgui)
  7900. imgc.BackgroundTransparency = 1
  7901. imgc.ImageTransparency = 0
  7902. imgc.Size = UDim2.new(1,0,1,0)
  7903. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  7904. imgc.ImageColor3 = color
  7905. return bgui,imgc
  7906. end
  7907.  
  7908. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  7909. local bgui,imgc = createBGCircle(size,guipar,color)
  7910. bgui.AlwaysOnTop = true
  7911. imgc.Image = "rbxassetid://" ..img
  7912. local rrot = math.random(1,2)
  7913. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  7914. coroutine.resume(coroutine.create(function()
  7915. for i = 0, 24*delay do
  7916. swait()
  7917. if rotationenabled == true then
  7918. if rrot == 1 then
  7919. imgc.Rotation = imgc.Rotation + rotsp
  7920. elseif rrot == 2 then
  7921. imgc.Rotation = imgc.Rotation - rotsp
  7922. end
  7923. end
  7924. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  7925. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  7926. end
  7927. bgui:Destroy()
  7928. end))
  7929. end
  7930. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  7931. for i, v in pairs(mw2:GetChildren()) do
  7932. if v:IsA("Part") then
  7933. v.BrickColor = one
  7934. v.Material = "Neon"
  7935. end
  7936. end
  7937. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  7938. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  7939. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  7940. tr1.Color = ColorSequence.new(one.Color)
  7941. tr2.Color = ColorSequence.new(one.Color)
  7942. tr3.Color = ColorSequence.new(one.Color)
  7943. for i, v in pairs(mw1:GetChildren()) do
  7944. if v:IsA("Part") then
  7945. if secondaryenabled == false then
  7946. v.Transparency = 1
  7947. elseif secondaryenabled == true then
  7948. v.Transparency = 0
  7949. end
  7950. v.BrickColor = two
  7951. v.Material = "Neon"
  7952. end
  7953. end
  7954. if secondaryenabled == false then
  7955. tl1.Enabled = false
  7956. tl2.Enabled = false
  7957. tl3.Enabled = false
  7958. elseif secondaryenabled == true then
  7959. tl1.Enabled = true
  7960. tl2.Enabled = true
  7961. tl3.Enabled = true
  7962. end
  7963. tl1.Color = ColorSequence.new(two.Color)
  7964. tl2.Color = ColorSequence.new(two.Color)
  7965. tl3.Color = ColorSequence.new(two.Color)
  7966. for i, v in pairs(m:GetChildren()) do
  7967. if v:IsA("Part") then
  7968. v.BrickColor = three
  7969. v.Material = "Ice"
  7970. end
  7971. end
  7972. for i, v in pairs(m2:GetChildren()) do
  7973. if v:IsA("Part") then
  7974. v.BrickColor = four
  7975. v.Material = "Ice"
  7976. end
  7977. end
  7978. for i, v in pairs(m3:GetChildren()) do
  7979. if v:IsA("Part") then
  7980. v.BrickColor = five
  7981. v.Material = "Neon"
  7982. end
  7983. end
  7984. for i, v in pairs(extrawingmod1:GetChildren()) do
  7985. if v:IsA("Part") then
  7986. v.Transparency = exonetran
  7987. v.BrickColor = exone
  7988. v.Material = "Neon"
  7989. end
  7990. end
  7991. for i, v in pairs(extrawingmod2:GetChildren()) do
  7992. if v:IsA("Part") then
  7993. v.Transparency = extwotran
  7994. v.BrickColor = extwo
  7995. v.Material = "Neon"
  7996. end
  7997. end
  7998. end
  7999.  
  8000.  
  8001. function normalmog()
  8002. attack = true
  8003. hum.WalkSpeed = 0
  8004. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  8005. for i = 0,6,0.1 do
  8006. swait()
  8007. 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)
  8008. 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)
  8009. 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)
  8010. 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)
  8011. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  8012. 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)
  8013. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  8014. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  8015. end
  8016. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  8017. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  8018. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  8019. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  8020. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  8021. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  8022. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  8023. rainbowmode = false
  8024. chaosmode = false
  8025. ModeOfGlitch = 1
  8026. storehumanoidWS = 16
  8027. newTheme("rbxassetid://614032233",48.6,1,1.25)
  8028. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  8029. CameraEnshaking(5,2.5)
  8030. MAINRUINCOLOR = BrickColor.new("Really red")
  8031. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  8032. for i = 0, 49 do
  8033. 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)
  8034. end
  8035. for i = 0, 24 do
  8036. 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)
  8037. 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"))
  8038. end
  8039. for i = 0,3,0.1 do
  8040. 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)
  8041. end
  8042. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  8043. for i = 0,2,0.1 do
  8044. swait()
  8045. 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)
  8046. 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)
  8047. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  8048. 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)
  8049. 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)
  8050. 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)
  8051. end
  8052. hum.WalkSpeed = storehumanoidWS
  8053. attack = false
  8054. end
  8055.  
  8056. function attackone()
  8057. attack = true
  8058. local keptcolor = MAINRUINCOLOR
  8059. for i = 0,1,0.1 do
  8060. swait()
  8061. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  8062. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  8063. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  8064. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  8065. 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)
  8066. 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)
  8067. end
  8068. local distlook = 5
  8069. coroutine.resume(coroutine.create(function()
  8070. for i = 0, 4 do
  8071. swait(2)
  8072. CameraEnshaking(2,3)
  8073. local hite = Instance.new("Part", char)
  8074. hite.Anchored = true
  8075. hite.CanCollide = false
  8076. hite.FormFactor = 3
  8077. hite.Name = "Ring"
  8078. hite.Material = "Neon"
  8079. hite.Size = Vector3.new(1, 1, 1)
  8080. hite.Transparency = 1
  8081. hite.TopSurface = 0
  8082. hite.BottomSurface = 0
  8083. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  8084. 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)
  8085. 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)
  8086. 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)
  8087. 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)
  8088. MagniDamage(hite, 9, 10,25, 0, "Normal")
  8089. for i = 0, 14 do
  8090. local rsiz = math.random(5,20)
  8091. 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)
  8092. end
  8093. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  8094. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  8095. game:GetService("Debris"):AddItem(hite, 5)
  8096. distlook = distlook + 10
  8097. end
  8098. end))
  8099. for i = 0,1,0.1 do
  8100. swait()
  8101. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  8102. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  8103. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  8104. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  8105. 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)
  8106. 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)
  8107. end
  8108. attack = false
  8109. end
  8110.  
  8111. function attacktwo()
  8112. attack = true
  8113. hum.WalkSpeed = 2
  8114. local keptcolor = MAINRUINCOLOR
  8115. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  8116. 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)
  8117. 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)
  8118. for i = 0, 14 do
  8119. end
  8120. for i = 0,1,0.1 do
  8121. swait()
  8122. 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)
  8123. 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)
  8124. 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)
  8125. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  8126. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  8127. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  8128. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  8129. end
  8130. for i = 0, 1 do
  8131. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  8132. for i = 0,1,0.6 do
  8133. swait()
  8134. 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)
  8135. 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)
  8136. 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)
  8137. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  8138. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  8139. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  8140. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  8141. end
  8142. for i = 0,1,0.6 do
  8143. swait()
  8144. 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)
  8145. 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)
  8146. 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)
  8147. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  8148. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  8149. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  8150. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  8151. end
  8152. for i = 0,1,0.6 do
  8153. swait()
  8154. 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)
  8155. 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)
  8156. 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)
  8157. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  8158. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  8159. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  8160. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  8161. end
  8162. for i = 0,1,0.6 do
  8163. swait()
  8164. 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)
  8165. 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)
  8166. 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)
  8167. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  8168. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  8169. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  8170. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  8171. end
  8172. local rot = 0
  8173. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  8174. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  8175. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  8176. CreateMesh(dis,"Sphere",10,1,10)
  8177. local at1 = Instance.new("Attachment",dis)
  8178. at1.Position = vt(-5,0,0)
  8179. local at2 = Instance.new("Attachment",dis)
  8180. at2.Position = vt(5,0,0)
  8181. local trl = Instance.new('Trail',wed)
  8182. trl.Attachment0 = at1
  8183. trl.Attachment1 = at2
  8184. trl.Texture = "rbxassetid://1049219073"
  8185. trl.LightEmission = 1
  8186. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  8187. trl.Color = ColorSequence.new(dis.Color)
  8188. trl.Lifetime = 0.6
  8189. local a = Instance.new("Part",workspace)
  8190. a.Name = "Direction"
  8191. a.Anchored = true
  8192. a.BrickColor = bc("Bright red")
  8193. a.Material = "Neon"
  8194. a.Transparency = 1
  8195. a.CanCollide = false
  8196. local ray = Ray.new(
  8197. dis.CFrame.p, -- origin
  8198. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  8199. )
  8200. local ignore = dis
  8201. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8202. a.BottomSurface = 10
  8203. a.TopSurface = 10
  8204. local distance = (dis.CFrame.p - position).magnitude
  8205. a.Size = Vector3.new(0.1, 0.1, 0.1)
  8206. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  8207. dis.CFrame = a.CFrame
  8208. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  8209. a:Destroy()
  8210. local bv = Instance.new("BodyVelocity")
  8211. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  8212. bv.velocity = dis.CFrame.lookVector*250
  8213. bv.Parent = dis
  8214. game:GetService("Debris"):AddItem(dis, 5)
  8215. local hitted = false
  8216. coroutine.resume(coroutine.create(function()
  8217. dis.Touched:connect(function(hit)
  8218. if hitted == false and hit.Parent ~= char then
  8219. hitted = true
  8220. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  8221. MagniDamage(dis, 30, 33,56, 0, "Normal")
  8222. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  8223. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  8224. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  8225. coroutine.resume(coroutine.create(function()
  8226. for i = 0, 9 do
  8227. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  8228. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  8229. local at1 = Instance.new("Attachment",disr)
  8230. at1.Position = vt(-5,0,0)
  8231. local at2 = Instance.new("Attachment",disr)
  8232. at2.Position = vt(5,0,0)
  8233. local trl = Instance.new('Trail',disr)
  8234. trl.Attachment0 = at1
  8235. trl.FaceCamera = true
  8236. trl.Attachment1 = at2
  8237. trl.Texture = "rbxassetid://2342682798"
  8238. trl.LightEmission = 1
  8239. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  8240. trl.Color = ColorSequence.new(keptcolor.Color)
  8241. trl.Lifetime = 0.5
  8242. local bv = Instance.new("BodyVelocity")
  8243. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  8244. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  8245. bv.Parent = disr
  8246. local val = 0
  8247. coroutine.resume(coroutine.create(function()
  8248. swait(30)
  8249. for i = 0, 9 do
  8250. swait()
  8251. val = val + 0.1
  8252. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  8253. end
  8254. game:GetService("Debris"):AddItem(disr, 3)
  8255. end))
  8256. end
  8257. local eff = Instance.new("ParticleEmitter",dis)
  8258. eff.Texture = "rbxassetid://2273224484"
  8259. eff.LightEmission = 1
  8260. eff.Color = ColorSequence.new(keptcolor.Color)
  8261. eff.Rate = 50
  8262. eff.Lifetime = NumberRange.new(0.5,2)
  8263. 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)})
  8264. 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)})
  8265. eff.Speed = NumberRange.new(20,250)
  8266. eff.Drag = 5
  8267. eff.Rotation = NumberRange.new(-500,500)
  8268. eff.VelocitySpread = 9000
  8269. eff.RotSpeed = NumberRange.new(-50,50)
  8270. wait(0.25)
  8271. eff.Enabled = false
  8272. end))
  8273. for i = 0, 9 do
  8274. end
  8275. for i = 0, 19 do
  8276. end
  8277. coroutine.resume(coroutine.create(function()
  8278. for i = 0, 19 do
  8279. swait()
  8280. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  8281. end
  8282. hum.CameraOffset = vt(0,0,0)
  8283. end))
  8284. dis.Anchored = true
  8285. dis.Transparency = 1
  8286. wait(8)
  8287. dis:Destroy()
  8288. end
  8289. end)
  8290. end))
  8291. rot = rot - 15
  8292. end
  8293. for i = 0,2,0.1 do
  8294. swait()
  8295. 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)
  8296. 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)
  8297. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  8298. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  8299. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  8300. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  8301. end
  8302. attack = false
  8303. hum.WalkSpeed = storehumanoidWS
  8304. end
  8305.  
  8306. function attackthree()
  8307. attack = true
  8308. local keptcolor = MAINRUINCOLOR
  8309. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  8310. for i = 0,2,0.1 do
  8311. swait()
  8312. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  8313. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  8314. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  8315. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  8316. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  8317. 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)
  8318. 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)
  8319. end
  8320. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  8321. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  8322. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  8323. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  8324. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  8325. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  8326. for i = 0, 24 do
  8327. end
  8328. for i = 0,4,0.1 do
  8329. swait()
  8330. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  8331. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  8332. CreateMesh(dis,"Sphere",1,1,1)
  8333. dis.Anchored = true
  8334. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  8335. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  8336. coroutine.resume(coroutine.create(function()
  8337. swait(30)
  8338. dis.Transparency = 1
  8339. coroutine.resume(coroutine.create(function()
  8340. for i = 0, 19 do
  8341. swait()
  8342. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  8343. end
  8344. hum.CameraOffset = vt(0,0,0)
  8345. end))
  8346. coroutine.resume(coroutine.create(function()
  8347. local eff = Instance.new("ParticleEmitter",dis)
  8348. eff.Texture = "rbxassetid://2273224484"
  8349. eff.LightEmission = 1
  8350. eff.Color = ColorSequence.new(dis.Color)
  8351. eff.Rate = 500000
  8352. eff.Lifetime = NumberRange.new(0.5,2)
  8353. 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)})
  8354. 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)})
  8355. eff.Speed = NumberRange.new(50,450)
  8356. eff.Drag = 5
  8357. eff.Rotation = NumberRange.new(-500,500)
  8358. eff.VelocitySpread = 9000
  8359. eff.RotSpeed = NumberRange.new(-50,50)
  8360. wait(0.125)
  8361. eff.Enabled = false
  8362. end))
  8363. MagniDamage(dis, 30, 45,50, 0, "Normal")
  8364. for i = 0, 2 do
  8365. --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)
  8366. end
  8367. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  8368. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  8369. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  8370. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  8371. end))
  8372. game:GetService("Debris"):AddItem(dis, 5)
  8373. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  8374. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  8375. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  8376. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  8377. 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)
  8378. 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)
  8379. end
  8380. attack = false
  8381. end
  8382. ----------------------------------- Abilities
  8383.  
  8384. function ExtinctiveHeartbreak()
  8385. local targetted = nil
  8386. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8387. targetted = mouse.Target.Parent
  8388. end
  8389. if targetted ~= nil then
  8390. attack = true
  8391. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  8392. for i = 0, 9 do
  8393. --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)
  8394. end
  8395. for i = 0, 24 do
  8396. --
  8397. end
  8398. --sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  8399. local originalpos = root.CFrame
  8400. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  8401. for i = 0, 9 do
  8402. --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)
  8403. end
  8404. for i = 0, 24 do
  8405. end
  8406. hum.WalkSpeed = 0
  8407. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  8408. local radm = math.random(1,3)
  8409. if radm == 1 then
  8410. --bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  8411. elseif radm == 2 then
  8412. --bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  8413. elseif radm == 3 then
  8414. --bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  8415. end
  8416. for i = 0,2,0.1 do
  8417. swait()
  8418. 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)
  8419. 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)
  8420. 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)
  8421. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  8422. 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)
  8423. 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)
  8424. end
  8425. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  8426. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  8427. for i = 0,2,0.1 do
  8428. swait()
  8429. coroutine.resume(coroutine.create(function()
  8430. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  8431. for i,v in pairs(targetted:GetChildren()) do
  8432. if v:IsA("Part") or v:IsA("MeshPart") then
  8433. v.Velocity = vt(0,0,0)
  8434. end
  8435. end
  8436. end))
  8437. 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)
  8438. 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)
  8439. 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)
  8440. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  8441. 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)
  8442. 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)
  8443. end
  8444. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  8445. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  8446. for i = 0, 1 do
  8447. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  8448. end
  8449. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  8450. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  8451. for i = 0,4,0.1 do
  8452. swait()
  8453. coroutine.resume(coroutine.create(function()
  8454. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  8455. 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)))
  8456. local at1 = Instance.new("Attachment",dis)
  8457. at1.Position = vt(-25000,0,0)
  8458. local at2 = Instance.new("Attachment",dis)
  8459. at2.Position = vt(25000,0,0)
  8460. local trl = Instance.new('Trail',dis)
  8461. trl.Attachment0 = at1
  8462. trl.FaceCamera = true
  8463. trl.Attachment1 = at2
  8464. trl.Texture = "rbxassetid://1049219073"
  8465. trl.LightEmission = 1
  8466. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  8467. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  8468. trl.Lifetime = 5
  8469. local bv = Instance.new("BodyVelocity")
  8470. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  8471. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  8472. bv.Parent = dis
  8473. game:GetService("Debris"):AddItem(dis, 5)
  8474. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  8475. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  8476. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  8477. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  8478. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  8479. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  8480. 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)
  8481. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  8482. for i = 0, 2 do
  8483. --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"))
  8484. end
  8485. 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)
  8486. for i,v in pairs(targetted:GetChildren()) do
  8487. if v:IsA("Part") or v:IsA("MeshPart") then
  8488. v.Velocity = vt(0,0,0)
  8489. end
  8490. end
  8491. end))
  8492. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  8493. 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)
  8494. 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)
  8495. 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)
  8496. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  8497. 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)
  8498. 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)
  8499. end
  8500. hum.CameraOffset = vt(0,0,0)
  8501. for i = 0, 49 do
  8502. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  8503. 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)))
  8504. local at1 = Instance.new("Attachment",dis)
  8505. at1.Position = vt(-50000,0,0)
  8506. local at2 = Instance.new("Attachment",dis)
  8507. at2.Position = vt(50000,0,0)
  8508. local trl = Instance.new('Trail',dis)
  8509. trl.Attachment0 = at1
  8510. trl.FaceCamera = true
  8511. trl.Attachment1 = at2
  8512. trl.Texture = "rbxassetid://1049219073"
  8513. trl.LightEmission = 1
  8514. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  8515. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  8516. trl.Lifetime = 5
  8517. local bv = Instance.new("BodyVelocity")
  8518. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  8519. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  8520. bv.Parent = dis
  8521. game:GetService("Debris"):AddItem(dis, 5)
  8522. end
  8523. for i = 0, 49 do
  8524. 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)
  8525. --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"))
  8526. end
  8527. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  8528. for i = 0, 1 do
  8529. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  8530. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  8531. end
  8532. for i = 0, 4 do
  8533. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  8534. end
  8535. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  8536. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  8537. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  8538. dmg(targetted)
  8539. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  8540. for i = 0, 9 do
  8541. --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)
  8542. end
  8543. for i = 0, 24 do
  8544. end
  8545. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  8546. root.CFrame = originalpos
  8547. for i = 0, 9 do
  8548. --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)
  8549. end
  8550. for i = 0, 24 do
  8551. end
  8552. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  8553. attack = false
  8554. hum.WalkSpeed = storehumanoidWS
  8555. end
  8556. end
  8557.  
  8558. function CorruptionEvent()
  8559. attack = true
  8560. hum.WalkSpeed = 0
  8561. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  8562. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  8563. local keptcolor = MAINRUINCOLOR
  8564. for i = 0,4,0.1 do
  8565. swait()
  8566. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  8567. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  8568. 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)
  8569. 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)
  8570. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  8571. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  8572. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  8573. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  8574. end
  8575. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  8576. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  8577. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  8578. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  8579. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  8580. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  8581. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  8582. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  8583. hum.CameraOffset = vt(0,0,0)
  8584. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  8585. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  8586. for i = 0, 24 do
  8587. --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"))
  8588. end
  8589. local rrot = 0
  8590. coroutine.resume(coroutine.create(function()
  8591. for i = 0, 4 do
  8592. rrot = rrot + 45
  8593. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8594. xa.Anchored = true
  8595. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8596. xb.Anchored = true
  8597. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8598. xc.Anchored = true
  8599. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  8600. xd.Anchored = true
  8601. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  8602. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  8603. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  8604. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  8605. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  8606. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  8607. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  8608. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  8609. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  8610. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  8611. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  8612. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  8613. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  8614. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  8615. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  8616. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  8617. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  8618. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  8619. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  8620. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  8621. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  8622. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  8623. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  8624. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  8625. 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)
  8626. 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)
  8627. 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)
  8628. 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)
  8629. 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))
  8630. 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))
  8631. 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))
  8632. 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))
  8633. game:GetService("Debris"):AddItem(xa, 5)
  8634. game:GetService("Debris"):AddItem(xb, 5)
  8635. game:GetService("Debris"):AddItem(xc, 5)
  8636. game:GetService("Debris"):AddItem(xd, 5)
  8637. coroutine.resume(coroutine.create(function()
  8638. for i = 0, 19 do
  8639. swait()
  8640. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  8641. end
  8642. hum.CameraOffset = vt(0,0,0)
  8643. end))
  8644. swait(9)
  8645. end
  8646. end))
  8647. for i = 0,2,0.1 do
  8648. swait()
  8649. 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)
  8650. 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)
  8651. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  8652. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  8653. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  8654. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  8655. end
  8656. attack = false
  8657. hum.WalkSpeed = storehumanoidWS
  8658. end
  8659.  
  8660. function EndGROUND()
  8661. attack = true
  8662. hum.WalkSpeed = 0
  8663. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  8664. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  8665. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  8666. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  8667. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  8668. local keptcolor = MAINRUINCOLOR
  8669. for i = 0,4,0.1 do
  8670. swait()
  8671. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  8672. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  8673. --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"))
  8674. 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)
  8675. 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)
  8676. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  8677. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  8678. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  8679. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  8680. end
  8681. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  8682. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  8683. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  8684. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  8685. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  8686. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  8687. coroutine.resume(coroutine.create(function()
  8688. local shval = 10
  8689. for i = 0, 99 do
  8690. swait()
  8691. shval = shval - 0.1
  8692. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  8693. end
  8694. hum.CameraOffset = vt(0,0,0)
  8695. end))
  8696. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  8697. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  8698. for i = 0, 24 do
  8699. --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"))
  8700. end
  8701. local rrot = 0
  8702. local xam = 1
  8703. coroutine.resume(coroutine.create(function()
  8704. for i = 0, 14 do
  8705. --swait()
  8706. rrot = rrot + 40*xam
  8707. xam = xam + 0.25
  8708. local bonus = xam
  8709. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  8710. xa.Anchored = true
  8711. xa.Color = Color3.new(0,0,0)
  8712. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  8713. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  8714. local xc = 0
  8715. coroutine.resume(coroutine.create(function()
  8716. for i = 0, 99 do
  8717. swait()
  8718. xc = xc + 0.01
  8719. xa.Color = Color3.new(xc,0,0)
  8720. end
  8721. xa.Transparency = 1
  8722. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  8723. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  8724. for i = 0, 9 do
  8725. --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"))
  8726. end
  8727. 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)
  8728. 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)
  8729. 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))
  8730. game:GetService("Debris"):AddItem(xa, 5)
  8731. coroutine.resume(coroutine.create(function()
  8732. for i = 0, 19 do
  8733. swait()
  8734. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  8735. end
  8736. hum.CameraOffset = vt(0,0,0)
  8737. end))
  8738. end))
  8739. end
  8740. end))
  8741. for i = 0,2,0.1 do
  8742. swait()
  8743. 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)
  8744. 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)
  8745. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  8746. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  8747. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  8748. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  8749. end
  8750. attack = false
  8751. hum.WalkSpeed = storehumanoidWS
  8752. end
  8753.  
  8754. function HeavenlyDisk()
  8755. attack = true
  8756. hum.WalkSpeed = 2
  8757. local keptcolor = MAINRUINCOLOR
  8758. local radm = math.random(1,3)
  8759. if radm == 1 then
  8760. --bosschatfunc("Don't make this too easy for you.",MAINRUINCOLOR.Color,1)
  8761. elseif radm == 2 then
  8762. --bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  8763. elseif radm == 3 then
  8764. --bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  8765. end
  8766. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  8767. CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
  8768. for i = 0, 14 do
  8769. --
  8770. end
  8771. for i = 0,2,0.1 do
  8772. swait()
  8773. 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)
  8774. 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)
  8775. 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)
  8776. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  8777. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  8778. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  8779. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  8780. end
  8781. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  8782. for i = 0,1,0.6 do
  8783. swait()
  8784. 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)
  8785. --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"))
  8786. 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)
  8787. 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)
  8788. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  8789. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  8790. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  8791. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  8792. end
  8793. for i = 0,1,0.6 do
  8794. swait()
  8795. 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)
  8796. --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"))
  8797. 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)
  8798. 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)
  8799. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  8800. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  8801. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  8802. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  8803. end
  8804. for i = 0,1,0.6 do
  8805. swait()
  8806. 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)
  8807. --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"))
  8808. 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)
  8809. 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)
  8810. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  8811. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  8812. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  8813. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  8814. end
  8815. for i = 0,1,0.6 do
  8816. swait()
  8817. 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)
  8818. --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"))
  8819. 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)
  8820. 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)
  8821. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  8822. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  8823. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  8824. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  8825. end
  8826. local rot = 15
  8827. for i = 0, 2 do
  8828. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  8829. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  8830. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  8831. CreateMesh(dis,"Sphere",10,1,10)
  8832. local at1 = Instance.new("Attachment",dis)
  8833. at1.Position = vt(-5,0,0)
  8834. local at2 = Instance.new("Attachment",dis)
  8835. at2.Position = vt(5,0,0)
  8836. local trl = Instance.new('Trail',wed)
  8837. trl.Attachment0 = at1
  8838. trl.Attachment1 = at2
  8839. trl.Texture = "rbxassetid://1049219073"
  8840. trl.LightEmission = 1
  8841. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  8842. trl.Color = ColorSequence.new(dis.Color)
  8843. trl.Lifetime = 0.6
  8844. local a = Instance.new("Part",workspace)
  8845. a.Name = "Direction"
  8846. a.Anchored = true
  8847. a.BrickColor = bc("Bright red")
  8848. a.Material = "Neon"
  8849. a.Transparency = 1
  8850. a.CanCollide = false
  8851. local ray = Ray.new(
  8852. dis.CFrame.p, -- origin
  8853. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  8854. )
  8855. local ignore = dis
  8856. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  8857. a.BottomSurface = 10
  8858. a.TopSurface = 10
  8859. local distance = (dis.CFrame.p - position).magnitude
  8860. a.Size = Vector3.new(0.1, 0.1, 0.1)
  8861. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  8862. dis.CFrame = a.CFrame
  8863. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  8864. a:Destroy()
  8865. local bv = Instance.new("BodyVelocity")
  8866. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  8867. bv.velocity = dis.CFrame.lookVector*250
  8868. bv.Parent = dis
  8869. game:GetService("Debris"):AddItem(dis, 5)
  8870. local hitted = false
  8871. coroutine.resume(coroutine.create(function()
  8872. dis.Touched:connect(function(hit)
  8873. if hitted == false and hit.Parent ~= char then
  8874. hitted = true
  8875. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  8876. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  8877. --sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  8878. --sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  8879. --sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  8880. coroutine.resume(coroutine.create(function()
  8881. for i = 0, 9 do
  8882. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  8883. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  8884. local at1 = Instance.new("Attachment",disr)
  8885. at1.Position = vt(-2,0,0)
  8886. local at2 = Instance.new("Attachment",disr)
  8887. at2.Position = vt(2,0,0)
  8888. local trl = Instance.new('Trail',disr)
  8889. trl.Attachment0 = at1
  8890. trl.FaceCamera = true
  8891. trl.Attachment1 = at2
  8892. trl.Texture = "rbxassetid://2342682798"
  8893. trl.LightEmission = 1
  8894. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  8895. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  8896. trl.Lifetime = 0.5
  8897. local bv = Instance.new("BodyVelocity")
  8898. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  8899. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  8900. bv.Parent = disr
  8901. local val = 0
  8902. coroutine.resume(coroutine.create(function()
  8903. swait(30)
  8904. for i = 0, 9 do
  8905. swait()
  8906. val = val + 0.1
  8907. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  8908. end
  8909. game:GetService("Debris"):AddItem(disr, 3)
  8910. end))
  8911. end
  8912. local eff = Instance.new("ParticleEmitter",dis)
  8913. eff.Texture = "rbxassetid://2273224484"
  8914. eff.LightEmission = 1
  8915. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  8916. eff.Rate = 500000
  8917. eff.Lifetime = NumberRange.new(0.5,2)
  8918. 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)})
  8919. 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)})
  8920. eff.Speed = NumberRange.new(20,250)
  8921. eff.Drag = 5
  8922. eff.Rotation = NumberRange.new(-500,500)
  8923. eff.VelocitySpread = 9000
  8924. eff.RotSpeed = NumberRange.new(-50,50)
  8925. wait(0.25)
  8926. eff.Enabled = false
  8927. end))
  8928. for i = 0, 9 do
  8929. --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"))
  8930. end
  8931. for i = 0, 19 do
  8932. --
  8933. end
  8934. coroutine.resume(coroutine.create(function()
  8935. for i = 0, 19 do
  8936. swait()
  8937. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  8938. end
  8939. hum.CameraOffset = vt(0,0,0)
  8940. end))
  8941. dis.Anchored = true
  8942. dis.Transparency = 1
  8943. wait(8)
  8944. dis:Destroy()
  8945. end
  8946. end)
  8947. end))
  8948. rot = rot - 15
  8949. end
  8950. for i = 0,2,0.1 do
  8951. swait()
  8952. 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)
  8953. 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)
  8954. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  8955. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  8956. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  8957. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  8958. end
  8959. attack = false
  8960. hum.WalkSpeed = storehumanoidWS
  8961. end
  8962.  
  8963. function RapidBurst()
  8964. attack = true
  8965. hum.WalkSpeed = 0
  8966. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  8967. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  8968. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  8969. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  8970. local keptcolor = MAINRUINCOLOR
  8971. for i = 0,8,0.1 do
  8972. swait()
  8973. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  8974. --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())
  8975. 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)
  8976. 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)
  8977. 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)
  8978. 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)
  8979. 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)
  8980. 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)
  8981. 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)
  8982. end
  8983. for i = 0, 99 do
  8984. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  8985. 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)))
  8986. local at1 = Instance.new("Attachment",dis)
  8987. at1.Position = vt(-25000,0,0)
  8988. local at2 = Instance.new("Attachment",dis)
  8989. at2.Position = vt(25000,0,0)
  8990. local trl = Instance.new('Trail',dis)
  8991. trl.Attachment0 = at1
  8992. trl.FaceCamera = true
  8993. trl.Attachment1 = at2
  8994. trl.Texture = "rbxassetid://1049219073"
  8995. trl.LightEmission = 1
  8996. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  8997. trl.Color = ColorSequence.new(BrickColor.random().Color)
  8998. trl.Lifetime = 5
  8999. local bv = Instance.new("BodyVelocity")
  9000. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  9001. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  9002. bv.Parent = dis
  9003. game:GetService("Debris"):AddItem(dis, 5)
  9004. end
  9005. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  9006. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  9007. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  9008. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  9009. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  9010. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  9011. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  9012. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  9013. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  9014. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  9015. hum.CameraOffset = vt(0,0,0)
  9016. for i = 0, 24 do
  9017. --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())
  9018. end
  9019. local distam = 0
  9020. coroutine.resume(coroutine.create(function()
  9021. for i = 0, 99 do
  9022. wait()
  9023. distam = distam + 1
  9024. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  9025. xa.Anchored = true
  9026. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  9027. game:GetService("Debris"):AddItem(xa, 5)
  9028. for i = 0, 4 do
  9029. --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())
  9030. end
  9031. coroutine.resume(coroutine.create(function()
  9032. local eff = Instance.new("ParticleEmitter",xa)
  9033. eff.Texture = "rbxassetid://2273224484"
  9034. eff.LightEmission = 1
  9035. eff.Color = ColorSequence.new(BrickColor.random().Color)
  9036. eff.Rate = 500000
  9037. eff.Lifetime = NumberRange.new(1,3)
  9038. 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)})
  9039. 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)})
  9040. eff.Speed = NumberRange.new(50,500)
  9041. eff.Drag = 5
  9042. eff.Rotation = NumberRange.new(-500,500)
  9043. eff.VelocitySpread = 9000
  9044. eff.RotSpeed = NumberRange.new(-50,50)
  9045. wait(0.25)
  9046. eff.Enabled = false
  9047. end))
  9048. coroutine.resume(coroutine.create(function()
  9049. for i = 0, 19 do
  9050. swait()
  9051. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  9052. end
  9053. hum.CameraOffset = vt(0,0,0)
  9054. end))
  9055. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  9056. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  9057. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  9058. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  9059. end
  9060. end))
  9061. attack = false
  9062. hum.WalkSpeed = storehumanoidWS
  9063. end
  9064.  
  9065.  
  9066. function FallenOrbs()
  9067. attack = true
  9068. hum.WalkSpeed = 2
  9069. local keptcolor = MAINRUINCOLOR
  9070. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
  9071. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
  9072. local radm = math.random(1,3)
  9073. if radm == 1 then
  9074. bosschatfunc("This won't be easy for you.",MAINRUINCOLOR.Color,1)
  9075. elseif radm == 2 then
  9076. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  9077. elseif radm == 3 then
  9078. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  9079. end
  9080. coroutine.resume(coroutine.create(function()
  9081. for i = 0, 29 do
  9082. swait(2)
  9083. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  9084. dis.Anchored = true
  9085. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  9086. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  9087. CreateMesh(dis,"Sphere",2,2,2)
  9088. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  9089. --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"))
  9090. coroutine.resume(coroutine.create(function()
  9091. wait(0.5)
  9092. dis.Anchored = false
  9093. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  9094. local at1 = Instance.new("Attachment",dis)
  9095. at1.Position = vt(-1,0,0)
  9096. local at2 = Instance.new("Attachment",dis)
  9097. at2.Position = vt(1,0,0)
  9098. local trl = Instance.new('Trail',dis)
  9099. trl.Attachment0 = at1
  9100. trl.FaceCamera = true
  9101. trl.Attachment1 = at2
  9102. trl.Texture = "rbxassetid://1049219073"
  9103. trl.LightEmission = 1
  9104. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  9105. trl.Color = ColorSequence.new(dis.Color)
  9106. trl.Lifetime = 0.6
  9107. local a = Instance.new("Part",workspace)
  9108. a.Name = "Direction"
  9109. a.Anchored = true
  9110. a.BrickColor = bc("Bright red")
  9111. a.Material = "Neon"
  9112. a.Transparency = 1
  9113. a.CanCollide = false
  9114. local ray = Ray.new(
  9115. dis.CFrame.p, -- origin
  9116. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  9117. )
  9118. local ignore = dis
  9119. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  9120. a.BottomSurface = 10
  9121. a.TopSurface = 10
  9122. local distance = (dis.CFrame.p - position).magnitude
  9123. a.Size = Vector3.new(0.1, 0.1, 0.1)
  9124. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  9125. dis.CFrame = a.CFrame
  9126. a:Destroy()
  9127. local bv = Instance.new("BodyVelocity")
  9128. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  9129. bv.velocity = dis.CFrame.lookVector*500
  9130. bv.Parent = dis
  9131. game:GetService("Debris"):AddItem(dis, 5)
  9132. local hitted = false
  9133. coroutine.resume(coroutine.create(function()
  9134. dis.Touched:connect(function(hit)
  9135. if hitted == false and hit.Parent ~= char then
  9136. hitted = true
  9137. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  9138. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  9139. --sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  9140. --sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  9141. coroutine.resume(coroutine.create(function()
  9142. for i = 0, 4 do
  9143. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  9144. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  9145. local at1 = Instance.new("Attachment",disr)
  9146. at1.Position = vt(-10,0,0)
  9147. local at2 = Instance.new("Attachment",disr)
  9148. at2.Position = vt(10,0,0)
  9149. local trl = Instance.new('Trail',disr)
  9150. trl.Attachment0 = at1
  9151. trl.FaceCamera = true
  9152. trl.Attachment1 = at2
  9153. trl.Texture = "rbxassetid://2342682798"
  9154. trl.LightEmission = 1
  9155. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  9156. trl.Color = ColorSequence.new(disr.Color)
  9157. trl.Lifetime = 0.5
  9158. local bv = Instance.new("BodyVelocity")
  9159. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  9160. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  9161. bv.Parent = disr
  9162. local val = 0
  9163. coroutine.resume(coroutine.create(function()
  9164. swait(30)
  9165. for i = 0, 9 do
  9166. swait()
  9167. val = val + 0.1
  9168. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  9169. end
  9170. game:GetService("Debris"):AddItem(disr, 3)
  9171. end))
  9172. end
  9173. local eff = Instance.new("ParticleEmitter",dis)
  9174. eff.Texture = "rbxassetid://2273224484"
  9175. eff.LightEmission = 1
  9176. eff.Color = ColorSequence.new(dis.Color)
  9177. eff.Rate = 500000
  9178. eff.Lifetime = NumberRange.new(0.5,2)
  9179. 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)})
  9180. 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)})
  9181. eff.Speed = NumberRange.new(20,250)
  9182. eff.Drag = 5
  9183. eff.Rotation = NumberRange.new(-500,500)
  9184. eff.VelocitySpread = 9000
  9185. eff.RotSpeed = NumberRange.new(-50,50)
  9186. wait(0.5)
  9187. eff.Enabled = false
  9188. end))
  9189. for i = 0, 4 do
  9190. --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"))
  9191. end
  9192. coroutine.resume(coroutine.create(function()
  9193. for i = 0, 19 do
  9194. swait()
  9195. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  9196. end
  9197. hum.CameraOffset = vt(0,0,0)
  9198. end))
  9199. dis.Anchored = true
  9200. dis.Transparency = 1
  9201. wait(8)
  9202. dis:Destroy()
  9203. end
  9204. end)
  9205. end))
  9206. end))
  9207. end
  9208. end))
  9209. for i = 0,9,0.1 do
  9210. swait()
  9211. 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)
  9212. 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)
  9213. 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)
  9214. 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)
  9215. 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)
  9216. 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)
  9217. 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)
  9218. end
  9219. attack = false
  9220. hum.WalkSpeed = storehumanoidWS
  9221. end
  9222.  
  9223. function EquinoxOrbs()
  9224. hum.WalkSpeed = 0
  9225. attack = true
  9226. for i = 0,1,0.1 do
  9227. swait()
  9228. 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)
  9229. 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)
  9230. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  9231. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  9232. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  9233. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  9234. end
  9235. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  9236. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  9237. for i = 0, 24 do
  9238. --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"))
  9239. end
  9240. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  9241. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  9242. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  9243. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  9244. for i = 0,4,0.1 do
  9245. swait()
  9246. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  9247. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  9248. CreateMesh(dis,"Sphere",1,1,1)
  9249. dis.Anchored = true
  9250. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  9251. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  9252. CreateMesh(dis2,"Sphere",1,1,1)
  9253. dis2.Anchored = true
  9254. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  9255. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  9256. --sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  9257. coroutine.resume(coroutine.create(function()
  9258. swait(60)
  9259. dis.Transparency = 1
  9260. dis2.Transparency = 1
  9261. coroutine.resume(coroutine.create(function()
  9262. for i = 0, 19 do
  9263. swait()
  9264. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  9265. end
  9266. hum.CameraOffset = vt(0,0,0)
  9267. end))
  9268. coroutine.resume(coroutine.create(function()
  9269. local eff = Instance.new("ParticleEmitter",dis)
  9270. eff.Texture = "rbxassetid://2273224484"
  9271. eff.LightEmission = 1
  9272. eff.Color = ColorSequence.new(dis.Color)
  9273. eff.Rate = 500000
  9274. eff.Lifetime = NumberRange.new(0.5,2)
  9275. 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)})
  9276. 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)})
  9277. eff.Speed = NumberRange.new(50,450)
  9278. eff.Drag = 5
  9279. eff.Rotation = NumberRange.new(-500,500)
  9280. eff.VelocitySpread = 9000
  9281. eff.RotSpeed = NumberRange.new(-50,50)
  9282. local eff2 = eff:Clone()
  9283. eff2.Parent = dis2
  9284. eff2.LightEmission = 0
  9285. eff2.Color = ColorSequence.new(dis2.Color)
  9286. wait(0.25)
  9287. eff.Enabled = false
  9288. eff2.Enabled = false
  9289. end))
  9290. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  9291. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  9292. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  9293. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  9294. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  9295. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  9296. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  9297. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  9298. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  9299. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  9300. end))
  9301. game:GetService("Debris"):AddItem(dis, 5)
  9302. game:GetService("Debris"):AddItem(dis2, 5)
  9303. 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)
  9304. 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)
  9305. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  9306. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  9307. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  9308. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  9309. end
  9310. attack = false
  9311. hum.WalkSpeed = storehumanoidWS
  9312. end
  9313. function FallenDEMISE()
  9314. attack = true
  9315. hum.WalkSpeed = 0
  9316. local keptcolor = MAINRUINCOLOR
  9317. --bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  9318. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  9319. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  9320. for i = 0, 15, 0.1 do
  9321. swait()
  9322. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  9323. 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)))
  9324. local at1 = Instance.new("Attachment",dis)
  9325. at1.Position = vt(-25000,0,0)
  9326. local at2 = Instance.new("Attachment",dis)
  9327. at2.Position = vt(25000,0,0)
  9328. local trl = Instance.new('Trail',dis)
  9329. trl.Attachment0 = at1
  9330. trl.FaceCamera = true
  9331. trl.Attachment1 = at2
  9332. trl.Texture = "rbxassetid://1049219073"
  9333. trl.LightEmission = 1
  9334. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  9335. trl.Color = ColorSequence.new(dis.Color)
  9336. trl.Lifetime = 5
  9337. local bv = Instance.new("BodyVelocity")
  9338. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  9339. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  9340. bv.Parent = dis
  9341. game:GetService("Debris"):AddItem(dis, 1)
  9342. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  9343. --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"))
  9344. --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"))
  9345. 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)
  9346. 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)
  9347. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  9348. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  9349. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  9350. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  9351. end
  9352. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  9353. for i = 0, 30, 0.1 do
  9354. swait()
  9355. coroutine.resume(coroutine.create(function()
  9356. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  9357. if v:FindFirstChild('Head') then
  9358. dmg(v)
  9359. end
  9360. end
  9361. end))
  9362. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  9363. 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)))
  9364. local at1 = Instance.new("Attachment",dis)
  9365. at1.Position = vt(-50000,0,0)
  9366. local at2 = Instance.new("Attachment",dis)
  9367. at2.Position = vt(50000,0,0)
  9368. local trl = Instance.new('Trail',dis)
  9369. trl.Attachment0 = at1
  9370. trl.FaceCamera = true
  9371. trl.Attachment1 = at2
  9372. trl.Texture = "rbxassetid://1049219073"
  9373. trl.LightEmission = 1
  9374. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  9375. trl.Color = ColorSequence.new(dis.Color)
  9376. trl.Lifetime = 10
  9377. local bv = Instance.new("BodyVelocity")
  9378. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  9379. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  9380. bv.Parent = dis
  9381. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  9382. --sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  9383. --sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  9384. --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"))
  9385. --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"))
  9386. --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"))
  9387. --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"))
  9388. for i = 0, 2 do
  9389. --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)
  9390. end
  9391. 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)
  9392. 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)
  9393. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  9394. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  9395. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  9396. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  9397. end
  9398. attack = false
  9399. hum.WalkSpeed = storehumanoidWS
  9400. end
  9401. -------------------------------------
  9402.  
  9403. Humanoid.Animator.Parent = nil
  9404.  
  9405. -------------------------------------
  9406.  
  9407. local attacktype = 1
  9408. mouse.Button1Down:connect(function()
  9409. if attack == false and attacktype == 1 then
  9410. attacktype = 2
  9411. attackone()
  9412. elseif attack == false and attacktype == 2 then
  9413. attacktype = 3
  9414. attacktwo()
  9415. elseif attack == false and attacktype == 3 then
  9416. attacktype = 1
  9417. attackthree()
  9418. elseif attack == false and attacktype == 4 then
  9419. attacktype = 1
  9420. --attackfour()
  9421. end
  9422. end)
  9423. mouse.KeyDown:connect(function(k)
  9424. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  9425. --normalmog() ---Disabled due to crashing... only in VSB
  9426. ModeOfGlitch = 1
  9427. storehumanoidWS = 16
  9428. hum.WalkSpeed = 16
  9429. rainbowmode = false
  9430. chaosmode = false
  9431. newTheme("rbxassetid://981170452",48.6,1,1.25)
  9432. RecolorTextAndRename("FROZEN",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  9433. MAINRUINCOLOR = BrickColor.new("Bright blue")
  9434. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  9435. end
  9436. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  9437. ModeOfGlitch = 2
  9438. storehumanoidWS = 16
  9439. hum.WalkSpeed = 19
  9440. rainbowmode = false
  9441. chaosmode = false
  9442. RecolorTextAndRename("MIDNIGHT",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  9443. newTheme("rbxassetid://981170452",0,1,1.25)
  9444. MAINRUINCOLOR = BrickColor.new("Tr. Yellow")
  9445. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9446. end
  9447. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  9448. ModeOfGlitch = 3
  9449. storehumanoidWS = 16
  9450. hum.WalkSpeed = 16
  9451. rainbowmode = false
  9452. chaosmode = false
  9453. RecolorTextAndRename("BraveFreeze",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  9454. newTheme("rbxassetid://248144653",58.15,0.98,1.25)
  9455. MAINRUINCOLOR = BrickColor.new("Neon orange")
  9456. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9457. end
  9458. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  9459. ModeOfGlitch = 4
  9460. storehumanoidWS = 16
  9461. hum.WalkSpeed = 20
  9462. rainbowmode = false
  9463. chaosmode = true
  9464. RecolorTextAndRename("InSaNe",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  9465. newTheme("rbxassetid://1256211816",0,1.01,1.25)
  9466. MAINRUINCOLOR = BrickColor.new("Tr. Red")
  9467. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9468. end
  9469. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  9470. ModeOfGlitch = 5
  9471. storehumanoidWS = 16
  9472. hum.WalkSpeed = 30
  9473. rainbowmode = false
  9474. chaosmode = false
  9475. RecolorTextAndRename("SUNLIGHT",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  9476. newTheme("rbxassetid://929330882",0,1.02,1.25)
  9477. MAINRUINCOLOR = BrickColor.new("New Yeller")
  9478. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9479. end
  9480. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  9481. ModeOfGlitch = 6
  9482. storehumanoidWS = 100
  9483. hum.WalkSpeed = 100
  9484. rainbowmode = false
  9485. chaosmode = false
  9486. RecolorTextAndRename("RED/BLUE",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  9487. newTheme("rbxassetid://1057842305",0,1.01,1.25)
  9488. MAINRUINCOLOR = BrickColor.new("Really red")
  9489. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9490. end
  9491. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  9492. ModeOfGlitch = 8
  9493. storehumanoidWS = 140
  9494. hum.WalkSpeed = 140
  9495. rainbowmode = false
  9496. chaosmode = false
  9497. RecolorTextAndRename("Forget",Color3.new(1,1,1),BrickColor.new("Crimson").Color,"Code")
  9498. newTheme("rbxassetid://1985652577",0,1.01,1.25)
  9499. MAINRUINCOLOR = BrickColor.new("Camo")
  9500. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9501. end
  9502. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  9503. ModeOfGlitch = 9
  9504. storehumanoidWS = 150
  9505. hum.WalkSpeed = 150
  9506. rainbowmode = false
  9507. chaosmode = false
  9508. RecolorTextAndRename("POISON",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  9509. newTheme("rbxassetid://332149004",0,1.1,1.25)
  9510. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  9511. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9512. end
  9513. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  9514. ModeOfGlitch = 8889
  9515. storehumanoidWS = 180
  9516. hum.WalkSpeed = 180
  9517. rainbowmode = false
  9518. chaosmode = false
  9519. RecolorTextAndRename("CALAMITY",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  9520. newTheme("rbxassetid://1359036559",0,1.01,1.25)
  9521. MAINRUINCOLOR = BrickColor.new("Lilac")
  9522. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9523. end
  9524. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  9525. ModeOfGlitch = 55469696922
  9526. storehumanoidWS = 275
  9527. hum.WalkSpeed = 275
  9528. rainbowmode = false
  9529. chaosmode = false
  9530. RecolorTextAndRename("NANO",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  9531. newTheme("rbxassetid://582020393",0,1.005,1.25)
  9532. MAINRUINCOLOR = BrickColor.new("Hot pink")
  9533. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9534. end
  9535. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  9536. ModeOfGlitch = 4367677813
  9537. storehumanoidWS = 225
  9538. hum.WalkSpeed = 225
  9539. rainbowmode = false
  9540. chaosmode = false
  9541. RecolorTextAndRename("BRIGHTNESS",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  9542. newTheme("rbxassetid://363284685",0,1.01,1.25)
  9543. MAINRUINCOLOR = BrickColor.new("Tr. Lg blue")
  9544. RecolorThing(MAINRUINCOLOR,BrickColor.new(" Tr. Medi. reddish violet"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9545. end
  9546. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  9547. ModeOfGlitch = 9999999921111
  9548. storehumanoidWS = 300
  9549. hum.WalkSpeed = 300
  9550. rainbowmode = false
  9551. chaosmode = false
  9552. RecolorTextAndRename("DESTROY",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  9553. newTheme("rbxassetid://643309199",0,1.01,1.25)
  9554. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  9555. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9556. end
  9557. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  9558. ModeOfGlitch = 999999999556
  9559. storehumanoidWS = 500
  9560. hum.WalkSpeed = 500
  9561. rainbowmode = false
  9562. chaosmode = false
  9563. RecolorTextAndRename("Tech",BrickColor.new("Really blue").Color,BrickColor.new("Really black").Color,"Code")
  9564. newTheme("rbxassetid://719008519",0,1.02,1.25)
  9565. MAINRUINCOLOR = BrickColor.new("Really black")
  9566. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9567. end
  9568. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  9569. ModeOfGlitch = 1264532489
  9570. storehumanoidWS = 250
  9571. hum.WalkSpeed = 250
  9572. rainbowmode = false
  9573. chaosmode = false
  9574. RecolorTextAndRename("BROKEN",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  9575. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  9576. MAINRUINCOLOR = BrickColor.new("Earth blue")
  9577. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  9578. end
  9579. if k == "l" and mutedtog == false then
  9580. mutedtog = true
  9581. kan.Volume = 0
  9582. elseif k == "l" and mutedtog == true then
  9583. mutedtog = false
  9584. kan.Volume = 1.25
  9585. end
  9586. if k == "p" and toggleTag == false then
  9587. toggleTag = true
  9588. modet.TextTransparency = 0
  9589. modet.TextStrokeTransparency = 0
  9590. elseif k == "p" and toggleTag == true then
  9591. toggleTag = false
  9592. modet.TextTransparency = 1
  9593. modet.TextStrokeTransparency = 1
  9594. end
  9595. if k == "z" and attack == false and ModeOfGlitch == 1 then
  9596. ExtinctiveHeartbreak()
  9597. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  9598. HeavenlyDisk()
  9599. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  9600. CorruptionEvent()
  9601. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  9602. RapidBurst()
  9603. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  9604. --DivineLights()
  9605. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  9606. EquinoxOrbs()
  9607. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  9608. FallenOrbs()
  9609. end
  9610. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  9611. FallenDEMISE()
  9612. end
  9613. if k == "x" and attack == false and ModeOfGlitch == 1 then
  9614. EndGROUND()
  9615. end
  9616. end)
  9617.  
  9618. --[[coroutine.resume(coroutine.create(function()
  9619. while true do
  9620. swait(2)
  9621. if chaosmode == true then
  9622. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9623. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9624. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9625. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  9626. for i, v in pairs(mw1:GetChildren()) do
  9627. if v:IsA("Part") then
  9628. v.Transparency = 0.75
  9629. v.BrickColor = BrickColor.random()
  9630. v.Material = "Neon"
  9631. end
  9632. end
  9633. for i, v in pairs(m2:GetChildren()) do
  9634. if v:IsA("Part") then
  9635. v.BrickColor = BrickColor.random()
  9636. v.Material = "Neon"
  9637. end
  9638. end
  9639. end
  9640. end
  9641. end))]]--
  9642. Humanoid.Name = "STARGLITCHER"
  9643. Humanoid.MaxHealth = math.huge
  9644. Humanoid.Health = math.huge
  9645. Instance.new("ForceField",char).Visible = false
  9646.  
  9647. local bguis = Instance.new("BillboardGui",tors)
  9648. bguis.Size = UDim2.new(25, 0, 25, 0)
  9649. local imgca = Instance.new("ImageLabel",bguis)
  9650. imgca.BackgroundTransparency = 1
  9651. imgca.ImageTransparency = 1
  9652. imgca.Size = UDim2.new(1,0,1,0)
  9653. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  9654. imgca.ImageColor3 = Color3.new(0,0,0)
  9655.  
  9656. idleanim=.4
  9657. while true do
  9658. if mutedtog == false then
  9659. kan.Volume = currentVol
  9660. elseif mutedtog == true then
  9661. kan.Volume = 0
  9662. end
  9663. kan.PlaybackSpeed = currentPitch
  9664. kan.Pitch = currentPitch
  9665. kan.SoundId = currentThemePlaying
  9666. kan.Looped = true
  9667. kan.Parent = char
  9668. kan:Resume()
  9669. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  9670. imgca.ImageTransparency = 1
  9671. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  9672. imgca.ImageColor3 = MAINRUINCOLOR.Color
  9673. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  9674. end
  9675. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  9676. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  9677. coroutine.resume(coroutine.create(function()
  9678. if chaosmode == true then
  9679. for i, v in pairs(mw1:GetChildren()) do
  9680. if v:IsA("Part") then
  9681. v.Transparency = 0
  9682. v.BrickColor = BrickColor.random()
  9683. v.Material = "Neon"
  9684. end
  9685. end
  9686. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  9687. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  9688. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  9689. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  9690. end
  9691. end))
  9692. if chaosmode == false then
  9693. modet.Position = UDim2.new(0,0,0,0)
  9694. modet.Rotation = -5 * math.cos(sine / 32)
  9695. techc.Rotation = techc.Rotation + 1
  9696. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  9697. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  9698. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  9699. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  9700. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  9701. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  9702. else
  9703. techc.Rotation = techc.Rotation + 1
  9704. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  9705. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  9706. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  9707. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  9708. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  9709. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  9710. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  9711. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  9712. end
  9713. CameraManager()
  9714. swait()
  9715. 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)
  9716. 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)
  9717. 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)
  9718. 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)
  9719. 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)
  9720. 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)
  9721. 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)
  9722. 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)
  9723. 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)
  9724. 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)
  9725. 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)
  9726. 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)
  9727. sine = sine + change
  9728. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  9729. local velderp=RootPart.Velocity.y
  9730. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  9731. if equipped==true or equipped==false then
  9732. if attack==false then
  9733. idle=idle+1
  9734. else
  9735. idle=0
  9736. end
  9737. if idle>=500 then
  9738. if attack==false then
  9739. --Sheath()
  9740. end
  9741. end
  9742. if RootPart.Velocity.y > 1 and hitfloor==nil then
  9743. Anim="Jump"
  9744. if attack==false then
  9745. 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)
  9746. 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)
  9747. 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)
  9748. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  9749. 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)
  9750. 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)
  9751. end
  9752. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  9753. Anim="Fall"
  9754. if attack==false then
  9755. 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)
  9756. 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)
  9757. 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)
  9758. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  9759. 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)
  9760. 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)
  9761. end
  9762. elseif torvel<1 and hitfloor~=nil then
  9763. Anim="Idle"
  9764. if attack==false then
  9765. if ModeOfGlitch == 1 then
  9766. local snap = math.random(1,10)
  9767. if snap == 1 then
  9768. 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)
  9769. end
  9770. 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)
  9771. 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)
  9772. 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)
  9773. 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)
  9774. 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)
  9775. 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)
  9776. elseif ModeOfGlitch == 2 then
  9777. 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)
  9778. 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)
  9779. 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)
  9780. 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)
  9781. 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)
  9782. 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)
  9783. elseif ModeOfGlitch == 3 then
  9784. local snap = math.random(1,32)
  9785. if snap == 1 then
  9786. 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)
  9787. end
  9788. 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)
  9789. 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)
  9790. 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)
  9791. 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)
  9792. 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)
  9793. 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)
  9794. elseif ModeOfGlitch == 4 then
  9795. local snap = math.random(1,5)
  9796. if snap == 1 then
  9797. 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)
  9798. 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)
  9799. 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)
  9800. end
  9801. 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)
  9802. 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)
  9803. 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)
  9804. 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)
  9805. 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)
  9806. 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)
  9807. elseif ModeOfGlitch == 5 then
  9808. 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)
  9809. 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)
  9810. 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)
  9811. 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)
  9812. 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)
  9813. 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)
  9814. elseif ModeOfGlitch == 6 then
  9815. 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)
  9816. 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)
  9817. 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)
  9818. 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)
  9819. 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)
  9820. 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)
  9821. elseif ModeOfGlitch == 8 then
  9822. 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)
  9823. 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)
  9824. 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)
  9825. 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)
  9826. 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)
  9827. 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)
  9828. elseif ModeOfGlitch == 9 then
  9829. 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)
  9830. 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)
  9831. 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)
  9832. 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)
  9833. 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)
  9834. 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)
  9835. elseif ModeOfGlitch == 8889 then
  9836. 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)
  9837. 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)
  9838. 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)
  9839. 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)
  9840. 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)
  9841. 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)
  9842. elseif ModeOfGlitch == 1264532489 then
  9843. 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)
  9844. 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)
  9845. 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)
  9846. 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)
  9847. 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)
  9848. 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)
  9849. elseif ModeOfGlitch == 9999999921111 then
  9850. 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)
  9851. 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)
  9852. 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)
  9853. 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)
  9854. 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)
  9855. 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)
  9856. elseif ModeOfGlitch == 4367677813 then
  9857. 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)
  9858. 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)
  9859. 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)
  9860. 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)
  9861. 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)
  9862. 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)
  9863. elseif ModeOfGlitch == 55469696922 then
  9864. 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)
  9865. 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)
  9866. 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)
  9867. 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)
  9868. 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)
  9869. 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)
  9870. elseif ModeOfGlitch == 999999999556 then
  9871. 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)
  9872. 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)
  9873. 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)
  9874. 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)
  9875. 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)
  9876. 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)
  9877. end
  9878. end
  9879. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  9880. Anim="Walk"
  9881. if attack==false then
  9882. 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)
  9883. 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)
  9884. 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)
  9885. 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)
  9886. 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)
  9887. 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)
  9888. end
  9889. elseif torvel>=22 and hitfloor~=nil then
  9890. Anim="Run"
  9891. if attack==false then
  9892. 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
  9893. 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)
  9894. 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)
  9895. 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)
  9896. 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)
  9897. 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)
  9898. 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)
  9899. if ModeOfGlitch == 9 then
  9900. --
  9901. end
  9902. 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
  9903. 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)
  9904. 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)
  9905. 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)
  9906. 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)
  9907. 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)
  9908. 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)
  9909. end
  9910. end
  9911. end
  9912. end
  9913. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement