Advertisement
Fullgamer309

kkk

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