Advertisement
Guest User

Untitled

a guest
Jun 17th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.82 KB | None | 0 0
  1.  
  2. -- [ GlitchMaster ] --
  3. -- [ Cucumber Quest ] --
  4. wait()
  5. LoudVolume = false
  6. Music = true
  7. script.Name = "GlitchMaster"
  8. Player = game.Players.LocalPlayer
  9. c = game.Players.LocalPlayer.Character
  10. Head = c.Head
  11. anim = c.Humanoid.Animator
  12. rage = false
  13. Battle = false
  14. p = game.Players.LocalPlayer
  15. Music = false
  16. PhaseEnabled = true
  17. TeleportEnabled = true
  18. c.Archivable = true
  19. WholeBody = c:clone()
  20. local Effects = {}
  21. attack = false
  22. local attacking = false
  23. vt = Vector3.new
  24. bc = BrickColor.new
  25. br = BrickColor.random
  26. it = Instance.new
  27. cf = CFrame.new
  28. euler = CFrame.fromEulerAnglesXYZ
  29. angles = CFrame.Angles
  30. matr = math.random
  31. mouse = Player:GetMouse()
  32.  
  33.  
  34. local S10 = Instance.new("Sound") local S11 = Instance.new("ParticleEmitter")
  35.  
  36. c.Humanoid.WalkSpeed = 24 c.Humanoid.JumpPower = 50
  37.  
  38. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  39. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  40. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  41. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  42. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  43. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  44. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  45. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  46. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  47. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  48. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  49. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  50. RS = c.Torso:FindFirstChild("Right Shoulder")
  51. LS = c.Torso:FindFirstChild("Left Shoulder")
  52. RH = c.Torso:FindFirstChild("Right Hip")
  53. LH = c.Torso:FindFirstChild("Left Hip")
  54. RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
  55. N = c.Torso:FindFirstChild("Neck")
  56. cf = CFrame.new
  57. ang = CFrame.Angles
  58. rd = math.rad
  59. rd2 = math.random
  60.  
  61. function swait(num)
  62. if num==0 or num==nil then
  63. game:service'RunService'.Heartbeat:wait(0)
  64. else
  65. for i=0,num do
  66. game:service'RunService'.Heartbeat:wait(0)
  67. end
  68. end
  69. end
  70.  
  71. function AnimDis()
  72. if c.Animate.Disabled == false then
  73. c.Animate.Disabled = true
  74. anim.Parent = nil
  75. else
  76. anim.Parent = c.Humanoid
  77. c.Animate.Disabled = false
  78. end
  79. end
  80. function lerpz(joint, prop, cfrmz, alp)
  81. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  82. end
  83. function resetlerp()
  84. RJ.C0 = RJC0
  85. RJ.C1 = RJC1
  86. N.C0 = NC0
  87. N.C1 = NC1
  88. RS.C0 = RSC0
  89. RS.C1 = RSC1
  90. LS.C0 = LSC0
  91. LS.C1 = LSC1
  92. RH.C0 = RHC0
  93. RH.C1 = RHC1
  94. LH.C0 = LHC0
  95. LH.C1 = LHC1
  96. end
  97.  
  98. game:GetService('UserInputService').InputBegan:connect(function(InputObj)
  99. if InputObj.KeyCode == Enum.KeyCode.Slash then
  100. local finishEvent = nil
  101. isTyping = true
  102. finishEvent = game:GetService('UserInputService').InputBegan:connect(function(InputObj)
  103. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  104. isTyping = false
  105. finishEvent:disconnect()
  106. end
  107. end)
  108. end
  109. end)
  110.  
  111. function VirusDestroy(H)
  112. spawn(function()
  113. for i = 1,1000 do
  114. H.Transparency = H.Transparency + 1/1000
  115. swait()
  116. end
  117. game.Debris:AddItem(H,3)H.Anchored = true
  118. end)
  119. end
  120.  
  121. function HitInfect(Part)
  122. Part.Touched:connect(function(Hit)
  123. if Hit.Size.Y <= 30 and Hit.Size.X <= 30 and Hit.Size.Z <= 30 and Hit.Transparency < 1 and Hit:findFirstChild("Glitch")== nil and Hit.Parent ~= c then
  124. local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  125. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black") HitInfect(Hit) VirusDestroy(Hit)
  126. for i = 1,2 do
  127. local tra = S11:clone() tra.Parent = Hit
  128. tra.Texture = "rbxassetid://744949545"
  129. tra.LightEmission = 0
  130. if i == 1 then
  131. tra.Color = ColorSequence.new(Color3.new(255/255,255/255,0/255))
  132. tra.ZOffset = 2.5
  133. else
  134. tra.Color = ColorSequence.new(Color3.new(100/255,255/255,100/255))
  135. tra.ZOffset = 3
  136. end
  137. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  138. tra.Lifetime = NumberRange.new(1,3)
  139. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize,0),NumberSequenceKeypoint.new(1,0,0)})
  140. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  141. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  142. tra.LockedToPart = true
  143. tra.Rate = 15
  144. tra.VelocityInheritance = 0.2
  145. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  146. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  147. Hit.Mesh.TextureId = "rbxassetid://64619306"
  148. end
  149. elseif Hit.Name ~= "Head" then
  150. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  151. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  152. end
  153. end
  154. end
  155. end)
  156. end
  157. function Virusify(Hit)
  158. local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  159. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
  160. for i = 1,2 do
  161. local tra = S11:clone() tra.Parent = Hit
  162. tra.Texture = "rbxassetid://744949545"
  163. tra.LightEmission = 0
  164. if i == 1 then
  165. tra.Name = "Glitch"
  166. tra.Color = ColorSequence.new(Color3.new(255/255,255/255,0/255))
  167. tra.ZOffset = 2.5
  168. else
  169. tra.Name = "Glitch2"
  170. tra.Color = ColorSequence.new(Color3.new(100/255,255/255,100/255))
  171. tra.ZOffset = 3
  172. end
  173. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  174. tra.Lifetime = NumberRange.new(1,3)
  175. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize*0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  176. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  177. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  178. tra.LockedToPart = true
  179. tra.Rate = 15+(Hit.Size.Y+Hit.Size.X+Hit.Size.Z)*5
  180. tra.VelocityInheritance = 0.2
  181. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  182. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  183. Hit.Mesh.TextureId = "rbxassetid://64619306"
  184. end
  185. elseif Hit.Name ~= "Head" then
  186. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  187. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  188. end
  189. end
  190. end
  191.  
  192. function Virusify2(Hit)
  193. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
  194. for i = 1,2 do
  195. local tra = S11:clone() tra.Parent = Hit
  196. tra.Texture = "rbxassetid://744949545"
  197. tra.LightEmission = 0
  198. if i == 1 then
  199. tra.Name = "Glitch"
  200. tra.Color = ColorSequence.new(Color3.new(255/255,255/255,0/255))
  201. tra.ZOffset = 2.5
  202. else
  203. tra.Name = "Glitch2"
  204. tra.Color = ColorSequence.new(Color3.new(100/255,255/255,100/255))
  205. tra.ZOffset = 3
  206. end
  207. local PSize = (Hit.Size.Y)/4
  208. tra.Lifetime = NumberRange.new(0.5)
  209. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,1,0),NumberSequenceKeypoint.new(1,0,0)})
  210. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  211. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  212. tra.LockedToPart = true
  213. tra.Rate = 50
  214. tra.VelocityInheritance = 0.2
  215. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  216. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  217. Hit.Mesh.TextureId = "rbxassetid://64619306"
  218. end
  219. elseif Hit.Name ~= "Head" then
  220. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  221. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  222. end
  223. end
  224. end
  225.  
  226. function Virusify3(Hit)
  227. local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  228. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
  229. for i2 = 1,2 do
  230. for i = 1,2 do
  231. local tra = S11:clone() tra.Parent = Hit
  232. tra.Texture = "rbxassetid://744949545"
  233. tra.LightEmission = 0
  234. if i == 1 then
  235. tra.Name = "Glitch"
  236. tra.Color = ColorSequence.new(Color3.new(255/255,255/255,0/255))
  237. tra.ZOffset = 2.5
  238. else
  239. tra.Name = "Glitch2"
  240. tra.Color = ColorSequence.new(Color3.new(100/255,255/255,100/255))
  241. tra.ZOffset = 3
  242. end
  243. if i2 == 1 then
  244. tra.LockedToPart = true
  245. else
  246. tra.LockedToPart = false
  247. end
  248. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  249. tra.Lifetime = NumberRange.new(1,3)
  250. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize*0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  251. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  252. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  253. tra.Rate = 35+(Hit.Size.Y+Hit.Size.X+Hit.Size.Z)*5
  254. tra.VelocityInheritance = 0.2
  255. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  256. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  257. Hit.Mesh.TextureId = "rbxassetid://64619306"
  258. end
  259. elseif Hit.Name ~= "Head" then
  260. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  261. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  262. end
  263. end
  264. end
  265. end
  266.  
  267. local S = Instance.new("Sound",c.HumanoidRootPart)S.Volume = 0.4 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  268.  
  269. for i,v in pairs(c:children()) do
  270. if v.ClassName == "Accessory" then
  271. v:remove()
  272. end
  273. end
  274.  
  275. if c:findFirstChild("Body Colors") then
  276. c:findFirstChild("Body Colors"):remove()
  277. end
  278. for i,v in pairs (c:children()) do
  279. if v.ClassName == "Part" then
  280. if v.Name ~= "HumanoidRootPart" then
  281. HitInfect(v)
  282. v.Material = "Sand" v.BrickColor = BrickColor.new("Really black")
  283. for i2 = 1,2 do
  284. for i = 1,2 do
  285. local tra = S11:clone() tra.Parent = v
  286. tra.Texture = "rbxassetid://744949545"
  287. tra.LightEmission = 0
  288. if i == 1 then
  289. tra.Color = ColorSequence.new(Color3.new(255/255,255/255,0/255))
  290. tra.ZOffset = 2.5
  291. else
  292. tra.Color = ColorSequence.new(Color3.new(100/255,255/255,100/255))
  293. tra.ZOffset = 3
  294. end
  295. tra.Rate = 15
  296. tra.Lifetime = NumberRange.new(1,3)
  297. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,0.15,0),NumberSequenceKeypoint.new(1,0,0)})
  298. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  299. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  300. if i2 == 1 then
  301. tra.LockedToPart = true
  302. tra.Rate = 10
  303. else
  304. tra.LockedToPart = false
  305. tra.ZOffset = tra.ZOffset - 2.25
  306. end
  307. tra.VelocityInheritance = 0.2
  308. end
  309. if v.Name ~= "Head" then
  310. local M = Instance.new("SpecialMesh",v)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  311. M.Scale = Vector3.new(v.Size.X*2,v.Size.Y*2,v.Size.Z*2)
  312. end
  313. end
  314. end
  315. end
  316. end
  317. c.Head.Transparency = 1
  318. local P = Instance.new("Part",c)P.Size = Vector3.new(1,1,1)P.Anchored = false P.CanCollide = false P.Name = "HeadPart"
  319. local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c.Head
  320. local HM = Instance.new("SpecialMesh",P)HM.MeshId = "rbxassetid://539723444" HM.TextureId = "rbxassetid://64619306" HM.Scale = Vector3.new(0.97,0.97,0.97)
  321. wait()
  322. c.Head:FindFirstChild("face").Texture = ""
  323. if c:findFirstChild("Shirt")~=nil then
  324. c:findFirstChild("Shirt"):remove()
  325. end
  326. if c:findFirstChild("Pants")~=nil then
  327. c:findFirstChild("Pants"):remove()
  328. end
  329.  
  330. local flying = false
  331. local deb = true
  332. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  333. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  334. local maxspeed = 25
  335. local speed = 0
  336.  
  337. function Fly()
  338. local bg = Instance.new("BodyGyro", c.HumanoidRootPart)
  339. bg.P = 100000 bg.D = 100
  340. bg.maxTorque = Vector3.new(math.huge, 0, math.huge)
  341. bg.cframe = c.HumanoidRootPart.CFrame
  342. local bv = Instance.new("BodyVelocity", c.HumanoidRootPart)
  343. bv.velocity = Vector3.new(0,0.1,0)
  344. bv.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  345. repeat wait()
  346. c.Humanoid.PlatformStand = true
  347. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  348. speed = speed+1+(speed/maxspeed)
  349. if speed > maxspeed then
  350. speed = maxspeed
  351. end
  352. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  353. speed = speed-1
  354. if speed < 0 then
  355. speed = 0
  356. end
  357. end
  358. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  359. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  360. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  361. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  362. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  363. else
  364. bv.velocity = Vector3.new(0,0.1,0)
  365. end
  366. until not flying
  367. ctrl = {f = 0, b = 0, l = 0, r = 0}
  368. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  369. speed = 0
  370. bv:Destroy()
  371. c.Humanoid.PlatformStand = false
  372. end
  373.  
  374. Cloud = false
  375. function CloudForm()
  376. if Cloud == false then
  377. S.Volume = 1
  378. attack = true Cloud = true
  379. for i = 1,10 do
  380. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  381. lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.1)
  382. lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
  383. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  384. lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
  385. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  386. lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  387. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  388. lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  389. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  390. swait()
  391. end
  392. lerpz(RJ, "C0", RJC0 * cf(0, 0, 2500) * ang(rd(0), rd(0), rd(0)), 1)
  393. local Cl = Instance.new("Part",c)Cl.Size = Vector3.new(10,10,10) Cl.CanCollide = false Cl.Anchored = false Cl.CFrame = c.HumanoidRootPart.CFrame
  394. Cl.CustomPhysicalProperties = PhysicalProperties.new(0,0.3,0.5)
  395. Cl.Material = "Sand" Cl.BrickColor = BrickColor.new("Really black") Cl.Name = "Cloud"
  396. HitInfect(Cl)
  397. for i2 = 1,2 do
  398. for i = 1,2 do
  399. local tra = S11:clone() tra.Parent = CL
  400. tra.Texture = "rbxassetid://744949545"
  401. tra.LightEmission = 0
  402. if i == 1 then
  403. tra.Color = ColorSequence.new(Color3.new(255/255,255/255,0/255))
  404. tra.ZOffset = 2.5
  405. else
  406. tra.Color = ColorSequence.new(Color3.new(100/255,255/255,100/255))
  407. tra.ZOffset = 3
  408. end
  409. tra.Lifetime = NumberRange.new(1,3)
  410. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,1,0),NumberSequenceKeypoint.new(1,0,0)})
  411. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  412. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  413. if i2 == 1 then
  414. tra.LockedToPart = true
  415. tra.Speed = NumberRange.new(0.5)
  416. else
  417. tra.LockedToPart = false
  418. tra.Speed = NumberRange.new(4)
  419. end
  420. tra.Rate = 250
  421. tra.VelocityInheritance = 0.2
  422. end
  423. end
  424. local W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = Cl
  425. local M = Instance.new("SpecialMesh",Cl)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  426. for i = 1,80 do
  427. M.Scale = Vector3.new(i/4,i/4,i/4)
  428. c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,3,0)
  429. swait()
  430. end
  431. flying = true attack = false
  432. Fly()
  433. else
  434. attack = true S.Volume = 0.4
  435. if c:findFirstChild("Cloud") ~= nil then
  436. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  437. if c.HumanoidRootPart:findFirstChild("Smile")~= nil then
  438. for i = 1,20 do
  439. c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency = c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency + 0.05
  440. swait()
  441. end
  442. c.HumanoidRootPart.Smile:remove()
  443. end
  444. for i,v in pairs(c:findFirstChild("Cloud"):children()) do
  445. if v.Name == "Glitch" then
  446. v.Enabled = false
  447. end
  448. end
  449. for i = 1,80 do
  450. c:findFirstChild("Cloud").Mesh.Scale = c:findFirstChild("Cloud").Mesh.Scale - Vector3.new(0.25,0.25,0.25)
  451. swait()
  452. end
  453. game.Debris:AddItem(c:findFirstChild("Cloud"),2)
  454. Cloud = false end flying = false
  455. wait(2)
  456. attack = false
  457. end
  458. end
  459.  
  460. function CloudFace()
  461. if c.HumanoidRootPart:findFirstChild("Smile")~= nil then
  462. for i = 1,20 do
  463. c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency = c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency + 0.05
  464. swait()
  465. end
  466. c.HumanoidRootPart.Smile:remove()
  467. else
  468. local BillBoard = Instance.new("BillboardGui",c.HumanoidRootPart)BillBoard.Name = "Smile" BillBoard.AlwaysOnTop = true BillBoard.Size = UDim2.new(10,0,10,0)
  469. local Im = Instance.new("ImageLabel",BillBoard) Im.BackgroundTransparency = 1 Im.Size = UDim2.new(1,0,1,0)Im.Image = "rbxassetid://1176414120"
  470. end
  471. end
  472.  
  473.  
  474. function VirusExplosion(Pos)
  475. for i = 1,10 do
  476. for i2 = 1,8 do
  477. local V = Instance.new("Part")V.Size = Vector3.new(1+i*20,0.5,10)V.Anchored = true V.CanCollide = false
  478. V.CFrame = Pos*CFrame.Angles(0,math.rad(45*i2),0) Virusify2(V) VirusFade(V)
  479. V.CFrame = V.CFrame*CFrame.new(0,3,2*i)HitInfect(V) V.Parent = game.Workspace
  480. end
  481. swait()
  482. end
  483. end
  484.  
  485. function VirusFade(H)
  486. spawn(function()
  487. for i = 1,10 do
  488. H.Transparency = H.Transparency + 1/10
  489. swait()
  490. end
  491. H:findFirstChild("Glitch").Enabled = false H:findFirstChild("Glitch2").Enabled = false
  492. game.Debris:AddItem(H,0.2)
  493. end)
  494. end
  495.  
  496. function VirusFade2(H)
  497. spawn(function()
  498. for i = 1,25 do
  499. H.Transparency = H.Transparency + 1/25
  500. swait()
  501. end
  502. H:findFirstChild("Glitch").Enabled = false H:findFirstChild("Glitch2").Enabled = false
  503. game.Debris:AddItem(H,4)
  504. end)
  505. end
  506.  
  507. function HammerSlam()
  508. c.HumanoidRootPart.Anchored = true
  509. attack = true
  510. AnimDis()
  511. for i = 1,15 do
  512. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.2)-- Y, X, Z
  513. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.2) -- Y, X, Z
  514. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(65)), 0.2) -- Z, X, Y
  515. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(-65)), 0.2) -- Z, X, Y
  516. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.2)
  517. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.2)
  518. swait()
  519. end
  520. local H = Instance.new("Part",c)H.Size = Vector3.new(1,1,15)H.CanCollide = false
  521. local H2 = Instance.new("Part",c)H2.Size = Vector3.new(5,10,5)H2.CanCollide = false
  522. local W = Instance.new("Weld",c["Torso"])W.Part0 = c["Torso"] W.Part1 = H W.C0 = CFrame.new(0,-2,0)
  523. local W2 = Instance.new("Weld",H2)W2.Part0 = H2 W2.Part1 = H W2.C0 = CFrame.new(0,0,-4)
  524. Virusify(H) Virusify(H2)HitInfect(H)HitInfect(H2)
  525. for i = 1,45 do
  526. W.C0 = CFrame.new(0,2,4)*CFrame.Angles(math.rad(5),0,0)
  527. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(0)), 0.2)-- Y, X, Z
  528. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(0)), 0.2) -- Y, X, Z
  529. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(220)), 0.2) -- Z, X, Y
  530. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(-220)), 0.2) -- Z, X, Y
  531. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.2)
  532. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.2)
  533. swait()
  534. end
  535. W.C0 = CFrame.new(0,3,-8)*CFrame.Angles(math.rad(200),0,0)
  536. for i = 1,15 do
  537. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.5)-- Y, X, Z
  538. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.5) -- Y, X, Z
  539. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(65)), 0.5) -- Z, X, Y
  540. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(-65)), 0.5) -- Z, X, Y
  541. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5)
  542. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.5)
  543. swait()
  544. end
  545. local S = Instance.new("Sound",H2)S.Volume = 2 S.SoundId = "rbxassetid://211062246" S:Play()
  546. for i = 1,45 do
  547. for i2 = 1,8 do
  548. local V = Instance.new("Part")V.Size = Vector3.new(10+i*4,1,10)V.Anchored = true V.CanCollide = false
  549. V.CFrame = H2.CFrame*CFrame.Angles(0,math.rad(45*i2),0) Virusify2(V) VirusFade(V)
  550. V.CFrame = V.CFrame*CFrame.new(0,3,5*i)HitInfect(V) V.Parent = game.Workspace
  551. end
  552. swait()
  553. end
  554. H.Anchored = true H2.Anchored = true
  555. W:remove() W2:remove()
  556. c.HumanoidRootPart.Anchored = false
  557. AnimDis()
  558. attack = false
  559. spawn(function()
  560. wait(3) H.Transparency = 1 H2.Transparency = 1
  561. H:findFirstChild("Glitch").Enabled = false H2:findFirstChild("Glitch").Enabled = false
  562. H:findFirstChild("Glitch2").Enabled = false H2:findFirstChild("Glitch2").Enabled = false
  563. game.Debris:AddItem(H,4) game.Debris:AddItem(H2,4)
  564. end)
  565. end
  566.  
  567. function Missiles()
  568. attack = true
  569. local Mis = Instance.new("Part",game.Workspace)Mis.Name = "GlitchMissle" Mis.Size = Vector3.new(2,2,12) Mis.CFrame = c.HumanoidRootPart.CFrame Virusify3(Mis)
  570. Mis.CFrame = CFrame.new(Mis.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p+Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)))
  571. Mis.CanCollide = false local BV = Instance.new("BodyVelocity",Mis)BV.Velocity = Mis.CFrame.lookVector*150 BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  572. local hit = false
  573. Mis.Touched:connect(function(Hit)
  574. if Hit.Parent ~= c then
  575. if hit == false then hit = true
  576. Mis.Anchored = true VirusFade2(Mis)
  577. VirusExplosion(CFrame.new(Mis.Position))
  578. end
  579. end
  580. end)
  581. wait(0.1)
  582. attack = false
  583. end
  584.  
  585. mouse.KeyDown:connect(function(key)
  586. if c.Humanoid.Health <= 0 then return end
  587. if attack == true then return end
  588. if Cloud == true then
  589. if key == "f" then
  590. CloudFace()
  591. end
  592. if key == "z" then
  593. Missiles()
  594. end
  595. elseif Cloud == false then
  596. if key == "z" then
  597. HammerSlam()
  598. end
  599. end
  600. if key == "m" then
  601. CloudForm()
  602. end
  603. end)
  604.  
  605. local LastPos = c.HumanoidRootPart.CFrame
  606. local Resetting = false
  607. function Reset()
  608. if Resetting == false then Resetting = true
  609. c.Parent = nil
  610. c.Humanoid.Health = math.huge c.Humanoid.MaxHealth = math.huge
  611. for i,v in pairs(c:children()) do if v.ClassName == "Part" then v:remove() end end
  612. local Tors = Instance.new("Part",c)Tors.Name = "Torso" Tors.Size = Vector3.new(2,2,1) Virusify(Tors)
  613. local Hed = Instance.new("Part",c)Hed.Name = "Head" Hed.Size = Vector3.new(2,1,1) Virusify(Hed) Hed.Transparency = 1
  614. makejoint(c.Torso, NC0, NC1, c.Torso, c.Head, "Neck")
  615. local Hum = Instance.new("Part",c)Hum.Name = "HumanoidRootPart" Hum.Size = Vector3.new(2,2,1) Hum.Transparency = 1
  616. makejoint(c.HumanoidRootPart, RJC0, RJC1, c.HumanoidRootPart, c.Torso, "RootJoint")
  617. local P = Instance.new("Part",c)P.Size = Vector3.new(1,1,1)P.Anchored = false P.CanCollide = false P.Name = "HeadPart"
  618. local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c.Head
  619. local HM = Instance.new("SpecialMesh",P)HM.MeshId = "rbxassetid://539723444" HM.TextureId = "rbxassetid://64619306" HM.Scale = Vector3.new(0.97,0.97,0.97)
  620. local RiArm = Instance.new("Part",c)RiArm.Name = "Right Arm" RiArm.Size = Vector3.new(1,2,1) Virusify(RiArm)
  621. makejoint(c.Torso, RSC0, RSC1, c.Torso, RiArm, "Right Shoulder")
  622. local LeArm = Instance.new("Part",c)LeArm.Name = "Left Arm" LeArm.Size = Vector3.new(1,2,1) Virusify(LeArm)
  623. makejoint(c.Torso, LSC0, LSC1, c.Torso, LeArm, "Left Shoulder")
  624. local RiLeg = Instance.new("Part",c)RiLeg.Name = "Right Leg" RiLeg.Size = Vector3.new(1,2,1) Virusify(RiLeg)
  625. makejoint(c.Torso, RHC0, RHC1, c.Torso, RiLeg, "Right Hip")
  626. local LeLeg = Instance.new("Part",c)LeLeg.Name = "Left Leg" LeLeg.Size = Vector3.new(1,2,1) Virusify(LeLeg)
  627. makejoint(c.Torso, LHC0, LHC1, c.Torso, LeLeg, "Left Hip")
  628. c.HumanoidRootPart.CFrame = LastPos*CFrame.new(math.random(-5,5),0,math.random(-5,5))
  629. Resetting = false c.Humanoid.Died:connect(Reset) c.Parent = game.Workspace
  630. end
  631. end
  632. c.Humanoid.Died:connect(Reset)
  633.  
  634. function onKeyPress(inputObject, gameProcessedEvent)
  635. if isTyping == true then return end
  636. if inputObject.KeyCode == Enum.KeyCode.W then ctrl.f = 1 end
  637. if inputObject.KeyCode == Enum.KeyCode.S then ctrl.b = -1 end
  638. if inputObject.KeyCode == Enum.KeyCode.A then ctrl.l = -1 end
  639. if inputObject.KeyCode == Enum.KeyCode.D then ctrl.r = 1 end
  640. end
  641. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  642.  
  643. function onKeyLift(inputObject, gameProcessedEvent)
  644. if isTyping == true then return end
  645. if inputObject.KeyCode == Enum.KeyCode.W then ctrl.f = 0 end
  646. if inputObject.KeyCode == Enum.KeyCode.S then ctrl.b = 0 end
  647. if inputObject.KeyCode == Enum.KeyCode.A then ctrl.l = 0 end
  648. if inputObject.KeyCode == Enum.KeyCode.D then ctrl.r = 0 end
  649. end
  650. game:GetService("UserInputService").InputEnded:connect(onKeyLift)
  651.  
  652. WholeBody = c:clone()
  653.  
  654. function makejoint(paren, co, ci, parto, parti, nam)local gloo = Instance.new("Motor6D")gloo.Name = nam gloo.C0 = co gloo.C1 = ci gloo.Part0 = parto gloo.Part1 = parti gloo.Parent = paren end
  655. idletime = 0
  656. sine = 0
  657. game:GetService("RunService").RenderStepped:connect(function()
  658. c.Humanoid.MaxHealth = c.Humanoid.MaxHealth + math.huge c.Humanoid.Health = c.Humanoid.Health + math.huge
  659. if Resetting == false then
  660. if c:findFirstChild("Head")== nil or c:findFirstChild("Torso")== nil or c:findFirstChild("HumanoidRootPart")== nil or c.HumanoidRootPart:findFirstChild("RootJoint")== nil then
  661. Reset()
  662. else
  663. LastPos = c.HumanoidRootPart.CFrame
  664. end
  665. if c.Torso:findFirstChild("Right Shoulder") == nil or c:findFirstChild("Right Arm")== nil then print("RA")
  666. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Right Arm" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  667. makejoint(c.Torso, RSC0, RSC1, c.Torso, BodyPart, "Right Shoulder")
  668. end
  669. if c.Torso:findFirstChild("Left Shoulder") == nil or c:findFirstChild("Left Arm")== nil then print("LA")
  670. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Left Arm" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  671. makejoint(c.Torso, LSC0, LSC1, c.Torso, BodyPart, "Left Shoulder")
  672. end
  673. if c.Torso:findFirstChild("Right Hip") == nil or c:findFirstChild("Right Leg")== nil then print("RL")
  674. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Right Leg" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  675. makejoint(c.Torso, RHC0, RHC1, c.Torso, BodyPart, "Right Hip")
  676. end
  677. if c.Torso:findFirstChild("Left Hip") == nil or c:findFirstChild("Left Leg")== nil then print("LL")
  678. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Left Leg" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  679. makejoint(c.Torso, LHC0, LHC1, c.Torso, BodyPart, "Left Hip")
  680. end
  681. local r = math.random(1,15)
  682. if r == 1 then S.PlaybackSpeed = math.random(1,50)/10 end
  683. if attack == false and Cloud == false then
  684. local r2 = math.random(1,50)
  685. if r2 == 1 then
  686. lerpz(RJ, "C0", RJC0 * cf(math.random(-5,5)/10, math.random(-5,5)/10, math.random(-5,5)/10) * ang(rd(0), rd(0), rd(0)), 1)-- Y, X, Z
  687. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Y, X, Z
  688. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  689. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  690. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  691. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  692. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  693. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  694. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  695. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  696. end
  697. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)-- Y, X, Z
  698. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Y, X, Z
  699. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  700. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  701. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  702. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  703. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  704. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  705. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  706. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  707. end
  708. end
  709. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement