Advertisement
valentino2016

Star Glitcher Fe

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