Advertisement
kostik228

fe star

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