Advertisement
McRoblox132

Untitled

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