Advertisement
Ephkyr

Smoke

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