Advertisement
Vintage-Furry

aw

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