Advertisement
ERROR_CODE

My nightmare 4

Apr 20th, 2024 (edited)
860
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 52.50 KB | None | 0 0
  1. if game.PlaceId ~= 337856574 then
  2. ScreenGui1 = Instance.new("ScreenGui")
  3. QuestionFrame = Instance.new("Frame")
  4. QuestionLabel = Instance.new("TextLabel")
  5. QuestionLabelUICorner = Instance.new("UICorner")
  6. QuestionFrameUICorner = Instance.new("UICorner")
  7. TextLabel = Instance.new("TextLabel")
  8. TextLabelUICorner = Instance.new("UICorner")
  9. YesButton = Instance.new("TextButton")
  10. YesButtonUICorner = Instance.new("UICorner")
  11. NoButton = Instance.new("TextButton")
  12. NoButtonUICorner = Instance.new("UICorner")
  13. Blur = Instance.new("BlurEffect")
  14. Blur.Parent = game:GetService("Lighting")
  15.  
  16. Blur.Size = 100
  17.  
  18. ScreenGui1.Parent = game.CoreGui
  19.  
  20. QuestionFrame.Parent = ScreenGui1
  21. QuestionFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  22. QuestionFrame.Position = UDim2.new(0.3, 0, 0.2, 0)
  23. QuestionFrame.Size = UDim2.new(0, 400, 0, 250)
  24.  
  25. QuestionLabel.Name = "QuestionLabel"
  26. QuestionLabel.Parent = QuestionFrame
  27. QuestionLabel.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  28. QuestionLabel.Size = UDim2.new(0, 400, 0, 25)
  29. QuestionLabel.Font = Enum.Font.IndieFlower
  30. QuestionLabel.Text = "Teleport"
  31. QuestionLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  32. QuestionLabel.TextSize = 30
  33.  
  34. QuestionFrameUICorner.Parent = QuestionFrame
  35.  
  36. QuestionLabelUICorner.Parent = QuestionLabel
  37.  
  38. TextLabel.Name = "TextLabel"
  39. TextLabel.Parent = QuestionFrame
  40. TextLabel.BackgroundTransparency = 1
  41. TextLabel.Position = UDim2.new(0.05, 0, 0.1, 0)
  42. TextLabel.Size = UDim2.new(0, 350, 0, 150)
  43. TextLabel.Font = Enum.Font.IndieFlower
  44. TextLabel.Text = "To play in 'My nightmare 4' you need to bee in special game. If you press on 'Yes' button you will teleport in this game, after that you need to re-execue script."
  45. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  46. TextLabel.TextSize = 30
  47. TextLabel.TextWrapped = true
  48. TextLabel.TextScaled = true
  49.  
  50. TextLabelUICorner.Parent = TextLabel
  51.  
  52. NoButton.Name = "NoButton"
  53. NoButton.Parent = QuestionFrame
  54. NoButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  55. NoButton.Position = UDim2.new(0.07, 0, 0.7, 0)
  56. NoButton.Size = UDim2.new(0, 125, 0, 50)
  57. NoButton.Font = Enum.Font.IndieFlower
  58. NoButton.Text = "No"
  59. NoButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  60. NoButton.TextScaled = true
  61. NoButton.TextSize = 14.000
  62. NoButton.TextWrapped = true
  63. NoButton.MouseButton1Down:connect(function()
  64. ScreenGui1:Destroy()
  65. Blur.Size = 0
  66. end)
  67. NoButtonUICorner.Parent = NoButton
  68.  
  69. YesButton.Name = "YesButton"
  70. YesButton.Parent = QuestionFrame
  71. YesButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  72. YesButton.Position = UDim2.new(0.6, 0, 0.7, 0)
  73. YesButton.Size = UDim2.new(0, 125, 0, 50)
  74. YesButton.Font = Enum.Font.IndieFlower
  75. YesButton.Text = "Yes"
  76. YesButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  77. YesButton.TextScaled = true
  78. YesButton.TextSize = 14.000
  79. YesButton.TextWrapped = true
  80. YesButton.MouseButton1Down:connect(function()
  81. TeleportService = game:GetService("TeleportService")
  82. PId = 337856574
  83. JobId = game.JobId
  84. if #game.Players:GetPlayers() <= 1 then
  85.         game.Players.LocalPlayer:Kick("Teleporting...")
  86.         wait()
  87.         TeleportService:Teleport(PId, game.Players.LocalPlayer)
  88.     else
  89.         TeleportService:TeleportToPlaceInstance(PId, JobId, game.Players.LocalPlayer)
  90.     end
  91. end)
  92. YesButtonUICorner.Parent = YesButton
  93. else
  94. function createZombie()
  95. function sandbox(var,func)
  96.     local env = getfenv(func)
  97.     local newenv = setmetatable({},{
  98.         __index = function(self,k)
  99.             if k=="script" then
  100.                 return var
  101.             else
  102.                 return env[k]
  103.             end
  104.         end,
  105.     })
  106.     setfenv(func,newenv)
  107.     return func
  108. end
  109. cors = {}
  110. mas = Instance.new("Model",game:GetService("Lighting"))
  111. Model0 = Instance.new("Model")
  112. Script1 = Instance.new("Script")
  113. Part1AA = Instance.new("Part")
  114. MaskPart = Instance.new("Part")
  115. Mask = Instance.new("SpecialMesh")
  116. SpecialMesh2 = Instance.new("SpecialMesh")
  117. Vector3Value3 = Instance.new("Vector3Value")
  118. Motor6D4 = Instance.new("Motor6D")
  119. Decal5 = Instance.new("Decal")
  120. Decal5A = Instance.new("Decal")
  121. Decal5B = Instance.new("Decal")
  122. Decal5C = Instance.new("Decal")
  123. Decal5D = Instance.new("Decal")
  124. Decal5E = Instance.new("Decal")
  125. Decal5F = Instance.new("Decal")
  126. Decal5G = Instance.new("Decal")
  127. Decal5H = Instance.new("Decal")
  128. Decal6H = Instance.new("Decal")
  129. Decal7H = Instance.new("Decal")
  130. Decal8H = Instance.new("Decal")
  131. Decal9H = Instance.new("Decal")
  132. Decal10H = Instance.new("Decal")
  133. Decal11H = Instance.new("Decal")
  134. Decal12H = Instance.new("Decal")
  135. Decal13H = Instance.new("Decal")
  136. Decal14H = Instance.new("Decal")
  137. Decal15H = Instance.new("Decal")
  138. Decal16H = Instance.new("Decal")
  139. Sound6 = Instance.new("Sound")
  140. Sound7 = Instance.new("Sound")
  141. Sound8 = Instance.new("Sound")
  142. Sound9 = Instance.new("Sound")
  143. Sound10 = Instance.new("Sound")
  144. Part11 = Instance.new("Part")
  145. Vector3Value12 = Instance.new("Vector3Value")
  146. BodyColors13 = Instance.new("BodyColors")
  147. MeshPart14 = Instance.new("MeshPart")
  148. Vector3Value15 = Instance.new("Vector3Value")
  149. Motor6D16 = Instance.new("Motor6D")
  150. Script17 = Instance.new("Script")
  151. Humanoid18 = Instance.new("Humanoid")
  152. Script19 = Instance.new("Script")
  153. MeshPart20 = Instance.new("MeshPart")
  154. Vector3Value21 = Instance.new("Vector3Value")
  155. Motor6D22 = Instance.new("Motor6D")
  156. MeshPart23 = Instance.new("MeshPart")
  157. Vector3Value24 = Instance.new("Vector3Value")
  158. Motor6D25 = Instance.new("Motor6D")
  159. MeshPart26 = Instance.new("MeshPart")
  160. Vector3Value27 = Instance.new("Vector3Value")
  161. Motor6D28 = Instance.new("Motor6D")
  162. MeshPart29 = Instance.new("MeshPart")
  163. Vector3Value30 = Instance.new("Vector3Value")
  164. Motor6D31 = Instance.new("Motor6D")
  165. MeshPart32 = Instance.new("MeshPart")
  166. Vector3Value33 = Instance.new("Vector3Value")
  167. Motor6D34 = Instance.new("Motor6D")
  168. MeshPart35 = Instance.new("MeshPart")
  169. Vector3Value36 = Instance.new("Vector3Value")
  170. Motor6D37 = Instance.new("Motor6D")
  171. MeshPart38 = Instance.new("MeshPart")
  172. Vector3Value39 = Instance.new("Vector3Value")
  173. Motor6D40 = Instance.new("Motor6D")
  174. MeshPart41 = Instance.new("MeshPart")
  175. Vector3Value42 = Instance.new("Vector3Value")
  176. Motor6D43 = Instance.new("Motor6D")
  177. Script44 = Instance.new("Script")
  178. MeshPart45 = Instance.new("MeshPart")
  179. Vector3Value46 = Instance.new("Vector3Value")
  180. Motor6D47 = Instance.new("Motor6D")
  181. MeshPart48 = Instance.new("MeshPart")
  182. Vector3Value49 = Instance.new("Vector3Value")
  183. Motor6D50 = Instance.new("Motor6D")
  184. MeshPart51 = Instance.new("MeshPart")
  185. Vector3Value52 = Instance.new("Vector3Value")
  186. Motor6D53 = Instance.new("Motor6D")
  187. MeshPart54 = Instance.new("MeshPart")
  188. Vector3Value55 = Instance.new("Vector3Value")
  189. Motor6D56 = Instance.new("Motor6D")
  190. MeshPart57 = Instance.new("MeshPart")
  191. Vector3Value58 = Instance.new("Vector3Value")
  192. Motor6D59 = Instance.new("Motor6D")
  193. Script60 = Instance.new("Script")
  194. Script61 = Instance.new("Script")
  195. Script62 = Instance.new("Script")
  196. StringValue63 = Instance.new("StringValue")
  197. StringValue64 = Instance.new("StringValue")
  198. Animation65 = Instance.new("Animation")
  199. StringValue66 = Instance.new("StringValue")
  200. Animation67 = Instance.new("Animation")
  201. StringValue68 = Instance.new("StringValue")
  202. Animation69 = Instance.new("Animation")
  203. NumberValue70 = Instance.new("NumberValue")
  204. Animation71 = Instance.new("Animation")
  205. NumberValue72 = Instance.new("NumberValue")
  206. StringValue73 = Instance.new("StringValue")
  207. Animation74 = Instance.new("Animation")
  208. StringValue75 = Instance.new("StringValue")
  209. Animation76 = Instance.new("Animation")
  210. StringValue77 = Instance.new("StringValue")
  211. Animation78 = Instance.new("Animation")
  212. StringValue79 = Instance.new("StringValue")
  213. Animation80 = Instance.new("Animation")
  214. StringValue81 = Instance.new("StringValue")
  215. Animation82 = Instance.new("Animation")
  216. StringValue83 = Instance.new("StringValue")
  217. Animation84 = Instance.new("Animation")
  218. Script85 = Instance.new("Script")
  219. Model0.Name = "Nightmare"
  220. Model0.Parent = mas
  221. Part1AA.Name = "Head"
  222. Part1AA.Parent = Model0
  223. Part1AA.CFrame = CFrame.new(-0.695644557, 4.56509781, -2.19861078, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  224. Part1AA.Orientation = Vector3.new(0, 90.1399994, 0)
  225. Part1AA.Position = Vector3.new(-0.695644557, 50, -2.19861078)
  226. Part1AA.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  227. Part1AA.Color = Color3.new(0, 0, 0)
  228. Part1AA.Size = Vector3.new(2, 2, 2)
  229. Part1AA.BottomSurface = Enum.SurfaceType.Smooth
  230. Part1AA.BrickColor = BrickColor.new("Artichoke")
  231. Part1AA.TopSurface = Enum.SurfaceType.Smooth
  232. Part1AA.brickColor = BrickColor.new("Artichoke")
  233. Part1AA.FormFactor = Enum.FormFactor.Custom
  234. Part1AA.formFactor = Enum.FormFactor.Custom
  235. SpecialMesh2.Parent = Part1AA
  236. SpecialMesh2.MeshId = "http://www.roblox.com/asset?id=9584609733"
  237. --419776358
  238. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  239. SpecialMesh2.Scale = Vector3.new(6, 6, 6)
  240. MaskPart.Parent = Part1AA
  241. MaskPart.Anchored = true
  242. MaskPart.Size = Vector3.new(1, 1, 1)
  243. MaskPart.CanCollide = true
  244. MaskPart.Position = Vector3.new(-0.695644557, 5, -2.19861078)
  245. Mask.Parent = MaskPart
  246. Mask.Scale = Vector3.new(6, 6, 6)
  247. Mask.MeshId = "rbxassetid://11403058433"
  248. Mask.TextureId = "rbxassetid://11403058503"
  249. Vector3Value3.Name = "OriginalSize"
  250. Vector3Value3.Parent = Part1AA
  251. Vector3Value3.Value = Vector3.new(1, 1, 1)
  252. Motor6D4.Name = "Neck"
  253. Motor6D4.Parent = Part1AA
  254. Motor6D4.C0 = CFrame.new(0.000338107347, 0.806032121, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  255. Motor6D4.C1 = CFrame.new(-2.72095203e-05, -0.565615535, 0.00386685133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  256. Motor6D4.Part0 = MeshPart14
  257. Motor6D4.Part1 = Part1AA
  258. Motor6D4.part1 = Part1AA
  259. Decal5.Parent = Part1AA
  260. Decal5.Texture = "http://www.roblox.com/asset/?id=9584609787"
  261. --2939749348
  262. Sound6.Name = "Moan"
  263. Sound6.Parent = Part1AA
  264. Sound6.SoundId = "rbxassetid://8248226944"
  265. Sound6.Volume = 1
  266. Sound7.Name = "Moan2"
  267. Sound7.Parent = Part1AA
  268. Sound7.SoundId = "rbxassetid://5786242867"
  269. Sound7.Volume = 1
  270. Sound8.Name = "Moan3"
  271. Sound8.Parent = Part1AA
  272. Sound8.SoundId = "rbxassetid://5721184414"
  273. Sound8.Volume = 1
  274. Sound9.Parent = Part1AA
  275. Sound9.SoundId = "rbxassetid://9067505447"
  276. Sound9.Volume = 1
  277. Sound10.Name = "Death"
  278. Sound10.Parent = Part1AA
  279. Part11.Name = "HumanoidRootPart"
  280. Part11.Parent = Model0
  281. Part11.CFrame = CFrame.new(-0.691856027, 2.32588005, -2.1985929, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  282. Part11.Orientation = Vector3.new(0, 90.1399994, 0)
  283. Part11.Position = Vector3.new(133.86, 22, -151.56)
  284. Part11.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  285. Part11.Transparency = 1
  286. Part11.Size = Vector3.new(2, 2, 1)
  287. Part11.CanCollide = false
  288. Vector3Value12.Name = "OriginalSize"
  289. Vector3Value12.Parent = Part11
  290. Vector3Value12.Value = Vector3.new(2, 2, 1)
  291. BodyColors13.Parent = Model0
  292. BodyColors13.HeadColor = BrickColor.new("Really Black")
  293. BodyColors13.HeadColor3 = Color3.new(0, 0, 0)
  294. BodyColors13.LeftArmColor = BrickColor.new("Really Black")
  295. BodyColors13.LeftArmColor3 = Color3.new(0, 0, 0)
  296. BodyColors13.LeftLegColor = BrickColor.new("Really Black")
  297. BodyColors13.LeftLegColor3 = Color3.new(0, 0, 0)
  298. BodyColors13.RightArmColor = BrickColor.new("Really Black")
  299. BodyColors13.RightArmColor3 = Color3.new(0, 0, 0)
  300. BodyColors13.RightLegColor = BrickColor.new("Really Black")
  301. BodyColors13.RightLegColor3 = Color3.new(0, 0, 0)
  302. BodyColors13.TorsoColor = BrickColor.new("Really Black")
  303. BodyColors13.TorsoColor3 = Color3.new(0, 0, 0)
  304. MeshPart14.Name = "UpperTorso"
  305. MeshPart14.Parent = Model0
  306. MeshPart14.Transparency = 1
  307. local RightLowerArmFire = Instance.new("Fire", MeshPart14)
  308. RightLowerArmFire.Size = 50
  309. RightLowerArmFire.Color = Color3.new(0, 0, 0)
  310. RightLowerArmFire.Heat = 50
  311. Decal5A.Parent = MeshPart14
  312. Decal5A.Texture = "http://www.roblox.com/asset/?id=15507643492"
  313. MeshPart14.CFrame = CFrame.new(-0.676263928, 3.1934495, -2.19829226, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  314. MeshPart14.Orientation = Vector3.new(0, 90.1399994, 0)
  315. MeshPart14.Position = Vector3.new(-0.676263928, 3.1934495, -2.19829226)
  316. MeshPart14.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  317. MeshPart14.Color = Color3.new(0, 0, 0)
  318. MeshPart14.Size = Vector3.new(2.00029206, 1.60093355, 1.0005368)
  319. MeshPart14.BrickColor = BrickColor.new("Dark green")
  320. MeshPart14.brickColor = BrickColor.new("Dark green")
  321. Vector3Value15.Name = "OriginalSize"
  322. Vector3Value15.Parent = MeshPart14
  323. Vector3Value15.Value = Vector3.new(2.00029206, 1.60093355, 1.0005368)
  324. Motor6D16.Name = "Waist"
  325. Motor6D16.Parent = MeshPart14
  326. Motor6D16.C0 = CFrame.new(0.000280171633, 0.537143946, -0.0142721087, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  327. Motor6D16.C1 = CFrame.new(0.000338107347, -0.463463932, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  328. Motor6D16.Part0 = MeshPart41
  329. Motor6D16.Part1 = MeshPart14
  330. Motor6D16.part1 = MeshPart14
  331. Script17.Name = "Damage Script"
  332. Script17.Parent = MeshPart14
  333. table.insert(cors,sandbox(Script17,function()
  334. function onTouched(hit)
  335.         local human = hit.Parent:findFirstChild("Humanoid")
  336.         if (human ~= nil) then
  337.                 human.Health = human.Health - 999
  338.         end
  339. end
  340. script.Parent.Touched:connect(onTouched)
  341. end))
  342. Humanoid18.Name = "Zombie"
  343. Humanoid18.Parent = Model0
  344. Humanoid18.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.Subject
  345. Humanoid18.Health = 125
  346. Humanoid18.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff
  347. Humanoid18.HipHeight = 1.3500000238419
  348. Humanoid18.LeftLeg = MeshPart45
  349. Humanoid18.MaxHealth = 125
  350. Humanoid18.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  351. Humanoid18.RigType = Enum.HumanoidRigType.R6
  352. Humanoid18.RightLeg = MeshPart20
  353. Humanoid18.Torso = Part11
  354. Humanoid18.WalkSpeed = 16
  355. Humanoid18.maxHealth = 125
  356. Script19.Parent = Model0
  357. table.insert(cors,sandbox(Script19,function()
  358. local larm = script.Parent:FindFirstChild("HumanoidRootPart")
  359. local rarm = script.Parent:FindFirstChild("HumanoidRootPart")
  360. local char = script.Parent
  361. local pathFinder = game:GetService("PathfindingService")
  362. local path = pathFinder:CreatePath()
  363.  
  364. function findNearestTorso(pos)
  365.     local list = game.Workspace:children()
  366.     local torso = nil
  367.     local dist = 100
  368.     local temp = nil
  369.     local human = nil
  370.     local temp2 = nil
  371.     for x = 1, #list do
  372.         temp2 = list[x]
  373.         if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  374.             temp = temp2:findFirstChild("HumanoidRootPart")
  375.             human = temp2:findFirstChild("Humanoid")
  376.             if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  377.                 if (temp.Position - pos).magnitude < dist then
  378.                     torso = temp
  379.                     dist = (temp.Position - pos).magnitude
  380.                 end
  381.             end
  382.         end
  383.     end
  384.     return torso
  385. end
  386.  
  387. while true do
  388.     wait()
  389.     local target = findNearestTorso(script.Parent.HumanoidRootPart.Position)
  390.     if target ~= nil then
  391.         path:ComputeAsync(char.HumanoidRootPart.Position, target.Position)
  392.  
  393.         for i, wayPoint in pairs(path:GetWaypoints()) do
  394.             char.Zombie:MoveTo(wayPoint.Position)
  395.  
  396.             if wayPoint.Action == Enum.PathWaypointAction.Jump then
  397.                 char.Zombie:ChangeState(Enum.HumanoidStateType.Jumping)
  398.             end
  399.  
  400.             char.Zombie.MoveToFinished:wait()
  401.         end
  402.     end
  403. end
  404.  
  405. end))
  406. MeshPart20.Name = "RightUpperLeg"
  407. MeshPart20.Parent = Model0
  408. MeshPart20.Transparency = 1
  409. Decal5B.Parent = MeshPart20
  410. Decal5B.Texture = "http://www.roblox.com/asset/?id=15507643492"
  411. MeshPart20.CFrame = CFrame.new(-0.67828238, 1.46466565, -2.69960117, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  412. MeshPart20.Orientation = Vector3.new(0, 90.1399994, 0)
  413. MeshPart20.Position = Vector3.new(-0.67828238, 1.46466565, -2.69960117)
  414. MeshPart20.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  415. MeshPart20.Color = Color3.new(0, 0, 0)
  416. MeshPart20.Size = Vector3.new(1.00027561, 1.5362649, 1.00092912)
  417. MeshPart20.BrickColor = BrickColor.new("Bright blue")
  418. MeshPart20.CanCollide = false
  419. MeshPart20.brickColor = BrickColor.new("Bright blue")
  420. Vector3Value21.Name = "OriginalSize"
  421. Vector3Value21.Parent = MeshPart20
  422. Vector3Value21.Value = Vector3.new(1.00027561, 1.5362649, 1.00092912)
  423. Motor6D22.Name = "RightHip"
  424. Motor6D22.Parent = MeshPart20
  425. Motor6D22.C0 = CFrame.new(0.505080223, -0.243262246, 0.00102789141, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  426. Motor6D22.C1 = CFrame.new(0.00382620096, 0.484913796, 0.000486815348, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  427. Motor6D22.Part0 = MeshPart41
  428. Motor6D22.Part1 = MeshPart20
  429. Motor6D22.part1 = MeshPart20
  430. MeshPart23.Name = "RightUpperArm"
  431. MeshPart23.Parent = Model0
  432. MeshPart23.Transparency = 1
  433. MeshPart23.CFrame = CFrame.new(-0.685997844, 3.29312539, -3.69646788, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  434. MeshPart23.Orientation = Vector3.new(0, 90.1399994, 0)
  435. MeshPart23.Position = Vector3.new(-0.685997844, 3.29312539, -3.69646788)
  436. MeshPart23.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  437. MeshPart23.Color = Color3.new(0, 0, 0)
  438. MeshPart23.Size = Vector3.new(1.00027633, 1.39554, 1.00025082)
  439. MeshPart23.BrickColor = BrickColor.new("Cool yellow")
  440. MeshPart23.CanCollide = false
  441. Decal5C.Parent = MeshPart23
  442. Decal5C.Texture = "http://www.roblox.com/asset/?id=15507643492"
  443. MeshPart23.brickColor = BrickColor.new("Cool yellow")
  444. Vector3Value24.Name = "OriginalSize"
  445. Vector3Value24.Parent = MeshPart23
  446. Vector3Value24.Value = Vector3.new(1.00027633, 1.39554, 1.00025082)
  447. Motor6D25.Name = "RightShoulder"
  448. Motor6D25.Parent = MeshPart23
  449. Motor6D25.C0 = CFrame.new(1.25031853, 0.5565539, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  450. Motor6D25.C1 = CFrame.new(-0.24787569, 0.456878304, -0.00944012403, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  451. Motor6D25.Part0 = MeshPart14
  452. Motor6D25.Part1 = MeshPart23
  453. Motor6D25.part1 = MeshPart23
  454. MeshPart26.Name = "RightLowerLeg"
  455. MeshPart26.Parent = Model0
  456. MeshPart26.Transparency = 1
  457. MeshPart26.CFrame = CFrame.new(-0.678020656, 0.910310864, -2.69960189, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  458. MeshPart26.Orientation = Vector3.new(0, 90.1399994, 0)
  459. MeshPart26.Position = Vector3.new(-0.678020656, 0.910310864, -2.69960189)
  460. MeshPart26.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  461. MeshPart26.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  462. MeshPart26.Size = Vector3.new(1.00027585, 1.48964536, 1.00032854)
  463. MeshPart26.BrickColor = BrickColor.new("Bright blue")
  464. MeshPart26.CanCollide = false
  465. Decal5D.Parent = MeshPart26
  466. Decal5D.Texture = "http://www.roblox.com/asset/?id=15507643492"
  467. MeshPart26.brickColor = BrickColor.new("Bright blue")
  468. Vector3Value27.Name = "OriginalSize"
  469. Vector3Value27.Parent = MeshPart26
  470. Vector3Value27.Value = Vector3.new(1.00027585, 1.48964536, 1.00032854)
  471. Motor6D28.Name = "RightKnee"
  472. Motor6D28.Parent = MeshPart26
  473. Motor6D28.C0 = CFrame.new(0.00382620096, -0.265086174, 0.000426991843, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  474. Motor6D28.C1 = CFrame.new(0.00382620096, 0.289268613, 0.000145851634, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  475. Motor6D28.Part0 = MeshPart20
  476. Motor6D28.Part1 = MeshPart26
  477. Motor6D28.part1 = MeshPart26
  478. MeshPart29.Name = "RightLowerArm"
  479. MeshPart29.Parent = Model0
  480. MeshPart29.Transparency = 1
  481. Decal5E.Parent = MeshPart29
  482. Decal5E.Texture = "http://www.roblox.com/asset/?id=15507643492"
  483. MeshPart29.CFrame = CFrame.new(-0.685555518, 2.90703535, -3.69646835, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  484. MeshPart29.Orientation = Vector3.new(0, 90.1399994, 0)
  485. MeshPart29.Position = Vector3.new(-0.685555518, 2.90703535, -3.69646835)
  486. MeshPart29.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  487. MeshPart29.Color = Color3.new(0.992157, 0.917647, 0.552941)
  488. MeshPart29.Size = Vector3.new(1.00027657, 1.26567209, 1.00025082)
  489. MeshPart29.BrickColor = BrickColor.new("Cool yellow")
  490. MeshPart29.CanCollide = false
  491. MeshPart29.brickColor = BrickColor.new("Cool yellow")
  492. Vector3Value30.Name = "OriginalSize"
  493. Vector3Value30.Parent = MeshPart29
  494. Vector3Value30.Value = Vector3.new(1.00027657, 1.26567209, 1.00025082)
  495. Motor6D31.Name = "RightElbow"
  496. Motor6D31.Parent = MeshPart29
  497. Motor6D31.C0 = CFrame.new(0.00214397907, -0.263139546, -0.00944012403, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  498. Motor6D31.C1 = CFrame.new(0.00214457512, 0.122950554, -0.00989595056, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  499. Motor6D31.Part0 = MeshPart23
  500. Motor6D31.Part1 = MeshPart29
  501. Motor6D31.part1 = MeshPart29
  502. MeshPart32.Name = "RightHand"
  503. MeshPart32.Parent = Model0
  504. MeshPart32.Transparency = 1
  505. Decal5F.Parent = MeshPart32
  506. Decal5F.Texture = "http://www.roblox.com/asset/?id=15507643492"
  507. MeshPart32.CFrame = CFrame.new(-0.680041432, 2.1668787, -3.69776106, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  508. MeshPart32.Orientation = Vector3.new(0, 90.1399994, 0)
  509. MeshPart32.Position = Vector3.new(-0.680041432, 2.1668787, -3.69776106)
  510. MeshPart32.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  511. MeshPart32.Color = Color3.new(0.992157, 0.917647, 0.552941)
  512. MeshPart32.Size = Vector3.new(0.999299049, 0.335255772, 1.00029743)
  513. MeshPart32.BrickColor = BrickColor.new("Cool yellow")
  514. MeshPart32.CanCollide = false
  515. MeshPart32.brickColor = BrickColor.new("Cool yellow")
  516. Vector3Value33.Name = "OriginalSize"
  517. Vector3Value33.Parent = MeshPart32
  518. Vector3Value33.Value = Vector3.new(0.999299049, 0.335255772, 1.00029743)
  519. Motor6D34.Name = "RightWrist"
  520. Motor6D34.Parent = MeshPart32
  521. Motor6D34.C0 = CFrame.new(0.00214457512, -0.682049513, -0.00989595056, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  522. Motor6D34.C1 = CFrame.new(0.000865101814, 0.058106944, -0.0154390335, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  523. Motor6D34.Part0 = MeshPart29
  524. Motor6D34.Part1 = MeshPart32
  525. Motor6D34.part1 = MeshPart32
  526. MeshPart35.Name = "RightFoot"
  527. MeshPart35.Parent = Model0
  528. MeshPart35.Transparency = 1
  529. Decal5G.Parent = MeshPart35
  530. Decal5G.Texture = "http://www.roblox.com/asset/?id=15507643492"
  531. MeshPart35.CFrame = CFrame.new(-0.677906275, 0.167736173, -2.69441152, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  532. MeshPart35.Orientation = Vector3.new(0, 90.1399994, 0)
  533. MeshPart35.Position = Vector3.new(-0.677906275, 0.167736173, -2.69441152)
  534. MeshPart35.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  535. MeshPart35.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  536. MeshPart35.Size = Vector3.new(1.00063133, 0.335407376, 1.00020337)
  537. MeshPart35.BrickColor = BrickColor.new("Bright blue")
  538. MeshPart35.CanCollide = false
  539. MeshPart35.brickColor = BrickColor.new("Bright blue")
  540. Vector3Value36.Name = "OriginalSize"
  541. Vector3Value36.Parent = MeshPart35
  542. Vector3Value36.Value = Vector3.new(1.00063133, 0.335407376, 1.00020337)
  543. Motor6D37.Name = "RightAnkle"
  544. Motor6D37.Parent = MeshPart35
  545. Motor6D37.C0 = CFrame.new(0.00382620096, -0.710731506, 0.000283418223, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  546. Motor6D37.C1 = CFrame.new(0.00901681185, 0.0318431854, 0.000155551359, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  547. Motor6D37.Part0 = MeshPart26
  548. Motor6D37.Part1 = MeshPart35
  549. Motor6D37.part1 = MeshPart35
  550. MeshPart38.Name = "LeftFoot"
  551. MeshPart38.Parent = Model0
  552. MeshPart38.Transparency = 1
  553. Decal5H.Parent = MeshPart38
  554. Decal5H.Texture = "http://www.roblox.com/asset/?id=15507643492"
  555. MeshPart38.CFrame = CFrame.new(-0.675512314, 0.167736173, -1.70284736, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  556. MeshPart38.Orientation = Vector3.new(0, 90.1399994, 0)
  557. MeshPart38.Position = Vector3.new(-0.675512314, 0.167736173, -1.70284736)
  558. MeshPart38.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  559. MeshPart38.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  560. MeshPart38.Size = Vector3.new(1.00063133, 0.335407257, 1.00020337)
  561. MeshPart38.BrickColor = BrickColor.new("Bright blue")
  562. MeshPart38.CanCollide = false
  563. MeshPart38.brickColor = BrickColor.new("Bright blue")
  564. Vector3Value39.Name = "OriginalSize"
  565. Vector3Value39.Parent = MeshPart38
  566. Vector3Value39.Value = Vector3.new(1.00063133, 0.335407257, 1.00020337)
  567. Motor6D40.Name = "LeftAnkle"
  568. Motor6D40.Parent = MeshPart38
  569. Motor6D40.C0 = CFrame.new(-0.00382620096, -0.710131407, 0.00030554086, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  570. Motor6D40.C1 = CFrame.new(-0.00901681185, 0.032443285, 0.000177569687, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  571. Motor6D40.Part0 = MeshPart51
  572. Motor6D40.Part1 = MeshPart38
  573. Motor6D40.part1 = MeshPart38
  574. MeshPart41.Name = "LowerTorso"
  575. MeshPart41.Parent = Model0
  576. MeshPart41.Transparency = 1
  577. Decal6H.Parent = MeshPart41
  578. Decal6H.Texture = "http://www.roblox.com/asset/?id=15507643492"
  579. MeshPart41.CFrame = CFrame.new(-0.677587926, 2.19284177, -2.19834709, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  580. MeshPart41.Orientation = Vector3.new(0, 90.1399994, 0)
  581. MeshPart41.Position = Vector3.new(-0.677587926, 2.19284177, -2.19834709)
  582. MeshPart41.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  583. MeshPart41.Color = Color3.new(0.156863, 0.498039, 0.278431)
  584. MeshPart41.Size = Vector3.new(2.00017595, 0.400037616, 1.00021255)
  585. MeshPart41.BrickColor = BrickColor.new("Dark green")
  586. MeshPart41.brickColor = BrickColor.new("Dark green")
  587. Vector3Value42.Name = "OriginalSize"
  588. Vector3Value42.Parent = MeshPart41
  589. Vector3Value42.Value = Vector3.new(2.00017595, 0.400037616, 1.00021255)
  590. Motor6D43.Name = "Root"
  591. Motor6D43.Parent = MeshPart41
  592. Motor6D43.C1 = CFrame.new(0.000280171633, 0.133037761, -0.0142721087, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  593. Motor6D43.Part0 = Part11
  594. Motor6D43.Part1 = MeshPart41
  595. Motor6D43.part1 = MeshPart41
  596. Script44.Name = "Damage Script"
  597. Script44.Parent = MeshPart41
  598. table.insert(cors,sandbox(Script44,function()
  599. function onTouched(hit)
  600.         local human = hit.Parent:findFirstChild("Humanoid")
  601.         if (human ~= nil) then
  602.                 human.Health = human.Health - 999
  603.         end
  604. end
  605. script.Parent.Touched:connect(onTouched)
  606. end))
  607. MeshPart45.Name = "LeftUpperLeg"
  608. MeshPart45.Parent = Model0
  609. MeshPart45.Transparency = 1
  610. Decal7H.Parent = MeshPart45
  611. Decal7H.Texture = "http://www.roblox.com/asset/?id=15507643492"
  612. MeshPart45.CFrame = CFrame.new(-0.675863564, 1.46466565, -1.69765592, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  613. MeshPart45.Orientation = Vector3.new(0, 90.1399994, 0)
  614. MeshPart45.Position = Vector3.new(-0.675863564, 1.46466565, -1.69765592)
  615. MeshPart45.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  616. MeshPart45.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  617. MeshPart45.Size = Vector3.new(1.00027561, 1.5362649, 1.00092912)
  618. MeshPart45.BrickColor = BrickColor.new("Bright blue")
  619. MeshPart45.CanCollide = false
  620. MeshPart45.brickColor = BrickColor.new("Bright blue")
  621. Vector3Value46.Name = "OriginalSize"
  622. Vector3Value46.Parent = MeshPart45
  623. Vector3Value46.Value = Vector3.new(1.00027561, 1.5362649, 1.00092912)
  624. Motor6D47.Name = "LeftHip"
  625. Motor6D47.Parent = MeshPart45
  626. Motor6D47.C0 = CFrame.new(-0.50451982, -0.243062243, 0.00122789107, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  627. Motor6D47.C1 = CFrame.new(-0.00382620096, 0.4851138, 0.000686740503, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  628. Motor6D47.Part0 = MeshPart41
  629. Motor6D47.Part1 = MeshPart45
  630. Motor6D47.part1 = MeshPart45
  631. MeshPart48.Name = "LeftUpperArm"
  632. MeshPart48.Parent = Model0
  633. MeshPart48.Transparency = 1
  634. Decal8H.Parent = MeshPart48
  635. Decal8H.Texture = "http://www.roblox.com/asset/?id=15507643492"
  636. MeshPart48.CFrame = CFrame.new(-0.678766429, 3.29312539, -0.700763106, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  637. MeshPart48.Orientation = Vector3.new(0, 90.1399994, 0)
  638. MeshPart48.Position = Vector3.new(-0.678766429, 3.29312539, -0.700763106)
  639. MeshPart48.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  640. MeshPart48.Color = Color3.new(0.992157, 0.917647, 0.552941)
  641. MeshPart48.Size = Vector3.new(1.00027633, 1.39554, 1.00025082)
  642. MeshPart48.BrickColor = BrickColor.new("Cool yellow")
  643. MeshPart48.CanCollide = false
  644. MeshPart48.brickColor = BrickColor.new("Cool yellow")
  645. Vector3Value49.Name = "OriginalSize"
  646. Vector3Value49.Parent = MeshPart48
  647. Vector3Value49.Value = Vector3.new(1.00027633, 1.39554, 1.00025082)
  648. Motor6D50.Name = "LeftShoulder"
  649. Motor6D50.Parent = MeshPart48
  650. Motor6D50.C0 = CFrame.new(-1.24955308, 0.556408584, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  651. Motor6D50.C1 = CFrame.new(0.247964978, 0.456732988, -0.00943991542, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  652. Motor6D50.Part0 = MeshPart14
  653. Motor6D50.Part1 = MeshPart48
  654. Motor6D50.part1 = MeshPart48
  655. MeshPart51.Name = "LeftLowerLeg"
  656. MeshPart51.Parent = Model0
  657. MeshPart51.Transparency = 1
  658. Decal9H.Parent = MeshPart51
  659. Decal9H.Texture = "http://www.roblox.com/asset/?id=15507643492"
  660. MeshPart51.CFrame = CFrame.new(-0.67560178, 0.910310864, -1.69765651, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  661. MeshPart51.Orientation = Vector3.new(0, 90.1399994, 0)
  662. MeshPart51.Position = Vector3.new(-0.67560178, 0.910310864, -1.69765651)
  663. MeshPart51.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  664. MeshPart51.Color = Color3.new(0, 0, 0)
  665. MeshPart51.Size = Vector3.new(1.00027585, 1.48964536, 1.00032866)
  666. MeshPart51.BrickColor = BrickColor.new("Bright blue")
  667. MeshPart51.CanCollide = false
  668. MeshPart51.brickColor = BrickColor.new("Bright blue")
  669. Vector3Value52.Name = "OriginalSize"
  670. Vector3Value52.Parent = MeshPart51
  671. Vector3Value52.Value = Vector3.new(1.00027585, 1.48964536, 1.00032866)
  672. Motor6D53.Name = "LeftKnee"
  673. Motor6D53.Parent = MeshPart51
  674. Motor6D53.C0 = CFrame.new(-0.00382620096, -0.264486194, 0.000586740673, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  675. Motor6D53.C1 = CFrame.new(-0.00382620096, 0.289868593, 0.00030554086, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  676. Motor6D53.Part0 = MeshPart45
  677. Motor6D53.Part1 = MeshPart51
  678. Motor6D53.part1 = MeshPart51
  679. MeshPart54.Name = "LeftLowerArm"
  680. MeshPart54.Parent = Model0
  681. MeshPart54.Transparency = 1
  682. Decal10H.Parent = MeshPart54
  683. Decal10H.Texture = "http://www.roblox.com/asset/?id=15507643492"
  684. MeshPart54.CFrame = CFrame.new(-0.678323925, 2.90703535, -0.700764775, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  685. MeshPart54.Orientation = Vector3.new(0, 90.1399994, 0)
  686. MeshPart54.Position = Vector3.new(-0.678323925, 2.90703535, -0.700764775)
  687. MeshPart54.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  688. MeshPart54.Color = Color3.new(0.992157, 0.917647, 0.552941)
  689. MeshPart54.Size = Vector3.new(1.00027657, 1.26567209, 1.00025082)
  690. MeshPart54.BrickColor = BrickColor.new("Cool yellow")
  691. MeshPart54.CanCollide = false
  692. MeshPart54.brickColor = BrickColor.new("Cool yellow")
  693. Vector3Value55.Name = "OriginalSize"
  694. Vector3Value55.Parent = MeshPart54
  695. Vector3Value55.Value = Vector3.new(1.00027657, 1.26567209, 1.00025082)
  696. Motor6D56.Name = "LeftElbow"
  697. Motor6D56.Parent = MeshPart54
  698. Motor6D56.C0 = CFrame.new(-0.00166511536, -0.263139546, -0.00943991542, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  699. Motor6D56.C1 = CFrame.new(-0.0016657114, 0.122950554, -0.00989592075, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  700. Motor6D56.Part0 = MeshPart48
  701. Motor6D56.Part1 = MeshPart54
  702. Motor6D56.part1 = MeshPart54
  703. MeshPart57.Name = "LeftHand"
  704. MeshPart57.Parent = Model0
  705. MeshPart57.Transparency = 1
  706. Decal11H.Parent = MeshPart57
  707. Decal11H.Texture = "http://www.roblox.com/asset/?id=15507643492"
  708. MeshPart57.CFrame = CFrame.new(-0.67280364, 2.1668787, -0.699498653, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  709. MeshPart57.Orientation = Vector3.new(0, 90.1399994, 0)
  710. MeshPart57.Position = Vector3.new(-0.67280364, 2.1668787, -0.699498653)
  711. MeshPart57.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  712. MeshPart57.Color = Color3.new(0.992157, 0.917647, 0.552941)
  713. MeshPart57.Size = Vector3.new(0.999299049, 0.335255831, 1.00029743)
  714. MeshPart57.BrickColor = BrickColor.new("Cool yellow")
  715. MeshPart57.CanCollide = false
  716. MeshPart57.brickColor = BrickColor.new("Cool yellow")
  717. Vector3Value58.Name = "OriginalSize"
  718. Vector3Value58.Parent = MeshPart57
  719. Vector3Value58.Value = Vector3.new(0.999299049, 0.335255831, 1.00029743)
  720. Motor6D59.Name = "LeftWrist"
  721. Motor6D59.Parent = MeshPart57
  722. Motor6D59.C0 = CFrame.new(-0.0016657114, -0.682255626, -0.00989592075, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  723. Motor6D59.C1 = CFrame.new(-0.000386238098, 0.0579008311, -0.0154390335, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  724. Motor6D59.Part0 = MeshPart54
  725. Motor6D59.Part1 = MeshPart57
  726. Motor6D59.part1 = MeshPart57
  727. Script60.Name = "Respawn"
  728. Script60.Parent = Model0
  729. table.insert(cors,sandbox(Script60,function()
  730. z = Part11
  731.  
  732. backup = z:clone()
  733.  
  734. while true do
  735.     wait(5)
  736.     if z.Zombie.Health == 0 then
  737.         z:Remove()
  738.         wait(4)
  739.         backup.Parent = game.Workspace
  740.         backup.Head:MakeJoints()
  741.         backup.Torso:MakeJoints()
  742.     end
  743.     if z == nil then
  744.         wait(4)
  745.         backup.Parent = game.Workspace
  746.         backup.Head:MakeJoints()
  747.         backup.Torso:MakeJoints()
  748.     end
  749. end
  750. end))
  751. Script61.Name = "Health"
  752. Script61.Parent = Model0
  753. table.insert(cors,sandbox(Script61,function()
  754. --Responsible for regening a player's humanoid's health
  755.  
  756. -- declarations
  757. local Figure = script.Parent
  758. local Head = Figure:WaitForChild("Head")
  759. local Humanoid = Figure:WaitForChild("Humanoid")
  760. local regening = false
  761.  
  762. -- regeneration
  763. function regenHealth()
  764.     if regening then return end
  765.     regening = true
  766.    
  767.     while Humanoid.Health < Humanoid.MaxHealth do
  768.         local s = wait(1)
  769.         local health = Humanoid.Health
  770.         if health > 0 and health < Humanoid.MaxHealth then
  771.             local newHealthDelta = 0.01 * s * Humanoid.MaxHealth
  772.             health = health + newHealthDelta
  773.             Humanoid.Health = math.min(health,Humanoid.MaxHealth)
  774.         end
  775.     end
  776.    
  777.     if Humanoid.Health > Humanoid.MaxHealth then
  778.         Humanoid.Health = Humanoid.MaxHealth
  779.     end
  780.    
  781.     regening = false
  782. end
  783.  
  784. Humanoid.HealthChanged:connect(regenHealth)
  785.  
  786. end))
  787. Script62.Name = "Animate"
  788. Script62.Parent = Model0
  789. table.insert(cors,sandbox(Script62,function()
  790. function   waitForChild(parent, childName)
  791.     local child = parent:findFirstChild(childName)
  792.     if child then return child end
  793.     while true do
  794.         child = parent.ChildAdded:wait()
  795.         if child.Name==childName then return child end
  796.     end
  797. end
  798.  
  799. local Figure = script.Parent
  800. local Humanoid = waitForChild(Figure, "Zombie")
  801. local pose = "Standing"
  802.  
  803. local currentAnim = ""
  804. local currentAnimInstance = nil
  805. local currentAnimTrack = nil
  806. local currentAnimKeyframeHandler = nil
  807. local currentAnimSpeed = 1.0
  808. local animTable = {}
  809. local animNames = {
  810.     idle =  {  
  811.                 { id = "http://www.roblox.com/asset/?id=", weight = 1 },
  812.                 { id = "http://www.roblox.com/asset/?id=", weight = 1 },
  813.                 { id = "http://www.roblox.com/asset/?id=", weight = 9 }
  814.             },
  815.     walk =  {  
  816.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  817.             },
  818.     run =   {
  819.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  820.             },
  821.     swim =  {
  822.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  823.             },
  824.     swimidle =  {
  825.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  826.             },
  827.     jump =  {
  828.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  829.             },
  830.     fall =  {
  831.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  832.             },
  833.     climb = {
  834.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  835.             },
  836.     sit =   {
  837.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  838.             },  
  839.     toolnone = {
  840.                 { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  841.             },
  842.     toolslash = {
  843.                 { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  844. --              { id = "slash.xml", weight = 10 }
  845.             },
  846.     toollunge = {
  847.                 { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  848.             },
  849.     wave = {
  850.                 { id = "http://www.roblox.com/asset/?id=507770239", weight = 10 }
  851.             },
  852.     point = {
  853.                 { id = "http://www.roblox.com/asset/?id=507770453", weight = 10 }
  854.             },
  855.     dance = {
  856.                 { id = "http://www.roblox.com/asset/?id=507771019", weight = 10 },
  857.                 { id = "http://www.roblox.com/asset/?id=507771955", weight = 10 },
  858.                 { id = "http://www.roblox.com/asset/?id=507772104", weight = 10 }
  859.             },
  860.     dance2 = {
  861.                 { id = "http://www.roblox.com/asset/?id=507776043", weight = 10 },
  862.                 { id = "http://www.roblox.com/asset/?id=507776720", weight = 10 },
  863.                 { id = "http://www.roblox.com/asset/?id=507776879", weight = 10 }
  864.             },
  865.     dance3 = {
  866.                 { id = "http://www.roblox.com/asset/?id=507777268", weight = 10 },
  867.                 { id = "http://www.roblox.com/asset/?id=507777451", weight = 10 },
  868.                 { id = "http://www.roblox.com/asset/?id=507777623", weight = 10 }
  869.             },
  870.     laugh = {
  871.                 { id = "http://www.roblox.com/asset/?id=507770818", weight = 10 }
  872.             },
  873.     cheer = {
  874.                 { id = "http://www.roblox.com/asset/?id=507770677", weight = 10 }
  875.             },
  876. }
  877.  
  878. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  879. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  880.  
  881. math.randomseed(tick())
  882.  
  883. function configureAnimationSet(name, fileList)
  884.     if (animTable[name] ~= nil) then
  885.         for _, connection in pairs(animTable[name].connections) do
  886.             connection:disconnect()
  887.         end
  888.     end
  889.     animTable[name] = {}
  890.     animTable[name].count = 0
  891.     animTable[name].totalWeight = 0
  892.     animTable[name].connections = {}
  893.  
  894.     -- check for config values
  895.     local config = script:FindFirstChild(name)
  896.     if (config ~= nil) then
  897. --      print("Loading anims " .. name)
  898.         table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  899.         table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  900.         local idx = 1
  901.         for _, childPart in pairs(config:GetChildren()) do
  902.             if (childPart:IsA("Animation")) then
  903.                 table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  904.                 animTable[name][idx] = {}
  905.                 animTable[name][idx].anim = childPart
  906.                 local weightObject = childPart:FindFirstChild("Weight")
  907.                 if (weightObject == nil) then
  908.                     animTable[name][idx].weight = 1
  909.                 else
  910.                     animTable[name][idx].weight = weightObject.Value
  911.                 end
  912.                 animTable[name].count = animTable[name].count + 1
  913.                 animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  914. --              print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  915.                 idx = idx + 1
  916.             end
  917.         end
  918.     end
  919.  
  920.     -- fallback to defaults
  921.     if (animTable[name].count <= 0) then
  922.         for idx, anim in pairs(fileList) do
  923.             animTable[name][idx] = {}
  924.             animTable[name][idx].anim = Instance.new("Animation")
  925.             animTable[name][idx].anim.Name = name
  926.             animTable[name][idx].anim.AnimationId = anim.id
  927.             animTable[name][idx].weight = anim.weight
  928.             animTable[name].count = animTable[name].count + 1
  929.             animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  930. --          print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  931.         end
  932.     end
  933. end
  934.  
  935. -- Setup animation objects
  936. function scriptChildModified(child)
  937.     local fileList = animNames[child.Name]
  938.     if (fileList ~= nil) then
  939.         configureAnimationSet(child.Name, fileList)
  940.     end
  941. end
  942.  
  943. script.ChildAdded:connect(scriptChildModified)
  944. script.ChildRemoved:connect(scriptChildModified)
  945.  
  946.  
  947. for name, fileList in pairs(animNames) do
  948.     configureAnimationSet(name, fileList)
  949. end
  950.  
  951. -- ANIMATION
  952.  
  953. -- declarations
  954. local toolAnim = "None"
  955. local toolAnimTime = 0
  956.  
  957. local jumpAnimTime = 0
  958. local jumpAnimDuration = 0.31
  959.  
  960. local toolTransitionTime = 0.1
  961. local fallTransitionTime = 0.2
  962.  
  963. -- functions
  964.  
  965. function stopAllAnimations()
  966.     local oldAnim = currentAnim
  967.  
  968.     -- return to idle if finishing an emote
  969.     if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  970.         oldAnim = "idle"
  971.     end
  972.  
  973.     currentAnim = ""
  974.     currentAnimInstance = nil
  975.     if (currentAnimKeyframeHandler ~= nil) then
  976.         currentAnimKeyframeHandler:disconnect()
  977.     end
  978.  
  979.     if (currentAnimTrack ~= nil) then
  980.         currentAnimTrack:Stop()
  981.         currentAnimTrack:Destroy()
  982.         currentAnimTrack = nil
  983.     end
  984.     return oldAnim
  985. end
  986.  
  987. function setAnimationSpeed(speed)
  988.     if speed ~= currentAnimSpeed then
  989.         currentAnimSpeed = speed
  990.         currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  991.     end
  992. end
  993.  
  994. function keyFrameReachedFunc(frameName)
  995.     if (frameName == "End") then
  996. --      print("Keyframe : ".. frameName)
  997.  
  998.         local repeatAnim = currentAnim
  999.         -- return to idle if finishing an emote
  1000.         if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  1001.             repeatAnim = "idle"
  1002.         end
  1003.        
  1004.         local animSpeed = currentAnimSpeed
  1005.         playAnimation(repeatAnim, 0.15, Humanoid)
  1006.         setAnimationSpeed(animSpeed)
  1007.     end
  1008. end
  1009.  
  1010. -- Preload animations
  1011. function playAnimation(animName, transitionTime, humanoid)
  1012.        
  1013.     local roll = math.random(1, animTable[animName].totalWeight)
  1014.     local origRoll = roll
  1015.     local idx = 1
  1016.     while (roll > animTable[animName][idx].weight) do
  1017.         roll = roll - animTable[animName][idx].weight
  1018.         idx = idx + 1
  1019.     end
  1020.    
  1021.  
  1022.    
  1023.     local anim = animTable[animName][idx].anim
  1024.  
  1025.    
  1026.     if (anim ~= currentAnimInstance) then
  1027.        
  1028.         if (currentAnimTrack ~= nil) then
  1029.             currentAnimTrack:Stop(transitionTime)
  1030.             currentAnimTrack:Destroy()
  1031.         end
  1032.  
  1033.         currentAnimSpeed = 1.0
  1034.    
  1035.         -- load it to the humanoid; get AnimationTrack
  1036.         currentAnimTrack = humanoid:LoadAnimation(anim)
  1037.          
  1038.         -- play the animation
  1039.         currentAnimTrack:Play(transitionTime)
  1040.         currentAnim = animName
  1041.         currentAnimInstance = anim
  1042.  
  1043.         -- set up keyframe name triggers
  1044.         if (currentAnimKeyframeHandler ~= nil) then
  1045.             currentAnimKeyframeHandler:disconnect()
  1046.         end
  1047.         currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1048.        
  1049.     end
  1050.  
  1051. end
  1052.  
  1053.  
  1054.  
  1055. local toolAnimName = ""
  1056. local toolAnimTrack = nil
  1057. local toolAnimInstance = nil
  1058. local currentToolAnimKeyframeHandler = nil
  1059.  
  1060. function toolKeyFrameReachedFunc(frameName)
  1061.     if (frameName == "End") then
  1062. --      print("Keyframe : ".. frameName)    
  1063.         playToolAnimation(toolAnimName, 0.0, Humanoid)
  1064.     end
  1065. end
  1066.  
  1067.  
  1068. function playToolAnimation(animName, transitionTime, humanoid)  
  1069.        
  1070.         local roll = math.random(1, animTable[animName].totalWeight)
  1071.         local origRoll = roll
  1072.         local idx = 1
  1073.         while (roll > animTable[animName][idx].weight) do
  1074.             roll = roll - animTable[animName][idx].weight
  1075.             idx = idx + 1
  1076.         end
  1077. --      print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  1078.         local anim = animTable[animName][idx].anim
  1079.  
  1080.         if (toolAnimInstance ~= anim) then
  1081.            
  1082.             if (toolAnimTrack ~= nil) then
  1083.                 toolAnimTrack:Stop()
  1084.                 toolAnimTrack:Destroy()
  1085.                 transitionTime = 0
  1086.             end
  1087.                    
  1088.             -- load it to the humanoid; get AnimationTrack
  1089.             toolAnimTrack = humanoid:LoadAnimation(anim)
  1090.              
  1091.             -- play the animation
  1092.             toolAnimTrack:Play(transitionTime)
  1093.             toolAnimName = animName
  1094.             toolAnimInstance = anim
  1095.  
  1096.             currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  1097.         end
  1098. end
  1099.  
  1100. function stopToolAnimations()
  1101.     local oldAnim = toolAnimName
  1102.  
  1103.     if (currentToolAnimKeyframeHandler ~= nil) then
  1104.         currentToolAnimKeyframeHandler:disconnect()
  1105.     end
  1106.  
  1107.     toolAnimName = ""
  1108.     toolAnimInstance = nil
  1109.     if (toolAnimTrack ~= nil) then
  1110.         toolAnimTrack:Stop()
  1111.         toolAnimTrack:Destroy()
  1112.         toolAnimTrack = nil
  1113.     end
  1114.  
  1115.  
  1116.     return oldAnim
  1117. end
  1118.  
  1119.  
  1120.  
  1121.  
  1122. function onRunning(speed)
  1123.     if speed > 0.01 then
  1124.         local scale = 15.0
  1125.         playAnimation("walk", 0.1, Humanoid)
  1126.         setAnimationSpeed(speed / scale)
  1127.         pose = "Running"
  1128.     else
  1129.         playAnimation("idle", 0.1, Humanoid)
  1130.         pose = "Standing"
  1131.     end
  1132. end
  1133.  
  1134. function onDied()
  1135.     pose = "Dead"
  1136. end
  1137.  
  1138. function onJumping()
  1139.     playAnimation("jump", 0.1, Humanoid)
  1140.     jumpAnimTime = jumpAnimDuration
  1141.     pose = "Jumping"
  1142. end
  1143.  
  1144. function onClimbing(speed)
  1145.     local scale = 5.0
  1146.     playAnimation("climb", 0.1, Humanoid)
  1147.     setAnimationSpeed(speed / scale)
  1148.     pose = "Climbing"
  1149. end
  1150.  
  1151. function onGettingUp()
  1152.     pose = "GettingUp"
  1153. end
  1154.  
  1155. function onFreeFall()
  1156.     if (jumpAnimTime <= 0) then
  1157.         playAnimation("fall", fallTransitionTime, Humanoid)
  1158.     end
  1159.     pose = "FreeFall"
  1160. end
  1161.  
  1162. function onFallingDown()
  1163.     pose = "FallingDown"
  1164. end
  1165.  
  1166. function onSeated()
  1167.     pose = "Seated"
  1168. end
  1169.  
  1170. function onPlatformStanding()
  1171.     pose = "PlatformStanding"
  1172. end
  1173.  
  1174. function onSwimming(speed)
  1175.     if speed > 1.00 then
  1176.         local scale = 10.0
  1177.         playAnimation("swim", 0.4, Humanoid)
  1178.         setAnimationSpeed(speed / scale)
  1179.         pose = "Swimming"
  1180.     else
  1181.         playAnimation("swimidle", 0.4, Humanoid)
  1182.         pose = "Standing"
  1183.     end
  1184. end
  1185.  
  1186. function getTool()  
  1187.     for _, kid in ipairs(Figure:GetChildren()) do
  1188.         if kid.className == "Tool" then return kid end
  1189.     end
  1190.     return nil
  1191. end
  1192.  
  1193. function getToolAnim(tool)
  1194.     for _, c in ipairs(tool:GetChildren()) do
  1195.         if c.Name == "toolanim" and c.className == "StringValue" then
  1196.             return c
  1197.         end
  1198.     end
  1199.     return nil
  1200. end
  1201.  
  1202. function animateTool()
  1203.    
  1204.     if (toolAnim == "None") then
  1205.         playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  1206.         return
  1207.     end
  1208.  
  1209.     if (toolAnim == "Slash") then
  1210.         playToolAnimation("toolslash", 0, Humanoid)
  1211.         return
  1212.     end
  1213.  
  1214.     if (toolAnim == "Lunge") then
  1215.         playToolAnimation("toollunge", 0, Humanoid)
  1216.         return
  1217.     end
  1218. end
  1219.  
  1220. function moveSit()
  1221.     RightShoulder.MaxVelocity = 0.15
  1222.     LeftShoulder.MaxVelocity = 0.15
  1223.     RightShoulder:SetDesiredAngle(3.14 /2)
  1224.     LeftShoulder:SetDesiredAngle(-3.14 /2)
  1225.     RightHip:SetDesiredAngle(3.14 /2)
  1226.     LeftHip:SetDesiredAngle(-3.14 /2)
  1227. end
  1228.  
  1229. local lastTick = 0
  1230.  
  1231. function move(time)
  1232.     local amplitude = 1
  1233.     local frequency = 1
  1234.     local deltaTime = time - lastTick
  1235.     lastTick = time
  1236.  
  1237.     local climbFudge = 0
  1238.     local setAngles = false
  1239.  
  1240.     if (jumpAnimTime > 0) then
  1241.         jumpAnimTime = jumpAnimTime - deltaTime
  1242.     end
  1243.  
  1244.     if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1245.         playAnimation("fall", fallTransitionTime, Humanoid)
  1246.     elseif (pose == "Seated") then
  1247.         playAnimation("sit", 0.5, Humanoid)
  1248.         return
  1249.     elseif (pose == "Running") then
  1250.         playAnimation("walk", 0.1, Humanoid)
  1251.     elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1252.         stopAllAnimations()
  1253.         amplitude = 0.1
  1254.         frequency = 1
  1255.         setAngles = true
  1256.     end
  1257.  
  1258.     -- Tool Animation handling
  1259.     local tool = getTool()
  1260.     if tool then
  1261.    
  1262.         animStringValueObject = getToolAnim(tool)
  1263.  
  1264.         if animStringValueObject then
  1265.             toolAnim = animStringValueObject.Value
  1266.             -- message recieved, delete StringValue
  1267.             animStringValueObject.Parent = nil
  1268.             toolAnimTime = time + .3
  1269.         end
  1270.  
  1271.         if time > toolAnimTime then
  1272.             toolAnimTime = 0
  1273.             toolAnim = "None"
  1274.         end
  1275.  
  1276.         animateTool()      
  1277.     else
  1278.         stopToolAnimations()
  1279.         toolAnim = "None"
  1280.         toolAnimInstance = nil
  1281.         toolAnimTime = 0
  1282.     end
  1283. end
  1284.  
  1285. -- connect events
  1286. Humanoid.Died:connect(onDied)
  1287. Humanoid.Running:connect(onRunning)
  1288. Humanoid.Jumping:connect(onJumping)
  1289. Humanoid.Climbing:connect(onClimbing)
  1290. Humanoid.GettingUp:connect(onGettingUp)
  1291. Humanoid.FreeFalling:connect(onFreeFall)
  1292. Humanoid.FallingDown:connect(onFallingDown)
  1293. Humanoid.Seated:connect(onSeated)
  1294. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1295. Humanoid.Swimming:connect(onSwimming)
  1296.  
  1297. -- setup emote chat hook
  1298. script.msg.Changed:connect(function(msg)
  1299.     script.msg.Value = ""
  1300.     local emote = ""
  1301.     if (string.sub(msg, 1, 3) == "/e ") then
  1302.         emote = string.sub(msg, 4)
  1303.     elseif (string.sub(msg, 1, 7) == "/emote ") then
  1304.         emote = string.sub(msg, 8)
  1305.     end
  1306.    
  1307.     if (pose == "Standing" and emoteNames[emote] ~= nil) then
  1308.         playAnimation(emote, 0.1, Humanoid)
  1309.     end
  1310. --  print("===> " .. string.sub(msg, 1, 3) .. "(" .. emote .. ")")
  1311. end)
  1312.  
  1313.  
  1314. -- main program
  1315.  
  1316. local runService = game:service("RunService");
  1317.  
  1318. -- print("bottom")
  1319.  
  1320. -- initialize to idle
  1321. playAnimation("idle", 0.1, Humanoid)
  1322. pose = "Standing"
  1323.  
  1324. while Figure.Parent~=nil do
  1325.     local _, time = wait(0.1)
  1326.     move(time)
  1327. end
  1328.  
  1329.  
  1330.  
  1331. end))
  1332. StringValue63.Name = "msg"
  1333. StringValue63.Parent = Script62
  1334. StringValue64.Name = "climb"
  1335. StringValue64.Parent = Script62
  1336. Animation65.Name = "ClimbAnim"
  1337. Animation65.Parent = StringValue64
  1338. Animation65.AnimationId = "http://www.roblox.com/asset/?id="
  1339. StringValue66.Name = "fall"
  1340. StringValue66.Parent = Script62
  1341. Animation67.Name = "FallAnim"
  1342. Animation67.Parent = StringValue66
  1343. Animation67.AnimationId = "http://www.roblox.com/asset/?id="
  1344. StringValue68.Name = "idle"
  1345. StringValue68.Parent = Script62
  1346. Animation69.Name = "Animation1"
  1347. Animation69.Parent = StringValue68
  1348. Animation69.AnimationId = "http://www.roblox.com/asset/?id="
  1349. NumberValue70.Name = "Weight"
  1350. NumberValue70.Parent = Animation69
  1351. NumberValue70.Value = 9
  1352. Animation71.Name = "Animation2"
  1353. Animation71.Parent = StringValue68
  1354. Animation71.AnimationId = "http://www.roblox.com/asset/?id="
  1355. NumberValue72.Name = "Weight"
  1356. NumberValue72.Parent = Animation71
  1357. NumberValue72.Value = 1
  1358. StringValue73.Name = "jump"
  1359. StringValue73.Parent = Script62
  1360. Animation74.Name = "JumpAnim"
  1361. Animation74.Parent = StringValue73
  1362. Animation74.AnimationId = "http://www.roblox.com/asset/?id="
  1363. StringValue75.Name = "sit"
  1364. StringValue75.Parent = Script62
  1365. Animation76.Name = "SitAnim"
  1366. Animation76.Parent = StringValue75
  1367. Animation76.AnimationId = "http://www.roblox.com/asset/?id="
  1368. StringValue77.Name = "swim"
  1369. StringValue77.Parent = Script62
  1370. Animation78.Name = "Swim"
  1371. Animation78.Parent = StringValue77
  1372. Animation78.AnimationId = "http://www.roblox.com/asset/?id="
  1373. StringValue79.Name = "swimidle"
  1374. StringValue79.Parent = Script62
  1375. Animation80.Name = "SwimIdle"
  1376. Animation80.Parent = StringValue79
  1377. Animation80.AnimationId = "http://www.roblox.com/asset/?id="
  1378. StringValue81.Name = "toolnone"
  1379. StringValue81.Parent = Script62
  1380. Animation82.Name = "ToolNoneAnim"
  1381. Animation82.Parent = StringValue81
  1382. Animation82.AnimationId = "http://www.roblox.com/asset/?id="
  1383. StringValue83.Name = "walk"
  1384. StringValue83.Parent = Script62
  1385. Animation84.Name = "RunAnim"
  1386. Animation84.Parent = StringValue83
  1387. Animation84.AnimationId = "http://www.roblox.com/asset/?id="
  1388. Script85.Name = "SoundScript"
  1389. Script85.Parent = Model0
  1390. table.insert(cors,sandbox(Script85,function()
  1391. local moan = script.Parent.Head.Moan
  1392. local moan2 = script.parent.Head.Moan2
  1393. local moan3 = script.parent.Head.Moan3
  1394. local moan4 = script.Parent.Head.Moan4
  1395.  
  1396. while true do
  1397.     moan:Play()
  1398.     wait(8)
  1399.    
  1400.     moan2:Play()
  1401.     wait(5)
  1402.    
  1403.     moan3:Play()
  1404.     wait(7)
  1405.    
  1406.     moan4:Play()
  1407.     wait(6)
  1408. end
  1409.  
  1410.  
  1411. local death = script.Parent.Head.Death
  1412.  
  1413.  
  1414. end))
  1415. for i,v in pairs(mas:GetChildren()) do
  1416.     v.Parent = workspace
  1417.     pcall(function() v:MakeJoints() end)
  1418. end
  1419. mas:Destroy()
  1420. for i,v in pairs(cors) do
  1421.     spawn(function()
  1422.         pcall(v)
  1423.     end)
  1424. end
  1425. end
  1426.  
  1427. for i = 1,1 do
  1428. createZombie()
  1429. end
  1430.  
  1431. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement