Advertisement
buildermanwannabe

zalgo

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