Advertisement
Beeish

Fe Star Glitcher NO WORK

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