Advertisement
spacemonkey3591

tttt

Jul 7th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.11 KB | None | 0 0
  1.  
  2. mouse = game.Players.LocalPlayer:GetMouse()
  3. target = game.Players.LocalPlayer.Character.Torso
  4. local graphic = game.Players.LocalPlayer.Character:findFirstChild("Shirt Graphic")
  5. if graphic then
  6. graphicid = graphic.Graphic
  7. end
  8. caninfect = true
  9. invisible = false
  10. function targettool()
  11. local torso = mouse.Target.Parent:findFirstChild("Torso")
  12. local humanoid = mouse.Target.Parent:findFirstChild("Humanoid")
  13. if torso and humanoid then
  14. target = torso
  15. print("You are now targetting "..torso.Parent.Name)
  16. end
  17. end
  18. mouse.Button1Down:connect(targettool)
  19. function inv(key)
  20. if key == "q" then
  21. invisible = not invisible
  22. if invisible then
  23. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 40
  24. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  25. if v.ClassName == "Part" then
  26. if v.Name == "HumanoidRootPart" then
  27.  
  28. else
  29. v.Transparency = 1
  30. end
  31. end
  32. game.Players.LocalPlayer.Character.Head.face.Transparency = 1
  33. for q,w in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  34. if w.ClassName == "Shirt Graphic" then
  35. w.Graphic = "rbxassetid://0"
  36. end
  37. end
  38. for e,r in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  39. if r.ClassName == "Accessory" or r.ClassName == "Hat" then
  40. r.Handle.Transparency = 1
  41. end
  42. end
  43. end
  44. end
  45. if not invisible then
  46. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  47. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  48. if v.ClassName == "Part" then
  49. if v.Name == "HumanoidRootPart" then
  50.  
  51. else
  52. v.Transparency = 0
  53. end
  54. end
  55. game.Players.LocalPlayer.Character.Head.face.Transparency = 0
  56. for q,w in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  57. if w.ClassName == "Shirt Graphic" then
  58. w.Graphic = graphicid
  59. end
  60. end
  61. for e,r in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  62. if r.ClassName == "Accessory" or r.ClassName == "Hat" then
  63. r.Handle.Transparency = 0
  64. end
  65. end
  66. end
  67. end
  68. end
  69. end
  70. mouse.KeyDown:connect(inv)
  71. function zawmbie(part)
  72. if part.Parent then
  73. torso = part.Parent:findFirstChild("Torso")
  74. humanoid = part.Parent:findFirstChild("Humanoid")
  75. end
  76. if caninfect and torso and humanoid ~= nil and part.Parent ~= nil then
  77. if torso.Parent.Name == "IM DEAD" then
  78. --nono
  79. else
  80. torso.Parent.Archivable = true
  81. local zombieclone = torso.Parent:Clone()
  82. zombieclone.Name = "IM DEAD"
  83. torso.Anchored = true
  84. humanoid.Health = 0
  85. for i,v in pairs(torso.Parent:GetChildren()) do
  86. if v.ClassName == "Part" then
  87. v.CFrame = v.CFrame * CFrame.new(0,50,0)
  88. v.Anchored = true
  89. v.Transparency = 1
  90. end
  91. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  92. v:destroy()
  93. end
  94. end
  95. local infectionsound = Instance.new("Sound", torso.Parent.Head)
  96. infectionsound.SoundId = "rbxassetid://144540754"
  97. infectionsound.Volume = 10
  98. infectionsound:Play()
  99. zombieclone.Parent = workspace.Base
  100. local function die()
  101. wait(5)
  102. zombieclone:destroy()
  103. end
  104. zombieclone.Humanoid.Died:connect(die)
  105. local face = zombieclone.Head:findFirstChild("face")
  106. zombieclone.Torso.CFrame = zombieclone.Torso.CFrame * CFrame.new(4,0,4)
  107. zombieclone.Humanoid.MaxHealth = humanoid.MaxHealth * 2
  108. zombieclone.Humanoid.Health = zombieclone.Humanoid.MaxHealth
  109. zombieclone.Humanoid.WalkSpeed = 1
  110. local rarmfornow = zombieclone.Torso:findFirstChild("Right Shoulder")
  111. local larmfornow = zombieclone.Torso:findFirstChild("Left Shoulder")
  112. if rarmfornow ~= nil then
  113. for i = 1,2 do
  114. wait()
  115. rarmfornow.C0 = rarmfornow.C0 * CFrame.Angles(0,0,0.09)
  116. end
  117. for i = 1,3 do
  118. wait()
  119. rarmfornow.C0 = rarmfornow.C0 * CFrame.Angles(0,0,0.11)
  120. end
  121. for i = 1,6 do
  122. wait()
  123. rarmfornow.C0 = rarmfornow.C0 * CFrame.Angles(0,0,0.12)
  124. end
  125. for i = 1,3 do
  126. wait()
  127. rarmfornow.C0 = rarmfornow.C0 * CFrame.Angles(0,0,0.11)
  128. end
  129. for i = 1,2 do
  130. wait()
  131. rarmfornow.C0 = rarmfornow.C0 * CFrame.Angles(0,0,0.09)
  132. end
  133. end
  134. if larmfornow ~= nil then
  135. for i = 1,2 do
  136. wait()
  137. larmfornow.C0 = larmfornow.C0 * CFrame.Angles(0,0,-0.09)
  138. end
  139. for i = 1,3 do
  140. wait()
  141. larmfornow.C0 = larmfornow.C0 * CFrame.Angles(0,0,-0.11)
  142. end
  143. for i = 1,6 do
  144. wait()
  145. larmfornow.C0 = larmfornow.C0 * CFrame.Angles(0,0,-0.12)
  146. end
  147. for i = 1,3 do
  148. wait()
  149. larmfornow.C0 = larmfornow.C0 * CFrame.Angles(0,0,-0.11)
  150. end
  151. for i = 1,2 do
  152. wait()
  153. larmfornow.C0 = larmfornow.C0 * CFrame.Angles(0,0,-0.09)
  154. end
  155. end
  156. wait(3)
  157. zombieclone.Torso.Touched:connect(zawmbie)
  158. canchange = true
  159. function change()
  160. if canchange then
  161. canchange = false
  162. ply = game.Players:GetPlayers()[math.random(game.Players.NumPlayers)]
  163. local plytorso = ply.Character:findFirstChild("Torso")
  164. local plyhumanoid = ply.Character:findFirstChild("Humanoid")
  165. if ply.Name == game.Players.LocalPlayer.Name or not plyhumanoid or not plytorso or plytorso.Transparency == 1 then
  166. change()
  167. else
  168. target = ply.Character.Torso
  169. print(target.Parent.Name)
  170. end
  171. wait(5)
  172. canchange = true
  173. end
  174. end
  175. zombieclone.Torso.Touched:connect(change)
  176. while true do
  177. wait()
  178. for i,v in pairs(game.Players:GetChildren()) do
  179. local char = v:findFirstChild("Character")
  180. if char ~= nil then
  181. local ws = v.Character:findFirstChild("Humanoid")
  182. if ws ~= nil then
  183. if ws.WalkSpeed >= 41 then
  184. ws.WalkSpeed = 16
  185. end
  186. end
  187. end
  188. end
  189. local targethum = target.Parent:findFirstChild("Humanoid")
  190. if targethum ~= nil then
  191. for i,v in pairs(workspace.Base:GetChildren()) do
  192. if v.ClassName == "Model" and v.Name == "IM DEAD" then
  193. if zombieclone.Humanoid.WalkSpeed <= 17 then
  194. zombieclone.Humanoid.WalkSpeed = zombieclone.Humanoid.WalkSpeed + 1
  195. end
  196. if zombieclone.Humanoid.WalkSpeed >= 17 then
  197. zombieclone.Humanoid.WalkSpeed = 17
  198. end
  199. v.Humanoid.WalkToPoint = target.Position
  200. local rleg = zombieclone.Torso:findFirstChild("Right Hip")
  201. local lleg = zombieclone.Torso:findFirstChild("Left Hip")
  202. if rleg ~= nil and lleg ~= nil then
  203. for i = 1,5 do
  204. wait()
  205. lleg.C0 = lleg.C0 * CFrame.Angles(0,0,0.13)
  206. rleg.C0 = rleg.C0 * CFrame.Angles(0,0,0.13)
  207. end
  208. v.Humanoid.WalkToPoint = target.Position
  209. for i = 1,10 do
  210. wait()
  211. lleg.C0 = lleg.C0 * CFrame.Angles(0,0,-0.13)
  212. rleg.C0 = rleg.C0 * CFrame.Angles(0,0,-0.13)
  213. end
  214. v.Humanoid.WalkToPoint = target.Position
  215. for i = 1,5 do
  216. wait()
  217. lleg.C0 = lleg.C0 * CFrame.Angles(0,0,0.13)
  218. rleg.C0 = rleg.C0 * CFrame.Angles(0,0,0.13)
  219. end
  220. end
  221. end
  222. end
  223. end
  224. end
  225. end
  226. end
  227. end
  228. game.Players.LocalPlayer.Character.Torso.Touched:connect(zawmbie)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement