Advertisement
buildermanwannabe

34234324

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