Advertisement
buildermanwannabe

tixy

Jun 30th, 2018
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.69 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(170, 85, 0)
  24. text.TextColor3 = Color3.new(2,1,0.5)
  25. text.Text = ("Tix Boi")
  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("Nougat") HitInfect(Hit) VirusDestroy(Hit)
  147. for i = 1,2 do
  148. local tra = S11:clone() tra.Parent = Hit
  149. tra.Texture = "rbxassetid://1075605738"
  150. tra.LightEmission = 0
  151. if i == 1 then
  152.  
  153. tra.ZOffset = 2.5
  154. else
  155.  
  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://1075605738"
  184. tra.LightEmission = 0
  185. if i == 1 then
  186. tra.Name = "Glitch"
  187.  
  188. tra.ZOffset = 2.5
  189. else
  190. tra.Name = "Glitch2"
  191.  
  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("Nougat")
  215. for i = 1,2 do
  216. local tra = S11:clone() tra.Parent = Hit
  217. tra.Texture = "rbxassetid://1075605738"
  218. tra.LightEmission = 0
  219. if i == 1 then
  220. tra.Name = "Glitch"
  221.  
  222. tra.ZOffset = 2.5
  223. else
  224. tra.Name = "Glitch2"
  225.  
  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("Nougat")
  250. for i2 = 1,2 do
  251. for i = 1,2 do
  252. local tra = S11:clone() tra.Parent = Hit
  253. tra.Texture = "rbxassetid://1075605738"
  254. tra.LightEmission = 0
  255. if i == 1 then
  256. tra.Name = "Glitch"
  257. tra.ZOffset = 2.5
  258. else
  259. tra.Name = "Glitch2"
  260.  
  261. tra.ZOffset = 3
  262. end
  263. if i2 == 1 then
  264. tra.LockedToPart = true
  265. else
  266. tra.LockedToPart = false
  267. end
  268. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  269. tra.Lifetime = NumberRange.new(1,3)
  270. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize*0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  271. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  272. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  273. tra.Rate = 35+(Hit.Size.Y+Hit.Size.X+Hit.Size.Z)*5
  274. tra.VelocityInheritance = 0.2
  275. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  276. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  277. Hit.Mesh.TextureId = "rbxassetid://64619306"
  278. end
  279. elseif Hit.Name ~= "Head" then
  280. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  281. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  282. end
  283. end
  284. end
  285. end
  286.  
  287. local S = Instance.new("Sound",c.HumanoidRootPart)S.Volume = 0.4 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  288.  
  289. for i,v in pairs(c:children()) do
  290. if v.ClassName == "Accessory" then
  291. v:remove()
  292. end
  293. end
  294.  
  295. if c:findFirstChild("Body Colors") then
  296. c:findFirstChild("Body Colors"):remove()
  297. end
  298. for i,v in pairs (c:children()) do
  299. if v.ClassName == "Part" then
  300. if v.Name ~= "HumanoidRootPart" then
  301. HitInfect(v)
  302. v.Material = "Sand" v.BrickColor = BrickColor.new("Nougat")
  303. for i2 = 1,2 do
  304. for i = 1,2 do
  305. local tra = S11:clone() tra.Parent = v
  306. tra.Texture = "rbxassetid://1075605738"
  307. tra.LightEmission = 0
  308. if i == 1 then
  309.  
  310. tra.ZOffset = 2.5
  311. else
  312.  
  313. tra.ZOffset = 3
  314. end
  315. tra.Rate = 15
  316. tra.Lifetime = NumberRange.new(1,3)
  317. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,0.15,0),NumberSequenceKeypoint.new(1,0,0)})
  318. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  319. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  320. if i2 == 1 then
  321. tra.LockedToPart = true
  322. tra.Rate = 10
  323. else
  324. tra.LockedToPart = false
  325. tra.ZOffset = tra.ZOffset - 2.25
  326. end
  327. tra.VelocityInheritance = 0.2
  328. end
  329. if v.Name ~= "Head" then
  330. local M = Instance.new("SpecialMesh",v)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  331. M.Scale = Vector3.new(v.Size.X*2,v.Size.Y*2,v.Size.Z*2)
  332. end
  333. end
  334. end
  335. end
  336. end
  337. c.Head.Transparency = 1
  338. local P = Instance.new("Part",c)P.Size = Vector3.new(1,1,1)P.Anchored = false P.CanCollide = false P.Name = "HeadPart"
  339. local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c.Head
  340. local HM = Instance.new("SpecialMesh",P)HM.MeshId = "rbxassetid://539723444" HM.TextureId = "rbxassetid://64619306" HM.Scale = Vector3.new(0.97,0.97,0.97)
  341. wait()
  342. c.Head:FindFirstChild("face").Texture = ""
  343. if c:findFirstChild("Shirt")~=nil then
  344. c:findFirstChild("Shirt"):remove()
  345. end
  346. if c:findFirstChild("Pants")~=nil then
  347. c:findFirstChild("Pants"):remove()
  348. end
  349.  
  350. local flying = false
  351. local deb = true
  352. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  353. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  354. local maxspeed = 25
  355. local speed = 0
  356.  
  357. function Fly()
  358. local bg = Instance.new("BodyGyro", c.HumanoidRootPart)
  359. bg.P = 100000 bg.D = 100
  360. bg.maxTorque = Vector3.new(math.huge, 0, math.huge)
  361. bg.cframe = c.HumanoidRootPart.CFrame
  362. local bv = Instance.new("BodyVelocity", c.HumanoidRootPart)
  363. bv.velocity = Vector3.new(0,0.1,0)
  364. bv.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  365. repeat wait()
  366. c.Humanoid.PlatformStand = true
  367. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  368. speed = speed+1+(speed/maxspeed)
  369. if speed > maxspeed then
  370. speed = maxspeed
  371. end
  372. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  373. speed = speed-1
  374. if speed < 0 then
  375. speed = 0
  376. end
  377. end
  378. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  379. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  380. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  381. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  382. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  383. else
  384. bv.velocity = Vector3.new(0,0.1,0)
  385. end
  386. until not flying
  387. ctrl = {f = 0, b = 0, l = 0, r = 0}
  388. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  389. speed = 0
  390. bv:Destroy()
  391. c.Humanoid.PlatformStand = false
  392. end
  393.  
  394. Cloud = false
  395. function CloudForm()
  396. if Cloud == false then
  397. S.Volume = 1
  398. attack = true Cloud = true
  399. for i = 1,10 do
  400. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  401. lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.1)
  402. lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
  403. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  404. lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
  405. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  406. lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  407. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  408. lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  409. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  410. swait()
  411. end
  412. lerpz(RJ, "C0", RJC0 * cf(0, 0, 2500) * ang(rd(0), rd(0), rd(0)), 1)
  413. local Cl = Instance.new("Part",c)Cl.Size = Vector3.new(10,10,10) Cl.CanCollide = false Cl.Anchored = false Cl.CFrame = c.HumanoidRootPart.CFrame
  414. Cl.CustomPhysicalProperties = PhysicalProperties.new(0,0.3,0.5)
  415. Cl.Material = "Sand" Cl.BrickColor = BrickColor.new("Nougat") Cl.Name = "Cloud"
  416. HitInfect(Cl)
  417. for i2 = 1,2 do
  418. for i = 1,2 do
  419. local tra = S11:clone() tra.Parent = CL
  420. tra.Texture = "rbxassetid://1075605738"
  421. tra.LightEmission = 0
  422. if i == 1 then
  423.  
  424. tra.ZOffset = 2.5
  425. else
  426.  
  427. tra.ZOffset = 3
  428. end
  429. tra.Lifetime = NumberRange.new(1,3)
  430. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,1,0),NumberSequenceKeypoint.new(1,0,0)})
  431. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  432. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  433. if i2 == 1 then
  434. tra.LockedToPart = true
  435. tra.Speed = NumberRange.new(0.5)
  436. else
  437. tra.LockedToPart = false
  438. tra.Speed = NumberRange.new(4)
  439. end
  440. tra.Rate = 250
  441. tra.VelocityInheritance = 0.2
  442. end
  443. end
  444. local W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = Cl
  445. local M = Instance.new("SpecialMesh",Cl)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  446. for i = 1,80 do
  447. M.Scale = Vector3.new(i/4,i/4,i/4)
  448. c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,3,0)
  449. swait()
  450. end
  451. flying = true attack = false
  452. Fly()
  453. else
  454. attack = true S.Volume = 0.4
  455. if c:findFirstChild("Cloud") ~= nil then
  456. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  457. if c.HumanoidRootPart:findFirstChild("Smile")~= nil then
  458. for i = 1,20 do
  459. c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency = c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency + 0.05
  460. swait()
  461. end
  462. c.HumanoidRootPart.Smile:remove()
  463. end
  464. for i,v in pairs(c:findFirstChild("Cloud"):children()) do
  465. if v.Name == "Glitch" then
  466. v.Enabled = false
  467. end
  468. end
  469. for i = 1,80 do
  470. c:findFirstChild("Cloud").Mesh.Scale = c:findFirstChild("Cloud").Mesh.Scale - Vector3.new(0.25,0.25,0.25)
  471. swait()
  472. end
  473. game.Debris:AddItem(c:findFirstChild("Cloud"),2)
  474. Cloud = false end flying = false
  475. wait(2)
  476. attack = false
  477. end
  478. end
  479.  
  480. function CloudFace()
  481. if c.HumanoidRootPart:findFirstChild("Smile")~= nil then
  482. for i = 1,20 do
  483. c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency = c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency + 0.05
  484. swait()
  485. end
  486. c.HumanoidRootPart.Smile:remove()
  487. else
  488. local BillBoard = Instance.new("BillboardGui",c.HumanoidRootPart)BillBoard.Name = "Smile" BillBoard.AlwaysOnTop = true BillBoard.Size = UDim2.new(10,0,10,0)
  489. local Im = Instance.new("ImageLabel",BillBoard) Im.BackgroundTransparency = 1 Im.Size = UDim2.new(1,0,1,0)Im.Image = "rbxassetid://915081021"
  490. end
  491. end
  492.  
  493.  
  494. function VirusExplosion(Pos)
  495. for i = 1,10 do
  496. for i2 = 1,8 do
  497. local V = Instance.new("Part")V.Size = Vector3.new(1+i*20,0.5,10)V.Anchored = true V.CanCollide = false
  498. V.CFrame = Pos*CFrame.Angles(0,math.rad(45*i2),0) Virusify2(V) VirusFade(V)
  499. V.CFrame = V.CFrame*CFrame.new(0,3,2*i)HitInfect(V) V.Parent = game.Workspace
  500. end
  501. swait()
  502. end
  503. end
  504.  
  505. function VirusFade(H)
  506. spawn(function()
  507. for i = 1,10 do
  508. H.Transparency = H.Transparency + 1/10
  509. swait()
  510. end
  511. H:findFirstChild("Glitch").Enabled = false H:findFirstChild("Glitch2").Enabled = false
  512. game.Debris:AddItem(H,0.2)
  513. end)
  514. end
  515.  
  516. function VirusFade2(H)
  517. spawn(function()
  518. for i = 1,25 do
  519. H.Transparency = H.Transparency + 1/25
  520. swait()
  521. end
  522. H:findFirstChild("Glitch").Enabled = false H:findFirstChild("Glitch2").Enabled = false
  523. game.Debris:AddItem(H,4)
  524. end)
  525. end
  526.  
  527. function HammerSlam()
  528. c.HumanoidRootPart.Anchored = true
  529. attack = true
  530. AnimDis()
  531. for i = 1,15 do
  532. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.2)-- Y, X, Z
  533. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.2) -- Y, X, Z
  534. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(65)), 0.2) -- Z, X, Y
  535. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(-65)), 0.2) -- Z, X, Y
  536. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.2)
  537. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.2)
  538. swait()
  539. end
  540. local H = Instance.new("Part",c)H.Size = Vector3.new(1,1,15)H.CanCollide = false
  541. local H2 = Instance.new("Part",c)H2.Size = Vector3.new(5,10,5)H2.CanCollide = false
  542. local W = Instance.new("Weld",c["Torso"])W.Part0 = c["Torso"] W.Part1 = H W.C0 = CFrame.new(0,-2,0)
  543. local W2 = Instance.new("Weld",H2)W2.Part0 = H2 W2.Part1 = H W2.C0 = CFrame.new(0,0,-4)
  544. Virusify(H) Virusify(H2)HitInfect(H)HitInfect(H2)
  545. for i = 1,45 do
  546. W.C0 = CFrame.new(0,2,4)*CFrame.Angles(math.rad(5),0,0)
  547. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(0)), 0.2)-- Y, X, Z
  548. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(0)), 0.2) -- Y, X, Z
  549. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(220)), 0.2) -- Z, X, Y
  550. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(-220)), 0.2) -- Z, X, Y
  551. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.2)
  552. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.2)
  553. swait()
  554. end
  555. W.C0 = CFrame.new(0,3,-8)*CFrame.Angles(math.rad(200),0,0)
  556. for i = 1,15 do
  557. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.5)-- Y, X, Z
  558. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.5) -- Y, X, Z
  559. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(65)), 0.5) -- Z, X, Y
  560. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(-65)), 0.5) -- Z, X, Y
  561. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5)
  562. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.5)
  563. swait()
  564. end
  565. local S = Instance.new("Sound",H2)S.Volume = 2 S.SoundId = "rbxassetid://211062246" S:Play()
  566. for i = 1,45 do
  567. for i2 = 1,8 do
  568. local V = Instance.new("Part")V.Size = Vector3.new(10+i*4,1,10)V.Anchored = true V.CanCollide = false
  569. V.CFrame = H2.CFrame*CFrame.Angles(0,math.rad(45*i2),0) Virusify2(V) VirusFade(V)
  570. V.CFrame = V.CFrame*CFrame.new(0,3,5*i)HitInfect(V) V.Parent = game.Workspace
  571. end
  572. swait()
  573. end
  574. H.Anchored = true H2.Anchored = true
  575. W:remove() W2:remove()
  576. c.HumanoidRootPart.Anchored = false
  577. AnimDis()
  578. attack = false
  579. spawn(function()
  580. wait(3) H.Transparency = 1 H2.Transparency = 1
  581. H:findFirstChild("Glitch").Enabled = false H2:findFirstChild("Glitch").Enabled = false
  582. H:findFirstChild("Glitch2").Enabled = false H2:findFirstChild("Glitch2").Enabled = false
  583. game.Debris:AddItem(H,4) game.Debris:AddItem(H2,4)
  584. end)
  585. end
  586.  
  587. function Missiles()
  588. attack = true
  589. local Mis = Instance.new("Part",game.Workspace)Mis.Name = "GlitchMissle" Mis.Size = Vector3.new(2,2,12) Mis.CFrame = c.HumanoidRootPart.CFrame Virusify3(Mis)
  590. Mis.CFrame = CFrame.new(Mis.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p+Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)))
  591. Mis.CanCollide = false local BV = Instance.new("BodyVelocity",Mis)BV.Velocity = Mis.CFrame.lookVector*150 BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  592. local hit = false
  593. Mis.Touched:connect(function(Hit)
  594. if Hit.Parent ~= c then
  595. if hit == false then hit = true
  596. Mis.Anchored = true VirusFade2(Mis)
  597. VirusExplosion(CFrame.new(Mis.Position))
  598. end
  599. end
  600. end)
  601. wait(0.1)
  602. attack = false
  603. end
  604.  
  605. mouse.KeyDown:connect(function(key)
  606. if c.Humanoid.Health <= 0 then return end
  607. if attack == true then return end
  608. if Cloud == true then
  609. if key == "f" then
  610. CloudFace()
  611. end
  612. if key == "z" then
  613. Missiles()
  614. end
  615. elseif Cloud == false then
  616. if key == "z" then
  617. HammerSlam()
  618. end
  619. end
  620. if key == "m" then
  621. CloudForm()
  622. end
  623. end)
  624.  
  625. local LastPos = c.HumanoidRootPart.CFrame
  626. local Resetting = false
  627. function Reset()
  628. if Resetting == false then Resetting = true
  629. c.Parent = nil
  630. c.Humanoid.Health = math.huge c.Humanoid.MaxHealth = math.huge
  631. for i,v in pairs(c:children()) do if v.ClassName == "Part" then v:remove() end end
  632. local Tors = Instance.new("Part",c)Tors.Name = "Torso" Tors.Size = Vector3.new(2,2,1) Virusify(Tors)
  633. local Hed = Instance.new("Part",c)Hed.Name = "Head" Hed.Size = Vector3.new(2,1,1) Virusify(Hed) Hed.Transparency = 1
  634. makejoint(c.Torso, NC0, NC1, c.Torso, c.Head, "Neck")
  635. local Hum = Instance.new("Part",c)Hum.Name = "HumanoidRootPart" Hum.Size = Vector3.new(2,2,1) Hum.Transparency = 1
  636. makejoint(c.HumanoidRootPart, RJC0, RJC1, c.HumanoidRootPart, c.Torso, "RootJoint")
  637. local P = Instance.new("Part",c)P.Size = Vector3.new(1,1,1)P.Anchored = false P.CanCollide = false P.Name = "HeadPart"
  638. local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c.Head
  639. local HM = Instance.new("SpecialMesh",P)HM.MeshId = "rbxassetid://539723444" HM.TextureId = "rbxassetid://64619306" HM.Scale = Vector3.new(0.97,0.97,0.97)
  640. local RiArm = Instance.new("Part",c)RiArm.Name = "Right Arm" RiArm.Size = Vector3.new(1,2,1) Virusify(RiArm)
  641. makejoint(c.Torso, RSC0, RSC1, c.Torso, RiArm, "Right Shoulder")
  642. local LeArm = Instance.new("Part",c)LeArm.Name = "Left Arm" LeArm.Size = Vector3.new(1,2,1) Virusify(LeArm)
  643. makejoint(c.Torso, LSC0, LSC1, c.Torso, LeArm, "Left Shoulder")
  644. local RiLeg = Instance.new("Part",c)RiLeg.Name = "Right Leg" RiLeg.Size = Vector3.new(1,2,1) Virusify(RiLeg)
  645. makejoint(c.Torso, RHC0, RHC1, c.Torso, RiLeg, "Right Hip")
  646. local LeLeg = Instance.new("Part",c)LeLeg.Name = "Left Leg" LeLeg.Size = Vector3.new(1,2,1) Virusify(LeLeg)
  647. makejoint(c.Torso, LHC0, LHC1, c.Torso, LeLeg, "Left Hip")
  648. c.HumanoidRootPart.CFrame = LastPos*CFrame.new(math.random(-5,5),0,math.random(-5,5))
  649. Resetting = false c.Humanoid.Died:connect(Reset) c.Parent = game.Workspace
  650. end
  651. end
  652. c.Humanoid.Died:connect(Reset)
  653.  
  654. function onKeyPress(inputObject, gameProcessedEvent)
  655. if isTyping == true then return end
  656. if inputObject.KeyCode == Enum.KeyCode.W then ctrl.f = 1 end
  657. if inputObject.KeyCode == Enum.KeyCode.S then ctrl.b = -1 end
  658. if inputObject.KeyCode == Enum.KeyCode.A then ctrl.l = -1 end
  659. if inputObject.KeyCode == Enum.KeyCode.D then ctrl.r = 1 end
  660. end
  661. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  662.  
  663. function onKeyLift(inputObject, gameProcessedEvent)
  664. if isTyping == true then return end
  665. if inputObject.KeyCode == Enum.KeyCode.W then ctrl.f = 0 end
  666. if inputObject.KeyCode == Enum.KeyCode.S then ctrl.b = 0 end
  667. if inputObject.KeyCode == Enum.KeyCode.A then ctrl.l = 0 end
  668. if inputObject.KeyCode == Enum.KeyCode.D then ctrl.r = 0 end
  669. end
  670. game:GetService("UserInputService").InputEnded:connect(onKeyLift)
  671.  
  672. WholeBody = c:clone()
  673.  
  674. function makejoint(paren, co, ci, parto, parti, nam)local gloo = Instance.new("Motor6D")gloo.Name = nam gloo.C0 = co gloo.C1 = ci gloo.Part0 = parto gloo.Part1 = parti gloo.Parent = paren end
  675. idletime = 0
  676. sine = 0
  677. game:GetService("RunService").RenderStepped:connect(function()
  678. c.Humanoid.MaxHealth = c.Humanoid.MaxHealth + math.huge c.Humanoid.Health = c.Humanoid.Health + math.huge
  679. if Resetting == false then
  680. if c:findFirstChild("Head")== nil or c:findFirstChild("Torso")== nil or c:findFirstChild("HumanoidRootPart")== nil or c.HumanoidRootPart:findFirstChild("RootJoint")== nil then
  681. Reset()
  682. else
  683. LastPos = c.HumanoidRootPart.CFrame
  684. end
  685. if c.Torso:findFirstChild("Right Shoulder") == nil or c:findFirstChild("Right Arm")== nil then print("RA")
  686. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Right Arm" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  687. makejoint(c.Torso, RSC0, RSC1, c.Torso, BodyPart, "Right Shoulder")
  688. end
  689. if c.Torso:findFirstChild("Left Shoulder") == nil or c:findFirstChild("Left Arm")== nil then print("LA")
  690. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Left Arm" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  691. makejoint(c.Torso, LSC0, LSC1, c.Torso, BodyPart, "Left Shoulder")
  692. end
  693. if c.Torso:findFirstChild("Right Hip") == nil or c:findFirstChild("Right Leg")== nil then print("RL")
  694. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Right Leg" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  695. makejoint(c.Torso, RHC0, RHC1, c.Torso, BodyPart, "Right Hip")
  696. end
  697. if c.Torso:findFirstChild("Left Hip") == nil or c:findFirstChild("Left Leg")== nil then print("LL")
  698. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Left Leg" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  699. makejoint(c.Torso, LHC0, LHC1, c.Torso, BodyPart, "Left Hip")
  700. end
  701. local r = math.random(1,15)
  702. if r == 1 then S.PlaybackSpeed = math.random(1,50)/10 end
  703. if attack == false and Cloud == false then
  704. local r2 = math.random(1,50)
  705. if r2 == 1 then
  706. lerpz(RJ, "C0", RJC0 * cf(math.random(-5,5)/10, math.random(-5,5)/10, math.random(-5,5)/10) * ang(rd(0), rd(0), rd(0)), 1)-- Y, X, Z
  707. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Y, X, Z
  708. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  709. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  710. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  711. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  712. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  713. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  714. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  715. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  716. end
  717. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)-- Y, X, Z
  718. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Y, X, Z
  719. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  720. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  721. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  722. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  723. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  724. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  725. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  726. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  727. end
  728. end
  729. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement