Advertisement
Godzillagamerzz10

Fe Star Glitcher.

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