Advertisement
Goo345

Untitled

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