Advertisement
Vintage-Furry

Guest Glitcher -WORKINPROGRESS

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