W6rri0r

Untitled

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