Advertisement
ericdesouza

The crazy zombie roblox script

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