ShutThefickUp

Untitled

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